Options Reference¶
CodexOptions¶
codex_path_override: override binary pathbase_url: setsOPENAI_BASE_URLapi_key: setsCODEX_API_KEYconfig: flattened to--config key=valueenv: replaces inherited environment when supplied
ThreadOptions¶
modelsandbox_mode:read-only|workspace-write|danger-full-accessworking_directoryskip_git_repo_checkmodel_reasoning_effort:minimal|low|medium|high|xhighnetwork_access_enabledweb_search_mode:disabled|cached|liveweb_search_enabledapproval_policy:never|on-request|on-failure|untrustedadditional_directories: list[str]
TurnOptions¶
output_schemasignal(must exposeis_set())
Mapping Compatibility¶
All options objects may be passed as dataclass instances or mapping objects.
Both snake_case and legacy camelCase keys are coerced for key option fields.