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. |
15| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. |15| `agents.<name>.nickname_candidates` | `array<string>` | Optional pool of display nicknames for spawned agents in that role. |
16| `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. |16| `agents.job_max_runtime_seconds` | `number` | Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker. |
17| `apps.<id>.disabled_reason` | `unknown | user` | Optional reason attached when an app/connector is disabled. |17| `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). |
30| `features.apps_mcp_gateway` | `boolean` | Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental). |51| `features.codex_hooks` | `boolean` | Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config. |
31| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). |52| `features.enable_request_compression` | `boolean` | Compress streaming request bodies with zstd when supported (stable; on by default). |
32| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). |53| `features.fast_mode` | `boolean` | Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default). |
33| `features.elevated_windows_sandbox` | `boolean` | Enable the elevated Windows sandbox pipeline (experimental). |54| `features.memories` | `boolean` | Enable [Memories](https://developers.openai.com/codex/memories) (off by default). |
34| `features.experimental_windows_sandbox` | `boolean` | Run the Windows restricted-token sandbox (experimental). |55| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default). |
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). |
37| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). |57| `features.prevent_idle_sleep` | `boolean` | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). |
38| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). |58| `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). |
44| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). |60| `features.skill_mcp_dependency_install` | `boolean` | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). |
45| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). |61| `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. |
56| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |73| `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. |
70| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |88| `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. |
77| `model` | `string` | Model to use (e.g., `gpt-5-codex`). |98| `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). |
94| `model_providers.<id>.wire_api` | `chat | responses` | Protocol used by the provider (defaults to `chat` if omitted). |134| `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. |
98| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). |141| `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. |
126| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |188| `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`. |
128| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |190| `profiles.<name>.model_catalog_json` | `string (path)` | Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile). |
191| `profiles.<name>.model_instructions_file` | `string (path)` | Profile-scoped replacement for the built-in instruction file. |
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. |
135| `projects.<path>.trust_level` | `string` | Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers. |202| `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. |
154| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. |223| `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). |
158| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |230| `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
199Maximum number of agent threads that can be open concurrently.315Maximum 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
207`untrusted | on-request | never`347`untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }`
208 348
209Details349Details
210 350
211Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.351Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { granular = { ... } }` to allow or auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.
212 352
213Key353Key
214 354
215`apps.<id>.disabled_reason`355`approval_policy.granular.mcp_elicitations`
216 356
217Type / Values357Type / Values
218 358
219`unknown | user`359`boolean`
220 360
221Details361Details
222 362
223Optional reason attached when an app/connector is disabled.363When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.
224 364
225Key365Key
226 366
227`apps.<id>.enabled`367`approval_policy.granular.request_permissions`
228 368
229Type / Values369Type / Values
230 370
232 372
233Details373Details
234 374
235Enable or disable a specific app/connector by id (default: true).375When `true`, prompts from the `request_permissions` tool are allowed to surface.
236 376
237Key377Key
238 378
239`chatgpt_base_url`379`approval_policy.granular.rules`
240 380
241Type / Values381Type / Values
242 382
243`string`383`boolean`
244 384
245Details385Details
246 386
247Override the base URL used during the ChatGPT login flow.387When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.
248 388
249Key389Key
250 390
251`check_for_update_on_startup`391`approval_policy.granular.sandbox_approval`
252 392
253Type / Values393Type / Values
254 394
256 396
257Details397Details
258 398
259Check for Codex updates on startup (set to false only when updates are centrally managed).399When `true`, sandbox escalation approval prompts are allowed to surface.
260 400
261Key401Key
262 402
263`cli_auth_credentials_store`403`approval_policy.granular.skill_approval`
264 404
265Type / Values405Type / Values
266 406
267`file | keyring | auto`407`boolean`
268 408
269Details409Details
270 410
271Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).411When `true`, skill-script approval prompts are allowed to surface.
272 412
273Key413Key
274 414
275`compact_prompt`415`approvals_reviewer`
276 416
277Type / Values417Type / Values
278 418
279`string`419`user | auto_review`
280 420
281Details421Details
282 422
283Inline override for the history compaction prompt.423Who reviews eligible approval prompts under `on-request` or granular approval policies. Defaults to `user`; `auto_review` uses the reviewer subagent. This setting doesn't change sandboxing or review actions already allowed inside the sandbox.
284 424
285Key425Key
286 426
287`developer_instructions`427`apps._default.destructive_enabled`
288 428
289Type / Values429Type / Values
290 430
291`string`431`boolean`
292 432
293Details433Details
294 434
295Additional developer instructions injected into the session (optional).435Default allow/deny for app tools with `destructive_hint = true`.
296 436
297Key437Key
298 438
299`disable_paste_burst`439`apps._default.enabled`
300 440
301Type / Values441Type / Values
302 442
304 444
305Details445Details
306 446
307Disable burst-paste detection in the TUI.447Default app enabled state for all apps unless overridden per app.
308 448
309Key449Key
310 450
311`experimental_compact_prompt_file`451`apps._default.open_world_enabled`
312 452
313Type / Values453Type / Values
314 454
315`string (path)`455`boolean`
316 456
317Details457Details
318 458
319Load the compaction prompt override from a file (experimental).459Default 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
323`experimental_use_freeform_apply_patch`475`apps.<id>.default_tools_enabled`
324 476
325Type / Values477Type / Values
326 478
328 480
329Details481Details
330 482
331Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.483Default enabled state for tools in this app unless a per-tool override exists.
332 484
333Key485Key
334 486
335`experimental_use_unified_exec_tool`487`apps.<id>.destructive_enabled`
336 488
337Type / Values489Type / Values
338 490
340 492
341Details493Details
342 494
343Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.495Allow or block tools in this app that advertise `destructive_hint = true`.
344 496
345Key497Key
346 498
347`features.apply_patch_freeform`499`apps.<id>.enabled`
348 500
349Type / Values501Type / Values
350 502
352 504
353Details505Details
354 506
355Expose the freeform `apply_patch` tool (experimental).507Enable or disable a specific app/connector by id (default: true).
356 508
357Key509Key
358 510
359`features.apps`511`apps.<id>.open_world_enabled`
360 512
361Type / Values513Type / Values
362 514
364 516
365Details517Details
366 518
367Enable ChatGPT Apps/connectors support (experimental).519Allow 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
371`features.apps_mcp_gateway`535`apps.<id>.tools.<tool>.enabled`
372 536
373Type / Values537Type / Values
374 538
376 540
377Details541Details
378 542
379Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).543Per-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
383`features.child_agents_md`583`check_for_update_on_startup`
384 584
385Type / Values585Type / Values
386 586
388 588
389Details589Details
390 590
391Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).591Check 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
395`features.collaboration_modes`655`disable_paste_burst`
396 656
397Type / Values657Type / Values
398 658
400 660
401Details661Details
402 662
403Enable collaboration modes such as plan mode (stable; on by default).663Disable 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
407`features.elevated_windows_sandbox`679`experimental_use_unified_exec_tool`
408 680
409Type / Values681Type / Values
410 682
412 684
413Details685Details
414 686
415Enable the elevated Windows sandbox pipeline (experimental).687Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
416 688
417Key689Key
418 690
419`features.experimental_windows_sandbox`691`features.apps`
420 692
421Type / Values693Type / Values
422 694
424 696
425Details697Details
426 698
427Run the Windows restricted-token sandbox (experimental).699Enable ChatGPT Apps/connectors support (experimental).
428 700
429Key701Key
430 702
431`features.multi_agent`703`features.codex_hooks`
432 704
433Type / Values705Type / Values
434 706
436 708
437Details709Details
438 710
439Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).711Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config.
440 712
441Key713Key
442 714
443`features.personality`715`features.enable_request_compression`
444 716
445Type / Values717Type / Values
446 718
448 720
449Details721Details
450 722
451Enable personality selection controls (stable; on by default).723Compress streaming request bodies with zstd when supported (stable; on by default).
452 724
453Key725Key
454 726
455`features.powershell_utf8`727`features.fast_mode`
456 728
457Type / Values729Type / Values
458 730
460 732
461Details733Details
462 734
463Force PowerShell UTF-8 output (defaults to true).735Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
464 736
465Key737Key
466 738
467`features.remote_models`739`features.memories`
468 740
469Type / Values741Type / Values
470 742
472 744
473Details745Details
474 746
475Refresh remote model list before showing readiness (experimental).747Enable [Memories](https://developers.openai.com/codex/memories) (off by default).
476 748
477Key749Key
478 750
479`features.request_rule`751`features.multi_agent`
480 752
481Type / Values753Type / Values
482 754
484 756
485Details757Details
486 758
487Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).759Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).
488 760
489Key761Key
490 762
491`features.runtime_metrics`763`features.personality`
492 764
493Type / Values765Type / Values
494 766
496 768
497Details769Details
498 770
499Show runtime metrics summary in TUI turn separators (experimental).771Enable personality selection controls (stable; on by default).
500 772
501Key773Key
502 774
503`features.search_tool`775`features.prevent_idle_sleep`
504 776
505Type / Values777Type / Values
506 778
508 780
509Details781Details
510 782
511Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).783Prevent the machine from sleeping while a turn is actively running (experimental; off by default).
512 784
513Key785Key
514 786
520 792
521Details793Details
522 794
523Snapshot shell environment to speed up repeated commands (beta).795Snapshot shell environment to speed up repeated commands (stable; on by default).
524 796
525Key797Key
526 798
536 808
537Key809Key
538 810
539`features.unified_exec`811`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
547Use the unified PTY-backed exec tool (beta).831Enable undo support (stable; off by default).
548 832
549Key833Key
550 834
551`features.use_linux_sandbox_bwrap`835`features.unified_exec`
552 836
553Type / Values837Type / Values
554 838
556 840
557Details841Details
558 842
559Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).843Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
560 844
561Key845Key
562 846
680 964
681Key965Key
682 966
683`include_apply_patch_tool`967`hooks`
684 968
685Type / Values969Type / Values
686 970
687`boolean`971`table`
688 972
689Details973Details
690 974
691Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.975Lifecycle 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
855`array<string>`1151`array<string | { name = string, source = "local" | "remote" }>`
856 1152
857Details1153Details
858 1154
859Additional environment variables to whitelist for an MCP stdio server.1155Additional 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
863`mcp_servers.<id>.http_headers`1159`mcp_servers.<id>.experimental_environment`
864 1160
865Type / Values1161Type / Values
866 1162
867`map<string,string>`1163`local | remote`
868 1164
869Details1165Details
870 1166
871Static HTTP headers included with each MCP HTTP request.1167Experimental 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
875`mcp_servers.<id>.required`1171`mcp_servers.<id>.http_headers`
876 1172
877Type / Values1173Type / Values
878 1174
879`boolean`1175`map<string,string>`
880 1176
881Details1177Details
882 1178
883When true, fail startup/resume if this enabled MCP server cannot initialize.1179Static HTTP headers included with each MCP HTTP request.
884 1180
885Key1181Key
886 1182
887`mcp_servers.<id>.startup_timeout_ms`1183`mcp_servers.<id>.oauth_resource`
888 1184
889Type / Values1185Type / Values
890 1186
891`number`1187`string`
892 1188
893Details1189Details
894 1190
895Alias for `startup_timeout_sec` in milliseconds.1191Optional RFC 8707 OAuth resource parameter to include during MCP login.
896 1192
897Key1193Key
898 1194
899`mcp_servers.<id>.startup_timeout_sec`1195`mcp_servers.<id>.required`
900 1196
901Type / Values1197Type / Values
902 1198
903`number`1199`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
919Override the default 60s per-tool timeout for an MCP server.1203When true, fail startup/resume if this enabled MCP server cannot initialize.
920 1204
921Key1205Key
922 1206
923`mcp_servers.<id>.url`1207`mcp_servers.<id>.scopes`
924 1208
925Type / Values1209Type / Values
926 1210
927`string`1211`array<string>`
928 1212
929Details1213Details
930 1214
931Endpoint for an MCP streamable HTTP server.1215OAuth scopes to request when authenticating to that MCP server.
932 1216
933Key1217Key
934 1218
935`model`1219`mcp_servers.<id>.startup_timeout_ms`
936 1220
937Type / Values1221Type / Values
938 1222
939`string`1223`number`
940 1224
941Details1225Details
942 1226
943Model to use (e.g., `gpt-5-codex`).1227Alias for `startup_timeout_sec` in milliseconds.
944 1228
945Key1229Key
946 1230
947`model_auto_compact_token_limit`1231`mcp_servers.<id>.startup_timeout_sec`
948 1232
949Type / Values1233Type / Values
950 1234
952 1236
953Details1237Details
954 1238
955Token threshold that triggers automatic history compaction (unset uses model defaults).1239Override the default 10s startup timeout for an MCP server.
956 1240
957Key1241Key
958 1242
959`model_context_window`1243`mcp_servers.<id>.tool_timeout_sec`
960 1244
961Type / Values1245Type / Values
962 1246
964 1248
965Details1249Details
966 1250
967Context window tokens available to the active model.1251Override the default 60s per-tool timeout for an MCP server.
968 1252
969Key1253Key
970 1254
971`model_instructions_file`1255`mcp_servers.<id>.url`
972 1256
973Type / Values1257Type / Values
974 1258
975`string (path)`1259`string`
976 1260
977Details1261Details
978 1262
979Replacement for built-in instructions instead of `AGENTS.md`.1263Endpoint for an MCP streamable HTTP server.
980 1264
981Key1265Key
982 1266
983`model_provider`1267`memories.consolidation_model`
984 1268
985Type / Values1269Type / Values
986 1270
988 1272
989Details1273Details
990 1274
991Provider id from `model_providers` (default: `openai`).1275Optional model override for global memory consolidation.
992 1276
993Key1277Key
994 1278
995`model_providers.<id>.base_url`1279`memories.disable_on_external_context`
996 1280
997Type / Values1281Type / Values
998 1282
999`string`1283`boolean`
1000 1284
1001Details1285Details
1002 1286
1003API base URL for the model provider.1287When `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
1007`model_providers.<id>.env_http_headers`1291`memories.extract_model`
1008 1292
1009Type / Values1293Type / Values
1010 1294
1011`map<string,string>`1295`string`
1012 1296
1013Details1297Details
1014 1298
1015HTTP headers populated from environment variables when present.1299Optional model override for per-thread memory extraction.
1016 1300
1017Key1301Key
1018 1302
1019`model_providers.<id>.env_key`1303`memories.generate_memories`
1020 1304
1021Type / Values1305Type / Values
1022 1306
1023`string`1307`boolean`
1024 1308
1025Details1309Details
1026 1310
1027Environment variable supplying the provider API key.1311When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.
1028 1312
1029Key1313Key
1030 1314
1031`model_providers.<id>.env_key_instructions`1315`memories.max_raw_memories_for_consolidation`
1032 1316
1033Type / Values1317Type / Values
1034 1318
1035`string`1319`number`
1036 1320
1037Details1321Details
1038 1322
1039Optional setup guidance for the provider API key.1323Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.
1040 1324
1041Key1325Key
1042 1326
1043`model_providers.<id>.experimental_bearer_token`1327`memories.max_rollout_age_days`
1044 1328
1045Type / Values1329Type / Values
1046 1330
1047`string`1331`number`
1048 1332
1049Details1333Details
1050 1334
1051Direct bearer token for the provider (discouraged; use `env_key`).1335Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.
1052 1336
1053Key1337Key
1054 1338
1055`model_providers.<id>.http_headers`1339`memories.max_rollouts_per_startup`
1056 1340
1057Type / Values1341Type / Values
1058 1342
1059`map<string,string>`1343`number`
1060 1344
1061Details1345Details
1062 1346
1063Static HTTP headers added to provider requests.1347Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.
1064 1348
1065Key1349Key
1066 1350
1067`model_providers.<id>.name`1351`memories.max_unused_days`
1068 1352
1069Type / Values1353Type / Values
1070 1354
1071`string`1355`number`
1072 1356
1073Details1357Details
1074 1358
1075Display name for a custom model provider.1359Maximum 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
1079`model_providers.<id>.query_params`1363`memories.min_rate_limit_remaining_percent`
1080 1364
1081Type / Values1365Type / Values
1082 1366
1083`map<string,string>`1367`number`
1084 1368
1085Details1369Details
1086 1370
1087Extra query parameters appended to provider requests.1371Minimum 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
1091`model_providers.<id>.request_max_retries`1375`memories.min_rollout_idle_hours`
1092 1376
1093Type / Values1377Type / Values
1094 1378
1096 1380
1097Details1381Details
1098 1382
1099Retry count for HTTP requests to the provider (default: 4).1383Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.
1100 1384
1101Key1385Key
1102 1386
1103`model_providers.<id>.requires_openai_auth`1387`memories.use_memories`
1104 1388
1105Type / Values1389Type / Values
1106 1390
1108 1392
1109Details1393Details
1110 1394
1111The provider uses OpenAI authentication (defaults to false).1395When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.
1112 1396
1113Key1397Key
1114 1398
1115`model_providers.<id>.stream_idle_timeout_ms`1399`model`
1116 1400
1117Type / Values1401Type / Values
1118 1402
1119`number`1403`string`
1120 1404
1121Details1405Details
1122 1406
1123Idle timeout for SSE streams in milliseconds (default: 300000).1407Model to use (e.g., `gpt-5.5`).
1124 1408
1125Key1409Key
1126 1410
1127`model_providers.<id>.stream_max_retries`1411`model_auto_compact_token_limit`
1128 1412
1129Type / Values1413Type / Values
1130 1414
1132 1416
1133Details1417Details
1134 1418
1135Retry count for SSE streaming interruptions (default: 5).1419Token threshold that triggers automatic history compaction (unset uses model defaults).
1136 1420
1137Key1421Key
1138 1422
1139`model_providers.<id>.wire_api`1423`model_catalog_json`
1140 1424
1141Type / Values1425Type / Values
1142 1426
1143`chat | responses`1427`string (path)`
1144 1428
1145Details1429Details
1146 1430
1147Protocol used by the provider (defaults to `chat` if omitted).1431Optional 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
1151`model_reasoning_effort`1435`model_context_window`
1152 1436
1153Type / Values1437Type / Values
1154 1438
1155`minimal | low | medium | high | xhigh`1439`number`
1156 1440
1157Details1441Details
1158 1442
1159Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).1443Context window tokens available to the active model.
1160 1444
1161Key1445Key
1162 1446
1163`model_reasoning_summary`1447`model_instructions_file`
1164 1448
1165Type / Values1449Type / Values
1166 1450
1167`auto | concise | detailed | none`1451`string (path)`
1168 1452
1169Details1453Details
1170 1454
1171Select reasoning summary detail or disable summaries entirely.1455Replacement for built-in instructions instead of `AGENTS.md`.
1172 1456
1173Key1457Key
1174 1458
1175`model_supports_reasoning_summaries`1459`model_provider`
1176 1460
1177Type / Values1461Type / Values
1178 1462
1179`boolean`1463`string`
1180 1464
1181Details1465Details
1182 1466
1183Force Codex to send or not send reasoning metadata.1467Provider id from `model_providers` (default: `openai`).
1184 1468
1185Key1469Key
1186 1470
1187`model_verbosity`1471`model_providers.<id>`
1188 1472
1189Type / Values1473Type / Values
1190 1474
1191`low | medium | high`1475`table`
1192 1476
1193Details1477Details
1194 1478
1195Control GPT-5 Responses API verbosity (defaults to `medium`).1479Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.
1196 1480
1197Key1481Key
1198 1482
1199`notice.hide_full_access_warning`1483`model_providers.<id>.auth`
1200 1484
1201Type / Values1485Type / Values
1202 1486
1203`boolean`1487`table`
1204 1488
1205Details1489Details
1206 1490
1207Track acknowledgement of the full access warning prompt.1491Command-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
1211`notice.hide_gpt-5.1-codex-max_migration_prompt`1495`model_providers.<id>.auth.args`
1212 1496
1213Type / Values1497Type / Values
1214 1498
1215`boolean`1499`array<string>`
1216 1500
1217Details1501Details
1218 1502
1219Track acknowledgement of the gpt-5.1-codex-max migration prompt.1503Arguments passed to the token command.
1220 1504
1221Key1505Key
1222 1506
1223`notice.hide_gpt5_1_migration_prompt`1507`model_providers.<id>.auth.command`
1224 1508
1225Type / Values1509Type / Values
1226 1510
1227`boolean`1511`string`
1228 1512
1229Details1513Details
1230 1514
1231Track acknowledgement of the GPT-5.1 migration prompt.1515Command to run when Codex needs a bearer token. The command must print the token to stdout.
1232 1516
1233Key1517Key
1234 1518
1235`notice.hide_rate_limit_model_nudge`1519`model_providers.<id>.auth.cwd`
1236 1520
1237Type / Values1521Type / Values
1238 1522
1239`boolean`1523`string (path)`
1240 1524
1241Details1525Details
1242 1526
1243Track opt-out of the rate limit model switch reminder.1527Working directory for the token command.
1244 1528
1245Key1529Key
1246 1530
1247`notice.hide_world_writable_warning`1531`model_providers.<id>.auth.refresh_interval_ms`
1248 1532
1249Type / Values1533Type / Values
1250 1534
1251`boolean`1535`number`
1252 1536
1253Details1537Details
1254 1538
1255Track acknowledgement of the Windows world-writable directories warning.1539How 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
1259`notice.model_migrations`1543`model_providers.<id>.auth.timeout_ms`
1260 1544
1261Type / Values1545Type / Values
1262 1546
1263`map<string,string>`1547`number`
1264 1548
1265Details1549Details
1266 1550
1267Track acknowledged model migrations as old->new mappings.1551Maximum token command runtime in milliseconds (default: 5000).
1268 1552
1269Key1553Key
1270 1554
1271`notify`1555`model_providers.<id>.base_url`
1272 1556
1273Type / Values1557Type / Values
1274 1558
1275`array<string>`1559`string`
1276 1560
1277Details1561Details
1278 1562
1279Command invoked for notifications; receives a JSON payload from Codex.1563API base URL for the model provider.
1280 1564
1281Key1565Key
1282 1566
1283`oss_provider`1567`model_providers.<id>.env_http_headers`
1284 1568
1285Type / Values1569Type / Values
1286 1570
1287`lmstudio | ollama`1571`map<string,string>`
1288 1572
1289Details1573Details
1290 1574
1291Default local provider used when running with `--oss` (defaults to prompting if unset).1575HTTP headers populated from environment variables when present.
1292 1576
1293Key1577Key
1294 1578
1295`otel.environment`1579`model_providers.<id>.env_key`
1296 1580
1297Type / Values1581Type / Values
1298 1582
1300 1584
1301Details1585Details
1302 1586
1303Environment tag applied to emitted OpenTelemetry events (default: `dev`).1587Environment variable supplying the provider API key.
1304 1588
1305Key1589Key
1306 1590
1307`otel.exporter`1591`model_providers.<id>.env_key_instructions`
1308 1592
1309Type / Values1593Type / Values
1310 1594
1311`none | otlp-http | otlp-grpc`1595`string`
1312 1596
1313Details1597Details
1314 1598
1315Select the OpenTelemetry exporter and provide any endpoint metadata.1599Optional setup guidance for the provider API key.
1316 1600
1317Key1601Key
1318 1602
1319`otel.exporter.<id>.endpoint`1603`model_providers.<id>.experimental_bearer_token`
1320 1604
1321Type / Values1605Type / Values
1322 1606
1324 1608
1325Details1609Details
1326 1610
1327Exporter endpoint for OTEL logs.1611Direct bearer token for the provider (discouraged; use `env_key`).
1328 1612
1329Key1613Key
1330 1614
1331`otel.exporter.<id>.headers`1615`model_providers.<id>.http_headers`
1332 1616
1333Type / Values1617Type / Values
1334 1618
1336 1620
1337Details1621Details
1338 1622
1339Static headers included with OTEL exporter requests.1623Static HTTP headers added to provider requests.
1340 1624
1341Key1625Key
1342 1626
1343`otel.exporter.<id>.protocol`1627`model_providers.<id>.name`
1344 1628
1345Type / Values1629Type / Values
1346 1630
1347`binary | json`1631`string`
1348 1632
1349Details1633Details
1350 1634
1351Protocol used by the OTLP/HTTP exporter.1635Display name for a custom model provider.
1352 1636
1353Key1637Key
1354 1638
1355`otel.exporter.<id>.tls.ca-certificate`1639`model_providers.<id>.query_params`
1356 1640
1357Type / Values1641Type / Values
1358 1642
1359`string`1643`map<string,string>`
1360 1644
1361Details1645Details
1362 1646
1363CA certificate path for OTEL exporter TLS.1647Extra query parameters appended to provider requests.
1364 1648
1365Key1649Key
1366 1650
1367`otel.exporter.<id>.tls.client-certificate`1651`model_providers.<id>.request_max_retries`
1368 1652
1369Type / Values1653Type / Values
1370 1654
1371`string`1655`number`
1372 1656
1373Details1657Details
1374 1658
1375Client certificate path for OTEL exporter TLS.1659Retry count for HTTP requests to the provider (default: 4).
1376 1660
1377Key1661Key
1378 1662
1379`otel.exporter.<id>.tls.client-private-key`1663`model_providers.<id>.requires_openai_auth`
1380 1664
1381Type / Values1665Type / Values
1382 1666
1383`string`1667`boolean`
1384 1668
1385Details1669Details
1386 1670
1387Client private key path for OTEL exporter TLS.1671The provider uses OpenAI authentication (defaults to false).
1388 1672
1389Key1673Key
1390 1674
1391`otel.log_user_prompt`1675`model_providers.<id>.stream_idle_timeout_ms`
1392 1676
1393Type / Values1677Type / Values
1394 1678
1395`boolean`1679`number`
1396 1680
1397Details1681Details
1398 1682
1399Opt in to exporting raw user prompts with OpenTelemetry logs.1683Idle timeout for SSE streams in milliseconds (default: 300000).
1400 1684
1401Key1685Key
1402 1686
1403`otel.trace_exporter`1687`model_providers.<id>.stream_max_retries`
1404 1688
1405Type / Values1689Type / Values
1406 1690
1407`none | otlp-http | otlp-grpc`1691`number`
1408 1692
1409Details1693Details
1410 1694
1411Select the OpenTelemetry trace exporter and provide any endpoint metadata.1695Retry count for SSE streaming interruptions (default: 5).
1412 1696
1413Key1697Key
1414 1698
1415`otel.trace_exporter.<id>.endpoint`1699`model_providers.<id>.supports_websockets`
1416 1700
1417Type / Values1701Type / Values
1418 1702
1419`string`1703`boolean`
1420 1704
1421Details1705Details
1422 1706
1423Trace exporter endpoint for OTEL logs.1707Whether that provider supports the Responses API WebSocket transport.
1424 1708
1425Key1709Key
1426 1710
1427`otel.trace_exporter.<id>.headers`1711`model_providers.<id>.wire_api`
1428 1712
1429Type / Values1713Type / Values
1430 1714
1431`map<string,string>`1715`responses`
1432 1716
1433Details1717Details
1434 1718
1435Static headers included with OTEL trace exporter requests.1719Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1436 1720
1437Key1721Key
1438 1722
1439`otel.trace_exporter.<id>.protocol`1723`model_providers.amazon-bedrock.aws.profile`
1440 1724
1441Type / Values1725Type / Values
1442 1726
1443`binary | json`1727`string`
1444 1728
1445Details1729Details
1446 1730
1447Protocol used by the OTLP/HTTP trace exporter.1731AWS profile name used by the built-in `amazon-bedrock` provider.
1448 1732
1449Key1733Key
1450 1734
1451`otel.trace_exporter.<id>.tls.ca-certificate`1735`model_providers.amazon-bedrock.aws.region`
1452 1736
1453Type / Values1737Type / Values
1454 1738
1456 1740
1457Details1741Details
1458 1742
1459CA certificate path for OTEL trace exporter TLS.1743AWS region used by the built-in `amazon-bedrock` provider.
1460 1744
1461Key1745Key
1462 1746
1463`otel.trace_exporter.<id>.tls.client-certificate`1747`model_reasoning_effort`
1464 1748
1465Type / Values1749Type / Values
1466 1750
1467`string`1751`minimal | low | medium | high | xhigh`
1468 1752
1469Details1753Details
1470 1754
1471Client certificate path for OTEL trace exporter TLS.1755Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).
1472 1756
1473Key1757Key
1474 1758
1475`otel.trace_exporter.<id>.tls.client-private-key`1759`model_reasoning_summary`
1476 1760
1477Type / Values1761Type / Values
1478 1762
1479`string`1763`auto | concise | detailed | none`
1480 1764
1481Details1765Details
1482 1766
1483Client private key path for OTEL trace exporter TLS.1767Select reasoning summary detail or disable summaries entirely.
1484 1768
1485Key1769Key
1486 1770
1487`personality`1771`model_supports_reasoning_summaries`
1488 1772
1489Type / Values1773Type / Values
1490 1774
1491`none | friendly | pragmatic`1775`boolean`
1492 1776
1493Details1777Details
1494 1778
1495Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.1779Force Codex to send or not send reasoning metadata.
1496 1780
1497Key1781Key
1498 1782
1499`profile`1783`model_verbosity`
1500 1784
1501Type / Values1785Type / Values
1502 1786
1503`string`1787`low | medium | high`
1504 1788
1505Details1789Details
1506 1790
1507Default profile applied at startup (equivalent to `--profile`).1791Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1508 1792
1509Key1793Key
1510 1794
1511`profiles.<name>.*`1795`notice.hide_full_access_warning`
1512 1796
1513Type / Values1797Type / Values
1514 1798
1515`various`1799`boolean`
1516 1800
1517Details1801Details
1518 1802
1519Profile-scoped overrides for any of the supported configuration keys.1803Track acknowledgement of the full access warning prompt.
1520 1804
1521Key1805Key
1522 1806
1523`profiles.<name>.experimental_use_freeform_apply_patch`1807`notice.hide_gpt-5.1-codex-max_migration_prompt`
1524 1808
1525Type / Values1809Type / Values
1526 1810
1528 1812
1529Details1813Details
1530 1814
1531Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.1815Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1532 1816
1533Key1817Key
1534 1818
1535`profiles.<name>.experimental_use_unified_exec_tool`1819`notice.hide_gpt5_1_migration_prompt`
1536 1820
1537Type / Values1821Type / Values
1538 1822
1540 1824
1541Details1825Details
1542 1826
1543Legacy name for enabling unified exec; prefer `[features].unified_exec`.1827Track acknowledgement of the GPT-5.1 migration prompt.
1544 1828
1545Key1829Key
1546 1830
1547`profiles.<name>.include_apply_patch_tool`1831`notice.hide_rate_limit_model_nudge`
1548 1832
1549Type / Values1833Type / Values
1550 1834
1552 1836
1553Details1837Details
1554 1838
1555Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.1839Track opt-out of the rate limit model switch reminder.
1556 1840
1557Key1841Key
1558 1842
1559`profiles.<name>.oss_provider`1843`notice.hide_world_writable_warning`
1560 1844
1561Type / Values1845Type / Values
1562 1846
1563`lmstudio | ollama`1847`boolean`
1564 1848
1565Details1849Details
1566 1850
1567Profile-scoped OSS provider for `--oss` sessions.1851Track acknowledgement of the Windows world-writable directories warning.
1568 1852
1569Key1853Key
1570 1854
1571`profiles.<name>.personality`1855`notice.model_migrations`
1572 1856
1573Type / Values1857Type / Values
1574 1858
1575`none | friendly | pragmatic`1859`map<string,string>`
1576 1860
1577Details1861Details
1578 1862
1579Profile-scoped communication style override for supported models.1863Track acknowledged model migrations as old->new mappings.
1580 1864
1581Key1865Key
1582 1866
1583`profiles.<name>.web_search`1867`notify`
1584 1868
1585Type / Values1869Type / Values
1586 1870
1587`disabled | cached | live`1871`array<string>`
1588 1872
1589Details1873Details
1590 1874
1591Profile-scoped web search mode override (default: `"cached"`).1875Command invoked for notifications; receives a JSON payload from Codex.
1592 1876
1593Key1877Key
1594 1878
1595`project_doc_fallback_filenames`1879`openai_base_url`
1596 1880
1597Type / Values1881Type / Values
1598 1882
1599`array<string>`1883`string`
1600 1884
1601Details1885Details
1602 1886
1603Additional filenames to try when `AGENTS.md` is missing.1887Base URL override for the built-in `openai` model provider.
1604 1888
1605Key1889Key
1606 1890
1607`project_doc_max_bytes`1891`oss_provider`
1608 1892
1609Type / Values1893Type / Values
1610 1894
1611`number`1895`lmstudio | ollama`
1612 1896
1613Details1897Details
1614 1898
1615Maximum bytes read from `AGENTS.md` when building project instructions.1899Default local provider used when running with `--oss` (defaults to prompting if unset).
1616 1900
1617Key1901Key
1618 1902
1619`project_root_markers`1903`otel.environment`
1620 1904
1621Type / Values1905Type / Values
1622 1906
1623`array<string>`1907`string`
1624 1908
1625Details1909Details
1626 1910
1627List of project root marker filenames; used when searching parent directories for the project root.1911Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1628 1912
1629Key1913Key
1630 1914
1631`projects.<path>.trust_level`1915`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
1639Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers.1935Exporter endpoint for OTEL logs.
1640 1936
1641Key1937Key
1642 1938
1643`review_model`1939`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
1651Optional model override used by `/review` (defaults to the current session model).1971CA certificate path for OTEL exporter TLS.
1652 1972
1653Key1973Key
1654 1974
1655`sandbox_mode`1975`otel.exporter.<id>.tls.client-certificate`
1656 1976
1657Type / Values1977Type / Values
1658 1978
1659`read-only | workspace-write | danger-full-access`1979`string`
1660 1980
1661Details1981Details
1662 1982
1663Sandbox policy for filesystem and network access during command execution.1983Client certificate path for OTEL exporter TLS.
1664 1984
1665Key1985Key
1666 1986
1667`sandbox_workspace_write.exclude_slash_tmp`1987`otel.exporter.<id>.tls.client-private-key`
1668 1988
1669Type / Values1989Type / Values
1670 1990
1671`boolean`1991`string`
1672 1992
1673Details1993Details
1674 1994
1675Exclude `/tmp` from writable roots in workspace-write mode.1995Client private key path for OTEL exporter TLS.
1676 1996
1677Key1997Key
1678 1998
1679`sandbox_workspace_write.exclude_tmpdir_env_var`1999`otel.log_user_prompt`
1680 2000
1681Type / Values2001Type / Values
1682 2002
1684 2004
1685Details2005Details
1686 2006
1687Exclude `$TMPDIR` from writable roots in workspace-write mode.2007Opt in to exporting raw user prompts with OpenTelemetry logs.
1688 2008
1689Key2009Key
1690 2010
1691`sandbox_workspace_write.network_access`2011`otel.metrics_exporter`
1692 2012
1693Type / Values2013Type / Values
1694 2014
1695`boolean`2015`none | statsig | otlp-http | otlp-grpc`
1696 2016
1697Details2017Details
1698 2018
1699Allow outbound network access inside the workspace-write sandbox.2019Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1700 2020
1701Key2021Key
1702 2022
1703`sandbox_workspace_write.writable_roots`2023`otel.trace_exporter`
1704 2024
1705Type / Values2025Type / Values
1706 2026
1707`array<string>`2027`none | otlp-http | otlp-grpc`
1708 2028
1709Details2029Details
1710 2030
1711Additional writable roots when `sandbox_mode = "workspace-write"`.2031Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1712 2032
1713Key2033Key
1714 2034
1715`shell_environment_policy.exclude`2035`otel.trace_exporter.<id>.endpoint`
1716 2036
1717Type / Values2037Type / Values
1718 2038
1719`array<string>`2039`string`
1720 2040
1721Details2041Details
1722 2042
1723Glob patterns for removing environment variables after the defaults.2043Trace exporter endpoint for OTEL logs.
1724 2044
1725Key2045Key
1726 2046
1727`shell_environment_policy.experimental_use_profile`2047`otel.trace_exporter.<id>.headers`
1728 2048
1729Type / Values2049Type / Values
1730 2050
1731`boolean`2051`map<string,string>`
1732 2052
1733Details2053Details
1734 2054
1735Use the user shell profile when spawning subprocesses.2055Static headers included with OTEL trace exporter requests.
1736 2056
1737Key2057Key
1738 2058
1739`shell_environment_policy.ignore_default_excludes`2059`otel.trace_exporter.<id>.protocol`
1740 2060
1741Type / Values2061Type / Values
1742 2062
1743`boolean`2063`binary | json`
1744 2064
1745Details2065Details
1746 2066
1747Keep variables containing KEY/SECRET/TOKEN before other filters run.2067Protocol used by the OTLP/HTTP trace exporter.
1748 2068
1749Key2069Key
1750 2070
1751`shell_environment_policy.include_only`2071`otel.trace_exporter.<id>.tls.ca-certificate`
1752 2072
1753Type / Values2073Type / Values
1754 2074
1755`array<string>`2075`string`
1756 2076
1757Details2077Details
1758 2078
1759Whitelist of patterns; when set only matching variables are kept.2079CA certificate path for OTEL trace exporter TLS.
1760 2080
1761Key2081Key
1762 2082
1763`shell_environment_policy.inherit`2083`otel.trace_exporter.<id>.tls.client-certificate`
1764 2084
1765Type / Values2085Type / Values
1766 2086
1767`all | core | none`2087`string`
1768 2088
1769Details2089Details
1770 2090
1771Baseline environment inheritance when spawning subprocesses.2091Client certificate path for OTEL trace exporter TLS.
1772 2092
1773Key2093Key
1774 2094
1775`shell_environment_policy.set`2095`otel.trace_exporter.<id>.tls.client-private-key`
1776 2096
1777Type / Values2097Type / Values
1778 2098
1779`map<string,string>`2099`string`
1780 2100
1781Details2101Details
1782 2102
1783Explicit environment overrides injected into every subprocess.2103Client private key path for OTEL trace exporter TLS.
1784 2104
1785Key2105Key
1786 2106
1787`show_raw_agent_reasoning`2107`permissions.<name>.filesystem`
1788 2108
1789Type / Values2109Type / Values
1790 2110
1791`boolean`2111`table`
1792 2112
1793Details2113Details
1794 2114
1795Surface raw reasoning content when the active model emits it.2115Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.
1796 2116
1797Key2117Key
1798 2118
1799`skills.config`2119`permissions.<name>.filesystem.":project_roots".<subpath-or-glob>`
1800 2120
1801Type / Values2121Type / Values
1802 2122
1803`array<object>`2123`"read" | "write" | "none"`
1804 2124
1805Details2125Details
1806 2126
1807Per-skill enablement overrides stored in config.toml.2127Scoped 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
1811`skills.config.<index>.enabled`2131`permissions.<name>.filesystem.<path-or-glob>`
1812 2132
1813Type / Values2133Type / Values
1814 2134
1815`boolean`2135`"read" | "write" | "none" | table`
1816 2136
1817Details2137Details
1818 2138
1819Enable or disable the referenced skill.2139Grant direct access for a path, glob pattern, or special token, or scope nested entries under that root. Use `"none"` to deny reads for matching paths.
1820 2140
1821Key2141Key
1822 2142
1823`skills.config.<index>.path`2143`permissions.<name>.filesystem.glob_scan_max_depth`
1824 2144
1825Type / Values2145Type / Values
1826 2146
1827`string (path)`2147`number`
1828 2148
1829Details2149Details
1830 2150
1831Path to a skill folder containing `SKILL.md`.2151Maximum 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
1835`suppress_unstable_features_warning`2155`permissions.<name>.network.allow_local_binding`
1836 2156
1837Type / Values2157Type / Values
1838 2158
1840 2160
1841Details2161Details
1842 2162
1843Suppress the warning that appears when under-development feature flags are enabled.2163Permit local bind/listen operations through the managed proxy.
1844 2164
1845Key2165Key
1846 2166
1847`tool_output_token_limit`2167`permissions.<name>.network.allow_upstream_proxy`
1848 2168
1849Type / Values2169Type / Values
1850 2170
1851`number`2171`boolean`
1852 2172
1853Details2173Details
1854 2174
1855Token budget for storing individual tool/function outputs in history.2175Allow the managed proxy to chain to another upstream proxy.
1856 2176
1857Key2177Key
1858 2178
1859`tools.web_search`2179`permissions.<name>.network.dangerously_allow_all_unix_sockets`
1860 2180
1861Type / Values2181Type / Values
1862 2182
1864 2184
1865Details2185Details
1866 2186
1867Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.2187Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
1868 2188
1869Key2189Key
1870 2190
1871`tui`2191`permissions.<name>.network.dangerously_allow_non_loopback_proxy`
1872 2192
1873Type / Values2193Type / Values
1874 2194
1875`table`2195`boolean`
1876 2196
1877Details2197Details
1878 2198
1879TUI-specific options such as enabling inline desktop notifications.2199Permit non-loopback bind addresses for the managed proxy listener.
1880 2200
1881Key2201Key
1882 2202
1883`tui.alternate_screen`2203`permissions.<name>.network.domains`
1884 2204
1885Type / Values2205Type / Values
1886 2206
1887`auto | always | never`2207`map<string, allow | deny>`
1888 2208
1889Details2209Details
1890 2210
1891Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).2211Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.
1892 2212
1893Key2213Key
1894 2214
1895`tui.animations`2215`permissions.<name>.network.enable_socks5`
1896 2216
1897Type / Values2217Type / Values
1898 2218
1900 2220
1901Details2221Details
1902 2222
1903Enable terminal animations (welcome screen, shimmer, spinner) (default: true).2223Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.
1904 2224
1905Key2225Key
1906 2226
1907`tui.notification_method`2227`permissions.<name>.network.enable_socks5_udp`
1908 2228
1909Type / Values2229Type / Values
1910 2230
1911`auto | osc9 | bel`2231`boolean`
1912 2232
1913Details2233Details
1914 2234
1915Notification method for unfocused terminal notifications (default: auto).2235Allow UDP over the SOCKS5 listener when enabled.
1916 2236
1917Key2237Key
1918 2238
1919`tui.notifications`2239`permissions.<name>.network.enabled`
1920 2240
1921Type / Values2241Type / Values
1922 2242
1923`boolean | array<string>`2243`boolean`
1924 2244
1925Details2245Details
1926 2246
1927Enable TUI notifications; optionally restrict to specific event types.2247Enable network access for this named permissions profile.
1928 2248
1929Key2249Key
1930 2250
1931`tui.show_tooltips`2251`permissions.<name>.network.mode`
1932 2252
1933Type / Values2253Type / Values
1934 2254
1935`boolean`2255`limited | full`
1936 2256
1937Details2257Details
1938 2258
1939Show onboarding tooltips in the TUI welcome screen (default: true).2259Network proxy mode used for subprocess traffic.
1940 2260
1941Key2261Key
1942 2262
1943`tui.status_line`2263`permissions.<name>.network.proxy_url`
1944 2264
1945Type / Values2265Type / Values
1946 2266
1947`array<string> | null`2267`string`
1948 2268
1949Details2269Details
1950 2270
1951Ordered list of TUI footer status-line item identifiers. `null` disables the status line.2271HTTP proxy endpoint used when this permissions profile enables the managed network proxy.
1952 2272
1953Key2273Key
1954 2274
1955`web_search`2275`permissions.<name>.network.socks_url`
1956 2276
1957Type / Values2277Type / Values
1958 2278
1959`disabled | cached | live`2279`string`
1960 2280
1961Details2281Details
1962 2282
1963Web 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.2283SOCKS5 proxy endpoint used by this permissions profile.
1964 2284
1965Key2285Key
1966 2286
1967`windows_wsl_setup_acknowledged`2287`permissions.<name>.network.unix_sockets`
1968 2288
1969Type / Values2289Type / Values
1970 2290
1971`boolean`2291`map<string, allow | none>`
1972 2292
1973Details2293Details
1974 2294
1975Track Windows onboarding acknowledgement (Windows only).2295Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.
1976 2296
1977Expand to view all2297Key
1978 2298
1979You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).2299`personality`
1980 2300
1981To 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`:2301Type / Values
1982 2302
1983```toml2303`none | friendly | pragmatic`
1984#:schema https://developers.openai.com/codex/config-schema.json
1985```
1986 2304
1987Note: Rename `experimental_instructions_file` to `model_instructions_file`. Codex deprecates the old key; update existing configs to the new name.2305Details
1988 2306
1989## `requirements.toml`2307Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
1990 2308
1991`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).2309Key
1992 2310
1993For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched2311`plan_mode_reasoning_effort`
1994requirements. See the security page for precedence details.
1995 2312
1996| Key | Type / Values | Details |2313Type / Values
1997| --- | --- | --- |2314
1998| `allowed_approval_policies` | `array<string>` | Allowed values for `approval\_policy`. |2315`none | minimal | low | medium | high | xhigh`
1999| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |2316
2000| `allowed_web_search_modes` | `array<string>` | Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`. |2317Details
2001| `mcp_servers` | `table` | Allowlist of MCP servers that may be enabled. Both the server name (`<id>`) and its identity must match for the MCP server to be enabled. Any configured MCP server not in the allowlist (or with a mismatched identity) is disabled. |2318
2002| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |2319Plan-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
2015`allowed_approval_policies`2323`profile`
2016 2324
2017Type / Values2325Type / Values
2018 2326
2019`array<string>`2327`string`
2020 2328
2021Details2329Details
2022 2330
2023Allowed values for `approval\_policy`.2331Default profile applied at startup (equivalent to `--profile`).
2024 2332
2025Key2333Key
2026 2334
2027`allowed_sandbox_modes`2335`profiles.<name>.*`
2028 2336
2029Type / Values2337Type / Values
2030 2338
2031`array<string>`2339`various`
2032 2340
2033Details2341Details
2034 2342
2035Allowed values for `sandbox_mode`.2343Profile-scoped overrides for any of the supported configuration keys.
2036 2344
2037Key2345Key
2038 2346
2039`allowed_web_search_modes`2347`profiles.<name>.analytics.enabled`
2040 2348
2041Type / Values2349Type / Values
2042 2350
2043`array<string>`2351`boolean`
2044 2352
2045Details2353Details
2046 2354
2047Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.2355Profile-scoped analytics enablement override.
2048 2356
2049Key2357Key
2050 2358
2051`mcp_servers`2359`profiles.<name>.experimental_use_unified_exec_tool`
2052 2360
2053Type / Values2361Type / Values
2054 2362
2055`table`2363`boolean`
2056 2364
2057Details2365Details
2058 2366
2059Allowlist 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.2367Legacy name for enabling unified exec; prefer `[features].unified_exec`.
2060 2368
2061Key2369Key
2062 2370
2063`mcp_servers.<id>.identity`2371`profiles.<name>.model_catalog_json`
2064 2372
2065Type / Values2373Type / Values
2066 2374
2067`table`2375`string (path)`
2068 2376
2069Details2377Details
2070 2378
2071Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).2379Profile-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
2075`mcp_servers.<id>.identity.command`2383`profiles.<name>.model_instructions_file`
2076 2384
2077Type / Values2385Type / Values
2078 2386
2079`string`2387`string (path)`
2080 2388
2081Details2389Details
2082 2390
2083Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.2391Profile-scoped replacement for the built-in instruction file.
2084 2392
2085Key2393Key
2086 2394
2087`mcp_servers.<id>.identity.url`2395`profiles.<name>.oss_provider`
2088 2396
2089Type / Values2397Type / Values
2090 2398
2091`string`2399`lmstudio | ollama`
2092 2400
2093Details2401Details
2094 2402
2095Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.2403Profile-scoped OSS provider for `--oss` sessions.
2404
2405Key
2406
2407`profiles.<name>.personality`
2408
2409Type / Values
2410
2411`none | friendly | pragmatic`
2412
2413Details
2414
2415Profile-scoped communication style override for supported models.
2416
2417Key
2418
2419`profiles.<name>.plan_mode_reasoning_effort`
2420
2421Type / Values
2422
2423`none | minimal | low | medium | high | xhigh`
2424
2425Details
2426
2427Profile-scoped Plan-mode reasoning override.
2428
2429Key
2430
2431`profiles.<name>.service_tier`
2432
2433Type / Values
2434
2435`flex | fast`
2436
2437Details
2438
2439Profile-scoped service tier preference for new turns.
2440
2441Key
2442
2443`profiles.<name>.tools_view_image`
2444
2445Type / Values
2446
2447`boolean`
2448
2449Details
2450
2451Enable or disable the `view_image` tool in that profile.
2452
2453Key
2454
2455`profiles.<name>.web_search`
2456
2457Type / Values
2458
2459`disabled | cached | live`
2460
2461Details
2462
2463Profile-scoped web search mode override (default: `"cached"`).
2464
2465Key
2466
2467`profiles.<name>.windows.sandbox`
2468
2469Type / Values
2470
2471`unelevated | elevated`
2472
2473Details
2474
2475Profile-scoped Windows sandbox mode override.
2476
2477Key
2478
2479`project_doc_fallback_filenames`
2480
2481Type / Values
2482
2483`array<string>`
2484
2485Details
2486
2487Additional filenames to try when `AGENTS.md` is missing.
2488
2489Key
2490
2491`project_doc_max_bytes`
2492
2493Type / Values
2494
2495`number`
2496
2497Details
2498
2499Maximum bytes read from `AGENTS.md` when building project instructions.
2500
2501Key
2502
2503`project_root_markers`
2504
2505Type / Values
2506
2507`array<string>`
2508
2509Details
2510
2511List of project root marker filenames; used when searching parent directories for the project root.
2512
2513Key
2514
2515`projects.<path>.trust_level`
2516
2517Type / Values
2518
2519`string`
2520
2521Details
2522
2523Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers, including project-local config, hooks, and rules.
2524
2525Key
2526
2527`review_model`
2528
2529Type / Values
2530
2531`string`
2532
2533Details
2534
2535Optional model override used by `/review` (defaults to the current session model).
2536
2537Key
2538
2539`sandbox_mode`
2540
2541Type / Values
2542
2543`read-only | workspace-write | danger-full-access`
2544
2545Details
2546
2547Sandbox policy for filesystem and network access during command execution.
2548
2549Key
2550
2551`sandbox_workspace_write.exclude_slash_tmp`
2552
2553Type / Values
2554
2555`boolean`
2556
2557Details
2558
2559Exclude `/tmp` from writable roots in workspace-write mode.
2560
2561Key
2562
2563`sandbox_workspace_write.exclude_tmpdir_env_var`
2564
2565Type / Values
2566
2567`boolean`
2568
2569Details
2570
2571Exclude `$TMPDIR` from writable roots in workspace-write mode.
2572
2573Key
2574
2575`sandbox_workspace_write.network_access`
2576
2577Type / Values
2578
2579`boolean`
2580
2581Details
2582
2583Allow outbound network access inside the workspace-write sandbox.
2584
2585Key
2586
2587`sandbox_workspace_write.writable_roots`
2588
2589Type / Values
2590
2591`array<string>`
2592
2593Details
2594
2595Additional writable roots when `sandbox_mode = "workspace-write"`.
2596
2597Key
2598
2599`service_tier`
2600
2601Type / Values
2602
2603`flex | fast`
2604
2605Details
2606
2607Preferred service tier for new turns.
2608
2609Key
2610
2611`shell_environment_policy.exclude`
2612
2613Type / Values
2614
2615`array<string>`
2616
2617Details
2618
2619Glob patterns for removing environment variables after the defaults.
2620
2621Key
2622
2623`shell_environment_policy.experimental_use_profile`
2624
2625Type / Values
2626
2627`boolean`
2628
2629Details
2630
2631Use the user shell profile when spawning subprocesses.
2632
2633Key
2634
2635`shell_environment_policy.ignore_default_excludes`
2636
2637Type / Values
2638
2639`boolean`
2640
2641Details
2642
2643Keep variables containing KEY/SECRET/TOKEN before other filters run.
2644
2645Key
2646
2647`shell_environment_policy.include_only`
2648
2649Type / Values
2650
2651`array<string>`
2652
2653Details
2654
2655Whitelist of patterns; when set only matching variables are kept.
2656
2657Key
2658
2659`shell_environment_policy.inherit`
2660
2661Type / Values
2662
2663`all | core | none`
2664
2665Details
2666
2667Baseline environment inheritance when spawning subprocesses.
2668
2669Key
2670
2671`shell_environment_policy.set`
2672
2673Type / Values
2674
2675`map<string,string>`
2676
2677Details
2678
2679Explicit environment overrides injected into every subprocess.
2680
2681Key
2682
2683`show_raw_agent_reasoning`
2684
2685Type / Values
2686
2687`boolean`
2688
2689Details
2690
2691Surface raw reasoning content when the active model emits it.
2692
2693Key
2694
2695`skills.config`
2696
2697Type / Values
2698
2699`array<object>`
2700
2701Details
2702
2703Per-skill enablement overrides stored in config.toml.
2704
2705Key
2706
2707`skills.config.<index>.enabled`
2708
2709Type / Values
2710
2711`boolean`
2712
2713Details
2714
2715Enable or disable the referenced skill.
2716
2717Key
2718
2719`skills.config.<index>.path`
2720
2721Type / Values
2722
2723`string (path)`
2724
2725Details
2726
2727Path to a skill folder containing `SKILL.md`.
2728
2729Key
2730
2731`sqlite_home`
2732
2733Type / Values
2734
2735`string (path)`
2736
2737Details
2738
2739Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.
2740
2741Key
2742
2743`suppress_unstable_features_warning`
2744
2745Type / Values
2746
2747`boolean`
2748
2749Details
2750
2751Suppress the warning that appears when under-development feature flags are enabled.
2752
2753Key
2754
2755`tool_output_token_limit`
2756
2757Type / Values
2758
2759`number`
2760
2761Details
2762
2763Token budget for storing individual tool/function outputs in history.
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