config-reference.md +1176 −341
6 6
7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.
8 8
99For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/security#network-access).For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/agent-approvals-security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/agent-approvals-security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/agent-approvals-security#network-access).
10 10
11| Key | Type / Values | Details |11| Key | Type / Values | Details |
12| --- | --- | --- |12| --- | --- | --- |
13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |
14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |
1515| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. || `agents.<name>.nickname_candidates` | `array<string>` | Optional pool of display nicknames for spawned agents in that role. |
1616| `approval_policy` | `untrusted | on-request | never` | Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. || `agents.job_max_runtime_seconds` | `number` | Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker. |
1717| `apps.<id>.disabled_reason` | `unknown | user` | Optional reason attached when an app/connector is disabled. || `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |
18| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset. |
19| `allow_login_shell` | `boolean` | Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells. |
20| `analytics.enabled` | `boolean` | Enable or disable analytics for this machine/profile. When unset, the client default applies. |
21| `approval_policy` | `untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }` | Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. |
22| `approval_policy.reject.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user. |
23| `approval_policy.reject.rules` | `boolean` | When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected. |
24| `approval_policy.reject.sandbox_approval` | `boolean` | When `true`, sandbox escalation approval prompts are auto-rejected. |
25| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. |
26| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. |
27| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. |
28| `apps.<id>.default_tools_approval_mode` | `auto | prompt | approve` | Default approval behavior for tools in this app unless a per-tool override exists. |
29| `apps.<id>.default_tools_enabled` | `boolean` | Default enabled state for tools in this app unless a per-tool override exists. |
30| `apps.<id>.destructive_enabled` | `boolean` | Allow or block tools in this app that advertise `destructive_hint = true`. |
18| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). |31| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). |
32| `apps.<id>.open_world_enabled` | `boolean` | Allow or block tools in this app that advertise `open_world_hint = true`. |
33| `apps.<id>.tools.<tool>.approval_mode` | `auto | prompt | approve` | Per-tool approval behavior override for a single app tool. |
34| `apps.<id>.tools.<tool>.enabled` | `boolean` | Per-tool enabled override for an app tool (for example `repos/list`). |
35| `background_terminal_max_timeout` | `number` | Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key. |
19| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |36| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |
20| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |37| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |
21| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |38| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |
39| `commit_attribution` | `string` | Override the commit co-author trailer text. Set an empty string to disable automatic attribution. |
22| `compact_prompt` | `string` | Inline override for the history compaction prompt. |40| `compact_prompt` | `string` | Inline override for the history compaction prompt. |
23| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |41| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |
24| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |42| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |
25| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |43| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |
26| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. |
27| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |44| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |
28| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). |
29| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |45| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |
30| `features.apps_mcp_gateway` | `boolean` | Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental). |46| `features.apps_mcp_gateway` | `boolean` | Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental). |
47| `features.artifact` | `boolean` | Enable native artifact tools such as slides and spreadsheets (under development). |
31| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). |48| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). |
3249| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). || `features.collaboration_modes` | `boolean` | Legacy toggle for collaboration modes. Plan and default modes are available in current builds without setting this key. |
3350| `features.elevated_windows_sandbox` | `boolean` | Enable the elevated Windows sandbox pipeline (experimental). || `features.default_mode_request_user_input` | `boolean` | Allow `request_user_input` in default collaboration mode (under development; off by default). |
3451| `features.experimental_windows_sandbox` | `boolean` | Run the Windows restricted-token sandbox (experimental). || `features.elevated_windows_sandbox` | `boolean` | Legacy toggle for an earlier elevated Windows sandbox rollout. Current builds do not use it. |
3552| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). || `features.enable_request_compression` | `boolean` | Compress streaming request bodies with zstd when supported (stable; on by default). |
53| `features.experimental_windows_sandbox` | `boolean` | Legacy toggle for an earlier Windows sandbox rollout. Current builds do not use it. |
54| `features.fast_mode` | `boolean` | Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default). |
55| `features.image_detail_original` | `boolean` | Allow image outputs with `detail = "original"` on supported models (under development). |
56| `features.image_generation` | `boolean` | Enable the built-in image generation tool (under development). |
57| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait`, `close_agent`, and `spawn_agents_on_csv`) (experimental; off by default). |
36| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |58| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |
3759| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). || `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output. Enabled by default on Windows and off elsewhere. |
3860| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). || `features.prevent_idle_sleep` | `boolean` | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). |
3961| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). || `features.remote_models` | `boolean` | Legacy toggle for an older remote-model readiness flow. Current builds do not use it. |
62| `features.request_rule` | `boolean` | Legacy toggle for Smart approvals. Current builds include this behavior by default, so most users can leave this unset. |
63| `features.responses_websockets` | `boolean` | Prefer the Responses API WebSocket transport for supported providers (under development). |
64| `features.responses_websockets_v2` | `boolean` | Enable Responses API WebSocket v2 mode (under development). |
40| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |65| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |
4166| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). || `features.search_tool` | `boolean` | Legacy toggle for an older Apps discovery flow. Current builds do not use it. |
4267| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). || `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (stable; on by default). |
43| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |68| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |
4469| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). || `features.skill_env_var_dependency_prompt` | `boolean` | Prompt for missing skill environment-variable dependencies (under development). |
70| `features.skill_mcp_dependency_install` | `boolean` | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). |
71| `features.sqlite` | `boolean` | Enable SQLite-backed state persistence (stable; on by default). |
72| `features.steer` | `boolean` | Legacy toggle from an earlier Enter/Tab steering rollout. Current builds always use the current steering behavior. |
73| `features.undo` | `boolean` | Enable undo support (stable; off by default). |
74| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (stable; enabled by default except on Windows). |
45| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). |75| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). |
46| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |76| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |
47| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |77| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |
53| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |83| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |
54| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |84| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |
55| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |85| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |
56| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |
57| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |86| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |
58| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |87| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |
59| `mcp_oauth_callback_port` | `integer` | Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS. |88| `mcp_oauth_callback_port` | `integer` | Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS. |
89| `mcp_oauth_callback_url` | `string` | Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port. |
60| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. |90| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. |
61| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. |91| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. |
62| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |92| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |
69| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |99| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |
70| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |100| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |
71| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |101| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |
102| `mcp_servers.<id>.oauth_resource` | `string` | Optional RFC 8707 OAuth resource parameter to include during MCP login. |
72| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |103| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |
104| `mcp_servers.<id>.scopes` | `array<string>` | OAuth scopes to request when authenticating to that MCP server. |
73| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |105| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |
74| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |106| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |
75| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |107| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |
76| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |108| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |
77| `model` | `string` | Model to use (e.g., `gpt-5-codex`). |109| `model` | `string` | Model to use (e.g., `gpt-5-codex`). |
78| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |110| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |
111| `model_catalog_json` | `string (path)` | Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile. |
79| `model_context_window` | `number` | Context window tokens available to the active model. |112| `model_context_window` | `number` | Context window tokens available to the active model. |
80| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |113| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |
81| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |114| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |
91| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |124| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |
92| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |125| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |
93| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |126| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |
94127| `model_providers.<id>.wire_api` | `chat | responses` | Protocol used by the provider (defaults to `chat` if omitted). || `model_providers.<id>.supports_websockets` | `boolean` | Whether that provider supports the Responses API WebSocket transport. |
128| `model_providers.<id>.wire_api` | `responses` | Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted. |
95| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |129| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |
96| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |130| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |
97| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |131| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |
98132| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). || `model_verbosity` | `low | medium | high` | Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used. |
99| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |133| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |
100| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |134| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |
101| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |135| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |
113| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |147| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |
114| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |148| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |
115| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |149| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |
150| `otel.metrics_exporter` | `none | statsig | otlp-http | otlp-grpc` | Select the OpenTelemetry metrics exporter (defaults to `statsig`). |
116| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |151| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |
117| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |152| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |
118| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |153| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |
120| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |155| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |
121| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |156| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |
122| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |157| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |
158| `permissions.network.admin_url` | `string` | Admin endpoint for the managed network proxy. |
159| `permissions.network.allow_local_binding` | `boolean` | Permit local bind/listen operations through the managed proxy. |
160| `permissions.network.allow_unix_sockets` | `array<string>` | Allowlist of Unix socket paths permitted through the managed proxy. |
161| `permissions.network.allow_upstream_proxy` | `boolean` | Allow the managed proxy to chain to another upstream proxy. |
162| `permissions.network.allowed_domains` | `array<string>` | Allowlist of domains permitted through the managed proxy. |
163| `permissions.network.dangerously_allow_all_unix_sockets` | `boolean` | Allow the proxy to use arbitrary Unix sockets instead of the default restricted set. |
164| `permissions.network.dangerously_allow_non_loopback_admin` | `boolean` | Permit non-loopback bind addresses for the managed proxy admin listener. |
165| `permissions.network.dangerously_allow_non_loopback_proxy` | `boolean` | Permit non-loopback bind addresses for the managed proxy listener. |
166| `permissions.network.denied_domains` | `array<string>` | Denylist of domains blocked by the managed proxy. |
167| `permissions.network.enable_socks5` | `boolean` | Expose a SOCKS5 listener from the managed network proxy. |
168| `permissions.network.enable_socks5_udp` | `boolean` | Allow UDP over the SOCKS5 listener when enabled. |
169| `permissions.network.enabled` | `boolean` | Enable the managed network proxy configuration for subprocesses. |
170| `permissions.network.mode` | `limited | full` | Network proxy mode used for subprocess traffic. |
171| `permissions.network.proxy_url` | `string` | HTTP proxy endpoint used by the managed network proxy. |
172| `permissions.network.socks_url` | `string` | SOCKS5 proxy endpoint used by the managed network proxy. |
123| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |173| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |
174| `plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default. |
124| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |175| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |
125| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |176| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |
126177| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. || `profiles.<name>.analytics.enabled` | `boolean` | Profile-scoped analytics enablement override. |
127| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |178| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |
128179| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. || `profiles.<name>.model_catalog_json` | `string (path)` | Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile). |
180| `profiles.<name>.model_instructions_file` | `string (path)` | Profile-scoped replacement for the built-in instruction file. |
129| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |181| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |
130| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |182| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |
183| `profiles.<name>.plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Profile-scoped Plan-mode reasoning override. |
184| `profiles.<name>.service_tier` | `flex | fast` | Profile-scoped service tier preference for new turns. |
185| `profiles.<name>.tools_view_image` | `boolean` | Enable or disable the `view_image` tool in that profile. |
131| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |186| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |
187| `profiles.<name>.windows.sandbox` | `unelevated | elevated` | Profile-scoped Windows sandbox mode override. |
132| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |188| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |
133| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |189| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |
134| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |190| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |
139| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |195| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |
140| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |196| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |
141| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |197| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |
198| `service_tier` | `flex | fast` | Preferred service tier for new turns. `fast` is honored only when the `features.fast_mode` gate is enabled. |
142| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |199| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |
143| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |200| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |
144| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |201| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |
149| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |206| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |
150| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |207| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |
151| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |208| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |
209| `sqlite_home` | `string (path)` | Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state. |
152| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |210| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |
153| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |211| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |
212| `tools.view_image` | `boolean` | Enable the local-image attachment tool `view_image`. |
154| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. |213| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. |
155| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |214| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |
156| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |215| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |
157| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |216| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
217| `tui.model_availability_nux.<model>` | `integer` | Internal startup-tooltip state keyed by model slug. |
158| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |218| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |
159| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |219| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |
160| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |220| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |
161| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |221| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |
222| `tui.theme` | `string` | Syntax-highlighting theme override (kebab-case theme name). |
162| `web_search` | `disabled | cached | live` | Web search mode (default: `"cached"`; cached uses an OpenAI-maintained index and does not fetch live pages; if you use `--yolo` or another full access sandbox setting, it defaults to `"live"`). Use `"live"` to fetch the most recent data from the web, or `"disabled"` to remove the tool. |223| `web_search` | `disabled | cached | live` | Web search mode (default: `"cached"`; cached uses an OpenAI-maintained index and does not fetch live pages; if you use `--yolo` or another full access sandbox setting, it defaults to `"live"`). Use `"live"` to fetch the most recent data from the web, or `"disabled"` to remove the tool. |
163| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |224| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |
225| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |
164 226
165Key227Key
166 228
188 250
189Key251Key
190 252
191253`agents.max_threads``agents.<name>.nickname_candidates`
192 254
193Type / Values255Type / Values
194 256
195257`number``array<string>`
196 258
197Details259Details
198 260
199261Maximum number of agent threads that can be open concurrently.Optional pool of display nicknames for spawned agents in that role.
200 262
201Key263Key
202 264
203265`approval_policy``agents.job_max_runtime_seconds`
204 266
205Type / Values267Type / Values
206 268
207269`untrusted | on-request | never``number`
208 270
209Details271Details
210 272
211273Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.
212 274
213Key275Key
214 276
215277`apps.<id>.disabled_reason``agents.max_depth`
216 278
217Type / Values279Type / Values
218 280
219281`unknown | user``number`
220 282
221Details283Details
222 284
223285Optional reason attached when an app/connector is disabled.Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).
224 286
225Key287Key
226 288
227289`apps.<id>.enabled``agents.max_threads`
228 290
229Type / Values291Type / Values
230 292
231293`boolean``number`
232 294
233Details295Details
234 296
235297Enable or disable a specific app/connector by id (default: true).Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.
236 298
237Key299Key
238 300
239301`chatgpt_base_url``allow_login_shell`
240 302
241Type / Values303Type / Values
242 304
243305`string``boolean`
244 306
245Details307Details
246 308
247309Override the base URL used during the ChatGPT login flow.Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells.
248 310
249Key311Key
250 312
251313`check_for_update_on_startup``analytics.enabled`
252 314
253Type / Values315Type / Values
254 316
256 318
257Details319Details
258 320
259321Check for Codex updates on startup (set to false only when updates are centrally managed).Enable or disable analytics for this machine/profile. When unset, the client default applies.
260 322
261Key323Key
262 324
263325`cli_auth_credentials_store``approval_policy`
264 326
265Type / Values327Type / Values
266 328
267329`file | keyring | auto``untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }`
268 330
269Details331Details
270 332
271333Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.
272 334
273Key335Key
274 336
275337`compact_prompt``approval_policy.reject.mcp_elicitations`
276 338
277Type / Values339Type / Values
278 340
279341`string``boolean`
280 342
281Details343Details
282 344
283345Inline override for the history compaction prompt.When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user.
284 346
285Key347Key
286 348
287349`developer_instructions``approval_policy.reject.rules`
288 350
289Type / Values351Type / Values
290 352
291353`string``boolean`
292 354
293Details355Details
294 356
295357Additional developer instructions injected into the session (optional).When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected.
296 358
297Key359Key
298 360
299361`disable_paste_burst``approval_policy.reject.sandbox_approval`
300 362
301Type / Values363Type / Values
302 364
304 366
305Details367Details
306 368
307369Disable burst-paste detection in the TUI.When `true`, sandbox escalation approval prompts are auto-rejected.
308 370
309Key371Key
310 372
311373`experimental_compact_prompt_file``apps._default.destructive_enabled`
312 374
313Type / Values375Type / Values
314 376
315377`string (path)``boolean`
316 378
317Details379Details
318 380
319381Load the compaction prompt override from a file (experimental).Default allow/deny for app tools with `destructive_hint = true`.
320 382
321Key383Key
322 384
323385`experimental_use_freeform_apply_patch``apps._default.enabled`
324 386
325Type / Values387Type / Values
326 388
328 390
329Details391Details
330 392
331393Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.Default app enabled state for all apps unless overridden per app.
332 394
333Key395Key
334 396
335397`experimental_use_unified_exec_tool``apps._default.open_world_enabled`
336 398
337Type / Values399Type / Values
338 400
340 402
341Details403Details
342 404
343405Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.Default allow/deny for app tools with `open_world_hint = true`.
344 406
345Key407Key
346 408
347409`features.apply_patch_freeform``apps.<id>.default_tools_approval_mode`
348 410
349Type / Values411Type / Values
350 412
351413`boolean``auto | prompt | approve`
352 414
353Details415Details
354 416
355417Expose the freeform `apply_patch` tool (experimental).Default approval behavior for tools in this app unless a per-tool override exists.
356 418
357Key419Key
358 420
359421`features.apps``apps.<id>.default_tools_enabled`
360 422
361Type / Values423Type / Values
362 424
364 426
365Details427Details
366 428
367429Enable ChatGPT Apps/connectors support (experimental).Default enabled state for tools in this app unless a per-tool override exists.
368 430
369Key431Key
370 432
371433`features.apps_mcp_gateway``apps.<id>.destructive_enabled`
372 434
373Type / Values435Type / Values
374 436
376 438
377Details439Details
378 440
379441Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).Allow or block tools in this app that advertise `destructive_hint = true`.
380 442
381Key443Key
382 444
383445`features.child_agents_md``apps.<id>.enabled`
384 446
385Type / Values447Type / Values
386 448
388 450
389Details451Details
390 452
391453Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).Enable or disable a specific app/connector by id (default: true).
392 454
393Key455Key
394 456
395457`features.collaboration_modes``apps.<id>.open_world_enabled`
396 458
397Type / Values459Type / Values
398 460
400 462
401Details463Details
402 464
403465Enable collaboration modes such as plan mode (stable; on by default).Allow or block tools in this app that advertise `open_world_hint = true`.
404 466
405Key467Key
406 468
407469`features.elevated_windows_sandbox``apps.<id>.tools.<tool>.approval_mode`
408 470
409Type / Values471Type / Values
410 472
411473`boolean``auto | prompt | approve`
412 474
413Details475Details
414 476
415477Enable the elevated Windows sandbox pipeline (experimental).Per-tool approval behavior override for a single app tool.
416 478
417Key479Key
418 480
419481`features.experimental_windows_sandbox``apps.<id>.tools.<tool>.enabled`
420 482
421Type / Values483Type / Values
422 484
424 486
425Details487Details
426 488
427489Run the Windows restricted-token sandbox (experimental).Per-tool enabled override for an app tool (for example `repos/list`).
428 490
429Key491Key
430 492
431493`features.multi_agent``background_terminal_max_timeout`
432 494
433Type / Values495Type / Values
434 496
435497`boolean``number`
436 498
437Details499Details
438 500
439501Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.
440 502
441Key503Key
442 504
443505`features.personality``chatgpt_base_url`
444 506
445Type / Values507Type / Values
446 508
447509`boolean``string`
448 510
449Details511Details
450 512
451513Enable personality selection controls (stable; on by default).Override the base URL used during the ChatGPT login flow.
452 514
453Key515Key
454 516
455517`features.powershell_utf8``check_for_update_on_startup`
456 518
457Type / Values519Type / Values
458 520
460 522
461Details523Details
462 524
463525Force PowerShell UTF-8 output (defaults to true).Check for Codex updates on startup (set to false only when updates are centrally managed).
464 526
465Key527Key
466 528
467529`features.remote_models``cli_auth_credentials_store`
468 530
469Type / Values531Type / Values
470 532
471533`boolean``file | keyring | auto`
472 534
473Details535Details
474 536
475537Refresh remote model list before showing readiness (experimental).Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).
476 538
477Key539Key
478 540
479541`features.request_rule``commit_attribution`
480 542
481Type / Values543Type / Values
482 544
483545`boolean``string`
484 546
485Details547Details
486 548
487549Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).Override the commit co-author trailer text. Set an empty string to disable automatic attribution.
488 550
489Key551Key
490 552
491553`features.runtime_metrics``compact_prompt`
492 554
493Type / Values555Type / Values
494 556
495557`boolean``string`
496 558
497Details559Details
498 560
499561Show runtime metrics summary in TUI turn separators (experimental).Inline override for the history compaction prompt.
500 562
501Key563Key
502 564
503565`features.search_tool``developer_instructions`
504 566
505Type / Values567Type / Values
506 568
507569`boolean``string`
508 570
509Details571Details
510 572
511573Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).Additional developer instructions injected into the session (optional).
512 574
513Key575Key
514 576
515577`features.shell_snapshot``disable_paste_burst`
516 578
517Type / Values579Type / Values
518 580
520 582
521Details583Details
522 584
523585Snapshot shell environment to speed up repeated commands (beta).Disable burst-paste detection in the TUI.
524 586
525Key587Key
526 588
527589`features.shell_tool``experimental_compact_prompt_file`
528 590
529Type / Values591Type / Values
530 592
531593`boolean``string (path)`
532 594
533Details595Details
534 596
535597Enable the default `shell` tool for running commands (stable; on by default).Load the compaction prompt override from a file (experimental).
536 598
537Key599Key
538 600
539601`features.unified_exec``experimental_use_unified_exec_tool`
540 602
541Type / Values603Type / Values
542 604
544 606
545Details607Details
546 608
547609Use the unified PTY-backed exec tool (beta).Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
548 610
549Key611Key
550 612
551613`features.use_linux_sandbox_bwrap``features.apps`
552 614
553Type / Values615Type / Values
554 616
556 618
557Details619Details
558 620
559621Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).Enable ChatGPT Apps/connectors support (experimental).
560 622
561Key623Key
562 624
563625`features.web_search``features.apps_mcp_gateway`
564 626
565Type / Values627Type / Values
566 628
568 630
569Details631Details
570 632
571633Deprecated legacy toggle; prefer the top-level `web_search` setting.Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).
572 634
573Key635Key
574 636
575637`features.web_search_cached``features.artifact`
576 638
577Type / Values639Type / Values
578 640
580 642
581Details643Details
582 644
583645Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.Enable native artifact tools such as slides and spreadsheets (under development).
584 646
585Key647Key
586 648
587649`features.web_search_request``features.child_agents_md`
588 650
589Type / Values651Type / Values
590 652
592 654
593Details655Details
594 656
595657Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).
596 658
597Key659Key
598 660
599661`feedback.enabled``features.collaboration_modes`
600 662
601Type / Values663Type / Values
602 664
604 666
605Details667Details
606 668
607669Enable feedback submission via `/feedback` across Codex surfaces (default: true).Legacy toggle for collaboration modes. Plan and default modes are available in current builds without setting this key.
608 670
609Key671Key
610 672
611673`file_opener``features.default_mode_request_user_input`
612 674
613Type / Values675Type / Values
614 676
615677`vscode | vscode-insiders | windsurf | cursor | none``boolean`
616 678
617Details679Details
618 680
619681URI scheme used to open citations from Codex output (default: `vscode`).Allow `request_user_input` in default collaboration mode (under development; off by default).
620 682
621Key683Key
622 684
623685`forced_chatgpt_workspace_id``features.elevated_windows_sandbox`
624 686
625Type / Values687Type / Values
626 688
627689`string (uuid)``boolean`
628 690
629Details691Details
630 692
631693Limit ChatGPT logins to a specific workspace identifier.Legacy toggle for an earlier elevated Windows sandbox rollout. Current builds do not use it.
632 694
633Key695Key
634 696
635697`forced_login_method``features.enable_request_compression`
636 698
637Type / Values699Type / Values
638 700
639701`chatgpt | api``boolean`
640 702
641Details703Details
642 704
643705Restrict Codex to a specific authentication method.Compress streaming request bodies with zstd when supported (stable; on by default).
644 706
645Key707Key
646 708
647709`hide_agent_reasoning``features.experimental_windows_sandbox`
648 710
649Type / Values711Type / Values
650 712
652 714
653Details715Details
654 716
655717Suppress reasoning events in both the TUI and `codex exec` output.Legacy toggle for an earlier Windows sandbox rollout. Current builds do not use it.
656 718
657Key719Key
658 720
659721`history.max_bytes``features.fast_mode`
660 722
661Type / Values723Type / Values
662 724
663725`number``boolean`
664 726
665Details727Details
666 728
667729If set, caps the history file size in bytes by dropping oldest entries.Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
668 730
669Key731Key
670 732
671733`history.persistence``features.image_detail_original`
672 734
673Type / Values735Type / Values
674 736
675737`save-all | none``boolean`
676 738
677Details739Details
678 740
679741Control whether Codex saves session transcripts to history.jsonl.Allow image outputs with `detail = "original"` on supported models (under development).
680 742
681Key743Key
682 744
683745`include_apply_patch_tool``features.image_generation`
684 746
685Type / Values747Type / Values
686 748
688 750
689Details751Details
690 752
691753Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Enable the built-in image generation tool (under development).
692 754
693Key755Key
694 756
695757`instructions``features.multi_agent`
696 758
697Type / Values759Type / Values
698 760
699761`string``boolean`
700 762
701Details763Details
702 764
703765Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait`, `close_agent`, and `spawn_agents_on_csv`) (experimental; off by default).
704 766
705Key767Key
706 768
707769`log_dir``features.personality`
708 770
709Type / Values771Type / Values
710 772
711773`string (path)``boolean`
712 774
713Details775Details
714 776
715777Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.Enable personality selection controls (stable; on by default).
716 778
717Key779Key
718 780
719781`mcp_oauth_callback_port``features.powershell_utf8`
720 782
721Type / Values783Type / Values
722 784
723785`integer``boolean`
724 786
725Details787Details
726 788
727789Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS.Force PowerShell UTF-8 output. Enabled by default on Windows and off elsewhere.
728 790
729Key791Key
730 792
731793`mcp_oauth_credentials_store``features.prevent_idle_sleep`
732 794
733Type / Values795Type / Values
734 796
735797`auto | file | keyring``boolean`
736 798
737Details799Details
738 800
739801Preferred store for MCP OAuth credentials.Prevent the machine from sleeping while a turn is actively running (experimental; off by default).
740 802
741Key803Key
742 804
743805`mcp_servers.<id>.args``features.remote_models`
744 806
745Type / Values807Type / Values
746 808
747809`array<string>``boolean`
748 810
749Details811Details
750 812
751813Arguments passed to the MCP stdio server command.Legacy toggle for an older remote-model readiness flow. Current builds do not use it.
752 814
753Key815Key
754 816
755817`mcp_servers.<id>.bearer_token_env_var``features.request_rule`
756 818
757Type / Values819Type / Values
758 820
759821`string``boolean`
760 822
761Details823Details
762 824
763825Environment variable sourcing the bearer token for an MCP HTTP server.Legacy toggle for Smart approvals. Current builds include this behavior by default, so most users can leave this unset.
764 826
765Key827Key
766 828
767829`mcp_servers.<id>.command``features.responses_websockets`
768 830
769Type / Values831Type / Values
770 832
771833`string``boolean`
772 834
773Details835Details
774 836
775837Launcher command for an MCP stdio server.Prefer the Responses API WebSocket transport for supported providers (under development).
776 838
777Key839Key
778 840
779841`mcp_servers.<id>.cwd``features.responses_websockets_v2`
780 842
781Type / Values843Type / Values
782 844
783845`string``boolean`
784 846
785Details847Details
786 848
787849Working directory for the MCP stdio server process.Enable Responses API WebSocket v2 mode (under development).
788 850
789Key851Key
790 852
791853`mcp_servers.<id>.disabled_tools``features.runtime_metrics`
792 854
793Type / Values855Type / Values
794 856
795857`array<string>``boolean`
796 858
797Details859Details
798 860
799861Deny list applied after `enabled_tools` for the MCP server.Show runtime metrics summary in TUI turn separators (experimental).
800 862
801Key863Key
802 864
803865`mcp_servers.<id>.enabled``features.search_tool`
804 866
805Type / Values867Type / Values
806 868
808 870
809Details871Details
810 872
811873Disable an MCP server without removing its configuration.Legacy toggle for an older Apps discovery flow. Current builds do not use it.
812 874
813Key875Key
814 876
815877`mcp_servers.<id>.enabled_tools``features.shell_snapshot`
816 878
817Type / Values879Type / Values
818 880
819881`array<string>``boolean`
820 882
821Details883Details
822 884
823885Allow list of tool names exposed by the MCP server.Snapshot shell environment to speed up repeated commands (stable; on by default).
824 886
825Key887Key
826 888
827889`mcp_servers.<id>.env``features.shell_tool`
828 890
829Type / Values891Type / Values
830 892
831893`map<string,string>``boolean`
832 894
833Details895Details
834 896
835897Environment variables forwarded to the MCP stdio server.Enable the default `shell` tool for running commands (stable; on by default).
836 898
837Key899Key
838 900
839901`mcp_servers.<id>.env_http_headers``features.skill_env_var_dependency_prompt`
840 902
841Type / Values903Type / Values
842 904
843905`map<string,string>``boolean`
844 906
845Details907Details
846 908
847909HTTP headers populated from environment variables for an MCP HTTP server.Prompt for missing skill environment-variable dependencies (under development).
848 910
849Key911Key
850 912
851913`mcp_servers.<id>.env_vars``features.skill_mcp_dependency_install`
852 914
853Type / Values915Type / Values
854 916
855917`array<string>``boolean`
856 918
857Details919Details
858 920
859921Additional environment variables to whitelist for an MCP stdio server.Allow prompting and installing missing MCP dependencies for skills (stable; on by default).
860 922
861Key923Key
862 924
863925`mcp_servers.<id>.http_headers``features.sqlite`
864 926
865Type / Values927Type / Values
866 928
867929`map<string,string>``boolean`
868 930
869Details931Details
870 932
871933Static HTTP headers included with each MCP HTTP request.Enable SQLite-backed state persistence (stable; on by default).
872 934
873Key935Key
874 936
875937`mcp_servers.<id>.required``features.steer`
876 938
877Type / Values939Type / Values
878 940
880 942
881Details943Details
882 944
883945When true, fail startup/resume if this enabled MCP server cannot initialize.Legacy toggle from an earlier Enter/Tab steering rollout. Current builds always use the current steering behavior.
884 946
885Key947Key
886 948
887949`mcp_servers.<id>.startup_timeout_ms``features.undo`
888 950
889Type / Values951Type / Values
890 952
891953`number``boolean`
892 954
893Details955Details
894 956
895957Alias for `startup_timeout_sec` in milliseconds.Enable undo support (stable; off by default).
896 958
897Key959Key
898 960
899961`mcp_servers.<id>.startup_timeout_sec``features.unified_exec`
900 962
901Type / Values963Type / Values
902 964
903965`number``boolean`
904 966
905Details967Details
906 968
907969Override the default 10s startup timeout for an MCP server.Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
908 970
909Key971Key
910 972
911973`mcp_servers.<id>.tool_timeout_sec``features.use_linux_sandbox_bwrap`
912 974
913Type / Values975Type / Values
914 976
915977`number``boolean`
916 978
917Details979Details
918 980
919981Override the default 60s per-tool timeout for an MCP server.Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).
920 982
921Key983Key
922 984
923985`mcp_servers.<id>.url``features.web_search`
924 986
925Type / Values987Type / Values
926 988
927989`string``boolean`
928 990
929Details991Details
930 992
931993Endpoint for an MCP streamable HTTP server.Deprecated legacy toggle; prefer the top-level `web_search` setting.
932 994
933Key995Key
934 996
935997`model``features.web_search_cached`
936 998
937Type / Values999Type / Values
938 1000
9391001`string``boolean`
940 1002
941Details1003Details
942 1004
9431005Model to use (e.g., `gpt-5-codex`).Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.
944 1006
945Key1007Key
946 1008
9471009`model_auto_compact_token_limit``features.web_search_request`
948 1010
949Type / Values1011Type / Values
950 1012
9511013`number``boolean`
952 1014
953Details1015Details
954 1016
9551017Token threshold that triggers automatic history compaction (unset uses model defaults).Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.
956 1018
957Key1019Key
958 1020
9591021`model_context_window``feedback.enabled`
960 1022
961Type / Values1023Type / Values
962 1024
9631025`number``boolean`
964 1026
965Details1027Details
966 1028
9671029Context window tokens available to the active model.Enable feedback submission via `/feedback` across Codex surfaces (default: true).
968 1030
969Key1031Key
970 1032
9711033`model_instructions_file``file_opener`
972 1034
973Type / Values1035Type / Values
974 1036
9751037`string (path)``vscode | vscode-insiders | windsurf | cursor | none`
976 1038
977Details1039Details
978 1040
9791041Replacement for built-in instructions instead of `AGENTS.md`.URI scheme used to open citations from Codex output (default: `vscode`).
980 1042
981Key1043Key
982 1044
9831045`model_provider``forced_chatgpt_workspace_id`
984 1046
985Type / Values1047Type / Values
986 1048
9871049`string``string (uuid)`
988 1050
989Details1051Details
990 1052
9911053Provider id from `model_providers` (default: `openai`).Limit ChatGPT logins to a specific workspace identifier.
992 1054
993Key1055Key
994 1056
9951057`model_providers.<id>.base_url``forced_login_method`
1058
1059Type / Values
1060
1061`chatgpt | api`
1062
1063Details
1064
1065Restrict Codex to a specific authentication method.
1066
1067Key
1068
1069`hide_agent_reasoning`
1070
1071Type / Values
1072
1073`boolean`
1074
1075Details
1076
1077Suppress reasoning events in both the TUI and `codex exec` output.
1078
1079Key
1080
1081`history.max_bytes`
1082
1083Type / Values
1084
1085`number`
1086
1087Details
1088
1089If set, caps the history file size in bytes by dropping oldest entries.
1090
1091Key
1092
1093`history.persistence`
1094
1095Type / Values
1096
1097`save-all | none`
1098
1099Details
1100
1101Control whether Codex saves session transcripts to history.jsonl.
1102
1103Key
1104
1105`instructions`
996 1106
997Type / Values1107Type / Values
998 1108
1000 1110
1001Details1111Details
1002 1112
10031113API base URL for the model provider.Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.
1004 1114
1005Key1115Key
1006 1116
10071117`model_providers.<id>.env_http_headers``log_dir`
1008 1118
1009Type / Values1119Type / Values
1010 1120
10111121`map<string,string>``string (path)`
1012 1122
1013Details1123Details
1014 1124
10151125HTTP headers populated from environment variables when present.Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.
1016 1126
1017Key1127Key
1018 1128
10191129`model_providers.<id>.env_key``mcp_oauth_callback_port`
1130
1131Type / Values
1132
1133`integer`
1134
1135Details
1136
1137Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS.
1138
1139Key
1140
1141`mcp_oauth_callback_url`
1020 1142
1021Type / Values1143Type / Values
1022 1144
1024 1146
1025Details1147Details
1026 1148
10271149Environment variable supplying the provider API key.Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.
1028 1150
1029Key1151Key
1030 1152
10311153`model_providers.<id>.env_key_instructions``mcp_oauth_credentials_store`
1154
1155Type / Values
1156
1157`auto | file | keyring`
1158
1159Details
1160
1161Preferred store for MCP OAuth credentials.
1162
1163Key
1164
1165`mcp_servers.<id>.args`
1166
1167Type / Values
1168
1169`array<string>`
1170
1171Details
1172
1173Arguments passed to the MCP stdio server command.
1174
1175Key
1176
1177`mcp_servers.<id>.bearer_token_env_var`
1032 1178
1033Type / Values1179Type / Values
1034 1180
1036 1182
1037Details1183Details
1038 1184
10391185Optional setup guidance for the provider API key.Environment variable sourcing the bearer token for an MCP HTTP server.
1040 1186
1041Key1187Key
1042 1188
10431189`model_providers.<id>.experimental_bearer_token``mcp_servers.<id>.command`
1044 1190
1045Type / Values1191Type / Values
1046 1192
1048 1194
1049Details1195Details
1050 1196
10511197Direct bearer token for the provider (discouraged; use `env_key`).Launcher command for an MCP stdio server.
1052 1198
1053Key1199Key
1054 1200
10551201`model_providers.<id>.http_headers``mcp_servers.<id>.cwd`
1202
1203Type / Values
1204
1205`string`
1206
1207Details
1208
1209Working directory for the MCP stdio server process.
1210
1211Key
1212
1213`mcp_servers.<id>.disabled_tools`
1214
1215Type / Values
1216
1217`array<string>`
1218
1219Details
1220
1221Deny list applied after `enabled_tools` for the MCP server.
1222
1223Key
1224
1225`mcp_servers.<id>.enabled`
1226
1227Type / Values
1228
1229`boolean`
1230
1231Details
1232
1233Disable an MCP server without removing its configuration.
1234
1235Key
1236
1237`mcp_servers.<id>.enabled_tools`
1238
1239Type / Values
1240
1241`array<string>`
1242
1243Details
1244
1245Allow list of tool names exposed by the MCP server.
1246
1247Key
1248
1249`mcp_servers.<id>.env`
1056 1250
1057Type / Values1251Type / Values
1058 1252
1060 1254
1061Details1255Details
1062 1256
10631257Static HTTP headers added to provider requests.Environment variables forwarded to the MCP stdio server.
1064 1258
1065Key1259Key
1066 1260
10671261`model_providers.<id>.name``mcp_servers.<id>.env_http_headers`
1068 1262
1069Type / Values1263Type / Values
1070 1264
10711265`string``map<string,string>`
1072 1266
1073Details1267Details
1074 1268
10751269Display name for a custom model provider.HTTP headers populated from environment variables for an MCP HTTP server.
1076 1270
1077Key1271Key
1078 1272
10791273`model_providers.<id>.query_params``mcp_servers.<id>.env_vars`
1274
1275Type / Values
1276
1277`array<string>`
1278
1279Details
1280
1281Additional environment variables to whitelist for an MCP stdio server.
1282
1283Key
1284
1285`mcp_servers.<id>.http_headers`
1080 1286
1081Type / Values1287Type / Values
1082 1288
1084 1290
1085Details1291Details
1086 1292
10871293Extra query parameters appended to provider requests.Static HTTP headers included with each MCP HTTP request.
1088 1294
1089Key1295Key
1090 1296
10911297`model_providers.<id>.request_max_retries``mcp_servers.<id>.oauth_resource`
1092 1298
1093Type / Values1299Type / Values
1094 1300
10951301`number``string`
1096 1302
1097Details1303Details
1098 1304
10991305Retry count for HTTP requests to the provider (default: 4).Optional RFC 8707 OAuth resource parameter to include during MCP login.
1100 1306
1101Key1307Key
1102 1308
11031309`model_providers.<id>.requires_openai_auth``mcp_servers.<id>.required`
1104 1310
1105Type / Values1311Type / Values
1106 1312
1108 1314
1109Details1315Details
1110 1316
11111317The provider uses OpenAI authentication (defaults to false).When true, fail startup/resume if this enabled MCP server cannot initialize.
1112 1318
1113Key1319Key
1114 1320
11151321`model_providers.<id>.stream_idle_timeout_ms``mcp_servers.<id>.scopes`
1322
1323Type / Values
1324
1325`array<string>`
1326
1327Details
1328
1329OAuth scopes to request when authenticating to that MCP server.
1330
1331Key
1332
1333`mcp_servers.<id>.startup_timeout_ms`
1334
1335Type / Values
1336
1337`number`
1338
1339Details
1340
1341Alias for `startup_timeout_sec` in milliseconds.
1342
1343Key
1344
1345`mcp_servers.<id>.startup_timeout_sec`
1346
1347Type / Values
1348
1349`number`
1350
1351Details
1352
1353Override the default 10s startup timeout for an MCP server.
1354
1355Key
1356
1357`mcp_servers.<id>.tool_timeout_sec`
1358
1359Type / Values
1360
1361`number`
1362
1363Details
1364
1365Override the default 60s per-tool timeout for an MCP server.
1366
1367Key
1368
1369`mcp_servers.<id>.url`
1370
1371Type / Values
1372
1373`string`
1374
1375Details
1376
1377Endpoint for an MCP streamable HTTP server.
1378
1379Key
1380
1381`model`
1382
1383Type / Values
1384
1385`string`
1386
1387Details
1388
1389Model to use (e.g., `gpt-5-codex`).
1390
1391Key
1392
1393`model_auto_compact_token_limit`
1394
1395Type / Values
1396
1397`number`
1398
1399Details
1400
1401Token threshold that triggers automatic history compaction (unset uses model defaults).
1402
1403Key
1404
1405`model_catalog_json`
1406
1407Type / Values
1408
1409`string (path)`
1410
1411Details
1412
1413Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.
1414
1415Key
1416
1417`model_context_window`
1418
1419Type / Values
1420
1421`number`
1422
1423Details
1424
1425Context window tokens available to the active model.
1426
1427Key
1428
1429`model_instructions_file`
1430
1431Type / Values
1432
1433`string (path)`
1434
1435Details
1436
1437Replacement for built-in instructions instead of `AGENTS.md`.
1438
1439Key
1440
1441`model_provider`
1442
1443Type / Values
1444
1445`string`
1446
1447Details
1448
1449Provider id from `model_providers` (default: `openai`).
1450
1451Key
1452
1453`model_providers.<id>.base_url`
1454
1455Type / Values
1456
1457`string`
1458
1459Details
1460
1461API base URL for the model provider.
1462
1463Key
1464
1465`model_providers.<id>.env_http_headers`
1466
1467Type / Values
1468
1469`map<string,string>`
1470
1471Details
1472
1473HTTP headers populated from environment variables when present.
1474
1475Key
1476
1477`model_providers.<id>.env_key`
1478
1479Type / Values
1480
1481`string`
1482
1483Details
1484
1485Environment variable supplying the provider API key.
1486
1487Key
1488
1489`model_providers.<id>.env_key_instructions`
1490
1491Type / Values
1492
1493`string`
1494
1495Details
1496
1497Optional setup guidance for the provider API key.
1498
1499Key
1500
1501`model_providers.<id>.experimental_bearer_token`
1502
1503Type / Values
1504
1505`string`
1506
1507Details
1508
1509Direct bearer token for the provider (discouraged; use `env_key`).
1510
1511Key
1512
1513`model_providers.<id>.http_headers`
1514
1515Type / Values
1516
1517`map<string,string>`
1518
1519Details
1520
1521Static HTTP headers added to provider requests.
1522
1523Key
1524
1525`model_providers.<id>.name`
1526
1527Type / Values
1528
1529`string`
1530
1531Details
1532
1533Display name for a custom model provider.
1534
1535Key
1536
1537`model_providers.<id>.query_params`
1538
1539Type / Values
1540
1541`map<string,string>`
1542
1543Details
1544
1545Extra query parameters appended to provider requests.
1546
1547Key
1548
1549`model_providers.<id>.request_max_retries`
1550
1551Type / Values
1552
1553`number`
1554
1555Details
1556
1557Retry count for HTTP requests to the provider (default: 4).
1558
1559Key
1560
1561`model_providers.<id>.requires_openai_auth`
1562
1563Type / Values
1564
1565`boolean`
1566
1567Details
1568
1569The provider uses OpenAI authentication (defaults to false).
1570
1571Key
1572
1573`model_providers.<id>.stream_idle_timeout_ms`
1574
1575Type / Values
1576
1577`number`
1578
1579Details
1580
1581Idle timeout for SSE streams in milliseconds (default: 300000).
1582
1583Key
1584
1585`model_providers.<id>.stream_max_retries`
1586
1587Type / Values
1588
1589`number`
1590
1591Details
1592
1593Retry count for SSE streaming interruptions (default: 5).
1594
1595Key
1596
1597`model_providers.<id>.supports_websockets`
1598
1599Type / Values
1600
1601`boolean`
1602
1603Details
1604
1605Whether that provider supports the Responses API WebSocket transport.
1606
1607Key
1608
1609`model_providers.<id>.wire_api`
1610
1611Type / Values
1612
1613`responses`
1614
1615Details
1616
1617Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1618
1619Key
1620
1621`model_reasoning_effort`
1622
1623Type / Values
1624
1625`minimal | low | medium | high | xhigh`
1626
1627Details
1628
1629Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).
1630
1631Key
1632
1633`model_reasoning_summary`
1634
1635Type / Values
1636
1637`auto | concise | detailed | none`
1638
1639Details
1640
1641Select reasoning summary detail or disable summaries entirely.
1642
1643Key
1644
1645`model_supports_reasoning_summaries`
1646
1647Type / Values
1648
1649`boolean`
1650
1651Details
1652
1653Force Codex to send or not send reasoning metadata.
1654
1655Key
1656
1657`model_verbosity`
1658
1659Type / Values
1660
1661`low | medium | high`
1662
1663Details
1664
1665Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1666
1667Key
1668
1669`notice.hide_full_access_warning`
1670
1671Type / Values
1672
1673`boolean`
1674
1675Details
1676
1677Track acknowledgement of the full access warning prompt.
1678
1679Key
1680
1681`notice.hide_gpt-5.1-codex-max_migration_prompt`
1682
1683Type / Values
1684
1685`boolean`
1686
1687Details
1688
1689Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1690
1691Key
1692
1693`notice.hide_gpt5_1_migration_prompt`
1694
1695Type / Values
1696
1697`boolean`
1698
1699Details
1700
1701Track acknowledgement of the GPT-5.1 migration prompt.
1702
1703Key
1704
1705`notice.hide_rate_limit_model_nudge`
1706
1707Type / Values
1708
1709`boolean`
1710
1711Details
1712
1713Track opt-out of the rate limit model switch reminder.
1714
1715Key
1716
1717`notice.hide_world_writable_warning`
1718
1719Type / Values
1720
1721`boolean`
1722
1723Details
1724
1725Track acknowledgement of the Windows world-writable directories warning.
1726
1727Key
1728
1729`notice.model_migrations`
1730
1731Type / Values
1732
1733`map<string,string>`
1734
1735Details
1736
1737Track acknowledged model migrations as old->new mappings.
1738
1739Key
1740
1741`notify`
1742
1743Type / Values
1744
1745`array<string>`
1746
1747Details
1748
1749Command invoked for notifications; receives a JSON payload from Codex.
1750
1751Key
1752
1753`oss_provider`
1754
1755Type / Values
1756
1757`lmstudio | ollama`
1758
1759Details
1760
1761Default local provider used when running with `--oss` (defaults to prompting if unset).
1762
1763Key
1764
1765`otel.environment`
1766
1767Type / Values
1768
1769`string`
1770
1771Details
1772
1773Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1774
1775Key
1776
1777`otel.exporter`
1778
1779Type / Values
1780
1781`none | otlp-http | otlp-grpc`
1782
1783Details
1784
1785Select the OpenTelemetry exporter and provide any endpoint metadata.
1786
1787Key
1788
1789`otel.exporter.<id>.endpoint`
1790
1791Type / Values
1792
1793`string`
1794
1795Details
1796
1797Exporter endpoint for OTEL logs.
1798
1799Key
1800
1801`otel.exporter.<id>.headers`
1802
1803Type / Values
1804
1805`map<string,string>`
1806
1807Details
1808
1809Static headers included with OTEL exporter requests.
1810
1811Key
1812
1813`otel.exporter.<id>.protocol`
1814
1815Type / Values
1816
1817`binary | json`
1818
1819Details
1820
1821Protocol used by the OTLP/HTTP exporter.
1822
1823Key
1824
1825`otel.exporter.<id>.tls.ca-certificate`
1826
1827Type / Values
1828
1829`string`
1830
1831Details
1832
1833CA certificate path for OTEL exporter TLS.
1834
1835Key
1836
1837`otel.exporter.<id>.tls.client-certificate`
1116 1838
1117Type / Values1839Type / Values
1118 1840
11191841`number``string`
1120 1842
1121Details1843Details
1122 1844
11231845Idle timeout for SSE streams in milliseconds (default: 300000).Client certificate path for OTEL exporter TLS.
1124 1846
1125Key1847Key
1126 1848
11271849`model_providers.<id>.stream_max_retries``otel.exporter.<id>.tls.client-private-key`
1128 1850
1129Type / Values1851Type / Values
1130 1852
11311853`number``string`
1132 1854
1133Details1855Details
1134 1856
11351857Retry count for SSE streaming interruptions (default: 5).Client private key path for OTEL exporter TLS.
1136 1858
1137Key1859Key
1138 1860
11391861`model_providers.<id>.wire_api``otel.log_user_prompt`
1140 1862
1141Type / Values1863Type / Values
1142 1864
11431865`chat | responses``boolean`
1144 1866
1145Details1867Details
1146 1868
11471869Protocol used by the provider (defaults to `chat` if omitted).Opt in to exporting raw user prompts with OpenTelemetry logs.
1148 1870
1149Key1871Key
1150 1872
11511873`model_reasoning_effort``otel.metrics_exporter`
1152 1874
1153Type / Values1875Type / Values
1154 1876
11551877`minimal | low | medium | high | xhigh``none | statsig | otlp-http | otlp-grpc`
1156 1878
1157Details1879Details
1158 1880
11591881Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1160 1882
1161Key1883Key
1162 1884
11631885`model_reasoning_summary``otel.trace_exporter`
1164 1886
1165Type / Values1887Type / Values
1166 1888
11671889`auto | concise | detailed | none``none | otlp-http | otlp-grpc`
1168 1890
1169Details1891Details
1170 1892
11711893Select reasoning summary detail or disable summaries entirely.Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1172 1894
1173Key1895Key
1174 1896
11751897`model_supports_reasoning_summaries``otel.trace_exporter.<id>.endpoint`
1176 1898
1177Type / Values1899Type / Values
1178 1900
11791901`boolean``string`
1180 1902
1181Details1903Details
1182 1904
11831905Force Codex to send or not send reasoning metadata.Trace exporter endpoint for OTEL logs.
1184 1906
1185Key1907Key
1186 1908
11871909`model_verbosity``otel.trace_exporter.<id>.headers`
1188 1910
1189Type / Values1911Type / Values
1190 1912
11911913`low | medium | high``map<string,string>`
1192 1914
1193Details1915Details
1194 1916
11951917Control GPT-5 Responses API verbosity (defaults to `medium`).Static headers included with OTEL trace exporter requests.
1196 1918
1197Key1919Key
1198 1920
11991921`notice.hide_full_access_warning``otel.trace_exporter.<id>.protocol`
1200 1922
1201Type / Values1923Type / Values
1202 1924
12031925`boolean``binary | json`
1204 1926
1205Details1927Details
1206 1928
12071929Track acknowledgement of the full access warning prompt.Protocol used by the OTLP/HTTP trace exporter.
1208 1930
1209Key1931Key
1210 1932
12111933`notice.hide_gpt-5.1-codex-max_migration_prompt``otel.trace_exporter.<id>.tls.ca-certificate`
1212 1934
1213Type / Values1935Type / Values
1214 1936
12151937`boolean``string`
1216 1938
1217Details1939Details
1218 1940
12191941Track acknowledgement of the gpt-5.1-codex-max migration prompt.CA certificate path for OTEL trace exporter TLS.
1220 1942
1221Key1943Key
1222 1944
12231945`notice.hide_gpt5_1_migration_prompt``otel.trace_exporter.<id>.tls.client-certificate`
1224 1946
1225Type / Values1947Type / Values
1226 1948
12271949`boolean``string`
1228 1950
1229Details1951Details
1230 1952
12311953Track acknowledgement of the GPT-5.1 migration prompt.Client certificate path for OTEL trace exporter TLS.
1232 1954
1233Key1955Key
1234 1956
12351957`notice.hide_rate_limit_model_nudge``otel.trace_exporter.<id>.tls.client-private-key`
1236 1958
1237Type / Values1959Type / Values
1238 1960
12391961`boolean``string`
1240 1962
1241Details1963Details
1242 1964
12431965Track opt-out of the rate limit model switch reminder.Client private key path for OTEL trace exporter TLS.
1244 1966
1245Key1967Key
1246 1968
12471969`notice.hide_world_writable_warning``permissions.network.admin_url`
1248 1970
1249Type / Values1971Type / Values
1250 1972
12511973`boolean``string`
1252 1974
1253Details1975Details
1254 1976
12551977Track acknowledgement of the Windows world-writable directories warning.Admin endpoint for the managed network proxy.
1256 1978
1257Key1979Key
1258 1980
12591981`notice.model_migrations``permissions.network.allow_local_binding`
1260 1982
1261Type / Values1983Type / Values
1262 1984
12631985`map<string,string>``boolean`
1264 1986
1265Details1987Details
1266 1988
12671989Track acknowledged model migrations as old->new mappings.Permit local bind/listen operations through the managed proxy.
1268 1990
1269Key1991Key
1270 1992
12711993`notify``permissions.network.allow_unix_sockets`
1272 1994
1273Type / Values1995Type / Values
1274 1996
1276 1998
1277Details1999Details
1278 2000
12792001Command invoked for notifications; receives a JSON payload from Codex.Allowlist of Unix socket paths permitted through the managed proxy.
1280 2002
1281Key2003Key
1282 2004
12832005`oss_provider``permissions.network.allow_upstream_proxy`
1284 2006
1285Type / Values2007Type / Values
1286 2008
12872009`lmstudio | ollama``boolean`
1288 2010
1289Details2011Details
1290 2012
12912013Default local provider used when running with `--oss` (defaults to prompting if unset).Allow the managed proxy to chain to another upstream proxy.
1292 2014
1293Key2015Key
1294 2016
12952017`otel.environment``permissions.network.allowed_domains`
1296 2018
1297Type / Values2019Type / Values
1298 2020
12992021`string``array<string>`
1300 2022
1301Details2023Details
1302 2024
13032025Environment tag applied to emitted OpenTelemetry events (default: `dev`).Allowlist of domains permitted through the managed proxy.
1304 2026
1305Key2027Key
1306 2028
13072029`otel.exporter``permissions.network.dangerously_allow_all_unix_sockets`
1308 2030
1309Type / Values2031Type / Values
1310 2032
13112033`none | otlp-http | otlp-grpc``boolean`
1312 2034
1313Details2035Details
1314 2036
13152037Select the OpenTelemetry exporter and provide any endpoint metadata.Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
1316 2038
1317Key2039Key
1318 2040
13192041`otel.exporter.<id>.endpoint``permissions.network.dangerously_allow_non_loopback_admin`
1320 2042
1321Type / Values2043Type / Values
1322 2044
13232045`string``boolean`
1324 2046
1325Details2047Details
1326 2048
13272049Exporter endpoint for OTEL logs.Permit non-loopback bind addresses for the managed proxy admin listener.
1328 2050
1329Key2051Key
1330 2052
13312053`otel.exporter.<id>.headers``permissions.network.dangerously_allow_non_loopback_proxy`
1332 2054
1333Type / Values2055Type / Values
1334 2056
13352057`map<string,string>``boolean`
1336 2058
1337Details2059Details
1338 2060
13392061Static headers included with OTEL exporter requests.Permit non-loopback bind addresses for the managed proxy listener.
1340 2062
1341Key2063Key
1342 2064
13432065`otel.exporter.<id>.protocol``permissions.network.denied_domains`
1344 2066
1345Type / Values2067Type / Values
1346 2068
13472069`binary | json``array<string>`
1348 2070
1349Details2071Details
1350 2072
13512073Protocol used by the OTLP/HTTP exporter.Denylist of domains blocked by the managed proxy.
1352 2074
1353Key2075Key
1354 2076
13552077`otel.exporter.<id>.tls.ca-certificate``permissions.network.enable_socks5`
1356 2078
1357Type / Values2079Type / Values
1358 2080
13592081`string``boolean`
1360 2082
1361Details2083Details
1362 2084
13632085CA certificate path for OTEL exporter TLS.Expose a SOCKS5 listener from the managed network proxy.
1364 2086
1365Key2087Key
1366 2088
13672089`otel.exporter.<id>.tls.client-certificate``permissions.network.enable_socks5_udp`
1368 2090
1369Type / Values2091Type / Values
1370 2092
13712093`string``boolean`
1372 2094
1373Details2095Details
1374 2096
13752097Client certificate path for OTEL exporter TLS.Allow UDP over the SOCKS5 listener when enabled.
1376 2098
1377Key2099Key
1378 2100
13792101`otel.exporter.<id>.tls.client-private-key``permissions.network.enabled`
1380 2102
1381Type / Values2103Type / Values
1382 2104
13832105`string``boolean`
1384 2106
1385Details2107Details
1386 2108
13872109Client private key path for OTEL exporter TLS.Enable the managed network proxy configuration for subprocesses.
1388 2110
1389Key2111Key
1390 2112
13912113`otel.log_user_prompt``permissions.network.mode`
1392 2114
1393Type / Values2115Type / Values
1394 2116
13952117`boolean``limited | full`
1396 2118
1397Details2119Details
1398 2120
13992121Opt in to exporting raw user prompts with OpenTelemetry logs.Network proxy mode used for subprocess traffic.
1400 2122
1401Key2123Key
1402 2124
14032125`otel.trace_exporter``permissions.network.proxy_url`
1404 2126
1405Type / Values2127Type / Values
1406 2128
14072129`none | otlp-http | otlp-grpc``string`
1408 2130
1409Details2131Details
1410 2132
14112133Select the OpenTelemetry trace exporter and provide any endpoint metadata.HTTP proxy endpoint used by the managed network proxy.
1412 2134
1413Key2135Key
1414 2136
14152137`otel.trace_exporter.<id>.endpoint``permissions.network.socks_url`
1416 2138
1417Type / Values2139Type / Values
1418 2140
1420 2142
1421Details2143Details
1422 2144
14232145Trace exporter endpoint for OTEL logs.SOCKS5 proxy endpoint used by the managed network proxy.
1424 2146
1425Key2147Key
1426 2148
14272149`otel.trace_exporter.<id>.headers``personality`
1428 2150
1429Type / Values2151Type / Values
1430 2152
14312153`map<string,string>``none | friendly | pragmatic`
1432 2154
1433Details2155Details
1434 2156
14352157Static headers included with OTEL trace exporter requests.Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
1436 2158
1437Key2159Key
1438 2160
14392161`otel.trace_exporter.<id>.protocol``plan_mode_reasoning_effort`
1440 2162
1441Type / Values2163Type / Values
1442 2164
14432165`binary | json``none | minimal | low | medium | high | xhigh`
1444 2166
1445Details2167Details
1446 2168
14472169Protocol used by the OTLP/HTTP trace exporter.Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
1448 2170
1449Key2171Key
1450 2172
14512173`otel.trace_exporter.<id>.tls.ca-certificate``profile`
1452 2174
1453Type / Values2175Type / Values
1454 2176
1456 2178
1457Details2179Details
1458 2180
14592181CA certificate path for OTEL trace exporter TLS.Default profile applied at startup (equivalent to `--profile`).
1460 2182
1461Key2183Key
1462 2184
14632185`otel.trace_exporter.<id>.tls.client-certificate``profiles.<name>.*`
1464 2186
1465Type / Values2187Type / Values
1466 2188
14672189`string``various`
1468 2190
1469Details2191Details
1470 2192
14712193Client certificate path for OTEL trace exporter TLS.Profile-scoped overrides for any of the supported configuration keys.
1472 2194
1473Key2195Key
1474 2196
14752197`otel.trace_exporter.<id>.tls.client-private-key``profiles.<name>.analytics.enabled`
1476 2198
1477Type / Values2199Type / Values
1478 2200
14792201`string``boolean`
1480 2202
1481Details2203Details
1482 2204
14832205Client private key path for OTEL trace exporter TLS.Profile-scoped analytics enablement override.
1484 2206
1485Key2207Key
1486 2208
14872209`personality``profiles.<name>.experimental_use_unified_exec_tool`
1488 2210
1489Type / Values2211Type / Values
1490 2212
14912213`none | friendly | pragmatic``boolean`
1492 2214
1493Details2215Details
1494 2216
14952217Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.Legacy name for enabling unified exec; prefer `[features].unified_exec`.
1496 2218
1497Key2219Key
1498 2220
14992221`profile``profiles.<name>.model_catalog_json`
1500 2222
1501Type / Values2223Type / Values
1502 2224
15032225`string``string (path)`
1504 2226
1505Details2227Details
1506 2228
15072229Default profile applied at startup (equivalent to `--profile`).Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).
1508 2230
1509Key2231Key
1510 2232
15112233`profiles.<name>.*``profiles.<name>.model_instructions_file`
1512 2234
1513Type / Values2235Type / Values
1514 2236
15152237`various``string (path)`
1516 2238
1517Details2239Details
1518 2240
15192241Profile-scoped overrides for any of the supported configuration keys.Profile-scoped replacement for the built-in instruction file.
1520 2242
1521Key2243Key
1522 2244
15232245`profiles.<name>.experimental_use_freeform_apply_patch``profiles.<name>.oss_provider`
1524 2246
1525Type / Values2247Type / Values
1526 2248
15272249`boolean``lmstudio | ollama`
1528 2250
1529Details2251Details
1530 2252
15312253Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped OSS provider for `--oss` sessions.
1532 2254
1533Key2255Key
1534 2256
15352257`profiles.<name>.experimental_use_unified_exec_tool``profiles.<name>.personality`
1536 2258
1537Type / Values2259Type / Values
1538 2260
15392261`boolean``none | friendly | pragmatic`
1540 2262
1541Details2263Details
1542 2264
15432265Legacy name for enabling unified exec; prefer `[features].unified_exec`.Profile-scoped communication style override for supported models.
1544 2266
1545Key2267Key
1546 2268
15472269`profiles.<name>.include_apply_patch_tool``profiles.<name>.plan_mode_reasoning_effort`
1548 2270
1549Type / Values2271Type / Values
1550 2272
15512273`boolean``none | minimal | low | medium | high | xhigh`
1552 2274
1553Details2275Details
1554 2276
15552277Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped Plan-mode reasoning override.
1556 2278
1557Key2279Key
1558 2280
15592281`profiles.<name>.oss_provider``profiles.<name>.service_tier`
1560 2282
1561Type / Values2283Type / Values
1562 2284
15632285`lmstudio | ollama``flex | fast`
1564 2286
1565Details2287Details
1566 2288
15672289Profile-scoped OSS provider for `--oss` sessions.Profile-scoped service tier preference for new turns.
1568 2290
1569Key2291Key
1570 2292
15712293`profiles.<name>.personality``profiles.<name>.tools_view_image`
1572 2294
1573Type / Values2295Type / Values
1574 2296
15752297`none | friendly | pragmatic``boolean`
1576 2298
1577Details2299Details
1578 2300
15792301Profile-scoped communication style override for supported models.Enable or disable the `view_image` tool in that profile.
1580 2302
1581Key2303Key
1582 2304
1592 2314
1593Key2315Key
1594 2316
2317`profiles.<name>.windows.sandbox`
2318
2319Type / Values
2320
2321`unelevated | elevated`
2322
2323Details
2324
2325Profile-scoped Windows sandbox mode override.
2326
2327Key
2328
1595`project_doc_fallback_filenames`2329`project_doc_fallback_filenames`
1596 2330
1597Type / Values2331Type / Values
1712 2446
1713Key2447Key
1714 2448
2449`service_tier`
2450
2451Type / Values
2452
2453`flex | fast`
2454
2455Details
2456
2457Preferred service tier for new turns. `fast` is honored only when the `features.fast_mode` gate is enabled.
2458
2459Key
2460
1715`shell_environment_policy.exclude`2461`shell_environment_policy.exclude`
1716 2462
1717Type / Values2463Type / Values
1832 2578
1833Key2579Key
1834 2580
2581`sqlite_home`
2582
2583Type / Values
2584
2585`string (path)`
2586
2587Details
2588
2589Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.
2590
2591Key
2592
1835`suppress_unstable_features_warning`2593`suppress_unstable_features_warning`
1836 2594
1837Type / Values2595Type / Values
1856 2614
1857Key2615Key
1858 2616
2617`tools.view_image`
2618
2619Type / Values
2620
2621`boolean`
2622
2623Details
2624
2625Enable the local-image attachment tool `view_image`.
2626
2627Key
2628
1859`tools.web_search`2629`tools.web_search`
1860 2630
1861Type / Values2631Type / Values
1904 2674
1905Key2675Key
1906 2676
2677`tui.model_availability_nux.<model>`
2678
2679Type / Values
2680
2681`integer`
2682
2683Details
2684
2685Internal startup-tooltip state keyed by model slug.
2686
2687Key
2688
1907`tui.notification_method`2689`tui.notification_method`
1908 2690
1909Type / Values2691Type / Values
1952 2734
1953Key2735Key
1954 2736
2737`tui.theme`
2738
2739Type / Values
2740
2741`string`
2742
2743Details
2744
2745Syntax-highlighting theme override (kebab-case theme name).
2746
2747Key
2748
1955`web_search`2749`web_search`
1956 2750
1957Type / Values2751Type / Values
1974 2768
1975Track Windows onboarding acknowledgement (Windows only).2769Track Windows onboarding acknowledgement (Windows only).
1976 2770
2771Key
2772
2773`windows.sandbox`
2774
2775Type / Values
2776
2777`unelevated | elevated`
2778
2779Details
2780
2781Windows-only native sandbox mode when running Codex natively on Windows.
2782
1977Expand to view all2783Expand to view all
1978 2784
1979You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).2785You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
1988 2794
1989## `requirements.toml`2795## `requirements.toml`
1990 2796
19912797`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can’t override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/security#admin-enforced-requirements-requirementstoml).`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can't override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/enterprise/managed-configuration#admin-enforced-requirements-requirementstoml).
1992 2798
1993For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched2799For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
1994requirements. See the security page for precedence details.2800requirements. See the security page for precedence details.
1995 2801
2802Use `[features]` in `requirements.toml` to pin feature flags by the same
2803canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
2804
1996| Key | Type / Values | Details |2805| Key | Type / Values | Details |
1997| --- | --- | --- |2806| --- | --- | --- |
19982807| `allowed_approval_policies` | `array<string>` | Allowed values for `approval\_policy`. || `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`). |
1999| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |2808| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |
2000| `allowed_web_search_modes` | `array<string>` | Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`. |2809| `allowed_web_search_modes` | `array<string>` | Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`. |
2810| `features` | `table` | Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. |
2811| `features.<name>` | `boolean` | Require a specific canonical feature key to stay enabled or disabled. |
2001| `mcp_servers` | `table` | Allowlist of MCP servers that may be enabled. Both the server name (`<id>`) and its identity must match for the MCP server to be enabled. Any configured MCP server not in the allowlist (or with a mismatched identity) is disabled. |2812| `mcp_servers` | `table` | Allowlist of MCP servers that may be enabled. Both the server name (`<id>`) and its identity must match for the MCP server to be enabled. Any configured MCP server not in the allowlist (or with a mismatched identity) is disabled. |
2002| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |2813| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |
2003| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |2814| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
2020 2831
2021Details2832Details
2022 2833
20232834Allowed values for `approval\_policy`.Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`).
2024 2835
2025Key2836Key
2026 2837
2048 2859
2049Key2860Key
2050 2861
2862`features`
2863
2864Type / Values
2865
2866`table`
2867
2868Details
2869
2870Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.
2871
2872Key
2873
2874`features.<name>`
2875
2876Type / Values
2877
2878`boolean`
2879
2880Details
2881
2882Require a specific canonical feature key to stay enabled or disabled.
2883
2884Key
2885
2051`mcp_servers`2886`mcp_servers`
2052 2887
2053Type / Values2888Type / Values