config-reference.md +1425 −395
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. |
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. |
15| `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). |
1618| `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. |
17| `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. |
1820| `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. |
1921| `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. |
2022| `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. |
2123| `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 | auto_review` | Who reviews eligible approval prompts under `on-request` or granular approval policies. Defaults to `user`; `auto_review` uses the reviewer subagent. This setting doesn't change sandboxing or review actions already allowed inside the sandbox. |
22| `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`. |
23| `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. |
24| `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`. |
29| `apps.<id>.open_world_enabled` | `boolean` | Allow or block tools in this app that advertise `open_world_hint = true`. |35| `apps.<id>.open_world_enabled` | `boolean` | Allow or block tools in this app that advertise `open_world_hint = true`. |
30| `apps.<id>.tools.<tool>.approval_mode` | `auto | prompt | approve` | Per-tool approval behavior override for a single app tool. |36| `apps.<id>.tools.<tool>.approval_mode` | `auto | prompt | approve` | Per-tool approval behavior override for a single app tool. |
31| `apps.<id>.tools.<tool>.enabled` | `boolean` | Per-tool enabled override for an app tool (for example `repos/list`). |37| `apps.<id>.tools.<tool>.enabled` | `boolean` | Per-tool enabled override for an app tool (for example `repos/list`). |
38| `auto_review.policy` | `string` | Local Markdown policy instructions for automatic review. Managed `guardian_policy_config` takes precedence. Blank values are ignored. |
32| `background_terminal_max_timeout` | `number` | Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key. |39| `background_terminal_max_timeout` | `number` | Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key. |
33| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |40| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |
34| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |41| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |
35| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |42| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |
43| `commit_attribution` | `string` | Override the commit co-author trailer text. Set an empty string to disable automatic attribution. |
36| `compact_prompt` | `string` | Inline override for the history compaction prompt. |44| `compact_prompt` | `string` | Inline override for the history compaction prompt. |
45| `default_permissions` | `string` | Name of the default permissions profile to apply to sandboxed tool calls. Built-ins are `:read-only`, `:workspace`, and `:danger-no-sandbox`; custom profile names require matching `[permissions.<name>]` tables. |
37| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |46| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |
38| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |47| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |
39| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |48| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |
40| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. |
41| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |49| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |
42| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). |
43| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |50| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |
4451| `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` or inline `[hooks]` config. |
4552| `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). |
4653| `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). |
4754| `features.elevated_windows_sandbox` | `boolean` | Enable the elevated Windows sandbox pipeline (experimental). || `features.memories` | `boolean` | Enable [Memories](https://developers.openai.com/codex/memories) (off by default). |
4855| `features.experimental_windows_sandbox` | `boolean` | Run the Windows restricted-token sandbox (experimental). || `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.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). |
50| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |56| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |
5157| `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). |
5258| `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). |
53| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |
54| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |
55| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |
56| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |
57| `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). |
5860| `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). |
5961| `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). |
60| `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. |
61| `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"`. |
62| `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"`. |
67| `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. |
68| `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. |
69| `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. |
7073| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. || `hooks` | `table` | Lifecycle hooks configured inline in `config.toml`. Uses the same event schema as `hooks.json`; see the Hooks guide for examples and supported events. |
71| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |74| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |
72| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |75| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |
73| `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. |76| `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. |
82| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |85| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |
83| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |86| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |
84| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |87| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |
8588| `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. |
89| `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. |
86| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |90| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |
91| `mcp_servers.<id>.oauth_resource` | `string` | Optional RFC 8707 OAuth resource parameter to include during MCP login. |
87| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |92| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |
93| `mcp_servers.<id>.scopes` | `array<string>` | OAuth scopes to request when authenticating to that MCP server. |
88| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |94| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |
89| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |95| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |
90| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |96| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |
91| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |97| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |
9298| `model` | `string` | Model to use (e.g., `gpt-5-codex`). || `memories.consolidation_model` | `string` | Optional model override for global memory consolidation. |
99| `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`. |
100| `memories.extract_model` | `string` | Optional model override for per-thread memory extraction. |
101| `memories.generate_memories` | `boolean` | When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`. |
102| `memories.max_raw_memories_for_consolidation` | `number` | Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`. |
103| `memories.max_rollout_age_days` | `number` | Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`. |
104| `memories.max_rollouts_per_startup` | `number` | Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`. |
105| `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`. |
106| `memories.min_rate_limit_remaining_percent` | `number` | Minimum remaining percentage required in Codex rate-limit windows before memory generation starts. Defaults to `25` and is clamped to `0`-`100`. |
107| `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`. |
108| `memories.use_memories` | `boolean` | When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`. |
109| `model` | `string` | Model to use (e.g., `gpt-5.5`). |
93| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |110| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |
94| `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. |111| `model_catalog_json` | `string (path)` | Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile. |
95| `model_context_window` | `number` | Context window tokens available to the active model. |112| `model_context_window` | `number` | Context window tokens available to the active model. |
96| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |113| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |
97| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |114| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |
115| `model_providers.<id>` | `table` | Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden. |
116| `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`. |
117| `model_providers.<id>.auth.args` | `array<string>` | Arguments passed to the token command. |
118| `model_providers.<id>.auth.command` | `string` | Command to run when Codex needs a bearer token. The command must print the token to stdout. |
119| `model_providers.<id>.auth.cwd` | `string (path)` | Working directory for the token command. |
120| `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. |
121| `model_providers.<id>.auth.timeout_ms` | `number` | Maximum token command runtime in milliseconds (default: 5000). |
98| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. |122| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. |
99| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. |123| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. |
100| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. |124| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. |
107| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |131| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |
108| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |132| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |
109| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |133| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |
110134| `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. |
135| `model_providers.<id>.wire_api` | `responses` | Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted. |
136| `model_providers.amazon-bedrock.aws.profile` | `string` | AWS profile name used by the built-in `amazon-bedrock` provider. |
137| `model_providers.amazon-bedrock.aws.region` | `string` | AWS region used by the built-in `amazon-bedrock` provider. |
111| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |138| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |
112| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |139| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |
113| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |140| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |
114141| `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. |
115| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |142| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |
116| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |143| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |
117| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |144| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |
119| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |146| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |
120| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |147| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |
121| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |148| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |
149| `openai_base_url` | `string` | Base URL override for the built-in `openai` model provider. |
122| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |150| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |
123| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |151| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |
124| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |152| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |
129| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |157| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |
130| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |158| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |
131| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |159| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |
160| `otel.metrics_exporter` | `none | statsig | otlp-http | otlp-grpc` | Select the OpenTelemetry metrics exporter (defaults to `statsig`). |
132| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |161| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |
133| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |162| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |
134| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |163| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |
136| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |165| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |
137| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |166| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |
138| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |167| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |
168| `permissions.<name>.filesystem` | `table` | Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`. |
169| `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"`. |
170| `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. |
171| `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. |
172| `permissions.<name>.network.allow_local_binding` | `boolean` | Permit local bind/listen operations through the managed proxy. |
173| `permissions.<name>.network.allow_upstream_proxy` | `boolean` | Allow the managed proxy to chain to another upstream proxy. |
174| `permissions.<name>.network.dangerously_allow_all_unix_sockets` | `boolean` | Allow the proxy to use arbitrary Unix sockets instead of the default restricted set. |
175| `permissions.<name>.network.dangerously_allow_non_loopback_proxy` | `boolean` | Permit non-loopback bind addresses for the managed proxy listener. |
176| `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. |
177| `permissions.<name>.network.enable_socks5` | `boolean` | Expose a SOCKS5 listener when this permissions profile enables the managed network proxy. |
178| `permissions.<name>.network.enable_socks5_udp` | `boolean` | Allow UDP over the SOCKS5 listener when enabled. |
179| `permissions.<name>.network.enabled` | `boolean` | Enable network access for this named permissions profile. |
180| `permissions.<name>.network.mode` | `limited | full` | Network proxy mode used for subprocess traffic. |
181| `permissions.<name>.network.proxy_url` | `string` | HTTP proxy endpoint used when this permissions profile enables the managed network proxy. |
182| `permissions.<name>.network.socks_url` | `string` | SOCKS5 proxy endpoint used by this permissions profile. |
183| `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. |
139| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |184| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |
185| `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. |
140| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |186| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |
141| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |187| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |
142188| `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. |
143| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |189| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |
144| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |
145| `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). |190| `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). |
191| `profiles.<name>.model_instructions_file` | `string (path)` | Profile-scoped replacement for the built-in instruction file. |
146| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |192| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |
147| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |193| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |
194| `profiles.<name>.plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Profile-scoped Plan-mode reasoning override. |
195| `profiles.<name>.service_tier` | `flex | fast` | Profile-scoped service tier preference for new turns. |
196| `profiles.<name>.tools_view_image` | `boolean` | Enable or disable the `view_image` tool in that profile. |
148| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |197| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |
198| `profiles.<name>.windows.sandbox` | `unelevated | elevated` | Profile-scoped Windows sandbox mode override. |
149| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |199| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |
150| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |200| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |
151| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |201| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |
152202| `projects.<path>.trust_level` | `string` | Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers. || `projects.<path>.trust_level` | `string` | Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers, including project-local config, hooks, and rules. |
153| `review_model` | `string` | Optional model override used by `/review` (defaults to the current session model). |203| `review_model` | `string` | Optional model override used by `/review` (defaults to the current session model). |
154| `sandbox_mode` | `read-only | workspace-write | danger-full-access` | Sandbox policy for filesystem and network access during command execution. |204| `sandbox_mode` | `read-only | workspace-write | danger-full-access` | Sandbox policy for filesystem and network access during command execution. |
155| `sandbox_workspace_write.exclude_slash_tmp` | `boolean` | Exclude `/tmp` from writable roots in workspace-write mode. |205| `sandbox_workspace_write.exclude_slash_tmp` | `boolean` | Exclude `/tmp` from writable roots in workspace-write mode. |
156| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |206| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |
157| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |207| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |
158| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |208| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |
209| `service_tier` | `flex | fast` | Preferred service tier for new turns. |
159| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |210| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |
160| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |211| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |
161| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |212| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |
166| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |217| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |
167| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |218| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |
168| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |219| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |
220| `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. |221| `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. |222| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |
171223| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. || `tool_suggest.disabled_tools` | `array<table>` | Disable suggestions for specific discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`. |
224| `tool_suggest.discoverables` | `array<table>` | Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`. |
225| `tools.view_image` | `boolean` | Enable the local-image attachment tool `view_image`. |
226| `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. |227| `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). |228| `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). |229| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
175230| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). || `tui.keymap.<context>.<action>` | `string | array<string>` | Keyboard shortcut binding for a TUI action. Supported contexts include `global`, `chat`, `composer`, `editor`, `pager`, `list`, and `approval`; context-specific bindings override `tui.keymap.global`. |
231| `tui.keymap.<context>.<action> = []` | `empty array` | Unbind the action in that keymap context. Key names use normalized strings such as `ctrl-a`, `shift-enter`, or `page-down`. |
232| `tui.model_availability_nux.<model>` | `integer` | Internal startup-tooltip state keyed by model slug. |
233| `tui.notification_condition` | `unfocused | always` | Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`. |
234| `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. |235| `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). |236| `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. |237| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |
238| `tui.terminal_title` | `array<string> | null` | Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates. |
239| `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. |240| `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). |241| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |
242| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |
243| `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. |
181 244
182Key245Key
183 246
205 268
206Key269Key
207 270
271`agents.<name>.nickname_candidates`
272
273Type / Values
274
275`array<string>`
276
277Details
278
279Optional pool of display nicknames for spawned agents in that role.
280
281Key
282
283`agents.job_max_runtime_seconds`
284
285Type / Values
286
287`number`
288
289Details
290
291Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.
292
293Key
294
208`agents.max_depth`295`agents.max_depth`
209 296
210Type / Values297Type / Values
225 312
226Details313Details
227 314
228315Maximum number of agent threads that can be open concurrently.Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.
229 316
230Key317Key
231 318
241 328
242Key329Key
243 330
331`analytics.enabled`
332
333Type / Values
334
335`boolean`
336
337Details
338
339Enable or disable analytics for this machine/profile. When unset, the client default applies.
340
341Key
342
244`approval_policy`343`approval_policy`
245 344
246Type / Values345Type / Values
247 346
248347`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 } }`
348
349Details
350
351Controls 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.
352
353Key
354
355`approval_policy.granular.mcp_elicitations`
356
357Type / Values
358
359`boolean`
360
361Details
362
363When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.
364
365Key
366
367`approval_policy.granular.request_permissions`
368
369Type / Values
370
371`boolean`
249 372
250Details373Details
251 374
252375Controls 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.
253 376
254Key377Key
255 378
256379`approval_policy.reject.mcp_elicitations``approval_policy.granular.rules`
257 380
258Type / Values381Type / Values
259 382
261 384
262Details385Details
263 386
264387When `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.
265 388
266Key389Key
267 390
268391`approval_policy.reject.rules``approval_policy.granular.sandbox_approval`
269 392
270Type / Values393Type / Values
271 394
273 396
274Details397Details
275 398
276399When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected.When `true`, sandbox escalation approval prompts are allowed to surface.
277 400
278Key401Key
279 402
280403`approval_policy.reject.sandbox_approval``approval_policy.granular.skill_approval`
281 404
282Type / Values405Type / Values
283 406
285 408
286Details409Details
287 410
288411When `true`, sandbox escalation approval prompts are auto-rejected.When `true`, skill-script approval prompts are allowed to surface.
412
413Key
414
415`approvals_reviewer`
416
417Type / Values
418
419`user | auto_review`
420
421Details
422
423Who reviews eligible approval prompts under `on-request` or granular approval policies. Defaults to `user`; `auto_review` uses the reviewer subagent. This setting doesn't change sandboxing or review actions already allowed inside the sandbox.
289 424
290Key425Key
291 426
409 544
410Key545Key
411 546
547`auto_review.policy`
548
549Type / Values
550
551`string`
552
553Details
554
555Local Markdown policy instructions for automatic review. Managed `guardian_policy_config` takes precedence. Blank values are ignored.
556
557Key
558
412`background_terminal_max_timeout`559`background_terminal_max_timeout`
413 560
414Type / Values561Type / Values
457 604
458Key605Key
459 606
460607`compact_prompt``commit_attribution`
461 608
462Type / Values609Type / Values
463 610
465 612
466Details613Details
467 614
468615Inline override for the history compaction prompt.Override the commit co-author trailer text. Set an empty string to disable automatic attribution.
469 616
470Key617Key
471 618
472619`developer_instructions``compact_prompt`
473 620
474Type / Values621Type / Values
475 622
477 624
478Details625Details
479 626
480627Additional developer instructions injected into the session (optional).Inline override for the history compaction prompt.
481 628
482Key629Key
483 630
484631`disable_paste_burst``default_permissions`
485 632
486Type / Values633Type / Values
487 634
488635`boolean``string`
489 636
490Details637Details
491 638
492639Disable burst-paste detection in the TUI.Name of the default permissions profile to apply to sandboxed tool calls. Built-ins are `:read-only`, `:workspace`, and `:danger-no-sandbox`; custom profile names require matching `[permissions.<name>]` tables.
493 640
494Key641Key
495 642
496643`experimental_compact_prompt_file``developer_instructions`
497 644
498Type / Values645Type / Values
499 646
500647`string (path)``string`
501 648
502Details649Details
503 650
504651Load the compaction prompt override from a file (experimental).Additional developer instructions injected into the session (optional).
505 652
506Key653Key
507 654
508655`experimental_use_freeform_apply_patch``disable_paste_burst`
509 656
510Type / Values657Type / Values
511 658
513 660
514Details661Details
515 662
516663Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.Disable burst-paste detection in the TUI.
517 664
518Key665Key
519 666
520667`experimental_use_unified_exec_tool``experimental_compact_prompt_file`
521 668
522Type / Values669Type / Values
523 670
524671`boolean``string (path)`
525 672
526Details673Details
527 674
528675Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.Load the compaction prompt override from a file (experimental).
529 676
530Key677Key
531 678
532679`features.apply_patch_freeform``experimental_use_unified_exec_tool`
533 680
534Type / Values681Type / Values
535 682
537 684
538Details685Details
539 686
540687Expose the freeform `apply_patch` tool (experimental).Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
541 688
542Key689Key
543 690
553 700
554Key701Key
555 702
556703`features.apps_mcp_gateway``features.codex_hooks`
557
558Type / Values
559
560`boolean`
561
562Details
563
564Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).
565
566Key
567
568`features.child_agents_md`
569 704
570Type / Values705Type / Values
571 706
573 708
574Details709Details
575 710
576711Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config.
577 712
578Key713Key
579 714
580715`features.collaboration_modes``features.enable_request_compression`
581 716
582Type / Values717Type / Values
583 718
585 720
586Details721Details
587 722
588723Enable collaboration modes such as plan mode (stable; on by default).Compress streaming request bodies with zstd when supported (stable; on by default).
589 724
590Key725Key
591 726
592727`features.elevated_windows_sandbox``features.fast_mode`
593 728
594Type / Values729Type / Values
595 730
597 732
598Details733Details
599 734
600735Enable the elevated Windows sandbox pipeline (experimental).Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
601 736
602Key737Key
603 738
604739`features.experimental_windows_sandbox``features.memories`
605 740
606Type / Values741Type / Values
607 742
609 744
610Details745Details
611 746
612747Run the Windows restricted-token sandbox (experimental).Enable [Memories](https://developers.openai.com/codex/memories) (off by default).
613 748
614Key749Key
615 750
621 756
622Details757Details
623 758
624759Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).
625 760
626Key761Key
627 762
637 772
638Key773Key
639 774
640775`features.powershell_utf8``features.prevent_idle_sleep`
641
642Type / Values
643
644`boolean`
645
646Details
647
648Force PowerShell UTF-8 output (defaults to true).
649
650Key
651
652`features.remote_models`
653
654Type / Values
655
656`boolean`
657
658Details
659
660Refresh remote model list before showing readiness (experimental).
661
662Key
663
664`features.request_rule`
665 776
666Type / Values777Type / Values
667 778
669 780
670Details781Details
671 782
672783Enable 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).
673 784
674Key785Key
675 786
676787`features.runtime_metrics``features.shell_snapshot`
677 788
678Type / Values789Type / Values
679 790
681 792
682Details793Details
683 794
684795Show runtime metrics summary in TUI turn separators (experimental).Snapshot shell environment to speed up repeated commands (stable; on by default).
685 796
686Key797Key
687 798
688799`features.search_tool``features.shell_tool`
689 800
690Type / Values801Type / Values
691 802
693 804
694Details805Details
695 806
696807Enable `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).
697 808
698Key809Key
699 810
700811`features.shell_snapshot``features.skill_mcp_dependency_install`
701 812
702Type / Values813Type / Values
703 814
705 816
706Details817Details
707 818
708819Snapshot shell environment to speed up repeated commands (beta).Allow prompting and installing missing MCP dependencies for skills (stable; on by default).
709 820
710Key821Key
711 822
712823`features.shell_tool``features.undo`
713 824
714Type / Values825Type / Values
715 826
717 828
718Details829Details
719 830
720831Enable the default `shell` tool for running commands (stable; on by default).Enable undo support (stable; off by default).
721 832
722Key833Key
723 834
729 840
730Details841Details
731 842
732843Use the unified PTY-backed exec tool (beta).Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
733
734Key
735
736`features.use_linux_sandbox_bwrap`
737
738Type / Values
739
740`boolean`
741
742Details
743
744Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).
745 844
746Key845Key
747 846
865 964
866Key965Key
867 966
868967`include_apply_patch_tool``hooks`
869 968
870Type / Values969Type / Values
871 970
872971`boolean``table`
873 972
874Details973Details
875 974
876975Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Lifecycle hooks configured inline in `config.toml`. Uses the same event schema as `hooks.json`; see the Hooks guide for examples and supported events.
877 976
878Key977Key
879 978
1049 1148
1050Type / Values1149Type / Values
1051 1150
10521151`array<string>``array<string | { name = string, source = "local" | "remote" }>`
1053 1152
1054Details1153Details
1055 1154
10561155Additional environment variables to whitelist for an MCP stdio server.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.
1156
1157Key
1158
1159`mcp_servers.<id>.experimental_environment`
1160
1161Type / Values
1162
1163`local | remote`
1164
1165Details
1166
1167Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.
1057 1168
1058Key1169Key
1059 1170
1069 1180
1070Key1181Key
1071 1182
1183`mcp_servers.<id>.oauth_resource`
1184
1185Type / Values
1186
1187`string`
1188
1189Details
1190
1191Optional RFC 8707 OAuth resource parameter to include during MCP login.
1192
1193Key
1194
1072`mcp_servers.<id>.required`1195`mcp_servers.<id>.required`
1073 1196
1074Type / Values1197Type / Values
1081 1204
1082Key1205Key
1083 1206
1207`mcp_servers.<id>.scopes`
1208
1209Type / Values
1210
1211`array<string>`
1212
1213Details
1214
1215OAuth scopes to request when authenticating to that MCP server.
1216
1217Key
1218
1084`mcp_servers.<id>.startup_timeout_ms`1219`mcp_servers.<id>.startup_timeout_ms`
1085 1220
1086Type / Values1221Type / Values
1129 1264
1130Key1265Key
1131 1266
11321267`model``memories.consolidation_model`
1133 1268
1134Type / Values1269Type / Values
1135 1270
1137 1272
1138Details1273Details
1139 1274
11401275Model to use (e.g., `gpt-5-codex`).Optional model override for global memory consolidation.
1141 1276
1142Key1277Key
1143 1278
11441279`model_auto_compact_token_limit``memories.disable_on_external_context`
1145 1280
1146Type / Values1281Type / Values
1147 1282
11481283`number``boolean`
1149 1284
1150Details1285Details
1151 1286
11521287Token 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`.
1153 1288
1154Key1289Key
1155 1290
11561291`model_catalog_json``memories.extract_model`
1157 1292
1158Type / Values1293Type / Values
1159 1294
11601295`string (path)``string`
1161 1296
1162Details1297Details
1163 1298
11641299Optional 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.
1165 1300
1166Key1301Key
1167 1302
11681303`model_context_window``memories.generate_memories`
1169 1304
1170Type / Values1305Type / Values
1171 1306
11721307`number``boolean`
1173 1308
1174Details1309Details
1175 1310
11761311Context window tokens available to the active model.When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.
1177 1312
1178Key1313Key
1179 1314
11801315`model_instructions_file``memories.max_raw_memories_for_consolidation`
1181 1316
1182Type / Values1317Type / Values
1183 1318
11841319`string (path)``number`
1185 1320
1186Details1321Details
1187 1322
11881323Replacement for built-in instructions instead of `AGENTS.md`.Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.
1189 1324
1190Key1325Key
1191 1326
11921327`model_provider``memories.max_rollout_age_days`
1193 1328
1194Type / Values1329Type / Values
1195 1330
11961331`string``number`
1197 1332
1198Details1333Details
1199 1334
12001335Provider id from `model_providers` (default: `openai`).Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.
1201 1336
1202Key1337Key
1203 1338
12041339`model_providers.<id>.base_url``memories.max_rollouts_per_startup`
1205 1340
1206Type / Values1341Type / Values
1207 1342
12081343`string``number`
1209 1344
1210Details1345Details
1211 1346
12121347API base URL for the model provider.Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.
1213 1348
1214Key1349Key
1215 1350
12161351`model_providers.<id>.env_http_headers``memories.max_unused_days`
1217 1352
1218Type / Values1353Type / Values
1219 1354
12201355`map<string,string>``number`
1221 1356
1222Details1357Details
1223 1358
12241359HTTP 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`.
1225 1360
1226Key1361Key
1227 1362
12281363`model_providers.<id>.env_key``memories.min_rate_limit_remaining_percent`
1229 1364
1230Type / Values1365Type / Values
1231 1366
12321367`string``number`
1233 1368
1234Details1369Details
1235 1370
12361371Environment variable supplying the provider API key.Minimum remaining percentage required in Codex rate-limit windows before memory generation starts. Defaults to `25` and is clamped to `0`-`100`.
1237 1372
1238Key1373Key
1239 1374
12401375`model_providers.<id>.env_key_instructions``memories.min_rollout_idle_hours`
1241 1376
1242Type / Values1377Type / Values
1243 1378
12441379`string``number`
1245 1380
1246Details1381Details
1247 1382
12481383Optional setup guidance for the provider API key.Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.
1249 1384
1250Key1385Key
1251 1386
12521387`model_providers.<id>.experimental_bearer_token``memories.use_memories`
1253 1388
1254Type / Values1389Type / Values
1255 1390
12561391`string``boolean`
1257 1392
1258Details1393Details
1259 1394
12601395Direct bearer token for the provider (discouraged; use `env_key`).When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.
1261 1396
1262Key1397Key
1263 1398
12641399`model_providers.<id>.http_headers``model`
1265 1400
1266Type / Values1401Type / Values
1267 1402
12681403`map<string,string>``string`
1269 1404
1270Details1405Details
1271 1406
12721407Static HTTP headers added to provider requests.Model to use (e.g., `gpt-5.5`).
1273 1408
1274Key1409Key
1275 1410
12761411`model_providers.<id>.name``model_auto_compact_token_limit`
1277 1412
1278Type / Values1413Type / Values
1279 1414
12801415`string``number`
1281 1416
1282Details1417Details
1283 1418
12841419Display name for a custom model provider.Token threshold that triggers automatic history compaction (unset uses model defaults).
1285 1420
1286Key1421Key
1287 1422
12881423`model_providers.<id>.query_params``model_catalog_json`
1289 1424
1290Type / Values1425Type / Values
1291 1426
12921427`map<string,string>``string (path)`
1293 1428
1294Details1429Details
1295 1430
12961431Extra query parameters appended to provider requests.Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.
1297 1432
1298Key1433Key
1299 1434
13001435`model_providers.<id>.request_max_retries``model_context_window`
1301 1436
1302Type / Values1437Type / Values
1303 1438
1305 1440
1306Details1441Details
1307 1442
13081443Retry count for HTTP requests to the provider (default: 4).Context window tokens available to the active model.
1309 1444
1310Key1445Key
1311 1446
13121447`model_providers.<id>.requires_openai_auth``model_instructions_file`
1313 1448
1314Type / Values1449Type / Values
1315 1450
13161451`boolean``string (path)`
1317 1452
1318Details1453Details
1319 1454
13201455The provider uses OpenAI authentication (defaults to false).Replacement for built-in instructions instead of `AGENTS.md`.
1321 1456
1322Key1457Key
1323 1458
13241459`model_providers.<id>.stream_idle_timeout_ms``model_provider`
1325 1460
1326Type / Values1461Type / Values
1327 1462
13281463`number``string`
1329 1464
1330Details1465Details
1331 1466
13321467Idle timeout for SSE streams in milliseconds (default: 300000).Provider id from `model_providers` (default: `openai`).
1333 1468
1334Key1469Key
1335 1470
13361471`model_providers.<id>.stream_max_retries``model_providers.<id>`
1337 1472
1338Type / Values1473Type / Values
1339 1474
13401475`number``table`
1341 1476
1342Details1477Details
1343 1478
13441479Retry count for SSE streaming interruptions (default: 5).Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.
1345 1480
1346Key1481Key
1347 1482
13481483`model_providers.<id>.wire_api``model_providers.<id>.auth`
1349 1484
1350Type / Values1485Type / Values
1351 1486
13521487`chat | responses``table`
1353 1488
1354Details1489Details
1355 1490
13561491Protocol used by the provider (defaults to `chat` if omitted).Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.
1357 1492
1358Key1493Key
1359 1494
13601495`model_reasoning_effort``model_providers.<id>.auth.args`
1361 1496
1362Type / Values1497Type / Values
1363 1498
13641499`minimal | low | medium | high | xhigh``array<string>`
1365 1500
1366Details1501Details
1367 1502
13681503Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).Arguments passed to the token command.
1369 1504
1370Key1505Key
1371 1506
13721507`model_reasoning_summary``model_providers.<id>.auth.command`
1373 1508
1374Type / Values1509Type / Values
1375 1510
13761511`auto | concise | detailed | none``string`
1377 1512
1378Details1513Details
1379 1514
13801515Select reasoning summary detail or disable summaries entirely.Command to run when Codex needs a bearer token. The command must print the token to stdout.
1381 1516
1382Key1517Key
1383 1518
13841519`model_supports_reasoning_summaries``model_providers.<id>.auth.cwd`
1385 1520
1386Type / Values1521Type / Values
1387 1522
13881523`boolean``string (path)`
1389 1524
1390Details1525Details
1391 1526
13921527Force Codex to send or not send reasoning metadata.Working directory for the token command.
1393 1528
1394Key1529Key
1395 1530
13961531`model_verbosity``model_providers.<id>.auth.refresh_interval_ms`
1397 1532
1398Type / Values1533Type / Values
1399 1534
14001535`low | medium | high``number`
1401 1536
1402Details1537Details
1403 1538
14041539Control GPT-5 Responses API verbosity (defaults to `medium`).How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.
1405 1540
1406Key1541Key
1407 1542
14081543`notice.hide_full_access_warning``model_providers.<id>.auth.timeout_ms`
1409 1544
1410Type / Values1545Type / Values
1411 1546
14121547`boolean``number`
1413 1548
1414Details1549Details
1415 1550
14161551Track acknowledgement of the full access warning prompt.Maximum token command runtime in milliseconds (default: 5000).
1417 1552
1418Key1553Key
1419 1554
14201555`notice.hide_gpt-5.1-codex-max_migration_prompt``model_providers.<id>.base_url`
1421 1556
1422Type / Values1557Type / Values
1423 1558
14241559`boolean``string`
1425 1560
1426Details1561Details
1427 1562
14281563Track acknowledgement of the gpt-5.1-codex-max migration prompt.API base URL for the model provider.
1429 1564
1430Key1565Key
1431 1566
14321567`notice.hide_gpt5_1_migration_prompt``model_providers.<id>.env_http_headers`
1433 1568
1434Type / Values1569Type / Values
1435 1570
14361571`boolean``map<string,string>`
1437 1572
1438Details1573Details
1439 1574
14401575Track acknowledgement of the GPT-5.1 migration prompt.HTTP headers populated from environment variables when present.
1441 1576
1442Key1577Key
1443 1578
14441579`notice.hide_rate_limit_model_nudge``model_providers.<id>.env_key`
1445 1580
1446Type / Values1581Type / Values
1447 1582
14481583`boolean``string`
1449 1584
1450Details1585Details
1451 1586
14521587Track opt-out of the rate limit model switch reminder.Environment variable supplying the provider API key.
1453 1588
1454Key1589Key
1455 1590
14561591`notice.hide_world_writable_warning``model_providers.<id>.env_key_instructions`
1457 1592
1458Type / Values1593Type / Values
1459 1594
14601595`boolean``string`
1461 1596
1462Details1597Details
1463 1598
14641599Track acknowledgement of the Windows world-writable directories warning.Optional setup guidance for the provider API key.
1465 1600
1466Key1601Key
1467 1602
14681603`notice.model_migrations``model_providers.<id>.experimental_bearer_token`
1469 1604
1470Type / Values1605Type / Values
1471 1606
14721607`map<string,string>``string`
1473 1608
1474Details1609Details
1475 1610
14761611Track acknowledged model migrations as old->new mappings.Direct bearer token for the provider (discouraged; use `env_key`).
1477 1612
1478Key1613Key
1479 1614
14801615`notify``model_providers.<id>.http_headers`
1481 1616
1482Type / Values1617Type / Values
1483 1618
14841619`array<string>``map<string,string>`
1485 1620
1486Details1621Details
1487 1622
14881623Command invoked for notifications; receives a JSON payload from Codex.Static HTTP headers added to provider requests.
1489 1624
1490Key1625Key
1491 1626
14921627`oss_provider``model_providers.<id>.name`
1493 1628
1494Type / Values1629Type / Values
1495 1630
14961631`lmstudio | ollama``string`
1497 1632
1498Details1633Details
1499 1634
15001635Default local provider used when running with `--oss` (defaults to prompting if unset).Display name for a custom model provider.
1501 1636
1502Key1637Key
1503 1638
15041639`otel.environment``model_providers.<id>.query_params`
1505 1640
1506Type / Values1641Type / Values
1507 1642
15081643`string``map<string,string>`
1509 1644
1510Details1645Details
1511 1646
15121647Environment tag applied to emitted OpenTelemetry events (default: `dev`).Extra query parameters appended to provider requests.
1513 1648
1514Key1649Key
1515 1650
15161651`otel.exporter``model_providers.<id>.request_max_retries`
1517 1652
1518Type / Values1653Type / Values
1519 1654
15201655`none | otlp-http | otlp-grpc``number`
1521 1656
1522Details1657Details
1523 1658
15241659Select the OpenTelemetry exporter and provide any endpoint metadata.Retry count for HTTP requests to the provider (default: 4).
1525 1660
1526Key1661Key
1527 1662
15281663`otel.exporter.<id>.endpoint``model_providers.<id>.requires_openai_auth`
1529 1664
1530Type / Values1665Type / Values
1531 1666
15321667`string``boolean`
1533 1668
1534Details1669Details
1535 1670
15361671Exporter endpoint for OTEL logs.The provider uses OpenAI authentication (defaults to false).
1537 1672
1538Key1673Key
1539 1674
15401675`otel.exporter.<id>.headers``model_providers.<id>.stream_idle_timeout_ms`
1541 1676
1542Type / Values1677Type / Values
1543 1678
15441679`map<string,string>``number`
1545 1680
1546Details1681Details
1547 1682
15481683Static headers included with OTEL exporter requests.Idle timeout for SSE streams in milliseconds (default: 300000).
1549 1684
1550Key1685Key
1551 1686
15521687`otel.exporter.<id>.protocol``model_providers.<id>.stream_max_retries`
1553 1688
1554Type / Values1689Type / Values
1555 1690
15561691`binary | json``number`
1557 1692
1558Details1693Details
1559 1694
15601695Protocol used by the OTLP/HTTP exporter.Retry count for SSE streaming interruptions (default: 5).
1561 1696
1562Key1697Key
1563 1698
15641699`otel.exporter.<id>.tls.ca-certificate``model_providers.<id>.supports_websockets`
1565 1700
1566Type / Values1701Type / Values
1567 1702
15681703`string``boolean`
1569 1704
1570Details1705Details
1571 1706
15721707CA certificate path for OTEL exporter TLS.Whether that provider supports the Responses API WebSocket transport.
1573 1708
1574Key1709Key
1575 1710
15761711`otel.exporter.<id>.tls.client-certificate``model_providers.<id>.wire_api`
1577 1712
1578Type / Values1713Type / Values
1579 1714
15801715`string``responses`
1581 1716
1582Details1717Details
1583 1718
15841719Client certificate path for OTEL exporter TLS.Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1585 1720
1586Key1721Key
1587 1722
15881723`otel.exporter.<id>.tls.client-private-key``model_providers.amazon-bedrock.aws.profile`
1589 1724
1590Type / Values1725Type / Values
1591 1726
1593 1728
1594Details1729Details
1595 1730
15961731Client private key path for OTEL exporter TLS.AWS profile name used by the built-in `amazon-bedrock` provider.
1597 1732
1598Key1733Key
1599 1734
16001735`otel.log_user_prompt``model_providers.amazon-bedrock.aws.region`
1601 1736
1602Type / Values1737Type / Values
1603 1738
16041739`boolean``string`
1605 1740
1606Details1741Details
1607 1742
16081743Opt in to exporting raw user prompts with OpenTelemetry logs.AWS region used by the built-in `amazon-bedrock` provider.
1609 1744
1610Key1745Key
1611 1746
16121747`otel.trace_exporter``model_reasoning_effort`
1613 1748
1614Type / Values1749Type / Values
1615 1750
16161751`none | otlp-http | otlp-grpc``minimal | low | medium | high | xhigh`
1617 1752
1618Details1753Details
1619 1754
16201755Select the OpenTelemetry trace exporter and provide any endpoint metadata.Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).
1621 1756
1622Key1757Key
1623 1758
16241759`otel.trace_exporter.<id>.endpoint``model_reasoning_summary`
1625 1760
1626Type / Values1761Type / Values
1627 1762
16281763`string``auto | concise | detailed | none`
1629 1764
1630Details1765Details
1631 1766
16321767Trace exporter endpoint for OTEL logs.Select reasoning summary detail or disable summaries entirely.
1633 1768
1634Key1769Key
1635 1770
16361771`otel.trace_exporter.<id>.headers``model_supports_reasoning_summaries`
1637 1772
1638Type / Values1773Type / Values
1639 1774
16401775`map<string,string>``boolean`
1641 1776
1642Details1777Details
1643 1778
16441779Static headers included with OTEL trace exporter requests.Force Codex to send or not send reasoning metadata.
1645 1780
1646Key1781Key
1647 1782
16481783`otel.trace_exporter.<id>.protocol``model_verbosity`
1649 1784
1650Type / Values1785Type / Values
1651 1786
16521787`binary | json``low | medium | high`
1653 1788
1654Details1789Details
1655 1790
16561791Protocol used by the OTLP/HTTP trace exporter.Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1657 1792
1658Key1793Key
1659 1794
16601795`otel.trace_exporter.<id>.tls.ca-certificate``notice.hide_full_access_warning`
1661 1796
1662Type / Values1797Type / Values
1663 1798
16641799`string``boolean`
1665 1800
1666Details1801Details
1667 1802
16681803CA certificate path for OTEL trace exporter TLS.Track acknowledgement of the full access warning prompt.
1669 1804
1670Key1805Key
1671 1806
16721807`otel.trace_exporter.<id>.tls.client-certificate``notice.hide_gpt-5.1-codex-max_migration_prompt`
1673 1808
1674Type / Values1809Type / Values
1675 1810
16761811`string``boolean`
1677 1812
1678Details1813Details
1679 1814
16801815Client certificate path for OTEL trace exporter TLS.Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1681 1816
1682Key1817Key
1683 1818
16841819`otel.trace_exporter.<id>.tls.client-private-key``notice.hide_gpt5_1_migration_prompt`
1685 1820
1686Type / Values1821Type / Values
1687 1822
16881823`string``boolean`
1689 1824
1690Details1825Details
1691 1826
16921827Client private key path for OTEL trace exporter TLS.Track acknowledgement of the GPT-5.1 migration prompt.
1693 1828
1694Key1829Key
1695 1830
16961831`personality``notice.hide_rate_limit_model_nudge`
1697 1832
1698Type / Values1833Type / Values
1699 1834
17001835`none | friendly | pragmatic``boolean`
1701 1836
1702Details1837Details
1703 1838
17041839Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.Track opt-out of the rate limit model switch reminder.
1705 1840
1706Key1841Key
1707 1842
17081843`profile``notice.hide_world_writable_warning`
1709 1844
1710Type / Values1845Type / Values
1711 1846
17121847`string``boolean`
1713 1848
1714Details1849Details
1715 1850
17161851Default profile applied at startup (equivalent to `--profile`).Track acknowledgement of the Windows world-writable directories warning.
1717 1852
1718Key1853Key
1719 1854
17201855`profiles.<name>.*``notice.model_migrations`
1721 1856
1722Type / Values1857Type / Values
1723 1858
17241859`various``map<string,string>`
1725 1860
1726Details1861Details
1727 1862
17281863Profile-scoped overrides for any of the supported configuration keys.Track acknowledged model migrations as old->new mappings.
1729 1864
1730Key1865Key
1731 1866
17321867`profiles.<name>.experimental_use_freeform_apply_patch``notify`
1733 1868
1734Type / Values1869Type / Values
1735 1870
17361871`boolean``array<string>`
1737 1872
1738Details1873Details
1739 1874
17401875Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Command invoked for notifications; receives a JSON payload from Codex.
1741 1876
1742Key1877Key
1743 1878
17441879`profiles.<name>.experimental_use_unified_exec_tool``openai_base_url`
1745 1880
1746Type / Values1881Type / Values
1747 1882
17481883`boolean``string`
1749 1884
1750Details1885Details
1751 1886
17521887Legacy name for enabling unified exec; prefer `[features].unified_exec`.Base URL override for the built-in `openai` model provider.
1753 1888
1754Key1889Key
1755 1890
17561891`profiles.<name>.include_apply_patch_tool``oss_provider`
1757 1892
1758Type / Values1893Type / Values
1759 1894
17601895`boolean``lmstudio | ollama`
1761 1896
1762Details1897Details
1763 1898
17641899Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Default local provider used when running with `--oss` (defaults to prompting if unset).
1765 1900
1766Key1901Key
1767 1902
17681903`profiles.<name>.model_catalog_json``otel.environment`
1769 1904
1770Type / Values1905Type / Values
1771 1906
17721907`string (path)``string`
1773 1908
1774Details1909Details
1775 1910
17761911Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1777 1912
1778Key1913Key
1779 1914
17801915`profiles.<name>.oss_provider``otel.exporter`
1781 1916
1782Type / Values1917Type / Values
1783 1918
17841919`lmstudio | ollama``none | otlp-http | otlp-grpc`
1785 1920
1786Details1921Details
1787 1922
17881923Profile-scoped OSS provider for `--oss` sessions.Select the OpenTelemetry exporter and provide any endpoint metadata.
1789 1924
1790Key1925Key
1791 1926
17921927`profiles.<name>.personality``otel.exporter.<id>.endpoint`
1793 1928
1794Type / Values1929Type / Values
1795 1930
17961931`none | friendly | pragmatic``string`
1797 1932
1798Details1933Details
1799 1934
18001935Profile-scoped communication style override for supported models.Exporter endpoint for OTEL logs.
1801 1936
1802Key1937Key
1803 1938
18041939`profiles.<name>.web_search``otel.exporter.<id>.headers`
1805 1940
1806Type / Values1941Type / Values
1807 1942
18081943`disabled | cached | live``map<string,string>`
1809 1944
1810Details1945Details
1811 1946
18121947Profile-scoped web search mode override (default: `"cached"`).Static headers included with OTEL exporter requests.
1813 1948
1814Key1949Key
1815 1950
18161951`project_doc_fallback_filenames``otel.exporter.<id>.protocol`
1817 1952
1818Type / Values1953Type / Values
1819 1954
18201955`array<string>``binary | json`
1821 1956
1822Details1957Details
1823 1958
18241959Additional filenames to try when `AGENTS.md` is missing.Protocol used by the OTLP/HTTP exporter.
1825 1960
1826Key1961Key
1827 1962
18281963`project_doc_max_bytes``otel.exporter.<id>.tls.ca-certificate`
1829 1964
1830Type / Values1965Type / Values
1831 1966
18321967`number``string`
1833 1968
1834Details1969Details
1835 1970
18361971Maximum bytes read from `AGENTS.md` when building project instructions.CA certificate path for OTEL exporter TLS.
1837 1972
1838Key1973Key
1839 1974
18401975`project_root_markers``otel.exporter.<id>.tls.client-certificate`
1841 1976
1842Type / Values1977Type / Values
1843 1978
18441979`array<string>``string`
1845 1980
1846Details1981Details
1847 1982
18481983List of project root marker filenames; used when searching parent directories for the project root.Client certificate path for OTEL exporter TLS.
1849 1984
1850Key1985Key
1851 1986
18521987`projects.<path>.trust_level``otel.exporter.<id>.tls.client-private-key`
1853 1988
1854Type / Values1989Type / Values
1855 1990
1857 1992
1858Details1993Details
1859 1994
18601995Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers.Client private key path for OTEL exporter TLS.
1861 1996
1862Key1997Key
1863 1998
18641999`review_model``otel.log_user_prompt`
1865 2000
1866Type / Values2001Type / Values
1867 2002
18682003`string``boolean`
1869 2004
1870Details2005Details
1871 2006
18722007Optional model override used by `/review` (defaults to the current session model).Opt in to exporting raw user prompts with OpenTelemetry logs.
1873 2008
1874Key2009Key
1875 2010
18762011`sandbox_mode``otel.metrics_exporter`
1877 2012
1878Type / Values2013Type / Values
1879 2014
18802015`read-only | workspace-write | danger-full-access``none | statsig | otlp-http | otlp-grpc`
1881 2016
1882Details2017Details
1883 2018
18842019Sandbox policy for filesystem and network access during command execution.Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1885 2020
1886Key2021Key
1887 2022
18882023`sandbox_workspace_write.exclude_slash_tmp``otel.trace_exporter`
1889 2024
1890Type / Values2025Type / Values
1891 2026
18922027`boolean``none | otlp-http | otlp-grpc`
1893 2028
1894Details2029Details
1895 2030
18962031Exclude `/tmp` from writable roots in workspace-write mode.Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1897 2032
1898Key2033Key
1899 2034
19002035`sandbox_workspace_write.exclude_tmpdir_env_var``otel.trace_exporter.<id>.endpoint`
1901 2036
1902Type / Values2037Type / Values
1903 2038
19042039`boolean``string`
1905 2040
1906Details2041Details
1907 2042
19082043Exclude `$TMPDIR` from writable roots in workspace-write mode.Trace exporter endpoint for OTEL logs.
1909 2044
1910Key2045Key
1911 2046
19122047`sandbox_workspace_write.network_access``otel.trace_exporter.<id>.headers`
1913 2048
1914Type / Values2049Type / Values
1915 2050
19162051`boolean``map<string,string>`
1917 2052
1918Details2053Details
1919 2054
19202055Allow outbound network access inside the workspace-write sandbox.Static headers included with OTEL trace exporter requests.
1921 2056
1922Key2057Key
1923 2058
19242059`sandbox_workspace_write.writable_roots``otel.trace_exporter.<id>.protocol`
1925 2060
1926Type / Values2061Type / Values
1927 2062
19282063`array<string>``binary | json`
1929 2064
1930Details2065Details
1931 2066
19322067Additional writable roots when `sandbox_mode = "workspace-write"`.Protocol used by the OTLP/HTTP trace exporter.
1933 2068
1934Key2069Key
1935 2070
19362071`shell_environment_policy.exclude``otel.trace_exporter.<id>.tls.ca-certificate`
1937 2072
1938Type / Values2073Type / Values
1939 2074
19402075`array<string>``string`
1941 2076
1942Details2077Details
1943 2078
19442079Glob patterns for removing environment variables after the defaults.CA certificate path for OTEL trace exporter TLS.
2080
2081Key
2082
2083`otel.trace_exporter.<id>.tls.client-certificate`
2084
2085Type / Values
2086
2087`string`
2088
2089Details
2090
2091Client certificate path for OTEL trace exporter TLS.
2092
2093Key
2094
2095`otel.trace_exporter.<id>.tls.client-private-key`
2096
2097Type / Values
2098
2099`string`
2100
2101Details
2102
2103Client private key path for OTEL trace exporter TLS.
2104
2105Key
2106
2107`permissions.<name>.filesystem`
2108
2109Type / Values
2110
2111`table`
2112
2113Details
2114
2115Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.
2116
2117Key
2118
2119`permissions.<name>.filesystem.":project_roots".<subpath-or-glob>`
2120
2121Type / Values
2122
2123`"read" | "write" | "none"`
2124
2125Details
2126
2127Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.
2128
2129Key
2130
2131`permissions.<name>.filesystem.<path-or-glob>`
2132
2133Type / Values
2134
2135`"read" | "write" | "none" | table`
2136
2137Details
2138
2139Grant 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.
2140
2141Key
2142
2143`permissions.<name>.filesystem.glob_scan_max_depth`
2144
2145Type / Values
2146
2147`number`
2148
2149Details
2150
2151Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.
2152
2153Key
2154
2155`permissions.<name>.network.allow_local_binding`
2156
2157Type / Values
2158
2159`boolean`
2160
2161Details
2162
2163Permit local bind/listen operations through the managed proxy.
2164
2165Key
2166
2167`permissions.<name>.network.allow_upstream_proxy`
2168
2169Type / Values
2170
2171`boolean`
2172
2173Details
2174
2175Allow the managed proxy to chain to another upstream proxy.
2176
2177Key
2178
2179`permissions.<name>.network.dangerously_allow_all_unix_sockets`
2180
2181Type / Values
2182
2183`boolean`
2184
2185Details
2186
2187Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
2188
2189Key
2190
2191`permissions.<name>.network.dangerously_allow_non_loopback_proxy`
2192
2193Type / Values
2194
2195`boolean`
2196
2197Details
2198
2199Permit non-loopback bind addresses for the managed proxy listener.
2200
2201Key
2202
2203`permissions.<name>.network.domains`
2204
2205Type / Values
2206
2207`map<string, allow | deny>`
2208
2209Details
2210
2211Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.
2212
2213Key
2214
2215`permissions.<name>.network.enable_socks5`
2216
2217Type / Values
2218
2219`boolean`
2220
2221Details
2222
2223Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.
2224
2225Key
2226
2227`permissions.<name>.network.enable_socks5_udp`
2228
2229Type / Values
2230
2231`boolean`
2232
2233Details
2234
2235Allow UDP over the SOCKS5 listener when enabled.
2236
2237Key
2238
2239`permissions.<name>.network.enabled`
2240
2241Type / Values
2242
2243`boolean`
2244
2245Details
2246
2247Enable network access for this named permissions profile.
2248
2249Key
2250
2251`permissions.<name>.network.mode`
2252
2253Type / Values
2254
2255`limited | full`
2256
2257Details
2258
2259Network proxy mode used for subprocess traffic.
2260
2261Key
2262
2263`permissions.<name>.network.proxy_url`
2264
2265Type / Values
2266
2267`string`
2268
2269Details
2270
2271HTTP proxy endpoint used when this permissions profile enables the managed network proxy.
2272
2273Key
2274
2275`permissions.<name>.network.socks_url`
2276
2277Type / Values
2278
2279`string`
2280
2281Details
2282
2283SOCKS5 proxy endpoint used by this permissions profile.
2284
2285Key
2286
2287`permissions.<name>.network.unix_sockets`
2288
2289Type / Values
2290
2291`map<string, allow | none>`
2292
2293Details
2294
2295Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.
2296
2297Key
2298
2299`personality`
2300
2301Type / Values
2302
2303`none | friendly | pragmatic`
2304
2305Details
2306
2307Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
2308
2309Key
2310
2311`plan_mode_reasoning_effort`
2312
2313Type / Values
2314
2315`none | minimal | low | medium | high | xhigh`
2316
2317Details
2318
2319Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
2320
2321Key
2322
2323`profile`
2324
2325Type / Values
2326
2327`string`
2328
2329Details
2330
2331Default profile applied at startup (equivalent to `--profile`).
2332
2333Key
2334
2335`profiles.<name>.*`
2336
2337Type / Values
2338
2339`various`
2340
2341Details
2342
2343Profile-scoped overrides for any of the supported configuration keys.
2344
2345Key
2346
2347`profiles.<name>.analytics.enabled`
2348
2349Type / Values
2350
2351`boolean`
2352
2353Details
2354
2355Profile-scoped analytics enablement override.
2356
2357Key
2358
2359`profiles.<name>.experimental_use_unified_exec_tool`
2360
2361Type / Values
2362
2363`boolean`
2364
2365Details
2366
2367Legacy name for enabling unified exec; prefer `[features].unified_exec`.
2368
2369Key
2370
2371`profiles.<name>.model_catalog_json`
2372
2373Type / Values
2374
2375`string (path)`
2376
2377Details
2378
2379Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).
2380
2381Key
2382
2383`profiles.<name>.model_instructions_file`
2384
2385Type / Values
2386
2387`string (path)`
2388
2389Details
2390
2391Profile-scoped replacement for the built-in instruction file.
2392
2393Key
2394
2395`profiles.<name>.oss_provider`
2396
2397Type / Values
2398
2399`lmstudio | ollama`
2400
2401Details
2402
2403Profile-scoped OSS provider for `--oss` sessions.
2404
2405Key
2406
2407`profiles.<name>.personality`
2408
2409Type / Values
2410
2411`none | friendly | pragmatic`
2412
2413Details
2414
2415Profile-scoped communication style override for supported models.
2416
2417Key
2418
2419`profiles.<name>.plan_mode_reasoning_effort`
2420
2421Type / Values
2422
2423`none | minimal | low | medium | high | xhigh`
2424
2425Details
2426
2427Profile-scoped Plan-mode reasoning override.
2428
2429Key
2430
2431`profiles.<name>.service_tier`
2432
2433Type / Values
2434
2435`flex | fast`
2436
2437Details
2438
2439Profile-scoped service tier preference for new turns.
2440
2441Key
2442
2443`profiles.<name>.tools_view_image`
2444
2445Type / Values
2446
2447`boolean`
2448
2449Details
2450
2451Enable or disable the `view_image` tool in that profile.
2452
2453Key
2454
2455`profiles.<name>.web_search`
2456
2457Type / Values
2458
2459`disabled | cached | live`
2460
2461Details
2462
2463Profile-scoped web search mode override (default: `"cached"`).
2464
2465Key
2466
2467`profiles.<name>.windows.sandbox`
2468
2469Type / Values
2470
2471`unelevated | elevated`
2472
2473Details
2474
2475Profile-scoped Windows sandbox mode override.
2476
2477Key
2478
2479`project_doc_fallback_filenames`
2480
2481Type / Values
2482
2483`array<string>`
2484
2485Details
2486
2487Additional filenames to try when `AGENTS.md` is missing.
2488
2489Key
2490
2491`project_doc_max_bytes`
2492
2493Type / Values
2494
2495`number`
2496
2497Details
2498
2499Maximum bytes read from `AGENTS.md` when building project instructions.
2500
2501Key
2502
2503`project_root_markers`
2504
2505Type / Values
2506
2507`array<string>`
2508
2509Details
2510
2511List of project root marker filenames; used when searching parent directories for the project root.
2512
2513Key
2514
2515`projects.<path>.trust_level`
2516
2517Type / Values
2518
2519`string`
2520
2521Details
2522
2523Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers, including project-local config, hooks, and rules.
2524
2525Key
2526
2527`review_model`
2528
2529Type / Values
2530
2531`string`
2532
2533Details
2534
2535Optional model override used by `/review` (defaults to the current session model).
2536
2537Key
2538
2539`sandbox_mode`
2540
2541Type / Values
2542
2543`read-only | workspace-write | danger-full-access`
2544
2545Details
2546
2547Sandbox policy for filesystem and network access during command execution.
2548
2549Key
2550
2551`sandbox_workspace_write.exclude_slash_tmp`
2552
2553Type / Values
2554
2555`boolean`
2556
2557Details
2558
2559Exclude `/tmp` from writable roots in workspace-write mode.
2560
2561Key
2562
2563`sandbox_workspace_write.exclude_tmpdir_env_var`
2564
2565Type / Values
2566
2567`boolean`
2568
2569Details
2570
2571Exclude `$TMPDIR` from writable roots in workspace-write mode.
2572
2573Key
2574
2575`sandbox_workspace_write.network_access`
2576
2577Type / Values
2578
2579`boolean`
2580
2581Details
2582
2583Allow outbound network access inside the workspace-write sandbox.
2584
2585Key
2586
2587`sandbox_workspace_write.writable_roots`
2588
2589Type / Values
2590
2591`array<string>`
2592
2593Details
2594
2595Additional writable roots when `sandbox_mode = "workspace-write"`.
2596
2597Key
2598
2599`service_tier`
2600
2601Type / Values
2602
2603`flex | fast`
2604
2605Details
2606
2607Preferred service tier for new turns.
2608
2609Key
2610
2611`shell_environment_policy.exclude`
2612
2613Type / Values
2614
2615`array<string>`
2616
2617Details
2618
2619Glob patterns for removing environment variables after the defaults.
2620
2621Key
2622
2623`shell_environment_policy.experimental_use_profile`
2624
2625Type / Values
2626
2627`boolean`
2628
2629Details
2630
2631Use the user shell profile when spawning subprocesses.
2632
2633Key
2634
2635`shell_environment_policy.ignore_default_excludes`
2636
2637Type / Values
2638
2639`boolean`
2640
2641Details
2642
2643Keep variables containing KEY/SECRET/TOKEN before other filters run.
2644
2645Key
2646
2647`shell_environment_policy.include_only`
2648
2649Type / Values
2650
2651`array<string>`
2652
2653Details
2654
2655Whitelist of patterns; when set only matching variables are kept.
2656
2657Key
2658
2659`shell_environment_policy.inherit`
2660
2661Type / Values
2662
2663`all | core | none`
2664
2665Details
2666
2667Baseline environment inheritance when spawning subprocesses.
2668
2669Key
2670
2671`shell_environment_policy.set`
2672
2673Type / Values
2674
2675`map<string,string>`
2676
2677Details
2678
2679Explicit environment overrides injected into every subprocess.
2680
2681Key
2682
2683`show_raw_agent_reasoning`
2684
2685Type / Values
2686
2687`boolean`
2688
2689Details
2690
2691Surface raw reasoning content when the active model emits it.
2692
2693Key
2694
2695`skills.config`
2696
2697Type / Values
2698
2699`array<object>`
2700
2701Details
2702
2703Per-skill enablement overrides stored in config.toml.
2704
2705Key
2706
2707`skills.config.<index>.enabled`
2708
2709Type / Values
2710
2711`boolean`
2712
2713Details
2714
2715Enable or disable the referenced skill.
2716
2717Key
2718
2719`skills.config.<index>.path`
2720
2721Type / Values
2722
2723`string (path)`
2724
2725Details
2726
2727Path to a skill folder containing `SKILL.md`.
2728
2729Key
2730
2731`sqlite_home`
2732
2733Type / Values
2734
2735`string (path)`
2736
2737Details
2738
2739Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.
2740
2741Key
2742
2743`suppress_unstable_features_warning`
2744
2745Type / Values
2746
2747`boolean`
2748
2749Details
2750
2751Suppress the warning that appears when under-development feature flags are enabled.
2752
2753Key
2754
2755`tool_output_token_limit`
2756
2757Type / Values
2758
2759`number`
2760
2761Details
2762
2763Token budget for storing individual tool/function outputs in history.
1945 2764
1946Key2765Key
1947 2766
19482767`shell_environment_policy.experimental_use_profile``tool_suggest.disabled_tools`
1949 2768
1950Type / Values2769Type / Values
1951 2770
19522771`boolean``array<table>`
1953 2772
1954Details2773Details
1955 2774
19562775Use the user shell profile when spawning subprocesses.Disable suggestions for specific discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.
1957 2776
1958Key2777Key
1959 2778
19602779`shell_environment_policy.ignore_default_excludes``tool_suggest.discoverables`
1961 2780
1962Type / Values2781Type / Values
1963 2782
19642783`boolean``array<table>`
1965 2784
1966Details2785Details
1967 2786
19682787Keep variables containing KEY/SECRET/TOKEN before other filters run.Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.
1969 2788
1970Key2789Key
1971 2790
19722791`shell_environment_policy.include_only``tools.view_image`
1973 2792
1974Type / Values2793Type / Values
1975 2794
19762795`array<string>``boolean`
1977 2796
1978Details2797Details
1979 2798
19802799Whitelist of patterns; when set only matching variables are kept.Enable the local-image attachment tool `view_image`.
1981 2800
1982Key2801Key
1983 2802
19842803`shell_environment_policy.inherit``tools.web_search`
1985 2804
1986Type / Values2805Type / Values
1987 2806
19882807`all | core | none``boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }`
1989 2808
1990Details2809Details
1991 2810
19922811Baseline environment inheritance when spawning subprocesses.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.
1993 2812
1994Key2813Key
1995 2814
19962815`shell_environment_policy.set``tui`
1997 2816
1998Type / Values2817Type / Values
1999 2818
20002819`map<string,string>``table`
2001 2820
2002Details2821Details
2003 2822
20042823Explicit environment overrides injected into every subprocess.TUI-specific options such as enabling inline desktop notifications.
2005 2824
2006Key2825Key
2007 2826
20082827`show_raw_agent_reasoning``tui.alternate_screen`
2009 2828
2010Type / Values2829Type / Values
2011 2830
20122831`boolean``auto | always | never`
2013 2832
2014Details2833Details
2015 2834
20162835Surface raw reasoning content when the active model emits it.Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).
2017 2836
2018Key2837Key
2019 2838
20202839`skills.config``tui.animations`
2021 2840
2022Type / Values2841Type / Values
2023 2842
20242843`array<object>``boolean`
2025 2844
2026Details2845Details
2027 2846
20282847Per-skill enablement overrides stored in config.toml.Enable terminal animations (welcome screen, shimmer, spinner) (default: true).
2029 2848
2030Key2849Key
2031 2850
20322851`skills.config.<index>.enabled``tui.keymap.<context>.<action>`
2033 2852
2034Type / Values2853Type / Values
2035 2854
20362855`boolean``string | array<string>`
2037 2856
2038Details2857Details
2039 2858
20402859Enable or disable the referenced skill.Keyboard shortcut binding for a TUI action. Supported contexts include `global`, `chat`, `composer`, `editor`, `pager`, `list`, and `approval`; context-specific bindings override `tui.keymap.global`.
2041 2860
2042Key2861Key
2043 2862
20442863`skills.config.<index>.path``tui.keymap.<context>.<action> = []`
2045 2864
2046Type / Values2865Type / Values
2047 2866
20482867`string (path)``empty array`
2049 2868
2050Details2869Details
2051 2870
20522871Path to a skill folder containing `SKILL.md`.Unbind the action in that keymap context. Key names use normalized strings such as `ctrl-a`, `shift-enter`, or `page-down`.
2053 2872
2054Key2873Key
2055 2874
20562875`suppress_unstable_features_warning``tui.model_availability_nux.<model>`
2057 2876
2058Type / Values2877Type / Values
2059 2878
20602879`boolean``integer`
2061 2880
2062Details2881Details
2063 2882
20642883Suppress the warning that appears when under-development feature flags are enabled.Internal startup-tooltip state keyed by model slug.
2065 2884
2066Key2885Key
2067 2886
20682887`tool_output_token_limit``tui.notification_condition`
2069 2888
2070Type / Values2889Type / Values
2071 2890
20722891`number``unfocused | always`
2073 2892
2074Details2893Details
2075 2894
20762895Token budget for storing individual tool/function outputs in history.Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.
2077 2896
2078Key2897Key
2079 2898
20802899`tools.web_search``tui.notification_method`
2081 2900
2082Type / Values2901Type / Values
2083 2902
20842903`boolean``auto | osc9 | bel`
2085 2904
2086Details2905Details
2087 2906
20882907Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.Notification method for terminal notifications (default: auto).
2089 2908
2090Key2909Key
2091 2910
20922911`tui``tui.notifications`
2093 2912
2094Type / Values2913Type / Values
2095 2914
20962915`table``boolean | array<string>`
2097 2916
2098Details2917Details
2099 2918
21002919TUI-specific options such as enabling inline desktop notifications.Enable TUI notifications; optionally restrict to specific event types.
2101 2920
2102Key2921Key
2103 2922
21042923`tui.alternate_screen``tui.show_tooltips`
2105 2924
2106Type / Values2925Type / Values
2107 2926
21082927`auto | always | never``boolean`
2109 2928
2110Details2929Details
2111 2930
21122931Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).Show onboarding tooltips in the TUI welcome screen (default: true).
2113 2932
2114Key2933Key
2115 2934
21162935`tui.animations``tui.status_line`
2117 2936
2118Type / Values2937Type / Values
2119 2938
21202939`boolean``array<string> | null`
2121 2940
2122Details2941Details
2123 2942
21242943Enable terminal animations (welcome screen, shimmer, spinner) (default: true).Ordered list of TUI footer status-line item identifiers. `null` disables the status line.
2125 2944
2126Key2945Key
2127 2946
21282947`tui.notification_method``tui.terminal_title`
2129 2948
2130Type / Values2949Type / Values
2131 2950
21322951`auto | osc9 | bel``array<string> | null`
2133 2952
2134Details2953Details
2135 2954
21362955Notification method for unfocused terminal notifications (default: auto).Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.
2137 2956
2138Key2957Key
2139 2958
21402959`tui.notifications``tui.theme`
2141 2960
2142Type / Values2961Type / Values
2143 2962
21442963`boolean | array<string>``string`
2145 2964
2146Details2965Details
2147 2966
21482967Enable TUI notifications; optionally restrict to specific event types.Syntax-highlighting theme override (kebab-case theme name).
2149 2968
2150Key2969Key
2151 2970
21522971`tui.show_tooltips``web_search`
2153 2972
2154Type / Values2973Type / Values
2155 2974
21562975`boolean``disabled | cached | live`
2157 2976
2158Details2977Details
2159 2978
21602979Show onboarding tooltips in the TUI welcome screen (default: true).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.
2161 2980
2162Key2981Key
2163 2982
21642983`tui.status_line``windows_wsl_setup_acknowledged`
2165 2984
2166Type / Values2985Type / Values
2167 2986
21682987`array<string> | null``boolean`
2169 2988
2170Details2989Details
2171 2990
21722991Ordered list of TUI footer status-line item identifiers. `null` disables the status line.Track Windows onboarding acknowledgement (Windows only).
2173 2992
2174Key2993Key
2175 2994
21762995`web_search``windows.sandbox`
2177 2996
2178Type / Values2997Type / Values
2179 2998
21802999`disabled | cached | live``unelevated | elevated`
2181 3000
2182Details3001Details
2183 3002
21843003Web 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.Windows-only native sandbox mode when running Codex natively on Windows.
2185 3004
2186Key3005Key
2187 3006
21883007`windows_wsl_setup_acknowledged``windows.sandbox_private_desktop`
2189 3008
2190Type / Values3009Type / Values
2191 3010
2193 3012
2194Details3013Details
2195 3014
21963015Track Windows onboarding acknowledgement (Windows only).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.
2197 3016
2198Expand to view all3017Expand to view all
2199 3018
2214For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched3033For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
2215requirements. See the security page for precedence details.3034requirements. See the security page for precedence details.
2216 3035
3036Use `[features]` in `requirements.toml` to pin feature flags by the same
3037canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
3038
2217| Key | Type / Values | Details |3039| Key | Type / Values | Details |
2218| --- | --- | --- |3040| --- | --- | --- |
22193041| `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`). |
3042| `allowed_approvals_reviewers` | `array<string>` | Allowed values for `approvals_reviewer`, such as `user` and `auto_review`. |
2220| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |3043| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |
2221| `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`. |3044| `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`. |
3045| `features` | `table` | Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. |
3046| `features.<name>` | `boolean` | Require a specific canonical feature key to stay enabled or disabled. |
3047| `features.browser_use` | `boolean` | Set to `false` in `requirements.toml` to disable Browser Use and Browser Agent availability. |
3048| `features.computer_use` | `boolean` | Set to `false` in `requirements.toml` to disable Computer Use availability and related install or enablement flows. |
3049| `features.in_app_browser` | `boolean` | Set to `false` in `requirements.toml` to disable the in-app browser pane. |
3050| `guardian_policy_config` | `string` | Managed Markdown policy instructions for automatic review. This takes precedence over local `[auto_review].policy`. Blank values are ignored. |
3051| `hooks` | `table` | Admin-enforced managed lifecycle hooks. Requires a managed hook directory and uses the same event schema as inline `[hooks]` in `config.toml`. |
3052| `hooks.<Event>` | `array<table>` | Matcher groups for a hook event such as `PreToolUse`, `PostToolUse`, `PermissionRequest`, `SessionStart`, `UserPromptSubmit`, or `Stop`. |
3053| `hooks.<Event>[].hooks` | `array<table>` | Hook handlers for a matcher group. Command hooks are currently supported; prompt and agent hook handlers are parsed but skipped. |
3054| `hooks.managed_dir` | `string (absolute path)` | Directory containing managed hook scripts on macOS and Linux. Codex validates that it is absolute and exists before loading managed hooks. |
3055| `hooks.windows_managed_dir` | `string (absolute path)` | Directory containing managed hook scripts on Windows. Codex validates that it is absolute and exists before loading managed hooks. |
2222| `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. |3056| `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. |
2223| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |3057| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |
2224| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |3058| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
2225| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |3059| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |
3060| `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. |
3061| `remote_sandbox_config` | `array<table>` | Host-specific sandbox requirements. The first entry whose `hostname_patterns` match the resolved host name overrides top-level `allowed_sandbox_modes` for that requirements source. Host-specific entries currently override sandbox modes only. |
3062| `remote_sandbox_config[].allowed_sandbox_modes` | `array<string>` | Allowed sandbox modes to apply when this host-specific entry matches. |
3063| `remote_sandbox_config[].hostname_patterns` | `array<string>` | Case-insensitive host name patterns. Supports `*` for any sequence of characters and `?` for one character. |
2226| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |3064| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |
2227| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |3065| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |
2228| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |3066| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |
2241 3079
2242Details3080Details
2243 3081
22443082Allowed 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`).
3083
3084Key
3085
3086`allowed_approvals_reviewers`
3087
3088Type / Values
3089
3090`array<string>`
3091
3092Details
3093
3094Allowed values for `approvals_reviewer`, such as `user` and `auto_review`.
2245 3095
2246Key3096Key
2247 3097
2269 3119
2270Key3120Key
2271 3121
3122`features`
3123
3124Type / Values
3125
3126`table`
3127
3128Details
3129
3130Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.
3131
3132Key
3133
3134`features.<name>`
3135
3136Type / Values
3137
3138`boolean`
3139
3140Details
3141
3142Require a specific canonical feature key to stay enabled or disabled.
3143
3144Key
3145
3146`features.browser_use`
3147
3148Type / Values
3149
3150`boolean`
3151
3152Details
3153
3154Set to `false` in `requirements.toml` to disable Browser Use and Browser Agent availability.
3155
3156Key
3157
3158`features.computer_use`
3159
3160Type / Values
3161
3162`boolean`
3163
3164Details
3165
3166Set to `false` in `requirements.toml` to disable Computer Use availability and related install or enablement flows.
3167
3168Key
3169
3170`features.in_app_browser`
3171
3172Type / Values
3173
3174`boolean`
3175
3176Details
3177
3178Set to `false` in `requirements.toml` to disable the in-app browser pane.
3179
3180Key
3181
3182`guardian_policy_config`
3183
3184Type / Values
3185
3186`string`
3187
3188Details
3189
3190Managed Markdown policy instructions for automatic review. This takes precedence over local `[auto_review].policy`. Blank values are ignored.
3191
3192Key
3193
3194`hooks`
3195
3196Type / Values
3197
3198`table`
3199
3200Details
3201
3202Admin-enforced managed lifecycle hooks. Requires a managed hook directory and uses the same event schema as inline `[hooks]` in `config.toml`.
3203
3204Key
3205
3206`hooks.<Event>`
3207
3208Type / Values
3209
3210`array<table>`
3211
3212Details
3213
3214Matcher groups for a hook event such as `PreToolUse`, `PostToolUse`, `PermissionRequest`, `SessionStart`, `UserPromptSubmit`, or `Stop`.
3215
3216Key
3217
3218`hooks.<Event>[].hooks`
3219
3220Type / Values
3221
3222`array<table>`
3223
3224Details
3225
3226Hook handlers for a matcher group. Command hooks are currently supported; prompt and agent hook handlers are parsed but skipped.
3227
3228Key
3229
3230`hooks.managed_dir`
3231
3232Type / Values
3233
3234`string (absolute path)`
3235
3236Details
3237
3238Directory containing managed hook scripts on macOS and Linux. Codex validates that it is absolute and exists before loading managed hooks.
3239
3240Key
3241
3242`hooks.windows_managed_dir`
3243
3244Type / Values
3245
3246`string (absolute path)`
3247
3248Details
3249
3250Directory containing managed hook scripts on Windows. Codex validates that it is absolute and exists before loading managed hooks.
3251
3252Key
3253
2272`mcp_servers`3254`mcp_servers`
2273 3255
2274Type / Values3256Type / Values
2317 3299
2318Key3300Key
2319 3301
3302`permissions.filesystem.deny_read`
3303
3304Type / Values
3305
3306`array<string>`
3307
3308Details
3309
3310Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config.
3311
3312Key
3313
3314`remote_sandbox_config`
3315
3316Type / Values
3317
3318`array<table>`
3319
3320Details
3321
3322Host-specific sandbox requirements. The first entry whose `hostname_patterns` match the resolved host name overrides top-level `allowed_sandbox_modes` for that requirements source. Host-specific entries currently override sandbox modes only.
3323
3324Key
3325
3326`remote_sandbox_config[].allowed_sandbox_modes`
3327
3328Type / Values
3329
3330`array<string>`
3331
3332Details
3333
3334Allowed sandbox modes to apply when this host-specific entry matches.
3335
3336Key
3337
3338`remote_sandbox_config[].hostname_patterns`
3339
3340Type / Values
3341
3342`array<string>`
3343
3344Details
3345
3346Case-insensitive host name patterns. Supports `*` for any sequence of characters and `?` for one character.
3347
3348Key
3349
2320`rules`3350`rules`
2321 3351
2322Type / Values3352Type / Values