config-reference.md +1668 −417
1# Configuration Reference1# Configuration Reference
2 2
3Complete reference for Codex config.toml and requirements.toml
4
5Use this page as a searchable reference for Codex configuration files. For conceptual guidance and examples, start with [Config basics](https://developers.openai.com/codex/config-basic) and [Advanced Config](https://developers.openai.com/codex/config-advanced).3Use this page as a searchable reference for Codex configuration files. For conceptual guidance and examples, start with [Config basics](https://developers.openai.com/codex/config-basic) and [Advanced Config](https://developers.openai.com/codex/config-advanced).
6 4
7## `config.toml`5## `config.toml`
8 6
9User-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.
10 8
9For 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
11| Key | Type / Values | Details |11| Key | Type / Values | Details |
12| --- | --- | --- |12| --- | --- | --- |
13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |
14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |
1515| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. || `agents.<name>.nickname_candidates` | `array<string>` | Optional pool of display nicknames for spawned agents in that role. |
1616| `approval_policy` | `untrusted | on-request | never` | Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. || `agents.job_max_runtime_seconds` | `number` | Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker. |
1717| `apps.<id>.disabled_reason` | `unknown | user` | Optional reason attached when an app/connector is disabled. || `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |
18| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset. |
19| `allow_login_shell` | `boolean` | Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells. |
20| `analytics.enabled` | `boolean` | Enable or disable analytics for this machine/profile. When unset, the client default applies. |
21| `approval_policy` | `untrusted | on-request | never | { 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. |
22| `approval_policy.granular.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected. |
23| `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. |
28| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. |
29| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. |
30| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. |
31| `apps.<id>.default_tools_approval_mode` | `auto | prompt | approve` | Default approval behavior for tools in this app unless a per-tool override exists. |
32| `apps.<id>.default_tools_enabled` | `boolean` | Default enabled state for tools in this app unless a per-tool override exists. |
33| `apps.<id>.destructive_enabled` | `boolean` | Allow or block tools in this app that advertise `destructive_hint = true`. |
18| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). |34| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). |
35| `apps.<id>.open_world_enabled` | `boolean` | Allow or block tools in this app that advertise `open_world_hint = true`. |
36| `apps.<id>.tools.<tool>.approval_mode` | `auto | prompt | approve` | Per-tool approval behavior override for a single app tool. |
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. |
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. |
19| `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. |
20| `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). |
21| `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. |
22| `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. |
23| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |46| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |
24| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |47| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |
25| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |48| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |
26| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. |
27| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |49| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |
28| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). |
29| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |50| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |
3051| `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. |
3152| `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). |
3253| `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). |
3354| `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). |
3455| `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). |
35| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). |
36| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |56| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |
3757| `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). |
3858| `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). |
39| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |
40| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |
41| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |
42| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |
43| `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). |
4460| `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). |
4561| `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). |
46| `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. |
47| `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"`. |
48| `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"`. |
53| `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. |
54| `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. |
55| `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. |
5673| `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. |
57| `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`. |
58| `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`. |
59| `mcp_oauth_callback_port` | `integer` | Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS. |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. |
77| `mcp_oauth_callback_url` | `string` | Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port. |
60| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. |78| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. |
61| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. |79| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. |
62| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |80| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |
67| `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. |
68| `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. |
69| `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. |
7088| `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. |
71| `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. |
72| `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. |
73| `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. |
74| `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. |
75| `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. |
76| `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. |
7798| `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`). |
78| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |110| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |
111| `model_catalog_json` | `string (path)` | Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile. |
79| `model_context_window` | `number` | Context window tokens available to the active model. |112| `model_context_window` | `number` | Context window tokens available to the active model. |
80| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |113| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |
81| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |114| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |
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). |
82| `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. |
83| `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. |
84| `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. |
91| `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). |
92| `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). |
93| `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). |
94134| `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. |
95| `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). |
96| `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. |
97| `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. |
98141| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). || `model_verbosity` | `low | medium | high` | Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used. |
99| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |142| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |
100| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |143| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |
101| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |144| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |
103| `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. |
104| `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. |
105| `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. |
106| `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). |
107| `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`). |
108| `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. |
113| `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. |
114| `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. |
115| `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`). |
116| `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. |
117| `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. |
118| `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. |
120| `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. |
121| `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. |
122| `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. |
123| `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. |
124| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |186| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |
125| `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. |
126188| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. || `profiles.<name>.analytics.enabled` | `boolean` | Profile-scoped analytics enablement override. |
127| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |189| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |
128190| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. || `profiles.<name>.model_catalog_json` | `string (path)` | Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile). |
191| `profiles.<name>.model_instructions_file` | `string (path)` | Profile-scoped replacement for the built-in instruction file. |
129| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |192| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |
130| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |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. |
131| `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. |
132| `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. |
133| `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. |
134| `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. |
135202| `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. |
136| `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). |
137| `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. |
138| `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. |
139| `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. |
140| `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. |
141| `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. |
142| `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. |
143| `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. |
144| `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. |
149| `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. |
150| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |218| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |
151| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |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. |
152| `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. |
153| `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. |
154223| `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. |
155| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |227| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |
156| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |228| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |
157| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |229| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
158230| `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). |
159| `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. |
160| `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). |
161| `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). |
162| `web_search` | `disabled | cached | live` | Web search mode (default: `"cached"`; cached uses an OpenAI-maintained index and does not fetch live pages; if you use `--yolo` or another full access sandbox setting, it defaults to `"live"`). Use `"live"` to fetch the most recent data from the web, or `"disabled"` to remove the tool. |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. |
163| `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. |
164 244
165Key245Key
166 246
188 268
189Key269Key
190 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
295`agents.max_depth`
296
297Type / Values
298
299`number`
300
301Details
302
303Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).
304
305Key
306
191`agents.max_threads`307`agents.max_threads`
192 308
193Type / Values309Type / Values
196 312
197Details313Details
198 314
199315Maximum number of agent threads that can be open concurrently.Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.
316
317Key
318
319`allow_login_shell`
320
321Type / Values
322
323`boolean`
324
325Details
326
327Allow 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.
328
329Key
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.
200 340
201Key341Key
202 342
204 344
205Type / Values345Type / Values
206 346
207347`untrusted | on-request | never``untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }`
208 348
209Details349Details
210 350
211351Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.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.
212 352
213Key353Key
214 354
215355`apps.<id>.disabled_reason``approval_policy.granular.mcp_elicitations`
216 356
217Type / Values357Type / Values
218 358
219359`unknown | user``boolean`
220 360
221Details361Details
222 362
223363Optional reason attached when an app/connector is disabled.When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.
224 364
225Key365Key
226 366
227367`apps.<id>.enabled``approval_policy.granular.request_permissions`
228 368
229Type / Values369Type / Values
230 370
232 372
233Details373Details
234 374
235375Enable or disable a specific app/connector by id (default: true).When `true`, prompts from the `request_permissions` tool are allowed to surface.
236 376
237Key377Key
238 378
239379`chatgpt_base_url``approval_policy.granular.rules`
240 380
241Type / Values381Type / Values
242 382
243383`string``boolean`
244 384
245Details385Details
246 386
247387Override the base URL used during the ChatGPT login flow.When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.
248 388
249Key389Key
250 390
251391`check_for_update_on_startup``approval_policy.granular.sandbox_approval`
252 392
253Type / Values393Type / Values
254 394
256 396
257Details397Details
258 398
259399Check for Codex updates on startup (set to false only when updates are centrally managed).When `true`, sandbox escalation approval prompts are allowed to surface.
260 400
261Key401Key
262 402
263403`cli_auth_credentials_store``approval_policy.granular.skill_approval`
264 404
265Type / Values405Type / Values
266 406
267407`file | keyring | auto``boolean`
268 408
269Details409Details
270 410
271411Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).When `true`, skill-script approval prompts are allowed to surface.
272 412
273Key413Key
274 414
275415`compact_prompt``approvals_reviewer`
276 416
277Type / Values417Type / Values
278 418
279419`string``user | auto_review`
280 420
281Details421Details
282 422
283423Inline override for the history compaction prompt.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.
284 424
285Key425Key
286 426
287427`developer_instructions``apps._default.destructive_enabled`
288 428
289Type / Values429Type / Values
290 430
291431`string``boolean`
292 432
293Details433Details
294 434
295435Additional developer instructions injected into the session (optional).Default allow/deny for app tools with `destructive_hint = true`.
296 436
297Key437Key
298 438
299439`disable_paste_burst``apps._default.enabled`
300 440
301Type / Values441Type / Values
302 442
304 444
305Details445Details
306 446
307447Disable burst-paste detection in the TUI.Default app enabled state for all apps unless overridden per app.
308 448
309Key449Key
310 450
311451`experimental_compact_prompt_file``apps._default.open_world_enabled`
312 452
313Type / Values453Type / Values
314 454
315455`string (path)``boolean`
316 456
317Details457Details
318 458
319459Load the compaction prompt override from a file (experimental).Default allow/deny for app tools with `open_world_hint = true`.
460
461Key
462
463`apps.<id>.default_tools_approval_mode`
464
465Type / Values
466
467`auto | prompt | approve`
468
469Details
470
471Default approval behavior for tools in this app unless a per-tool override exists.
320 472
321Key473Key
322 474
323475`experimental_use_freeform_apply_patch``apps.<id>.default_tools_enabled`
324 476
325Type / Values477Type / Values
326 478
328 480
329Details481Details
330 482
331483Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.Default enabled state for tools in this app unless a per-tool override exists.
332 484
333Key485Key
334 486
335487`experimental_use_unified_exec_tool``apps.<id>.destructive_enabled`
336 488
337Type / Values489Type / Values
338 490
340 492
341Details493Details
342 494
343495Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.Allow or block tools in this app that advertise `destructive_hint = true`.
344 496
345Key497Key
346 498
347499`features.apply_patch_freeform``apps.<id>.enabled`
348 500
349Type / Values501Type / Values
350 502
352 504
353Details505Details
354 506
355507Expose the freeform `apply_patch` tool (experimental).Enable or disable a specific app/connector by id (default: true).
356 508
357Key509Key
358 510
359511`features.apps``apps.<id>.open_world_enabled`
360 512
361Type / Values513Type / Values
362 514
364 516
365Details517Details
366 518
367519Enable ChatGPT Apps/connectors support (experimental).Allow or block tools in this app that advertise `open_world_hint = true`.
520
521Key
522
523`apps.<id>.tools.<tool>.approval_mode`
524
525Type / Values
526
527`auto | prompt | approve`
528
529Details
530
531Per-tool approval behavior override for a single app tool.
368 532
369Key533Key
370 534
371535`features.apps_mcp_gateway``apps.<id>.tools.<tool>.enabled`
372 536
373Type / Values537Type / Values
374 538
376 540
377Details541Details
378 542
379543Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).Per-tool enabled override for an app tool (for example `repos/list`).
544
545Key
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
559`background_terminal_max_timeout`
560
561Type / Values
562
563`number`
564
565Details
566
567Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.
568
569Key
570
571`chatgpt_base_url`
572
573Type / Values
574
575`string`
576
577Details
578
579Override the base URL used during the ChatGPT login flow.
380 580
381Key581Key
382 582
383583`features.child_agents_md``check_for_update_on_startup`
384 584
385Type / Values585Type / Values
386 586
388 588
389Details589Details
390 590
391591Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).Check for Codex updates on startup (set to false only when updates are centrally managed).
592
593Key
594
595`cli_auth_credentials_store`
596
597Type / Values
598
599`file | keyring | auto`
600
601Details
602
603Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).
604
605Key
606
607`commit_attribution`
608
609Type / Values
610
611`string`
612
613Details
614
615Override the commit co-author trailer text. Set an empty string to disable automatic attribution.
616
617Key
618
619`compact_prompt`
620
621Type / Values
622
623`string`
624
625Details
626
627Inline override for the history compaction prompt.
628
629Key
630
631`default_permissions`
632
633Type / Values
634
635`string`
636
637Details
638
639Name 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.
640
641Key
642
643`developer_instructions`
644
645Type / Values
646
647`string`
648
649Details
650
651Additional developer instructions injected into the session (optional).
392 652
393Key653Key
394 654
395655`features.collaboration_modes``disable_paste_burst`
396 656
397Type / Values657Type / Values
398 658
400 660
401Details661Details
402 662
403663Enable collaboration modes such as plan mode (stable; on by default).Disable burst-paste detection in the TUI.
664
665Key
666
667`experimental_compact_prompt_file`
668
669Type / Values
670
671`string (path)`
672
673Details
674
675Load the compaction prompt override from a file (experimental).
404 676
405Key677Key
406 678
407679`features.elevated_windows_sandbox``experimental_use_unified_exec_tool`
408 680
409Type / Values681Type / Values
410 682
412 684
413Details685Details
414 686
415687Enable the elevated Windows sandbox pipeline (experimental).Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
416 688
417Key689Key
418 690
419691`features.experimental_windows_sandbox``features.apps`
420 692
421Type / Values693Type / Values
422 694
424 696
425Details697Details
426 698
427699Run the Windows restricted-token sandbox (experimental).Enable ChatGPT Apps/connectors support (experimental).
428 700
429Key701Key
430 702
431703`features.multi_agent``features.codex_hooks`
432 704
433Type / Values705Type / Values
434 706
436 708
437Details709Details
438 710
439711Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config.
440 712
441Key713Key
442 714
443715`features.personality``features.enable_request_compression`
444 716
445Type / Values717Type / Values
446 718
448 720
449Details721Details
450 722
451723Enable personality selection controls (stable; on by default).Compress streaming request bodies with zstd when supported (stable; on by default).
452 724
453Key725Key
454 726
455727`features.powershell_utf8``features.fast_mode`
456 728
457Type / Values729Type / Values
458 730
460 732
461Details733Details
462 734
463735Force PowerShell UTF-8 output (defaults to true).Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
464 736
465Key737Key
466 738
467739`features.remote_models``features.memories`
468 740
469Type / Values741Type / Values
470 742
472 744
473Details745Details
474 746
475747Refresh remote model list before showing readiness (experimental).Enable [Memories](https://developers.openai.com/codex/memories) (off by default).
476 748
477Key749Key
478 750
479751`features.request_rule``features.multi_agent`
480 752
481Type / Values753Type / Values
482 754
484 756
485Details757Details
486 758
487759Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).
488 760
489Key761Key
490 762
491763`features.runtime_metrics``features.personality`
492 764
493Type / Values765Type / Values
494 766
496 768
497Details769Details
498 770
499771Show runtime metrics summary in TUI turn separators (experimental).Enable personality selection controls (stable; on by default).
500 772
501Key773Key
502 774
503775`features.search_tool``features.prevent_idle_sleep`
504 776
505Type / Values777Type / Values
506 778
508 780
509Details781Details
510 782
511783Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).Prevent the machine from sleeping while a turn is actively running (experimental; off by default).
512 784
513Key785Key
514 786
520 792
521Details793Details
522 794
523795Snapshot shell environment to speed up repeated commands (beta).Snapshot shell environment to speed up repeated commands (stable; on by default).
524 796
525Key797Key
526 798
536 808
537Key809Key
538 810
539811`features.unified_exec``features.skill_mcp_dependency_install`
812
813Type / Values
814
815`boolean`
816
817Details
818
819Allow prompting and installing missing MCP dependencies for skills (stable; on by default).
820
821Key
822
823`features.undo`
540 824
541Type / Values825Type / Values
542 826
544 828
545Details829Details
546 830
547831Use the unified PTY-backed exec tool (beta).Enable undo support (stable; off by default).
548 832
549Key833Key
550 834
551835`features.use_linux_sandbox_bwrap``features.unified_exec`
552 836
553Type / Values837Type / Values
554 838
556 840
557Details841Details
558 842
559843Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
560 844
561Key845Key
562 846
680 964
681Key965Key
682 966
683967`include_apply_patch_tool``hooks`
684 968
685Type / Values969Type / Values
686 970
687971`boolean``table`
688 972
689Details973Details
690 974
691975Legacy 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.
692 976
693Key977Key
694 978
728 1012
729Key1013Key
730 1014
1015`mcp_oauth_callback_url`
1016
1017Type / Values
1018
1019`string`
1020
1021Details
1022
1023Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.
1024
1025Key
1026
731`mcp_oauth_credentials_store`1027`mcp_oauth_credentials_store`
732 1028
733Type / Values1029Type / Values
852 1148
853Type / Values1149Type / Values
854 1150
8551151`array<string>``array<string | { name = string, source = "local" | "remote" }>`
856 1152
857Details1153Details
858 1154
8591155Additional 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.
860 1156
861Key1157Key
862 1158
8631159`mcp_servers.<id>.http_headers``mcp_servers.<id>.experimental_environment`
864 1160
865Type / Values1161Type / Values
866 1162
8671163`map<string,string>``local | remote`
868 1164
869Details1165Details
870 1166
8711167Static HTTP headers included with each MCP HTTP request.Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.
872 1168
873Key1169Key
874 1170
8751171`mcp_servers.<id>.required``mcp_servers.<id>.http_headers`
876 1172
877Type / Values1173Type / Values
878 1174
8791175`boolean``map<string,string>`
880 1176
881Details1177Details
882 1178
8831179When true, fail startup/resume if this enabled MCP server cannot initialize.Static HTTP headers included with each MCP HTTP request.
884 1180
885Key1181Key
886 1182
8871183`mcp_servers.<id>.startup_timeout_ms``mcp_servers.<id>.oauth_resource`
888 1184
889Type / Values1185Type / Values
890 1186
8911187`number``string`
892 1188
893Details1189Details
894 1190
8951191Alias for `startup_timeout_sec` in milliseconds.Optional RFC 8707 OAuth resource parameter to include during MCP login.
896 1192
897Key1193Key
898 1194
8991195`mcp_servers.<id>.startup_timeout_sec``mcp_servers.<id>.required`
900 1196
901Type / Values1197Type / Values
902 1198
9031199`number``boolean`
904
905Details
906
907Override the default 10s startup timeout for an MCP server.
908
909Key
910
911`mcp_servers.<id>.tool_timeout_sec`
912
913Type / Values
914
915`number`
916 1200
917Details1201Details
918 1202
9191203Override the default 60s per-tool timeout for an MCP server.When true, fail startup/resume if this enabled MCP server cannot initialize.
920 1204
921Key1205Key
922 1206
9231207`mcp_servers.<id>.url``mcp_servers.<id>.scopes`
924 1208
925Type / Values1209Type / Values
926 1210
9271211`string``array<string>`
928 1212
929Details1213Details
930 1214
9311215Endpoint for an MCP streamable HTTP server.OAuth scopes to request when authenticating to that MCP server.
932 1216
933Key1217Key
934 1218
9351219`model``mcp_servers.<id>.startup_timeout_ms`
936 1220
937Type / Values1221Type / Values
938 1222
9391223`string``number`
940 1224
941Details1225Details
942 1226
9431227Model to use (e.g., `gpt-5-codex`).Alias for `startup_timeout_sec` in milliseconds.
944 1228
945Key1229Key
946 1230
9471231`model_auto_compact_token_limit``mcp_servers.<id>.startup_timeout_sec`
948 1232
949Type / Values1233Type / Values
950 1234
952 1236
953Details1237Details
954 1238
9551239Token threshold that triggers automatic history compaction (unset uses model defaults).Override the default 10s startup timeout for an MCP server.
956 1240
957Key1241Key
958 1242
9591243`model_context_window``mcp_servers.<id>.tool_timeout_sec`
960 1244
961Type / Values1245Type / Values
962 1246
964 1248
965Details1249Details
966 1250
9671251Context window tokens available to the active model.Override the default 60s per-tool timeout for an MCP server.
968 1252
969Key1253Key
970 1254
9711255`model_instructions_file``mcp_servers.<id>.url`
972 1256
973Type / Values1257Type / Values
974 1258
9751259`string (path)``string`
976 1260
977Details1261Details
978 1262
9791263Replacement for built-in instructions instead of `AGENTS.md`.Endpoint for an MCP streamable HTTP server.
980 1264
981Key1265Key
982 1266
9831267`model_provider``memories.consolidation_model`
984 1268
985Type / Values1269Type / Values
986 1270
988 1272
989Details1273Details
990 1274
9911275Provider id from `model_providers` (default: `openai`).Optional model override for global memory consolidation.
992 1276
993Key1277Key
994 1278
9951279`model_providers.<id>.base_url``memories.disable_on_external_context`
996 1280
997Type / Values1281Type / Values
998 1282
9991283`string``boolean`
1000 1284
1001Details1285Details
1002 1286
10031287API base URL for the model provider.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`.
1004 1288
1005Key1289Key
1006 1290
10071291`model_providers.<id>.env_http_headers``memories.extract_model`
1008 1292
1009Type / Values1293Type / Values
1010 1294
10111295`map<string,string>``string`
1012 1296
1013Details1297Details
1014 1298
10151299HTTP headers populated from environment variables when present.Optional model override for per-thread memory extraction.
1016 1300
1017Key1301Key
1018 1302
10191303`model_providers.<id>.env_key``memories.generate_memories`
1020 1304
1021Type / Values1305Type / Values
1022 1306
10231307`string``boolean`
1024 1308
1025Details1309Details
1026 1310
10271311Environment variable supplying the provider API key.When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.
1028 1312
1029Key1313Key
1030 1314
10311315`model_providers.<id>.env_key_instructions``memories.max_raw_memories_for_consolidation`
1032 1316
1033Type / Values1317Type / Values
1034 1318
10351319`string``number`
1036 1320
1037Details1321Details
1038 1322
10391323Optional setup guidance for the provider API key.Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.
1040 1324
1041Key1325Key
1042 1326
10431327`model_providers.<id>.experimental_bearer_token``memories.max_rollout_age_days`
1044 1328
1045Type / Values1329Type / Values
1046 1330
10471331`string``number`
1048 1332
1049Details1333Details
1050 1334
10511335Direct bearer token for the provider (discouraged; use `env_key`).Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.
1052 1336
1053Key1337Key
1054 1338
10551339`model_providers.<id>.http_headers``memories.max_rollouts_per_startup`
1056 1340
1057Type / Values1341Type / Values
1058 1342
10591343`map<string,string>``number`
1060 1344
1061Details1345Details
1062 1346
10631347Static HTTP headers added to provider requests.Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.
1064 1348
1065Key1349Key
1066 1350
10671351`model_providers.<id>.name``memories.max_unused_days`
1068 1352
1069Type / Values1353Type / Values
1070 1354
10711355`string``number`
1072 1356
1073Details1357Details
1074 1358
10751359Display name for a custom model provider.Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`.
1076 1360
1077Key1361Key
1078 1362
10791363`model_providers.<id>.query_params``memories.min_rate_limit_remaining_percent`
1080 1364
1081Type / Values1365Type / Values
1082 1366
10831367`map<string,string>``number`
1084 1368
1085Details1369Details
1086 1370
10871371Extra query parameters appended to provider requests.Minimum remaining percentage required in Codex rate-limit windows before memory generation starts. Defaults to `25` and is clamped to `0`-`100`.
1088 1372
1089Key1373Key
1090 1374
10911375`model_providers.<id>.request_max_retries``memories.min_rollout_idle_hours`
1092 1376
1093Type / Values1377Type / Values
1094 1378
1096 1380
1097Details1381Details
1098 1382
10991383Retry count for HTTP requests to the provider (default: 4).Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.
1100 1384
1101Key1385Key
1102 1386
11031387`model_providers.<id>.requires_openai_auth``memories.use_memories`
1104 1388
1105Type / Values1389Type / Values
1106 1390
1108 1392
1109Details1393Details
1110 1394
11111395The provider uses OpenAI authentication (defaults to false).When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.
1112 1396
1113Key1397Key
1114 1398
11151399`model_providers.<id>.stream_idle_timeout_ms``model`
1116 1400
1117Type / Values1401Type / Values
1118 1402
11191403`number``string`
1120 1404
1121Details1405Details
1122 1406
11231407Idle timeout for SSE streams in milliseconds (default: 300000).Model to use (e.g., `gpt-5.5`).
1124 1408
1125Key1409Key
1126 1410
11271411`model_providers.<id>.stream_max_retries``model_auto_compact_token_limit`
1128 1412
1129Type / Values1413Type / Values
1130 1414
1132 1416
1133Details1417Details
1134 1418
11351419Retry count for SSE streaming interruptions (default: 5).Token threshold that triggers automatic history compaction (unset uses model defaults).
1136 1420
1137Key1421Key
1138 1422
11391423`model_providers.<id>.wire_api``model_catalog_json`
1140 1424
1141Type / Values1425Type / Values
1142 1426
11431427`chat | responses``string (path)`
1144 1428
1145Details1429Details
1146 1430
11471431Protocol used by the provider (defaults to `chat` if omitted).Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.
1148 1432
1149Key1433Key
1150 1434
11511435`model_reasoning_effort``model_context_window`
1152 1436
1153Type / Values1437Type / Values
1154 1438
11551439`minimal | low | medium | high | xhigh``number`
1156 1440
1157Details1441Details
1158 1442
11591443Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).Context window tokens available to the active model.
1160 1444
1161Key1445Key
1162 1446
11631447`model_reasoning_summary``model_instructions_file`
1164 1448
1165Type / Values1449Type / Values
1166 1450
11671451`auto | concise | detailed | none``string (path)`
1168 1452
1169Details1453Details
1170 1454
11711455Select reasoning summary detail or disable summaries entirely.Replacement for built-in instructions instead of `AGENTS.md`.
1172 1456
1173Key1457Key
1174 1458
11751459`model_supports_reasoning_summaries``model_provider`
1176 1460
1177Type / Values1461Type / Values
1178 1462
11791463`boolean``string`
1180 1464
1181Details1465Details
1182 1466
11831467Force Codex to send or not send reasoning metadata.Provider id from `model_providers` (default: `openai`).
1184 1468
1185Key1469Key
1186 1470
11871471`model_verbosity``model_providers.<id>`
1188 1472
1189Type / Values1473Type / Values
1190 1474
11911475`low | medium | high``table`
1192 1476
1193Details1477Details
1194 1478
11951479Control GPT-5 Responses API verbosity (defaults to `medium`).Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.
1196 1480
1197Key1481Key
1198 1482
11991483`notice.hide_full_access_warning``model_providers.<id>.auth`
1200 1484
1201Type / Values1485Type / Values
1202 1486
12031487`boolean``table`
1204 1488
1205Details1489Details
1206 1490
12071491Track acknowledgement of the full access warning prompt.Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.
1208 1492
1209Key1493Key
1210 1494
12111495`notice.hide_gpt-5.1-codex-max_migration_prompt``model_providers.<id>.auth.args`
1212 1496
1213Type / Values1497Type / Values
1214 1498
12151499`boolean``array<string>`
1216 1500
1217Details1501Details
1218 1502
12191503Track acknowledgement of the gpt-5.1-codex-max migration prompt.Arguments passed to the token command.
1220 1504
1221Key1505Key
1222 1506
12231507`notice.hide_gpt5_1_migration_prompt``model_providers.<id>.auth.command`
1224 1508
1225Type / Values1509Type / Values
1226 1510
12271511`boolean``string`
1228 1512
1229Details1513Details
1230 1514
12311515Track acknowledgement of the GPT-5.1 migration prompt.Command to run when Codex needs a bearer token. The command must print the token to stdout.
1232 1516
1233Key1517Key
1234 1518
12351519`notice.hide_rate_limit_model_nudge``model_providers.<id>.auth.cwd`
1236 1520
1237Type / Values1521Type / Values
1238 1522
12391523`boolean``string (path)`
1240 1524
1241Details1525Details
1242 1526
12431527Track opt-out of the rate limit model switch reminder.Working directory for the token command.
1244 1528
1245Key1529Key
1246 1530
12471531`notice.hide_world_writable_warning``model_providers.<id>.auth.refresh_interval_ms`
1248 1532
1249Type / Values1533Type / Values
1250 1534
12511535`boolean``number`
1252 1536
1253Details1537Details
1254 1538
12551539Track acknowledgement of the Windows world-writable directories warning.How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.
1256 1540
1257Key1541Key
1258 1542
12591543`notice.model_migrations``model_providers.<id>.auth.timeout_ms`
1260 1544
1261Type / Values1545Type / Values
1262 1546
12631547`map<string,string>``number`
1264 1548
1265Details1549Details
1266 1550
12671551Track acknowledged model migrations as old->new mappings.Maximum token command runtime in milliseconds (default: 5000).
1268 1552
1269Key1553Key
1270 1554
12711555`notify``model_providers.<id>.base_url`
1272 1556
1273Type / Values1557Type / Values
1274 1558
12751559`array<string>``string`
1276 1560
1277Details1561Details
1278 1562
12791563Command invoked for notifications; receives a JSON payload from Codex.API base URL for the model provider.
1280 1564
1281Key1565Key
1282 1566
12831567`oss_provider``model_providers.<id>.env_http_headers`
1284 1568
1285Type / Values1569Type / Values
1286 1570
12871571`lmstudio | ollama``map<string,string>`
1288 1572
1289Details1573Details
1290 1574
12911575Default local provider used when running with `--oss` (defaults to prompting if unset).HTTP headers populated from environment variables when present.
1292 1576
1293Key1577Key
1294 1578
12951579`otel.environment``model_providers.<id>.env_key`
1296 1580
1297Type / Values1581Type / Values
1298 1582
1300 1584
1301Details1585Details
1302 1586
13031587Environment tag applied to emitted OpenTelemetry events (default: `dev`).Environment variable supplying the provider API key.
1304 1588
1305Key1589Key
1306 1590
13071591`otel.exporter``model_providers.<id>.env_key_instructions`
1308 1592
1309Type / Values1593Type / Values
1310 1594
13111595`none | otlp-http | otlp-grpc``string`
1312 1596
1313Details1597Details
1314 1598
13151599Select the OpenTelemetry exporter and provide any endpoint metadata.Optional setup guidance for the provider API key.
1316 1600
1317Key1601Key
1318 1602
13191603`otel.exporter.<id>.endpoint``model_providers.<id>.experimental_bearer_token`
1320 1604
1321Type / Values1605Type / Values
1322 1606
1324 1608
1325Details1609Details
1326 1610
13271611Exporter endpoint for OTEL logs.Direct bearer token for the provider (discouraged; use `env_key`).
1328 1612
1329Key1613Key
1330 1614
13311615`otel.exporter.<id>.headers``model_providers.<id>.http_headers`
1332 1616
1333Type / Values1617Type / Values
1334 1618
1336 1620
1337Details1621Details
1338 1622
13391623Static headers included with OTEL exporter requests.Static HTTP headers added to provider requests.
1340 1624
1341Key1625Key
1342 1626
13431627`otel.exporter.<id>.protocol``model_providers.<id>.name`
1344 1628
1345Type / Values1629Type / Values
1346 1630
13471631`binary | json``string`
1348 1632
1349Details1633Details
1350 1634
13511635Protocol used by the OTLP/HTTP exporter.Display name for a custom model provider.
1352 1636
1353Key1637Key
1354 1638
13551639`otel.exporter.<id>.tls.ca-certificate``model_providers.<id>.query_params`
1356 1640
1357Type / Values1641Type / Values
1358 1642
13591643`string``map<string,string>`
1360 1644
1361Details1645Details
1362 1646
13631647CA certificate path for OTEL exporter TLS.Extra query parameters appended to provider requests.
1364 1648
1365Key1649Key
1366 1650
13671651`otel.exporter.<id>.tls.client-certificate``model_providers.<id>.request_max_retries`
1368 1652
1369Type / Values1653Type / Values
1370 1654
13711655`string``number`
1372 1656
1373Details1657Details
1374 1658
13751659Client certificate path for OTEL exporter TLS.Retry count for HTTP requests to the provider (default: 4).
1376 1660
1377Key1661Key
1378 1662
13791663`otel.exporter.<id>.tls.client-private-key``model_providers.<id>.requires_openai_auth`
1380 1664
1381Type / Values1665Type / Values
1382 1666
13831667`string``boolean`
1384 1668
1385Details1669Details
1386 1670
13871671Client private key path for OTEL exporter TLS.The provider uses OpenAI authentication (defaults to false).
1388 1672
1389Key1673Key
1390 1674
13911675`otel.log_user_prompt``model_providers.<id>.stream_idle_timeout_ms`
1392 1676
1393Type / Values1677Type / Values
1394 1678
13951679`boolean``number`
1396 1680
1397Details1681Details
1398 1682
13991683Opt in to exporting raw user prompts with OpenTelemetry logs.Idle timeout for SSE streams in milliseconds (default: 300000).
1400 1684
1401Key1685Key
1402 1686
14031687`otel.trace_exporter``model_providers.<id>.stream_max_retries`
1404 1688
1405Type / Values1689Type / Values
1406 1690
14071691`none | otlp-http | otlp-grpc``number`
1408 1692
1409Details1693Details
1410 1694
14111695Select the OpenTelemetry trace exporter and provide any endpoint metadata.Retry count for SSE streaming interruptions (default: 5).
1412 1696
1413Key1697Key
1414 1698
14151699`otel.trace_exporter.<id>.endpoint``model_providers.<id>.supports_websockets`
1416 1700
1417Type / Values1701Type / Values
1418 1702
14191703`string``boolean`
1420 1704
1421Details1705Details
1422 1706
14231707Trace exporter endpoint for OTEL logs.Whether that provider supports the Responses API WebSocket transport.
1424 1708
1425Key1709Key
1426 1710
14271711`otel.trace_exporter.<id>.headers``model_providers.<id>.wire_api`
1428 1712
1429Type / Values1713Type / Values
1430 1714
14311715`map<string,string>``responses`
1432 1716
1433Details1717Details
1434 1718
14351719Static headers included with OTEL trace exporter requests.Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1436 1720
1437Key1721Key
1438 1722
14391723`otel.trace_exporter.<id>.protocol``model_providers.amazon-bedrock.aws.profile`
1440 1724
1441Type / Values1725Type / Values
1442 1726
14431727`binary | json``string`
1444 1728
1445Details1729Details
1446 1730
14471731Protocol used by the OTLP/HTTP trace exporter.AWS profile name used by the built-in `amazon-bedrock` provider.
1448 1732
1449Key1733Key
1450 1734
14511735`otel.trace_exporter.<id>.tls.ca-certificate``model_providers.amazon-bedrock.aws.region`
1452 1736
1453Type / Values1737Type / Values
1454 1738
1456 1740
1457Details1741Details
1458 1742
14591743CA certificate path for OTEL trace exporter TLS.AWS region used by the built-in `amazon-bedrock` provider.
1460 1744
1461Key1745Key
1462 1746
14631747`otel.trace_exporter.<id>.tls.client-certificate``model_reasoning_effort`
1464 1748
1465Type / Values1749Type / Values
1466 1750
14671751`string``minimal | low | medium | high | xhigh`
1468 1752
1469Details1753Details
1470 1754
14711755Client certificate path for OTEL trace exporter TLS.Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).
1472 1756
1473Key1757Key
1474 1758
14751759`otel.trace_exporter.<id>.tls.client-private-key``model_reasoning_summary`
1476 1760
1477Type / Values1761Type / Values
1478 1762
14791763`string``auto | concise | detailed | none`
1480 1764
1481Details1765Details
1482 1766
14831767Client private key path for OTEL trace exporter TLS.Select reasoning summary detail or disable summaries entirely.
1484 1768
1485Key1769Key
1486 1770
14871771`personality``model_supports_reasoning_summaries`
1488 1772
1489Type / Values1773Type / Values
1490 1774
14911775`none | friendly | pragmatic``boolean`
1492 1776
1493Details1777Details
1494 1778
14951779Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.Force Codex to send or not send reasoning metadata.
1496 1780
1497Key1781Key
1498 1782
14991783`profile``model_verbosity`
1500 1784
1501Type / Values1785Type / Values
1502 1786
15031787`string``low | medium | high`
1504 1788
1505Details1789Details
1506 1790
15071791Default profile applied at startup (equivalent to `--profile`).Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1508 1792
1509Key1793Key
1510 1794
15111795`profiles.<name>.*``notice.hide_full_access_warning`
1512 1796
1513Type / Values1797Type / Values
1514 1798
15151799`various``boolean`
1516 1800
1517Details1801Details
1518 1802
15191803Profile-scoped overrides for any of the supported configuration keys.Track acknowledgement of the full access warning prompt.
1520 1804
1521Key1805Key
1522 1806
15231807`profiles.<name>.experimental_use_freeform_apply_patch``notice.hide_gpt-5.1-codex-max_migration_prompt`
1524 1808
1525Type / Values1809Type / Values
1526 1810
1528 1812
1529Details1813Details
1530 1814
15311815Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1532 1816
1533Key1817Key
1534 1818
15351819`profiles.<name>.experimental_use_unified_exec_tool``notice.hide_gpt5_1_migration_prompt`
1536 1820
1537Type / Values1821Type / Values
1538 1822
1540 1824
1541Details1825Details
1542 1826
15431827Legacy name for enabling unified exec; prefer `[features].unified_exec`.Track acknowledgement of the GPT-5.1 migration prompt.
1544 1828
1545Key1829Key
1546 1830
15471831`profiles.<name>.include_apply_patch_tool``notice.hide_rate_limit_model_nudge`
1548 1832
1549Type / Values1833Type / Values
1550 1834
1552 1836
1553Details1837Details
1554 1838
15551839Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Track opt-out of the rate limit model switch reminder.
1556 1840
1557Key1841Key
1558 1842
15591843`profiles.<name>.oss_provider``notice.hide_world_writable_warning`
1560 1844
1561Type / Values1845Type / Values
1562 1846
15631847`lmstudio | ollama``boolean`
1564 1848
1565Details1849Details
1566 1850
15671851Profile-scoped OSS provider for `--oss` sessions.Track acknowledgement of the Windows world-writable directories warning.
1568 1852
1569Key1853Key
1570 1854
15711855`profiles.<name>.personality``notice.model_migrations`
1572 1856
1573Type / Values1857Type / Values
1574 1858
15751859`none | friendly | pragmatic``map<string,string>`
1576 1860
1577Details1861Details
1578 1862
15791863Profile-scoped communication style override for supported models.Track acknowledged model migrations as old->new mappings.
1580 1864
1581Key1865Key
1582 1866
15831867`profiles.<name>.web_search``notify`
1584 1868
1585Type / Values1869Type / Values
1586 1870
15871871`disabled | cached | live``array<string>`
1588 1872
1589Details1873Details
1590 1874
15911875Profile-scoped web search mode override (default: `"cached"`).Command invoked for notifications; receives a JSON payload from Codex.
1592 1876
1593Key1877Key
1594 1878
15951879`project_doc_fallback_filenames``openai_base_url`
1596 1880
1597Type / Values1881Type / Values
1598 1882
15991883`array<string>``string`
1600 1884
1601Details1885Details
1602 1886
16031887Additional filenames to try when `AGENTS.md` is missing.Base URL override for the built-in `openai` model provider.
1604 1888
1605Key1889Key
1606 1890
16071891`project_doc_max_bytes``oss_provider`
1608 1892
1609Type / Values1893Type / Values
1610 1894
16111895`number``lmstudio | ollama`
1612 1896
1613Details1897Details
1614 1898
16151899Maximum bytes read from `AGENTS.md` when building project instructions.Default local provider used when running with `--oss` (defaults to prompting if unset).
1616 1900
1617Key1901Key
1618 1902
16191903`project_root_markers``otel.environment`
1620 1904
1621Type / Values1905Type / Values
1622 1906
16231907`array<string>``string`
1624 1908
1625Details1909Details
1626 1910
16271911List of project root marker filenames; used when searching parent directories for the project root.Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1628 1912
1629Key1913Key
1630 1914
16311915`projects.<path>.trust_level``otel.exporter`
1916
1917Type / Values
1918
1919`none | otlp-http | otlp-grpc`
1920
1921Details
1922
1923Select the OpenTelemetry exporter and provide any endpoint metadata.
1924
1925Key
1926
1927`otel.exporter.<id>.endpoint`
1632 1928
1633Type / Values1929Type / Values
1634 1930
1636 1932
1637Details1933Details
1638 1934
16391935Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers.Exporter endpoint for OTEL logs.
1640 1936
1641Key1937Key
1642 1938
16431939`review_model``otel.exporter.<id>.headers`
1940
1941Type / Values
1942
1943`map<string,string>`
1944
1945Details
1946
1947Static headers included with OTEL exporter requests.
1948
1949Key
1950
1951`otel.exporter.<id>.protocol`
1952
1953Type / Values
1954
1955`binary | json`
1956
1957Details
1958
1959Protocol used by the OTLP/HTTP exporter.
1960
1961Key
1962
1963`otel.exporter.<id>.tls.ca-certificate`
1644 1964
1645Type / Values1965Type / Values
1646 1966
1648 1968
1649Details1969Details
1650 1970
16511971Optional model override used by `/review` (defaults to the current session model).CA certificate path for OTEL exporter TLS.
1652 1972
1653Key1973Key
1654 1974
16551975`sandbox_mode``otel.exporter.<id>.tls.client-certificate`
1656 1976
1657Type / Values1977Type / Values
1658 1978
16591979`read-only | workspace-write | danger-full-access``string`
1660 1980
1661Details1981Details
1662 1982
16631983Sandbox policy for filesystem and network access during command execution.Client certificate path for OTEL exporter TLS.
1664 1984
1665Key1985Key
1666 1986
16671987`sandbox_workspace_write.exclude_slash_tmp``otel.exporter.<id>.tls.client-private-key`
1668 1988
1669Type / Values1989Type / Values
1670 1990
16711991`boolean``string`
1672 1992
1673Details1993Details
1674 1994
16751995Exclude `/tmp` from writable roots in workspace-write mode.Client private key path for OTEL exporter TLS.
1676 1996
1677Key1997Key
1678 1998
16791999`sandbox_workspace_write.exclude_tmpdir_env_var``otel.log_user_prompt`
1680 2000
1681Type / Values2001Type / Values
1682 2002
1684 2004
1685Details2005Details
1686 2006
16872007Exclude `$TMPDIR` from writable roots in workspace-write mode.Opt in to exporting raw user prompts with OpenTelemetry logs.
1688 2008
1689Key2009Key
1690 2010
16912011`sandbox_workspace_write.network_access``otel.metrics_exporter`
1692 2012
1693Type / Values2013Type / Values
1694 2014
16952015`boolean``none | statsig | otlp-http | otlp-grpc`
1696 2016
1697Details2017Details
1698 2018
16992019Allow outbound network access inside the workspace-write sandbox.Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1700 2020
1701Key2021Key
1702 2022
17032023`sandbox_workspace_write.writable_roots``otel.trace_exporter`
1704 2024
1705Type / Values2025Type / Values
1706 2026
17072027`array<string>``none | otlp-http | otlp-grpc`
1708 2028
1709Details2029Details
1710 2030
17112031Additional writable roots when `sandbox_mode = "workspace-write"`.Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1712 2032
1713Key2033Key
1714 2034
17152035`shell_environment_policy.exclude``otel.trace_exporter.<id>.endpoint`
1716 2036
1717Type / Values2037Type / Values
1718 2038
17192039`array<string>``string`
1720 2040
1721Details2041Details
1722 2042
17232043Glob patterns for removing environment variables after the defaults.Trace exporter endpoint for OTEL logs.
1724 2044
1725Key2045Key
1726 2046
17272047`shell_environment_policy.experimental_use_profile``otel.trace_exporter.<id>.headers`
1728 2048
1729Type / Values2049Type / Values
1730 2050
17312051`boolean``map<string,string>`
1732 2052
1733Details2053Details
1734 2054
17352055Use the user shell profile when spawning subprocesses.Static headers included with OTEL trace exporter requests.
1736 2056
1737Key2057Key
1738 2058
17392059`shell_environment_policy.ignore_default_excludes``otel.trace_exporter.<id>.protocol`
1740 2060
1741Type / Values2061Type / Values
1742 2062
17432063`boolean``binary | json`
1744 2064
1745Details2065Details
1746 2066
17472067Keep variables containing KEY/SECRET/TOKEN before other filters run.Protocol used by the OTLP/HTTP trace exporter.
1748 2068
1749Key2069Key
1750 2070
17512071`shell_environment_policy.include_only``otel.trace_exporter.<id>.tls.ca-certificate`
1752 2072
1753Type / Values2073Type / Values
1754 2074
17552075`array<string>``string`
1756 2076
1757Details2077Details
1758 2078
17592079Whitelist of patterns; when set only matching variables are kept.CA certificate path for OTEL trace exporter TLS.
1760 2080
1761Key2081Key
1762 2082
17632083`shell_environment_policy.inherit``otel.trace_exporter.<id>.tls.client-certificate`
1764 2084
1765Type / Values2085Type / Values
1766 2086
17672087`all | core | none``string`
1768 2088
1769Details2089Details
1770 2090
17712091Baseline environment inheritance when spawning subprocesses.Client certificate path for OTEL trace exporter TLS.
1772 2092
1773Key2093Key
1774 2094
17752095`shell_environment_policy.set``otel.trace_exporter.<id>.tls.client-private-key`
1776 2096
1777Type / Values2097Type / Values
1778 2098
17792099`map<string,string>``string`
1780 2100
1781Details2101Details
1782 2102
17832103Explicit environment overrides injected into every subprocess.Client private key path for OTEL trace exporter TLS.
1784 2104
1785Key2105Key
1786 2106
17872107`show_raw_agent_reasoning``permissions.<name>.filesystem`
1788 2108
1789Type / Values2109Type / Values
1790 2110
17912111`boolean``table`
1792 2112
1793Details2113Details
1794 2114
17952115Surface raw reasoning content when the active model emits it.Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.
1796 2116
1797Key2117Key
1798 2118
17992119`skills.config``permissions.<name>.filesystem.":project_roots".<subpath-or-glob>`
1800 2120
1801Type / Values2121Type / Values
1802 2122
18032123`array<object>``"read" | "write" | "none"`
1804 2124
1805Details2125Details
1806 2126
18072127Per-skill enablement overrides stored in config.toml.Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.
1808 2128
1809Key2129Key
1810 2130
18112131`skills.config.<index>.enabled``permissions.<name>.filesystem.<path-or-glob>`
1812 2132
1813Type / Values2133Type / Values
1814 2134
18152135`boolean``"read" | "write" | "none" | table`
1816 2136
1817Details2137Details
1818 2138
18192139Enable or disable the referenced skill.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.
1820 2140
1821Key2141Key
1822 2142
18232143`skills.config.<index>.path``permissions.<name>.filesystem.glob_scan_max_depth`
1824 2144
1825Type / Values2145Type / Values
1826 2146
18272147`string (path)``number`
1828 2148
1829Details2149Details
1830 2150
18312151Path to a skill folder containing `SKILL.md`.Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.
1832 2152
1833Key2153Key
1834 2154
18352155`suppress_unstable_features_warning``permissions.<name>.network.allow_local_binding`
1836 2156
1837Type / Values2157Type / Values
1838 2158
1840 2160
1841Details2161Details
1842 2162
18432163Suppress the warning that appears when under-development feature flags are enabled.Permit local bind/listen operations through the managed proxy.
1844 2164
1845Key2165Key
1846 2166
18472167`tool_output_token_limit``permissions.<name>.network.allow_upstream_proxy`
1848 2168
1849Type / Values2169Type / Values
1850 2170
18512171`number``boolean`
1852 2172
1853Details2173Details
1854 2174
18552175Token budget for storing individual tool/function outputs in history.Allow the managed proxy to chain to another upstream proxy.
1856 2176
1857Key2177Key
1858 2178
18592179`tools.web_search``permissions.<name>.network.dangerously_allow_all_unix_sockets`
1860 2180
1861Type / Values2181Type / Values
1862 2182
1864 2184
1865Details2185Details
1866 2186
18672187Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
1868 2188
1869Key2189Key
1870 2190
18712191`tui``permissions.<name>.network.dangerously_allow_non_loopback_proxy`
1872 2192
1873Type / Values2193Type / Values
1874 2194
18752195`table``boolean`
1876 2196
1877Details2197Details
1878 2198
18792199TUI-specific options such as enabling inline desktop notifications.Permit non-loopback bind addresses for the managed proxy listener.
1880 2200
1881Key2201Key
1882 2202
18832203`tui.alternate_screen``permissions.<name>.network.domains`
1884 2204
1885Type / Values2205Type / Values
1886 2206
18872207`auto | always | never``map<string, allow | deny>`
1888 2208
1889Details2209Details
1890 2210
18912211Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.
1892 2212
1893Key2213Key
1894 2214
18952215`tui.animations``permissions.<name>.network.enable_socks5`
1896 2216
1897Type / Values2217Type / Values
1898 2218
1900 2220
1901Details2221Details
1902 2222
19032223Enable terminal animations (welcome screen, shimmer, spinner) (default: true).Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.
1904 2224
1905Key2225Key
1906 2226
19072227`tui.notification_method``permissions.<name>.network.enable_socks5_udp`
1908 2228
1909Type / Values2229Type / Values
1910 2230
19112231`auto | osc9 | bel``boolean`
1912 2232
1913Details2233Details
1914 2234
19152235Notification method for unfocused terminal notifications (default: auto).Allow UDP over the SOCKS5 listener when enabled.
1916 2236
1917Key2237Key
1918 2238
19192239`tui.notifications``permissions.<name>.network.enabled`
1920 2240
1921Type / Values2241Type / Values
1922 2242
19232243`boolean | array<string>``boolean`
1924 2244
1925Details2245Details
1926 2246
19272247Enable TUI notifications; optionally restrict to specific event types.Enable network access for this named permissions profile.
1928 2248
1929Key2249Key
1930 2250
19312251`tui.show_tooltips``permissions.<name>.network.mode`
1932 2252
1933Type / Values2253Type / Values
1934 2254
19352255`boolean``limited | full`
1936 2256
1937Details2257Details
1938 2258
19392259Show onboarding tooltips in the TUI welcome screen (default: true).Network proxy mode used for subprocess traffic.
1940 2260
1941Key2261Key
1942 2262
19432263`tui.status_line``permissions.<name>.network.proxy_url`
1944 2264
1945Type / Values2265Type / Values
1946 2266
19472267`array<string> | null``string`
1948 2268
1949Details2269Details
1950 2270
19512271Ordered list of TUI footer status-line item identifiers. `null` disables the status line.HTTP proxy endpoint used when this permissions profile enables the managed network proxy.
1952 2272
1953Key2273Key
1954 2274
19552275`web_search``permissions.<name>.network.socks_url`
1956 2276
1957Type / Values2277Type / Values
1958 2278
19592279`disabled | cached | live``string`
1960 2280
1961Details2281Details
1962 2282
19632283Web 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.SOCKS5 proxy endpoint used by this permissions profile.
1964 2284
1965Key2285Key
1966 2286
19672287`windows_wsl_setup_acknowledged``permissions.<name>.network.unix_sockets`
1968 2288
1969Type / Values2289Type / Values
1970 2290
19712291`boolean``map<string, allow | none>`
1972 2292
1973Details2293Details
1974 2294
19752295Track Windows onboarding acknowledgement (Windows only).Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.
1976 2296
19772297Expand to view allKey
1978 2298
19792299You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).`personality`
1980 2300
19812301To get autocompletion and diagnostics when editing `config.toml` in VS Code or Cursor, you can install the [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) extension and add this line to the top of your `config.toml`:Type / Values
1982 2302
19832303```toml`none | friendly | pragmatic`
1984#:schema https://developers.openai.com/codex/config-schema.json
1985```
1986 2304
19872305Note: Rename `experimental_instructions_file` to `model_instructions_file`. Codex deprecates the old key; update existing configs to the new name.Details
1988 2306
19892307## `requirements.toml`Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
1990 2308
19912309`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can’t override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/security#admin-enforced-requirements-requirementstoml).Key
1992 2310
19932311For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched`plan_mode_reasoning_effort`
1994requirements. See the security page for precedence details.
1995 2312
19962313| Key | Type / Values | Details |Type / Values
19972314| --- | --- | --- |
19982315| `allowed_approval_policies` | `array<string>` | Allowed values for `approval\_policy`. |`none | minimal | low | medium | high | xhigh`
19992316| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |
20002317| `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`. |Details
20012318| `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. |
20022319| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
2003| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
2004| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |
2005| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |
2006| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |
2007| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |
2008| `rules.prefix_rules[].justification` | `string` | Optional non-empty rationale surfaced in approval prompts or rejection messages. |
2009| `rules.prefix_rules[].pattern` | `array<table>` | Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`. |
2010| `rules.prefix_rules[].pattern[].any_of` | `array<string>` | A list of allowed alternative tokens at this position. |
2011| `rules.prefix_rules[].pattern[].token` | `string` | A single literal token at this position. |
2012 2320
2013Key2321Key
2014 2322
20152323`allowed_approval_policies``profile`
2016 2324
2017Type / Values2325Type / Values
2018 2326
20192327`array<string>``string`
2020 2328
2021Details2329Details
2022 2330
20232331Allowed values for `approval\_policy`.Default profile applied at startup (equivalent to `--profile`).
2024 2332
2025Key2333Key
2026 2334
20272335`allowed_sandbox_modes``profiles.<name>.*`
2028 2336
2029Type / Values2337Type / Values
2030 2338
20312339`array<string>``various`
2032 2340
2033Details2341Details
2034 2342
20352343Allowed values for `sandbox_mode`.Profile-scoped overrides for any of the supported configuration keys.
2036 2344
2037Key2345Key
2038 2346
20392347`allowed_web_search_modes``profiles.<name>.analytics.enabled`
2040 2348
2041Type / Values2349Type / Values
2042 2350
20432351`array<string>``boolean`
2044 2352
2045Details2353Details
2046 2354
20472355Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.Profile-scoped analytics enablement override.
2048 2356
2049Key2357Key
2050 2358
20512359`mcp_servers``profiles.<name>.experimental_use_unified_exec_tool`
2052 2360
2053Type / Values2361Type / Values
2054 2362
20552363`table``boolean`
2056 2364
2057Details2365Details
2058 2366
20592367Allowlist 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.Legacy name for enabling unified exec; prefer `[features].unified_exec`.
2060 2368
2061Key2369Key
2062 2370
20632371`mcp_servers.<id>.identity``profiles.<name>.model_catalog_json`
2064 2372
2065Type / Values2373Type / Values
2066 2374
20672375`table``string (path)`
2068 2376
2069Details2377Details
2070 2378
20712379Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).
2072 2380
2073Key2381Key
2074 2382
20752383`mcp_servers.<id>.identity.command``profiles.<name>.model_instructions_file`
2076 2384
2077Type / Values2385Type / Values
2078 2386
20792387`string``string (path)`
2080 2388
2081Details2389Details
2082 2390
20832391Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.Profile-scoped replacement for the built-in instruction file.
2084 2392
2085Key2393Key
2086 2394
20872395`mcp_servers.<id>.identity.url``profiles.<name>.oss_provider`
2088 2396
2089Type / Values2397Type / Values
2090 2398
20912399`string``lmstudio | ollama`
2092 2400
2093Details2401Details
2094 2402
20952403Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.Profile-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.
2764
2765Key
2766
2767`tool_suggest.disabled_tools`
2768
2769Type / Values
2770
2771`array<table>`
2772
2773Details
2774
2775Disable suggestions for specific discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.
2776
2777Key
2778
2779`tool_suggest.discoverables`
2780
2781Type / Values
2782
2783`array<table>`
2784
2785Details
2786
2787Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.
2788
2789Key
2790
2791`tools.view_image`
2792
2793Type / Values
2794
2795`boolean`
2796
2797Details
2798
2799Enable the local-image attachment tool `view_image`.
2800
2801Key
2802
2803`tools.web_search`
2804
2805Type / Values
2806
2807`boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }`
2808
2809Details
2810
2811Optional 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.
2812
2813Key
2814
2815`tui`
2816
2817Type / Values
2818
2819`table`
2820
2821Details
2822
2823TUI-specific options such as enabling inline desktop notifications.
2824
2825Key
2826
2827`tui.alternate_screen`
2828
2829Type / Values
2830
2831`auto | always | never`
2832
2833Details
2834
2835Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).
2836
2837Key
2838
2839`tui.animations`
2840
2841Type / Values
2842
2843`boolean`
2844
2845Details
2846
2847Enable terminal animations (welcome screen, shimmer, spinner) (default: true).
2848
2849Key
2850
2851`tui.keymap.<context>.<action>`
2852
2853Type / Values
2854
2855`string | array<string>`
2856
2857Details
2858
2859Keyboard shortcut binding for a TUI action. Supported contexts include `global`, `chat`, `composer`, `editor`, `pager`, `list`, and `approval`; context-specific bindings override `tui.keymap.global`.
2860
2861Key
2862
2863`tui.keymap.<context>.<action> = []`
2864
2865Type / Values
2866
2867`empty array`
2868
2869Details
2870
2871Unbind the action in that keymap context. Key names use normalized strings such as `ctrl-a`, `shift-enter`, or `page-down`.
2872
2873Key
2874
2875`tui.model_availability_nux.<model>`
2876
2877Type / Values
2878
2879`integer`
2880
2881Details
2882
2883Internal startup-tooltip state keyed by model slug.
2884
2885Key
2886
2887`tui.notification_condition`
2888
2889Type / Values
2890
2891`unfocused | always`
2892
2893Details
2894
2895Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.
2896
2897Key
2898
2899`tui.notification_method`
2900
2901Type / Values
2902
2903`auto | osc9 | bel`
2904
2905Details
2906
2907Notification method for terminal notifications (default: auto).
2908
2909Key
2910
2911`tui.notifications`
2912
2913Type / Values
2914
2915`boolean | array<string>`
2916
2917Details
2918
2919Enable TUI notifications; optionally restrict to specific event types.
2920
2921Key
2922
2923`tui.show_tooltips`
2924
2925Type / Values
2926
2927`boolean`
2928
2929Details
2930
2931Show onboarding tooltips in the TUI welcome screen (default: true).
2932
2933Key
2934
2935`tui.status_line`
2936
2937Type / Values
2938
2939`array<string> | null`
2940
2941Details
2942
2943Ordered list of TUI footer status-line item identifiers. `null` disables the status line.
2944
2945Key
2946
2947`tui.terminal_title`
2948
2949Type / Values
2950
2951`array<string> | null`
2952
2953Details
2954
2955Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.
2956
2957Key
2958
2959`tui.theme`
2960
2961Type / Values
2962
2963`string`
2964
2965Details
2966
2967Syntax-highlighting theme override (kebab-case theme name).
2968
2969Key
2970
2971`web_search`
2972
2973Type / Values
2974
2975`disabled | cached | live`
2976
2977Details
2978
2979Web 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.
2980
2981Key
2982
2983`windows_wsl_setup_acknowledged`
2984
2985Type / Values
2986
2987`boolean`
2988
2989Details
2990
2991Track Windows onboarding acknowledgement (Windows only).
2992
2993Key
2994
2995`windows.sandbox`
2996
2997Type / Values
2998
2999`unelevated | elevated`
3000
3001Details
3002
3003Windows-only native sandbox mode when running Codex natively on Windows.
3004
3005Key
3006
3007`windows.sandbox_private_desktop`
3008
3009Type / Values
3010
3011`boolean`
3012
3013Details
3014
3015Run 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.
3016
3017Expand to view all
3018
3019You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
3020
3021To get autocompletion and diagnostics when editing `config.toml` in VS Code or Cursor, you can install the [Even Better TOML](https://marketplace.visualstudio.com/items?itemName=tamasfe.even-better-toml) extension and add this line to the top of your `config.toml`:
3022
3023```toml
3024#:schema https://developers.openai.com/codex/config-schema.json
3025```
3026
3027Note: Rename `experimental_instructions_file` to `model_instructions_file`. Codex deprecates the old key; update existing configs to the new name.
3028
3029## `requirements.toml`
3030
3031`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can't override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/enterprise/managed-configuration#admin-enforced-requirements-requirementstoml).
3032
3033For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
3034requirements. See the security page for precedence details.
3035
3036Use `[features]` in `requirements.toml` to pin feature flags by the same
3037canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
3038
3039| Key | Type / Values | Details |
3040| --- | --- | --- |
3041| `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`. |
3043| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |
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. |
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. |
3057| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |
3058| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
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. |
3064| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |
3065| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |
3066| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |
3067| `rules.prefix_rules[].justification` | `string` | Optional non-empty rationale surfaced in approval prompts or rejection messages. |
3068| `rules.prefix_rules[].pattern` | `array<table>` | Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`. |
3069| `rules.prefix_rules[].pattern[].any_of` | `array<string>` | A list of allowed alternative tokens at this position. |
3070| `rules.prefix_rules[].pattern[].token` | `string` | A single literal token at this position. |
3071
3072Key
3073
3074`allowed_approval_policies`
3075
3076Type / Values
3077
3078`array<string>`
3079
3080Details
3081
3082Allowed 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`.
3095
3096Key
3097
3098`allowed_sandbox_modes`
3099
3100Type / Values
3101
3102`array<string>`
3103
3104Details
3105
3106Allowed values for `sandbox_mode`.
3107
3108Key
3109
3110`allowed_web_search_modes`
3111
3112Type / Values
3113
3114`array<string>`
3115
3116Details
3117
3118Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.
3119
3120Key
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
3254`mcp_servers`
3255
3256Type / Values
3257
3258`table`
3259
3260Details
3261
3262Allowlist 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.
3263
3264Key
3265
3266`mcp_servers.<id>.identity`
3267
3268Type / Values
3269
3270`table`
3271
3272Details
3273
3274Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).
3275
3276Key
3277
3278`mcp_servers.<id>.identity.command`
3279
3280Type / Values
3281
3282`string`
3283
3284Details
3285
3286Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.
3287
3288Key
3289
3290`mcp_servers.<id>.identity.url`
3291
3292Type / Values
3293
3294`string`
3295
3296Details
3297
3298Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.
3299
3300Key
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.
2096 3347
2097Key3348Key
2098 3349