config-reference.md +1024 −254
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. |
15| `agents.<name>.nickname_candidates` | `array<string>` | Optional pool of display nicknames for spawned agents in that role. |
15| `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. |16| `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. |
16| `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |17| `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |
1718| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. || `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset. |
18| `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. |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. |
1920| `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. || `analytics.enabled` | `boolean` | Enable or disable analytics for this machine/profile. When unset, the client default applies. |
2021| `approval_policy.reject.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user. || `approval_policy` | `untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }` | Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { granular = { ... } }` to allow or 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. |
2122| `approval_policy.reject.rules` | `boolean` | When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected. || `approval_policy.granular.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected. |
2223| `approval_policy.reject.sandbox_approval` | `boolean` | When `true`, sandbox escalation approval prompts are auto-rejected. || `approval_policy.granular.request_permissions` | `boolean` | When `true`, prompts from the `request_permissions` tool are allowed to surface. |
24| `approval_policy.granular.rules` | `boolean` | When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface. |
25| `approval_policy.granular.sandbox_approval` | `boolean` | When `true`, sandbox escalation approval prompts are allowed to surface. |
26| `approval_policy.granular.skill_approval` | `boolean` | When `true`, skill-script approval prompts are allowed to surface. |
27| `approvals_reviewer` | `user | guardian_subagent` | Select who reviews eligible approval prompts. Defaults to `user`; `guardian_subagent` routes supported reviews through the Guardian reviewer subagent. |
23| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. |28| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. |
24| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. |29| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. |
25| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. |30| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. |
34| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |39| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |
35| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |40| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |
36| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |41| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |
42| `commit_attribution` | `string` | Override the commit co-author trailer text. Set an empty string to disable automatic attribution. |
37| `compact_prompt` | `string` | Inline override for the history compaction prompt. |43| `compact_prompt` | `string` | Inline override for the history compaction prompt. |
44| `default_permissions` | `string` | Name of the default permissions profile to apply to sandboxed tool calls. |
38| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |45| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |
39| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |46| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |
40| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |47| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |
41| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. |
42| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |48| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |
43| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). |
44| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |49| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |
4550| `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). || `features.codex_hooks` | `boolean` | Enable lifecycle hooks loaded from `hooks.json` (under development; off by default). |
4651| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). || `features.enable_request_compression` | `boolean` | Compress streaming request bodies with zstd when supported (stable; on by default). |
4752| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). || `features.fast_mode` | `boolean` | Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default). |
4853| `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). || `features.guardian_approval` | `boolean` | Route eligible approval requests through the guardian reviewer subagent (experimental; off by default). Use with `approvals_reviewer = "guardian_subagent"`. |
54| `features.memories` | `boolean` | Enable [Memories](https://developers.openai.com/codex/memories) (off by default). |
55| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default). |
49| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |56| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |
5057| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). || `features.prevent_idle_sleep` | `boolean` | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). |
5158| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). || `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (stable; on by default). |
52| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |
53| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |
54| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |
55| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |
56| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |59| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |
5760| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). || `features.skill_mcp_dependency_install` | `boolean` | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). |
5861| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). || `features.undo` | `boolean` | Enable undo support (stable; off by default). |
62| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (stable; enabled by default except on Windows). |
59| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |63| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |
60| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |64| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |
61| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |65| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |
66| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |70| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |
67| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |71| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |
68| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |72| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |
69| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |
70| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |73| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |
71| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |74| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |
72| `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. |75| `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. |
81| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |84| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |
82| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |85| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |
83| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |86| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |
8487| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. || `mcp_servers.<id>.env_vars` | `array<string | { name = string, source = "local" | "remote" }>` | Additional environment variables to whitelist for an MCP stdio server. String entries default to `source = "local"`; use `source = "remote"` only with executor-backed remote stdio. |
88| `mcp_servers.<id>.experimental_environment` | `local | remote` | Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented. |
85| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |89| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |
90| `mcp_servers.<id>.oauth_resource` | `string` | Optional RFC 8707 OAuth resource parameter to include during MCP login. |
86| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |91| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |
92| `mcp_servers.<id>.scopes` | `array<string>` | OAuth scopes to request when authenticating to that MCP server. |
87| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |93| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |
88| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |94| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |
89| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |95| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |
90| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |96| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |
9197| `model` | `string` | Model to use (e.g., `gpt-5-codex`). || `memories.consolidation_model` | `string` | Optional model override for global memory consolidation. |
98| `memories.disable_on_external_context` | `boolean` | When `true`, threads that use external context such as MCP tool calls, web search, or tool search are kept out of memory generation. Defaults to `false`. Legacy alias: `memories.no_memories_if_mcp_or_web_search`. |
99| `memories.extract_model` | `string` | Optional model override for per-thread memory extraction. |
100| `memories.generate_memories` | `boolean` | When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`. |
101| `memories.max_raw_memories_for_consolidation` | `number` | Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`. |
102| `memories.max_rollout_age_days` | `number` | Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`. |
103| `memories.max_rollouts_per_startup` | `number` | Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`. |
104| `memories.max_unused_days` | `number` | Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`. |
105| `memories.min_rollout_idle_hours` | `number` | Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`. |
106| `memories.use_memories` | `boolean` | When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`. |
107| `model` | `string` | Model to use (e.g., `gpt-5.4`). |
92| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |108| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |
93| `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. |109| `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. |
94| `model_context_window` | `number` | Context window tokens available to the active model. |110| `model_context_window` | `number` | Context window tokens available to the active model. |
95| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |111| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |
96| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |112| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |
113| `model_providers.<id>` | `table` | Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden. |
114| `model_providers.<id>.auth` | `table` | Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`. |
115| `model_providers.<id>.auth.args` | `array<string>` | Arguments passed to the token command. |
116| `model_providers.<id>.auth.command` | `string` | Command to run when Codex needs a bearer token. The command must print the token to stdout. |
117| `model_providers.<id>.auth.cwd` | `string (path)` | Working directory for the token command. |
118| `model_providers.<id>.auth.refresh_interval_ms` | `number` | How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry. |
119| `model_providers.<id>.auth.timeout_ms` | `number` | Maximum token command runtime in milliseconds (default: 5000). |
97| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. |120| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. |
98| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. |121| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. |
99| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. |122| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. |
106| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |129| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |
107| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |130| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |
108| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |131| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |
109132| `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. |
133| `model_providers.<id>.wire_api` | `responses` | Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted. |
110| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |134| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |
111| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |135| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |
112| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |136| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |
113137| `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. |
114| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |138| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |
115| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |139| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |
116| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |140| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |
118| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |142| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |
119| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |143| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |
120| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |144| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |
145| `openai_base_url` | `string` | Base URL override for the built-in `openai` model provider. |
121| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |146| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |
122| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |147| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |
123| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |148| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |
128| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |153| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |
129| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |154| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |
130| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |155| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |
156| `otel.metrics_exporter` | `none | statsig | otlp-http | otlp-grpc` | Select the OpenTelemetry metrics exporter (defaults to `statsig`). |
131| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |157| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |
132| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |158| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |
133| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |159| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |
135| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |161| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |
136| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |162| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |
137| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |163| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |
164| `permissions.<name>.filesystem` | `table` | Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`. |
165| `permissions.<name>.filesystem.":project_roots".<subpath-or-glob>` | `"read" | "write" | "none"` | Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`. |
166| `permissions.<name>.filesystem.<path-or-glob>` | `"read" | "write" | "none" | table` | Grant direct access for a path, glob pattern, or special token, or scope nested entries under that root. Use `"none"` to deny reads for matching paths. |
167| `permissions.<name>.filesystem.glob_scan_max_depth` | `number` | Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set. |
168| `permissions.<name>.network.allow_local_binding` | `boolean` | Permit local bind/listen operations through the managed proxy. |
169| `permissions.<name>.network.allow_upstream_proxy` | `boolean` | Allow the managed proxy to chain to another upstream proxy. |
170| `permissions.<name>.network.dangerously_allow_all_unix_sockets` | `boolean` | Allow the proxy to use arbitrary Unix sockets instead of the default restricted set. |
171| `permissions.<name>.network.dangerously_allow_non_loopback_proxy` | `boolean` | Permit non-loopback bind addresses for the managed proxy listener. |
172| `permissions.<name>.network.domains` | `map<string, allow | deny>` | Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values. |
173| `permissions.<name>.network.enable_socks5` | `boolean` | Expose a SOCKS5 listener when this permissions profile enables the managed network proxy. |
174| `permissions.<name>.network.enable_socks5_udp` | `boolean` | Allow UDP over the SOCKS5 listener when enabled. |
175| `permissions.<name>.network.enabled` | `boolean` | Enable network access for this named permissions profile. |
176| `permissions.<name>.network.mode` | `limited | full` | Network proxy mode used for subprocess traffic. |
177| `permissions.<name>.network.proxy_url` | `string` | HTTP proxy endpoint used when this permissions profile enables the managed network proxy. |
178| `permissions.<name>.network.socks_url` | `string` | SOCKS5 proxy endpoint used by this permissions profile. |
179| `permissions.<name>.network.unix_sockets` | `map<string, allow | none>` | Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values. |
138| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |180| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |
181| `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. |
139| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |182| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |
140| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |183| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |
141184| `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. |
142| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |185| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |
143| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |
144| `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). |186| `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). |
187| `profiles.<name>.model_instructions_file` | `string (path)` | Profile-scoped replacement for the built-in instruction file. |
145| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |188| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |
146| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |189| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |
190| `profiles.<name>.plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Profile-scoped Plan-mode reasoning override. |
191| `profiles.<name>.service_tier` | `flex | fast` | Profile-scoped service tier preference for new turns. |
192| `profiles.<name>.tools_view_image` | `boolean` | Enable or disable the `view_image` tool in that profile. |
147| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |193| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |
194| `profiles.<name>.windows.sandbox` | `unelevated | elevated` | Profile-scoped Windows sandbox mode override. |
148| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |195| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |
149| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |196| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |
150| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |197| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |
155| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |202| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |
156| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |203| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |
157| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |204| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |
205| `service_tier` | `flex | fast` | Preferred service tier for new turns. |
158| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |206| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |
159| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |207| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |
160| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |208| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |
168| `sqlite_home` | `string (path)` | Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state. |216| `sqlite_home` | `string (path)` | Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state. |
169| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |217| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |
170| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |218| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |
171219| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. || `tool_suggest.discoverables` | `array<table>` | Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`. |
220| `tools.view_image` | `boolean` | Enable the local-image attachment tool `view_image`. |
221| `tools.web_search` | `boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }` | Optional web search tool configuration. The legacy boolean form is still accepted, but the object form lets you set search context size, allowed domains, and approximate user location. |
172| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |222| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |
173| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |223| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |
174| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |224| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
175225| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). || `tui.model_availability_nux.<model>` | `integer` | Internal startup-tooltip state keyed by model slug. |
226| `tui.notification_condition` | `unfocused | always` | Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`. |
227| `tui.notification_method` | `auto | osc9 | bel` | Notification method for terminal notifications (default: auto). |
176| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |228| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |
177| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |229| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |
178| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |230| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |
231| `tui.terminal_title` | `array<string> | null` | Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates. |
232| `tui.theme` | `string` | Syntax-highlighting theme override (kebab-case theme name). |
179| `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. |233| `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. |
180| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |234| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |
181| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |235| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |
236| `windows.sandbox_private_desktop` | `boolean` | Run the final sandboxed child process on a private desktop by default on native Windows. Set `false` only for compatibility with the older `Winsta0\\Default` behavior. |
182 237
183Key238Key
184 239
206 261
207Key262Key
208 263
264`agents.<name>.nickname_candidates`
265
266Type / Values
267
268`array<string>`
269
270Details
271
272Optional pool of display nicknames for spawned agents in that role.
273
274Key
275
209`agents.job_max_runtime_seconds`276`agents.job_max_runtime_seconds`
210 277
211Type / Values278Type / Values
238 305
239Details306Details
240 307
241308Maximum number of agent threads that can be open concurrently.Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.
242 309
243Key310Key
244 311
254 321
255Key322Key
256 323
324`analytics.enabled`
325
326Type / Values
327
328`boolean`
329
330Details
331
332Enable or disable analytics for this machine/profile. When unset, the client default applies.
333
334Key
335
257`approval_policy`336`approval_policy`
258 337
259Type / Values338Type / Values
260 339
261340`untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }``untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }`
341
342Details
343
344Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { granular = { ... } }` to allow or 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.
345
346Key
347
348`approval_policy.granular.mcp_elicitations`
349
350Type / Values
351
352`boolean`
353
354Details
355
356When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.
357
358Key
359
360`approval_policy.granular.request_permissions`
361
362Type / Values
363
364`boolean`
262 365
263Details366Details
264 367
265368Controls 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.When `true`, prompts from the `request_permissions` tool are allowed to surface.
266 369
267Key370Key
268 371
269372`approval_policy.reject.mcp_elicitations``approval_policy.granular.rules`
270 373
271Type / Values374Type / Values
272 375
274 377
275Details378Details
276 379
277380When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user.When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.
278 381
279Key382Key
280 383
281384`approval_policy.reject.rules``approval_policy.granular.sandbox_approval`
282 385
283Type / Values386Type / Values
284 387
286 389
287Details390Details
288 391
289392When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected.When `true`, sandbox escalation approval prompts are allowed to surface.
290 393
291Key394Key
292 395
293396`approval_policy.reject.sandbox_approval``approval_policy.granular.skill_approval`
294 397
295Type / Values398Type / Values
296 399
298 401
299Details402Details
300 403
301404When `true`, sandbox escalation approval prompts are auto-rejected.When `true`, skill-script approval prompts are allowed to surface.
405
406Key
407
408`approvals_reviewer`
409
410Type / Values
411
412`user | guardian_subagent`
413
414Details
415
416Select who reviews eligible approval prompts. Defaults to `user`; `guardian_subagent` routes supported reviews through the Guardian reviewer subagent.
302 417
303Key418Key
304 419
470 585
471Key586Key
472 587
473588`compact_prompt``commit_attribution`
474 589
475Type / Values590Type / Values
476 591
478 593
479Details594Details
480 595
481596Inline override for the history compaction prompt.Override the commit co-author trailer text. Set an empty string to disable automatic attribution.
482 597
483Key598Key
484 599
485600`developer_instructions``compact_prompt`
486 601
487Type / Values602Type / Values
488 603
490 605
491Details606Details
492 607
493608Additional developer instructions injected into the session (optional).Inline override for the history compaction prompt.
494 609
495Key610Key
496 611
497612`disable_paste_burst``default_permissions`
498 613
499Type / Values614Type / Values
500 615
501616`boolean``string`
502 617
503Details618Details
504 619
505620Disable burst-paste detection in the TUI.Name of the default permissions profile to apply to sandboxed tool calls.
506 621
507Key622Key
508 623
509624`experimental_compact_prompt_file``developer_instructions`
510 625
511Type / Values626Type / Values
512 627
513628`string (path)``string`
514 629
515Details630Details
516 631
517632Load the compaction prompt override from a file (experimental).Additional developer instructions injected into the session (optional).
518 633
519Key634Key
520 635
521636`experimental_use_freeform_apply_patch``disable_paste_burst`
522 637
523Type / Values638Type / Values
524 639
526 641
527Details642Details
528 643
529644Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.Disable burst-paste detection in the TUI.
530 645
531Key646Key
532 647
533648`experimental_use_unified_exec_tool``experimental_compact_prompt_file`
534 649
535Type / Values650Type / Values
536 651
537652`boolean``string (path)`
538 653
539Details654Details
540 655
541656Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.Load the compaction prompt override from a file (experimental).
542 657
543Key658Key
544 659
545660`features.apply_patch_freeform``experimental_use_unified_exec_tool`
546 661
547Type / Values662Type / Values
548 663
550 665
551Details666Details
552 667
553668Expose the freeform `apply_patch` tool (experimental).Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
554 669
555Key670Key
556 671
566 681
567Key682Key
568 683
569684`features.apps_mcp_gateway``features.codex_hooks`
570 685
571Type / Values686Type / Values
572 687
574 689
575Details690Details
576 691
577692Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).Enable lifecycle hooks loaded from `hooks.json` (under development; off by default).
578 693
579Key694Key
580 695
581696`features.child_agents_md``features.enable_request_compression`
582 697
583Type / Values698Type / Values
584 699
586 701
587Details702Details
588 703
589704Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).Compress streaming request bodies with zstd when supported (stable; on by default).
590 705
591Key706Key
592 707
593708`features.collaboration_modes``features.fast_mode`
594 709
595Type / Values710Type / Values
596 711
598 713
599Details714Details
600 715
601716Enable collaboration modes such as plan mode (stable; on by default).Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
602 717
603Key718Key
604 719
605720`features.multi_agent``features.guardian_approval`
606 721
607Type / Values722Type / Values
608 723
610 725
611Details726Details
612 727
613728Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait`, `close_agent`, and `spawn_agents_on_csv`) (experimental; off by default).Route eligible approval requests through the guardian reviewer subagent (experimental; off by default). Use with `approvals_reviewer = "guardian_subagent"`.
614 729
615Key730Key
616 731
617732`features.personality``features.memories`
618 733
619Type / Values734Type / Values
620 735
622 737
623Details738Details
624 739
625740Enable personality selection controls (stable; on by default).Enable [Memories](https://developers.openai.com/codex/memories) (off by default).
626 741
627Key742Key
628 743
629744`features.powershell_utf8``features.multi_agent`
630 745
631Type / Values746Type / Values
632 747
634 749
635Details750Details
636 751
637752Force PowerShell UTF-8 output (defaults to true).Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).
638 753
639Key754Key
640 755
641756`features.remote_models``features.personality`
642 757
643Type / Values758Type / Values
644 759
646 761
647Details762Details
648 763
649764Refresh remote model list before showing readiness (experimental).Enable personality selection controls (stable; on by default).
650 765
651Key766Key
652 767
653768`features.request_rule``features.prevent_idle_sleep`
654 769
655Type / Values770Type / Values
656 771
658 773
659Details774Details
660 775
661776Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).Prevent the machine from sleeping while a turn is actively running (experimental; off by default).
662 777
663Key778Key
664 779
665780`features.runtime_metrics``features.shell_snapshot`
666 781
667Type / Values782Type / Values
668 783
670 785
671Details786Details
672 787
673788Show runtime metrics summary in TUI turn separators (experimental).Snapshot shell environment to speed up repeated commands (stable; on by default).
674 789
675Key790Key
676 791
677792`features.search_tool``features.shell_tool`
678 793
679Type / Values794Type / Values
680 795
682 797
683Details798Details
684 799
685800Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).Enable the default `shell` tool for running commands (stable; on by default).
686 801
687Key802Key
688 803
689804`features.shell_snapshot``features.skill_mcp_dependency_install`
690 805
691Type / Values806Type / Values
692 807
694 809
695Details810Details
696 811
697812Snapshot shell environment to speed up repeated commands (beta).Allow prompting and installing missing MCP dependencies for skills (stable; on by default).
698 813
699Key814Key
700 815
701816`features.shell_tool``features.undo`
702 817
703Type / Values818Type / Values
704 819
706 821
707Details822Details
708 823
709824Enable the default `shell` tool for running commands (stable; on by default).Enable undo support (stable; off by default).
710 825
711Key826Key
712 827
718 833
719Details834Details
720 835
721836Use the unified PTY-backed exec tool (beta).Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
722
723Key
724
725`features.use_linux_sandbox_bwrap`
726
727Type / Values
728
729`boolean`
730
731Details
732
733Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).
734 837
735Key838Key
736 839
854 957
855Key958Key
856 959
857`include_apply_patch_tool`
858
859Type / Values
860
861`boolean`
862
863Details
864
865Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.
866
867Key
868
869`instructions`960`instructions`
870 961
871Type / Values962Type / Values
1038 1129
1039Type / Values1130Type / Values
1040 1131
10411132`array<string>``array<string | { name = string, source = "local" | "remote" }>`
1133
1134Details
1135
1136Additional environment variables to whitelist for an MCP stdio server. String entries default to `source = "local"`; use `source = "remote"` only with executor-backed remote stdio.
1137
1138Key
1139
1140`mcp_servers.<id>.experimental_environment`
1141
1142Type / Values
1143
1144`local | remote`
1042 1145
1043Details1146Details
1044 1147
10451148Additional environment variables to whitelist for an MCP stdio server.Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.
1046 1149
1047Key1150Key
1048 1151
1058 1161
1059Key1162Key
1060 1163
1164`mcp_servers.<id>.oauth_resource`
1165
1166Type / Values
1167
1168`string`
1169
1170Details
1171
1172Optional RFC 8707 OAuth resource parameter to include during MCP login.
1173
1174Key
1175
1061`mcp_servers.<id>.required`1176`mcp_servers.<id>.required`
1062 1177
1063Type / Values1178Type / Values
1070 1185
1071Key1186Key
1072 1187
1188`mcp_servers.<id>.scopes`
1189
1190Type / Values
1191
1192`array<string>`
1193
1194Details
1195
1196OAuth scopes to request when authenticating to that MCP server.
1197
1198Key
1199
1073`mcp_servers.<id>.startup_timeout_ms`1200`mcp_servers.<id>.startup_timeout_ms`
1074 1201
1075Type / Values1202Type / Values
1118 1245
1119Key1246Key
1120 1247
11211248`model``memories.consolidation_model`
1122 1249
1123Type / Values1250Type / Values
1124 1251
1126 1253
1127Details1254Details
1128 1255
11291256Model to use (e.g., `gpt-5-codex`).Optional model override for global memory consolidation.
1130 1257
1131Key1258Key
1132 1259
11331260`model_auto_compact_token_limit``memories.disable_on_external_context`
1134 1261
1135Type / Values1262Type / Values
1136 1263
11371264`number``boolean`
1138 1265
1139Details1266Details
1140 1267
11411268Token threshold that triggers automatic history compaction (unset uses model defaults).When `true`, threads that use external context such as MCP tool calls, web search, or tool search are kept out of memory generation. Defaults to `false`. Legacy alias: `memories.no_memories_if_mcp_or_web_search`.
1142 1269
1143Key1270Key
1144 1271
11451272`model_catalog_json``memories.extract_model`
1146 1273
1147Type / Values1274Type / Values
1148 1275
11491276`string (path)``string`
1150 1277
1151Details1278Details
1152 1279
11531280Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.Optional model override for per-thread memory extraction.
1154 1281
1155Key1282Key
1156 1283
11571284`model_context_window``memories.generate_memories`
1158 1285
1159Type / Values1286Type / Values
1160 1287
11611288`number``boolean`
1162 1289
1163Details1290Details
1164 1291
11651292Context window tokens available to the active model.When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.
1166 1293
1167Key1294Key
1168 1295
11691296`model_instructions_file``memories.max_raw_memories_for_consolidation`
1170 1297
1171Type / Values1298Type / Values
1172 1299
11731300`string (path)``number`
1174 1301
1175Details1302Details
1176 1303
11771304Replacement for built-in instructions instead of `AGENTS.md`.Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.
1178 1305
1179Key1306Key
1180 1307
11811308`model_provider``memories.max_rollout_age_days`
1182 1309
1183Type / Values1310Type / Values
1184 1311
11851312`string``number`
1186 1313
1187Details1314Details
1188 1315
11891316Provider id from `model_providers` (default: `openai`).Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.
1190 1317
1191Key1318Key
1192 1319
11931320`model_providers.<id>.base_url``memories.max_rollouts_per_startup`
1194 1321
1195Type / Values1322Type / Values
1196 1323
11971324`string``number`
1198 1325
1199Details1326Details
1200 1327
12011328API base URL for the model provider.Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.
1202 1329
1203Key1330Key
1204 1331
12051332`model_providers.<id>.env_http_headers``memories.max_unused_days`
1206 1333
1207Type / Values1334Type / Values
1208 1335
12091336`map<string,string>``number`
1210 1337
1211Details1338Details
1212 1339
12131340HTTP headers populated from environment variables when present.Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`.
1214 1341
1215Key1342Key
1216 1343
12171344`model_providers.<id>.env_key``memories.min_rollout_idle_hours`
1218 1345
1219Type / Values1346Type / Values
1220 1347
12211348`string``number`
1222 1349
1223Details1350Details
1224 1351
12251352Environment variable supplying the provider API key.Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.
1226 1353
1227Key1354Key
1228 1355
12291356`model_providers.<id>.env_key_instructions``memories.use_memories`
1230 1357
1231Type / Values1358Type / Values
1232 1359
12331360`string``boolean`
1234 1361
1235Details1362Details
1236 1363
12371364Optional setup guidance for the provider API key.When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.
1238 1365
1239Key1366Key
1240 1367
12411368`model_providers.<id>.experimental_bearer_token``model`
1242 1369
1243Type / Values1370Type / Values
1244 1371
1246 1373
1247Details1374Details
1248 1375
12491376Direct bearer token for the provider (discouraged; use `env_key`).Model to use (e.g., `gpt-5.4`).
1250 1377
1251Key1378Key
1252 1379
12531380`model_providers.<id>.http_headers``model_auto_compact_token_limit`
1254 1381
1255Type / Values1382Type / Values
1256 1383
12571384`map<string,string>``number`
1258 1385
1259Details1386Details
1260 1387
12611388Static HTTP headers added to provider requests.Token threshold that triggers automatic history compaction (unset uses model defaults).
1262 1389
1263Key1390Key
1264 1391
12651392`model_providers.<id>.name``model_catalog_json`
1266 1393
1267Type / Values1394Type / Values
1268 1395
12691396`string``string (path)`
1270 1397
1271Details1398Details
1272 1399
12731400Display name for a custom model provider.Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.
1274 1401
1275Key1402Key
1276 1403
12771404`model_providers.<id>.query_params``model_context_window`
1278 1405
1279Type / Values1406Type / Values
1280 1407
12811408`map<string,string>``number`
1282 1409
1283Details1410Details
1284 1411
12851412Extra query parameters appended to provider requests.Context window tokens available to the active model.
1286 1413
1287Key1414Key
1288 1415
12891416`model_providers.<id>.request_max_retries``model_instructions_file`
1290 1417
1291Type / Values1418Type / Values
1292 1419
12931420`number``string (path)`
1294 1421
1295Details1422Details
1296 1423
12971424Retry count for HTTP requests to the provider (default: 4).Replacement for built-in instructions instead of `AGENTS.md`.
1298 1425
1299Key1426Key
1300 1427
13011428`model_providers.<id>.requires_openai_auth``model_provider`
1302 1429
1303Type / Values1430Type / Values
1304 1431
13051432`boolean``string`
1306 1433
1307Details1434Details
1308 1435
13091436The provider uses OpenAI authentication (defaults to false).Provider id from `model_providers` (default: `openai`).
1310 1437
1311Key1438Key
1312 1439
13131440`model_providers.<id>.stream_idle_timeout_ms``model_providers.<id>`
1314 1441
1315Type / Values1442Type / Values
1316 1443
13171444`number``table`
1318 1445
1319Details1446Details
1320 1447
13211448Idle timeout for SSE streams in milliseconds (default: 300000).Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.
1322 1449
1323Key1450Key
1324 1451
13251452`model_providers.<id>.stream_max_retries``model_providers.<id>.auth`
1326 1453
1327Type / Values1454Type / Values
1328 1455
13291456`number``table`
1330 1457
1331Details1458Details
1332 1459
13331460Retry count for SSE streaming interruptions (default: 5).Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.
1334 1461
1335Key1462Key
1336 1463
13371464`model_providers.<id>.wire_api``model_providers.<id>.auth.args`
1338 1465
1339Type / Values1466Type / Values
1340 1467
13411468`chat | responses``array<string>`
1342 1469
1343Details1470Details
1344 1471
13451472Protocol used by the provider (defaults to `chat` if omitted).Arguments passed to the token command.
1346 1473
1347Key1474Key
1348 1475
13491476`model_reasoning_effort``model_providers.<id>.auth.command`
1350 1477
1351Type / Values1478Type / Values
1352 1479
13531480`minimal | low | medium | high | xhigh``string`
1354 1481
1355Details1482Details
1356 1483
13571484Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).Command to run when Codex needs a bearer token. The command must print the token to stdout.
1358 1485
1359Key1486Key
1360 1487
13611488`model_reasoning_summary``model_providers.<id>.auth.cwd`
1362 1489
1363Type / Values1490Type / Values
1364 1491
13651492`auto | concise | detailed | none``string (path)`
1366 1493
1367Details1494Details
1368 1495
13691496Select reasoning summary detail or disable summaries entirely.Working directory for the token command.
1370 1497
1371Key1498Key
1372 1499
13731500`model_supports_reasoning_summaries``model_providers.<id>.auth.refresh_interval_ms`
1374 1501
1375Type / Values1502Type / Values
1376 1503
13771504`boolean``number`
1378 1505
1379Details1506Details
1380 1507
13811508Force Codex to send or not send reasoning metadata.How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.
1382 1509
1383Key1510Key
1384 1511
13851512`model_verbosity``model_providers.<id>.auth.timeout_ms`
1386 1513
1387Type / Values1514Type / Values
1388 1515
13891516`low | medium | high``number`
1390 1517
1391Details1518Details
1392 1519
13931520Control GPT-5 Responses API verbosity (defaults to `medium`).Maximum token command runtime in milliseconds (default: 5000).
1394 1521
1395Key1522Key
1396 1523
13971524`notice.hide_full_access_warning``model_providers.<id>.base_url`
1398 1525
1399Type / Values1526Type / Values
1400 1527
14011528`boolean``string`
1402 1529
1403Details1530Details
1404 1531
14051532Track acknowledgement of the full access warning prompt.API base URL for the model provider.
1406 1533
1407Key1534Key
1408 1535
14091536`notice.hide_gpt-5.1-codex-max_migration_prompt``model_providers.<id>.env_http_headers`
1410 1537
1411Type / Values1538Type / Values
1412 1539
14131540`boolean``map<string,string>`
1414 1541
1415Details1542Details
1416 1543
14171544Track acknowledgement of the gpt-5.1-codex-max migration prompt.HTTP headers populated from environment variables when present.
1418 1545
1419Key1546Key
1420 1547
14211548`notice.hide_gpt5_1_migration_prompt``model_providers.<id>.env_key`
1422 1549
1423Type / Values1550Type / Values
1424 1551
14251552`boolean``string`
1426 1553
1427Details1554Details
1428 1555
14291556Track acknowledgement of the GPT-5.1 migration prompt.Environment variable supplying the provider API key.
1430 1557
1431Key1558Key
1432 1559
14331560`notice.hide_rate_limit_model_nudge``model_providers.<id>.env_key_instructions`
1434 1561
1435Type / Values1562Type / Values
1436 1563
14371564`boolean``string`
1438 1565
1439Details1566Details
1440 1567
14411568Track opt-out of the rate limit model switch reminder.Optional setup guidance for the provider API key.
1569
1570Key
1571
1572`model_providers.<id>.experimental_bearer_token`
1573
1574Type / Values
1575
1576`string`
1577
1578Details
1579
1580Direct bearer token for the provider (discouraged; use `env_key`).
1581
1582Key
1583
1584`model_providers.<id>.http_headers`
1585
1586Type / Values
1587
1588`map<string,string>`
1589
1590Details
1591
1592Static HTTP headers added to provider requests.
1593
1594Key
1595
1596`model_providers.<id>.name`
1597
1598Type / Values
1599
1600`string`
1601
1602Details
1603
1604Display name for a custom model provider.
1605
1606Key
1607
1608`model_providers.<id>.query_params`
1609
1610Type / Values
1611
1612`map<string,string>`
1613
1614Details
1615
1616Extra query parameters appended to provider requests.
1617
1618Key
1619
1620`model_providers.<id>.request_max_retries`
1621
1622Type / Values
1623
1624`number`
1625
1626Details
1627
1628Retry count for HTTP requests to the provider (default: 4).
1629
1630Key
1631
1632`model_providers.<id>.requires_openai_auth`
1633
1634Type / Values
1635
1636`boolean`
1637
1638Details
1639
1640The provider uses OpenAI authentication (defaults to false).
1641
1642Key
1643
1644`model_providers.<id>.stream_idle_timeout_ms`
1645
1646Type / Values
1647
1648`number`
1649
1650Details
1651
1652Idle timeout for SSE streams in milliseconds (default: 300000).
1653
1654Key
1655
1656`model_providers.<id>.stream_max_retries`
1657
1658Type / Values
1659
1660`number`
1661
1662Details
1663
1664Retry count for SSE streaming interruptions (default: 5).
1665
1666Key
1667
1668`model_providers.<id>.supports_websockets`
1669
1670Type / Values
1671
1672`boolean`
1673
1674Details
1675
1676Whether that provider supports the Responses API WebSocket transport.
1677
1678Key
1679
1680`model_providers.<id>.wire_api`
1681
1682Type / Values
1683
1684`responses`
1685
1686Details
1687
1688Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1689
1690Key
1691
1692`model_reasoning_effort`
1693
1694Type / Values
1695
1696`minimal | low | medium | high | xhigh`
1697
1698Details
1699
1700Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).
1701
1702Key
1703
1704`model_reasoning_summary`
1705
1706Type / Values
1707
1708`auto | concise | detailed | none`
1709
1710Details
1711
1712Select reasoning summary detail or disable summaries entirely.
1713
1714Key
1715
1716`model_supports_reasoning_summaries`
1717
1718Type / Values
1719
1720`boolean`
1721
1722Details
1723
1724Force Codex to send or not send reasoning metadata.
1725
1726Key
1727
1728`model_verbosity`
1729
1730Type / Values
1731
1732`low | medium | high`
1733
1734Details
1735
1736Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1737
1738Key
1739
1740`notice.hide_full_access_warning`
1741
1742Type / Values
1743
1744`boolean`
1745
1746Details
1747
1748Track acknowledgement of the full access warning prompt.
1749
1750Key
1751
1752`notice.hide_gpt-5.1-codex-max_migration_prompt`
1753
1754Type / Values
1755
1756`boolean`
1757
1758Details
1759
1760Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1761
1762Key
1763
1764`notice.hide_gpt5_1_migration_prompt`
1765
1766Type / Values
1767
1768`boolean`
1769
1770Details
1771
1772Track acknowledgement of the GPT-5.1 migration prompt.
1773
1774Key
1775
1776`notice.hide_rate_limit_model_nudge`
1777
1778Type / Values
1779
1780`boolean`
1781
1782Details
1783
1784Track opt-out of the rate limit model switch reminder.
1442 1785
1443Key1786Key
1444 1787
1446 1789
1447Type / Values1790Type / Values
1448 1791
14491792`boolean``boolean`
1793
1794Details
1795
1796Track acknowledgement of the Windows world-writable directories warning.
1797
1798Key
1799
1800`notice.model_migrations`
1801
1802Type / Values
1803
1804`map<string,string>`
1805
1806Details
1807
1808Track acknowledged model migrations as old->new mappings.
1809
1810Key
1811
1812`notify`
1813
1814Type / Values
1815
1816`array<string>`
1817
1818Details
1819
1820Command invoked for notifications; receives a JSON payload from Codex.
1821
1822Key
1823
1824`openai_base_url`
1825
1826Type / Values
1827
1828`string`
1829
1830Details
1831
1832Base URL override for the built-in `openai` model provider.
1833
1834Key
1835
1836`oss_provider`
1837
1838Type / Values
1839
1840`lmstudio | ollama`
1841
1842Details
1843
1844Default local provider used when running with `--oss` (defaults to prompting if unset).
1845
1846Key
1847
1848`otel.environment`
1849
1850Type / Values
1851
1852`string`
1853
1854Details
1855
1856Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1857
1858Key
1859
1860`otel.exporter`
1861
1862Type / Values
1863
1864`none | otlp-http | otlp-grpc`
1865
1866Details
1867
1868Select the OpenTelemetry exporter and provide any endpoint metadata.
1869
1870Key
1871
1872`otel.exporter.<id>.endpoint`
1873
1874Type / Values
1875
1876`string`
1877
1878Details
1879
1880Exporter endpoint for OTEL logs.
1881
1882Key
1883
1884`otel.exporter.<id>.headers`
1885
1886Type / Values
1887
1888`map<string,string>`
1889
1890Details
1891
1892Static headers included with OTEL exporter requests.
1893
1894Key
1895
1896`otel.exporter.<id>.protocol`
1897
1898Type / Values
1899
1900`binary | json`
1901
1902Details
1903
1904Protocol used by the OTLP/HTTP exporter.
1905
1906Key
1907
1908`otel.exporter.<id>.tls.ca-certificate`
1909
1910Type / Values
1911
1912`string`
1913
1914Details
1915
1916CA certificate path for OTEL exporter TLS.
1917
1918Key
1919
1920`otel.exporter.<id>.tls.client-certificate`
1921
1922Type / Values
1923
1924`string`
1925
1926Details
1927
1928Client certificate path for OTEL exporter TLS.
1929
1930Key
1931
1932`otel.exporter.<id>.tls.client-private-key`
1933
1934Type / Values
1935
1936`string`
1937
1938Details
1939
1940Client private key path for OTEL exporter TLS.
1941
1942Key
1943
1944`otel.log_user_prompt`
1945
1946Type / Values
1947
1948`boolean`
1949
1950Details
1951
1952Opt in to exporting raw user prompts with OpenTelemetry logs.
1953
1954Key
1955
1956`otel.metrics_exporter`
1957
1958Type / Values
1959
1960`none | statsig | otlp-http | otlp-grpc`
1961
1962Details
1963
1964Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1965
1966Key
1967
1968`otel.trace_exporter`
1969
1970Type / Values
1971
1972`none | otlp-http | otlp-grpc`
1973
1974Details
1975
1976Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1977
1978Key
1979
1980`otel.trace_exporter.<id>.endpoint`
1981
1982Type / Values
1983
1984`string`
1985
1986Details
1987
1988Trace exporter endpoint for OTEL logs.
1989
1990Key
1991
1992`otel.trace_exporter.<id>.headers`
1993
1994Type / Values
1995
1996`map<string,string>`
1997
1998Details
1999
2000Static headers included with OTEL trace exporter requests.
2001
2002Key
2003
2004`otel.trace_exporter.<id>.protocol`
2005
2006Type / Values
2007
2008`binary | json`
1450 2009
1451Details2010Details
1452 2011
14532012Track acknowledgement of the Windows world-writable directories warning.Protocol used by the OTLP/HTTP trace exporter.
1454 2013
1455Key2014Key
1456 2015
14572016`notice.model_migrations``otel.trace_exporter.<id>.tls.ca-certificate`
1458 2017
1459Type / Values2018Type / Values
1460 2019
14612020`map<string,string>``string`
1462 2021
1463Details2022Details
1464 2023
14652024Track acknowledged model migrations as old->new mappings.CA certificate path for OTEL trace exporter TLS.
1466 2025
1467Key2026Key
1468 2027
14692028`notify``otel.trace_exporter.<id>.tls.client-certificate`
1470 2029
1471Type / Values2030Type / Values
1472 2031
14732032`array<string>``string`
1474 2033
1475Details2034Details
1476 2035
14772036Command invoked for notifications; receives a JSON payload from Codex.Client certificate path for OTEL trace exporter TLS.
1478 2037
1479Key2038Key
1480 2039
14812040`oss_provider``otel.trace_exporter.<id>.tls.client-private-key`
1482 2041
1483Type / Values2042Type / Values
1484 2043
14852044`lmstudio | ollama``string`
1486 2045
1487Details2046Details
1488 2047
14892048Default local provider used when running with `--oss` (defaults to prompting if unset).Client private key path for OTEL trace exporter TLS.
1490 2049
1491Key2050Key
1492 2051
14932052`otel.environment``permissions.<name>.filesystem`
1494 2053
1495Type / Values2054Type / Values
1496 2055
14972056`string``table`
1498 2057
1499Details2058Details
1500 2059
15012060Environment tag applied to emitted OpenTelemetry events (default: `dev`).Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.
1502 2061
1503Key2062Key
1504 2063
15052064`otel.exporter``permissions.<name>.filesystem.":project_roots".<subpath-or-glob>`
1506 2065
1507Type / Values2066Type / Values
1508 2067
15092068`none | otlp-http | otlp-grpc``"read" | "write" | "none"`
1510 2069
1511Details2070Details
1512 2071
15132072Select the OpenTelemetry exporter and provide any endpoint metadata.Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.
1514 2073
1515Key2074Key
1516 2075
15172076`otel.exporter.<id>.endpoint``permissions.<name>.filesystem.<path-or-glob>`
1518 2077
1519Type / Values2078Type / Values
1520 2079
15212080`string``"read" | "write" | "none" | table`
1522 2081
1523Details2082Details
1524 2083
15252084Exporter endpoint for OTEL logs.Grant direct access for a path, glob pattern, or special token, or scope nested entries under that root. Use `"none"` to deny reads for matching paths.
1526 2085
1527Key2086Key
1528 2087
15292088`otel.exporter.<id>.headers``permissions.<name>.filesystem.glob_scan_max_depth`
1530 2089
1531Type / Values2090Type / Values
1532 2091
15332092`map<string,string>``number`
1534 2093
1535Details2094Details
1536 2095
15372096Static headers included with OTEL exporter requests.Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.
1538 2097
1539Key2098Key
1540 2099
15412100`otel.exporter.<id>.protocol``permissions.<name>.network.allow_local_binding`
1542 2101
1543Type / Values2102Type / Values
1544 2103
15452104`binary | json``boolean`
1546 2105
1547Details2106Details
1548 2107
15492108Protocol used by the OTLP/HTTP exporter.Permit local bind/listen operations through the managed proxy.
1550 2109
1551Key2110Key
1552 2111
15532112`otel.exporter.<id>.tls.ca-certificate``permissions.<name>.network.allow_upstream_proxy`
1554 2113
1555Type / Values2114Type / Values
1556 2115
15572116`string``boolean`
1558 2117
1559Details2118Details
1560 2119
15612120CA certificate path for OTEL exporter TLS.Allow the managed proxy to chain to another upstream proxy.
1562 2121
1563Key2122Key
1564 2123
15652124`otel.exporter.<id>.tls.client-certificate``permissions.<name>.network.dangerously_allow_all_unix_sockets`
1566 2125
1567Type / Values2126Type / Values
1568 2127
15692128`string``boolean`
1570 2129
1571Details2130Details
1572 2131
15732132Client certificate path for OTEL exporter TLS.Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
1574 2133
1575Key2134Key
1576 2135
15772136`otel.exporter.<id>.tls.client-private-key``permissions.<name>.network.dangerously_allow_non_loopback_proxy`
1578 2137
1579Type / Values2138Type / Values
1580 2139
15812140`string``boolean`
1582 2141
1583Details2142Details
1584 2143
15852144Client private key path for OTEL exporter TLS.Permit non-loopback bind addresses for the managed proxy listener.
1586 2145
1587Key2146Key
1588 2147
15892148`otel.log_user_prompt``permissions.<name>.network.domains`
1590 2149
1591Type / Values2150Type / Values
1592 2151
15932152`boolean``map<string, allow | deny>`
1594 2153
1595Details2154Details
1596 2155
15972156Opt in to exporting raw user prompts with OpenTelemetry logs.Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.
1598 2157
1599Key2158Key
1600 2159
16012160`otel.trace_exporter``permissions.<name>.network.enable_socks5`
1602 2161
1603Type / Values2162Type / Values
1604 2163
16052164`none | otlp-http | otlp-grpc``boolean`
1606 2165
1607Details2166Details
1608 2167
16092168Select the OpenTelemetry trace exporter and provide any endpoint metadata.Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.
1610 2169
1611Key2170Key
1612 2171
16132172`otel.trace_exporter.<id>.endpoint``permissions.<name>.network.enable_socks5_udp`
1614 2173
1615Type / Values2174Type / Values
1616 2175
16172176`string``boolean`
1618 2177
1619Details2178Details
1620 2179
16212180Trace exporter endpoint for OTEL logs.Allow UDP over the SOCKS5 listener when enabled.
1622 2181
1623Key2182Key
1624 2183
16252184`otel.trace_exporter.<id>.headers``permissions.<name>.network.enabled`
1626 2185
1627Type / Values2186Type / Values
1628 2187
16292188`map<string,string>``boolean`
1630 2189
1631Details2190Details
1632 2191
16332192Static headers included with OTEL trace exporter requests.Enable network access for this named permissions profile.
1634 2193
1635Key2194Key
1636 2195
16372196`otel.trace_exporter.<id>.protocol``permissions.<name>.network.mode`
1638 2197
1639Type / Values2198Type / Values
1640 2199
16412200`binary | json``limited | full`
1642 2201
1643Details2202Details
1644 2203
16452204Protocol used by the OTLP/HTTP trace exporter.Network proxy mode used for subprocess traffic.
1646 2205
1647Key2206Key
1648 2207
16492208`otel.trace_exporter.<id>.tls.ca-certificate``permissions.<name>.network.proxy_url`
1650 2209
1651Type / Values2210Type / Values
1652 2211
1654 2213
1655Details2214Details
1656 2215
16572216CA certificate path for OTEL trace exporter TLS.HTTP proxy endpoint used when this permissions profile enables the managed network proxy.
1658 2217
1659Key2218Key
1660 2219
16612220`otel.trace_exporter.<id>.tls.client-certificate``permissions.<name>.network.socks_url`
1662 2221
1663Type / Values2222Type / Values
1664 2223
1666 2225
1667Details2226Details
1668 2227
16692228Client certificate path for OTEL trace exporter TLS.SOCKS5 proxy endpoint used by this permissions profile.
1670 2229
1671Key2230Key
1672 2231
16732232`otel.trace_exporter.<id>.tls.client-private-key``permissions.<name>.network.unix_sockets`
1674 2233
1675Type / Values2234Type / Values
1676 2235
16772236`string``map<string, allow | none>`
1678 2237
1679Details2238Details
1680 2239
16812240Client private key path for OTEL trace exporter TLS.Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.
1682 2241
1683Key2242Key
1684 2243
1694 2253
1695Key2254Key
1696 2255
2256`plan_mode_reasoning_effort`
2257
2258Type / Values
2259
2260`none | minimal | low | medium | high | xhigh`
2261
2262Details
2263
2264Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
2265
2266Key
2267
1697`profile`2268`profile`
1698 2269
1699Type / Values2270Type / Values
1718 2289
1719Key2290Key
1720 2291
17212292`profiles.<name>.experimental_use_freeform_apply_patch``profiles.<name>.analytics.enabled`
1722 2293
1723Type / Values2294Type / Values
1724 2295
1726 2297
1727Details2298Details
1728 2299
17292300Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped analytics enablement override.
1730 2301
1731Key2302Key
1732 2303
1742 2313
1743Key2314Key
1744 2315
17452316`profiles.<name>.include_apply_patch_tool``profiles.<name>.model_catalog_json`
1746 2317
1747Type / Values2318Type / Values
1748 2319
17492320`boolean``string (path)`
1750 2321
1751Details2322Details
1752 2323
17532324Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).
1754 2325
1755Key2326Key
1756 2327
17572328`profiles.<name>.model_catalog_json``profiles.<name>.model_instructions_file`
1758 2329
1759Type / Values2330Type / Values
1760 2331
1762 2333
1763Details2334Details
1764 2335
17652336Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).Profile-scoped replacement for the built-in instruction file.
1766 2337
1767Key2338Key
1768 2339
1790 2361
1791Key2362Key
1792 2363
2364`profiles.<name>.plan_mode_reasoning_effort`
2365
2366Type / Values
2367
2368`none | minimal | low | medium | high | xhigh`
2369
2370Details
2371
2372Profile-scoped Plan-mode reasoning override.
2373
2374Key
2375
2376`profiles.<name>.service_tier`
2377
2378Type / Values
2379
2380`flex | fast`
2381
2382Details
2383
2384Profile-scoped service tier preference for new turns.
2385
2386Key
2387
2388`profiles.<name>.tools_view_image`
2389
2390Type / Values
2391
2392`boolean`
2393
2394Details
2395
2396Enable or disable the `view_image` tool in that profile.
2397
2398Key
2399
1793`profiles.<name>.web_search`2400`profiles.<name>.web_search`
1794 2401
1795Type / Values2402Type / Values
1802 2409
1803Key2410Key
1804 2411
2412`profiles.<name>.windows.sandbox`
2413
2414Type / Values
2415
2416`unelevated | elevated`
2417
2418Details
2419
2420Profile-scoped Windows sandbox mode override.
2421
2422Key
2423
1805`project_doc_fallback_filenames`2424`project_doc_fallback_filenames`
1806 2425
1807Type / Values2426Type / Values
1922 2541
1923Key2542Key
1924 2543
2544`service_tier`
2545
2546Type / Values
2547
2548`flex | fast`
2549
2550Details
2551
2552Preferred service tier for new turns.
2553
2554Key
2555
1925`shell_environment_policy.exclude`2556`shell_environment_policy.exclude`
1926 2557
1927Type / Values2558Type / Values
2078 2709
2079Key2710Key
2080 2711
20812712`tools.web_search``tool_suggest.discoverables`
2713
2714Type / Values
2715
2716`array<table>`
2717
2718Details
2719
2720Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.
2721
2722Key
2723
2724`tools.view_image`
2082 2725
2083Type / Values2726Type / Values
2084 2727
2086 2729
2087Details2730Details
2088 2731
20892732Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.Enable the local-image attachment tool `view_image`.
2733
2734Key
2735
2736`tools.web_search`
2737
2738Type / Values
2739
2740`boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }`
2741
2742Details
2743
2744Optional web search tool configuration. The legacy boolean form is still accepted, but the object form lets you set search context size, allowed domains, and approximate user location.
2090 2745
2091Key2746Key
2092 2747
2126 2781
2127Key2782Key
2128 2783
2784`tui.model_availability_nux.<model>`
2785
2786Type / Values
2787
2788`integer`
2789
2790Details
2791
2792Internal startup-tooltip state keyed by model slug.
2793
2794Key
2795
2796`tui.notification_condition`
2797
2798Type / Values
2799
2800`unfocused | always`
2801
2802Details
2803
2804Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.
2805
2806Key
2807
2129`tui.notification_method`2808`tui.notification_method`
2130 2809
2131Type / Values2810Type / Values
2134 2813
2135Details2814Details
2136 2815
21372816Notification method for unfocused terminal notifications (default: auto).Notification method for terminal notifications (default: auto).
2138 2817
2139Key2818Key
2140 2819
2174 2853
2175Key2854Key
2176 2855
2856`tui.terminal_title`
2857
2858Type / Values
2859
2860`array<string> | null`
2861
2862Details
2863
2864Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.
2865
2866Key
2867
2868`tui.theme`
2869
2870Type / Values
2871
2872`string`
2873
2874Details
2875
2876Syntax-highlighting theme override (kebab-case theme name).
2877
2878Key
2879
2177`web_search`2880`web_search`
2178 2881
2179Type / Values2882Type / Values
2208 2911
2209Windows-only native sandbox mode when running Codex natively on Windows.2912Windows-only native sandbox mode when running Codex natively on Windows.
2210 2913
2914Key
2915
2916`windows.sandbox_private_desktop`
2917
2918Type / Values
2919
2920`boolean`
2921
2922Details
2923
2924Run the final sandboxed child process on a private desktop by default on native Windows. Set `false` only for compatibility with the older `Winsta0\\Default` behavior.
2925
2211Expand to view all2926Expand to view all
2212 2927
2213You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).2928You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
2227For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched2942For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
2228requirements. See the security page for precedence details.2943requirements. See the security page for precedence details.
2229 2944
2945Use `[features]` in `requirements.toml` to pin feature flags by the same
2946canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
2947
2230| Key | Type / Values | Details |2948| Key | Type / Values | Details |
2231| --- | --- | --- |2949| --- | --- | --- |
22322950| `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`). || `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`). |
2951| `allowed_approvals_reviewers` | `array<string>` | Allowed values for `approvals_reviewer` (for example `user` and `guardian_subagent`). |
2233| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |2952| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |
2234| `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`. |2953| `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`. |
2954| `features` | `table` | Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. |
2955| `features.<name>` | `boolean` | Require a specific canonical feature key to stay enabled or disabled. |
2235| `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. |2956| `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. |
2236| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |2957| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |
2237| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |2958| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
2238| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |2959| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |
2960| `permissions.filesystem.deny_read` | `array<string>` | Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config. |
2239| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |2961| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |
2240| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |2962| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |
2241| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |2963| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |
2254 2976
2255Details2977Details
2256 2978
22572979Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`).Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).
2980
2981Key
2982
2983`allowed_approvals_reviewers`
2984
2985Type / Values
2986
2987`array<string>`
2988
2989Details
2990
2991Allowed values for `approvals_reviewer` (for example `user` and `guardian_subagent`).
2258 2992
2259Key2993Key
2260 2994
2282 3016
2283Key3017Key
2284 3018
3019`features`
3020
3021Type / Values
3022
3023`table`
3024
3025Details
3026
3027Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.
3028
3029Key
3030
3031`features.<name>`
3032
3033Type / Values
3034
3035`boolean`
3036
3037Details
3038
3039Require a specific canonical feature key to stay enabled or disabled.
3040
3041Key
3042
2285`mcp_servers`3043`mcp_servers`
2286 3044
2287Type / Values3045Type / Values
2330 3088
2331Key3089Key
2332 3090
3091`permissions.filesystem.deny_read`
3092
3093Type / Values
3094
3095`array<string>`
3096
3097Details
3098
3099Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config.
3100
3101Key
3102
2333`rules`3103`rules`
2334 3104
2335Type / Values3105Type / Values