6 6
7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.
8 8
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/security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/security#network-access).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 10
11| Key | Type / Values | Details |11| Key | Type / Values | Details |
12| --- | --- | --- |12| --- | --- | --- |
13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |
14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |
15| `agents.<name>.nickname_candidates` | `array<string>` | Optional pool of display nicknames for spawned agents in that role. |
16| `agents.job_max_runtime_seconds` | `number` | Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker. |
15| `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |17| `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |
16| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. |18| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset. |
17| `allow_login_shell` | `boolean` | Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells. |19| `allow_login_shell` | `boolean` | Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells. |
18| `approval_policy` | `untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }` | Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. |20| `analytics.enabled` | `boolean` | Enable or disable analytics for this machine/profile. When unset, the client default applies. |
19| `approval_policy.reject.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user. |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. |
20| `approval_policy.reject.rules` | `boolean` | When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected. |22| `approval_policy.granular.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected. |
21| `approval_policy.reject.sandbox_approval` | `boolean` | When `true`, sandbox escalation approval prompts are 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. |
22| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. |27| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. |
23| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. |28| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. |
24| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. |29| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. |
33| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |38| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |
34| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |39| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |
35| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |40| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |
41| `commit_attribution` | `string` | Override the commit co-author trailer text. Set an empty string to disable automatic attribution. |
36| `compact_prompt` | `string` | Inline override for the history compaction prompt. |42| `compact_prompt` | `string` | Inline override for the history compaction prompt. |
43| `default_permissions` | `string` | Name of the default permissions profile to apply to sandboxed tool calls. |
37| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |44| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |
38| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |45| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |
39| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |46| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |
40| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. |
41| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |47| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |
42| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). |
43| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |48| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |
44| `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). |49| `features.codex_hooks` | `boolean` | Enable lifecycle hooks loaded from `hooks.json` (under development; off by default). |
45| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). |50| `features.enable_request_compression` | `boolean` | Compress streaming request bodies with zstd when supported (stable; on by default). |
46| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). |51| `features.fast_mode` | `boolean` | Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default). |
47| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). |52| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default). |
48| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |53| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |
49| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). |54| `features.prevent_idle_sleep` | `boolean` | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). |
50| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). |55| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (stable; on by default). |
51| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |
52| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |
53| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |
54| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |
55| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |56| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |
56| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). |57| `features.skill_mcp_dependency_install` | `boolean` | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). |
57| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). |58| `features.smart_approvals` | `boolean` | Route eligible approval requests through the guardian reviewer subagent (experimental; off by default). |
59| `features.undo` | `boolean` | Enable undo support (stable; off by default). |
60| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (stable; enabled by default except on Windows). |
58| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |61| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |
59| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |62| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |
60| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |63| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |
65| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |68| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |
66| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |69| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |
67| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |70| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |
68| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |
69| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |71| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |
70| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |72| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |
71| `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. |73| `mcp_oauth_callback_port` | `integer` | Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS. |
82| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |84| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |
83| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |85| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |
84| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |86| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |
87| `mcp_servers.<id>.oauth_resource` | `string` | Optional RFC 8707 OAuth resource parameter to include during MCP login. |
85| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |88| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |
89| `mcp_servers.<id>.scopes` | `array<string>` | OAuth scopes to request when authenticating to that MCP server. |
86| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |90| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |
87| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |91| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |
88| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |92| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |
105| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |109| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |
106| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |110| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |
107| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |111| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |
108| `model_providers.<id>.wire_api` | `chat | responses` | Protocol used by the provider (defaults to `chat` if omitted). |112| `model_providers.<id>.supports_websockets` | `boolean` | Whether that provider supports the Responses API WebSocket transport. |
113| `model_providers.<id>.wire_api` | `responses` | Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted. |
109| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |114| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |
110| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |115| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |
111| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |116| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |
112| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). |117| `model_verbosity` | `low | medium | high` | Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used. |
113| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |118| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |
114| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |119| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |
115| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |120| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |
117| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |122| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |
118| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |123| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |
119| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |124| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |
125| `openai_base_url` | `string` | Base URL override for the built-in `openai` model provider. |
120| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |126| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |
121| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |127| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |
122| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |128| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |
127| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |133| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |
128| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |134| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |
129| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |135| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |
136| `otel.metrics_exporter` | `none | statsig | otlp-http | otlp-grpc` | Select the OpenTelemetry metrics exporter (defaults to `statsig`). |
130| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |137| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |
131| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |138| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |
132| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |139| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |
134| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |141| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |
135| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |142| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |
136| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |143| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |
144| `permissions.<name>.filesystem` | `table` | Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`. |
145| `permissions.<name>.filesystem.":project_roots".<subpath>` | `"read" | "write" | "none"` | Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself. |
146| `permissions.<name>.filesystem.<path>` | `"read" | "write" | "none" | table` | Grant direct access for a path or special token, or scope nested entries under that root. |
147| `permissions.<name>.network.allow_local_binding` | `boolean` | Permit local bind/listen operations through the managed proxy. |
148| `permissions.<name>.network.allow_unix_sockets` | `array<string>` | Allowlist of Unix socket paths permitted through the managed proxy. |
149| `permissions.<name>.network.allow_upstream_proxy` | `boolean` | Allow the managed proxy to chain to another upstream proxy. |
150| `permissions.<name>.network.allowed_domains` | `array<string>` | Allowlist of domains permitted through the managed proxy. |
151| `permissions.<name>.network.dangerously_allow_all_unix_sockets` | `boolean` | Allow the proxy to use arbitrary Unix sockets instead of the default restricted set. |
152| `permissions.<name>.network.dangerously_allow_non_loopback_proxy` | `boolean` | Permit non-loopback bind addresses for the managed proxy listener. |
153| `permissions.<name>.network.denied_domains` | `array<string>` | Denylist of domains blocked by the managed proxy. |
154| `permissions.<name>.network.enable_socks5` | `boolean` | Expose a SOCKS5 listener when this permissions profile enables the managed network proxy. |
155| `permissions.<name>.network.enable_socks5_udp` | `boolean` | Allow UDP over the SOCKS5 listener when enabled. |
156| `permissions.<name>.network.enabled` | `boolean` | Enable network access for this named permissions profile. |
157| `permissions.<name>.network.mode` | `limited | full` | Network proxy mode used for subprocess traffic. |
158| `permissions.<name>.network.proxy_url` | `string` | HTTP proxy endpoint used when this permissions profile enables the managed network proxy. |
159| `permissions.<name>.network.socks_url` | `string` | SOCKS5 proxy endpoint used by this permissions profile. |
137| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |160| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |
161| `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. |
138| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |162| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |
139| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |163| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |
140| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |164| `profiles.<name>.analytics.enabled` | `boolean` | Profile-scoped analytics enablement override. |
141| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |165| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |
142| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |
143| `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). |166| `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). |
167| `profiles.<name>.model_instructions_file` | `string (path)` | Profile-scoped replacement for the built-in instruction file. |
144| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |168| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |
145| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |169| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |
170| `profiles.<name>.plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Profile-scoped Plan-mode reasoning override. |
171| `profiles.<name>.service_tier` | `flex | fast` | Profile-scoped service tier preference for new turns. |
172| `profiles.<name>.tools_view_image` | `boolean` | Enable or disable the `view_image` tool in that profile. |
146| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |173| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |
174| `profiles.<name>.windows.sandbox` | `unelevated | elevated` | Profile-scoped Windows sandbox mode override. |
147| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |175| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |
148| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |176| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |
149| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |177| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |
154| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |182| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |
155| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |183| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |
156| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |184| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |
185| `service_tier` | `flex | fast` | Preferred service tier for new turns. |
157| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |186| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |
158| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |187| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |
159| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |188| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |
164| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |193| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |
165| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |194| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |
166| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |195| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |
196| `sqlite_home` | `string (path)` | Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state. |
167| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |197| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |
168| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |198| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |
169| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. |199| `tools.view_image` | `boolean` | Enable the local-image attachment tool `view_image`. |
200| `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. |
170| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |201| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |
171| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |202| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |
172| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |203| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
204| `tui.model_availability_nux.<model>` | `integer` | Internal startup-tooltip state keyed by model slug. |
173| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |205| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |
174| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |206| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |
175| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |207| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |
176| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |208| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |
209| `tui.theme` | `string` | Syntax-highlighting theme override (kebab-case theme name). |
177| `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. |210| `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. |
178| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |211| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |
179| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |212| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |
213| `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. |
180 214
181Key215Key
182 216
204 238
205Key239Key
206 240
241`agents.<name>.nickname_candidates`
242
243Type / Values
244
245`array<string>`
246
247Details
248
249Optional pool of display nicknames for spawned agents in that role.
250
251Key
252
253`agents.job_max_runtime_seconds`
254
255Type / Values
256
257`number`
258
259Details
260
261Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.
262
263Key
264
207`agents.max_depth`265`agents.max_depth`
208 266
209Type / Values267Type / Values
224 282
225Details283Details
226 284
227Maximum number of agent threads that can be open concurrently.285Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.
228 286
229Key287Key
230 288
240 298
241Key299Key
242 300
301`analytics.enabled`
302
303Type / Values
304
305`boolean`
306
307Details
308
309Enable or disable analytics for this machine/profile. When unset, the client default applies.
310
311Key
312
243`approval_policy`313`approval_policy`
244 314
245Type / Values315Type / Values
246 316
247`untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }`317`untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }`
318
319Details
320
321Controls 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.
322
323Key
324
325`approval_policy.granular.mcp_elicitations`
326
327Type / Values
328
329`boolean`
330
331Details
332
333When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.
334
335Key
336
337`approval_policy.granular.request_permissions`
338
339Type / Values
340
341`boolean`
248 342
249Details343Details
250 344
251Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.345When `true`, prompts from the `request_permissions` tool are allowed to surface.
252 346
253Key347Key
254 348
255`approval_policy.reject.mcp_elicitations`349`approval_policy.granular.rules`
256 350
257Type / Values351Type / Values
258 352
260 354
261Details355Details
262 356
263When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user.357When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.
264 358
265Key359Key
266 360
267`approval_policy.reject.rules`361`approval_policy.granular.sandbox_approval`
268 362
269Type / Values363Type / Values
270 364
272 366
273Details367Details
274 368
275When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected.369When `true`, sandbox escalation approval prompts are allowed to surface.
276 370
277Key371Key
278 372
279`approval_policy.reject.sandbox_approval`373`approval_policy.granular.skill_approval`
280 374
281Type / Values375Type / Values
282 376
284 378
285Details379Details
286 380
287When `true`, sandbox escalation approval prompts are auto-rejected.381When `true`, skill-script approval prompts are allowed to surface.
288 382
289Key383Key
290 384
456 550
457Key551Key
458 552
459`compact_prompt`553`commit_attribution`
460 554
461Type / Values555Type / Values
462 556
464 558
465Details559Details
466 560
467Inline override for the history compaction prompt.561Override the commit co-author trailer text. Set an empty string to disable automatic attribution.
468 562
469Key563Key
470 564
471`developer_instructions`565`compact_prompt`
472 566
473Type / Values567Type / Values
474 568
476 570
477Details571Details
478 572
479Additional developer instructions injected into the session (optional).573Inline override for the history compaction prompt.
480 574
481Key575Key
482 576
483`disable_paste_burst`577`default_permissions`
484 578
485Type / Values579Type / Values
486 580
487`boolean`581`string`
488 582
489Details583Details
490 584
491Disable burst-paste detection in the TUI.585Name of the default permissions profile to apply to sandboxed tool calls.
492 586
493Key587Key
494 588
495`experimental_compact_prompt_file`589`developer_instructions`
496 590
497Type / Values591Type / Values
498 592
499`string (path)`593`string`
500 594
501Details595Details
502 596
503Load the compaction prompt override from a file (experimental).597Additional developer instructions injected into the session (optional).
504 598
505Key599Key
506 600
507`experimental_use_freeform_apply_patch`601`disable_paste_burst`
508 602
509Type / Values603Type / Values
510 604
512 606
513Details607Details
514 608
515Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.609Disable burst-paste detection in the TUI.
516 610
517Key611Key
518 612
519`experimental_use_unified_exec_tool`613`experimental_compact_prompt_file`
520 614
521Type / Values615Type / Values
522 616
523`boolean`617`string (path)`
524 618
525Details619Details
526 620
527Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.621Load the compaction prompt override from a file (experimental).
528 622
529Key623Key
530 624
531`features.apply_patch_freeform`625`experimental_use_unified_exec_tool`
532 626
533Type / Values627Type / Values
534 628
536 630
537Details631Details
538 632
539Expose the freeform `apply_patch` tool (experimental).633Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
540 634
541Key635Key
542 636
552 646
553Key647Key
554 648
555`features.apps_mcp_gateway`649`features.codex_hooks`
556 650
557Type / Values651Type / Values
558 652
560 654
561Details655Details
562 656
563Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).657Enable lifecycle hooks loaded from `hooks.json` (under development; off by default).
564 658
565Key659Key
566 660
567`features.child_agents_md`661`features.enable_request_compression`
568 662
569Type / Values663Type / Values
570 664
572 666
573Details667Details
574 668
575Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).669Compress streaming request bodies with zstd when supported (stable; on by default).
576 670
577Key671Key
578 672
579`features.collaboration_modes`673`features.fast_mode`
580 674
581Type / Values675Type / Values
582 676
584 678
585Details679Details
586 680
587Enable collaboration modes such as plan mode (stable; on by default).681Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
588 682
589Key683Key
590 684
596 690
597Details691Details
598 692
599Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).693Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).
600 694
601Key695Key
602 696
612 706
613Key707Key
614 708
615`features.powershell_utf8`709`features.prevent_idle_sleep`
616
617Type / Values
618
619`boolean`
620
621Details
622
623Force PowerShell UTF-8 output (defaults to true).
624
625Key
626
627`features.remote_models`
628 710
629Type / Values711Type / Values
630 712
632 714
633Details715Details
634 716
635Refresh remote model list before showing readiness (experimental).717Prevent the machine from sleeping while a turn is actively running (experimental; off by default).
636 718
637Key719Key
638 720
639`features.request_rule`721`features.shell_snapshot`
640 722
641Type / Values723Type / Values
642 724
644 726
645Details727Details
646 728
647Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).729Snapshot shell environment to speed up repeated commands (stable; on by default).
648 730
649Key731Key
650 732
651`features.runtime_metrics`733`features.shell_tool`
652 734
653Type / Values735Type / Values
654 736
656 738
657Details739Details
658 740
659Show runtime metrics summary in TUI turn separators (experimental).741Enable the default `shell` tool for running commands (stable; on by default).
660 742
661Key743Key
662 744
663`features.search_tool`745`features.skill_mcp_dependency_install`
664 746
665Type / Values747Type / Values
666 748
668 750
669Details751Details
670 752
671Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).753Allow prompting and installing missing MCP dependencies for skills (stable; on by default).
672 754
673Key755Key
674 756
675`features.shell_snapshot`757`features.smart_approvals`
676 758
677Type / Values759Type / Values
678 760
680 762
681Details763Details
682 764
683Snapshot shell environment to speed up repeated commands (beta).765Route eligible approval requests through the guardian reviewer subagent (experimental; off by default).
684 766
685Key767Key
686 768
687`features.shell_tool`769`features.undo`
688 770
689Type / Values771Type / Values
690 772
692 774
693Details775Details
694 776
695Enable the default `shell` tool for running commands (stable; on by default).777Enable undo support (stable; off by default).
696 778
697Key779Key
698 780
704 786
705Details787Details
706 788
707Use the unified PTY-backed exec tool (beta).789Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
708
709Key
710
711`features.use_linux_sandbox_bwrap`
712
713Type / Values
714
715`boolean`
716
717Details
718
719Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).
720 790
721Key791Key
722 792
840 910
841Key911Key
842 912
843`include_apply_patch_tool`
844
845Type / Values
846
847`boolean`
848
849Details
850
851Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.
852
853Key
854
855`instructions`913`instructions`
856 914
857Type / Values915Type / Values
1044 1102
1045Key1103Key
1046 1104
1105`mcp_servers.<id>.oauth_resource`
1106
1107Type / Values
1108
1109`string`
1110
1111Details
1112
1113Optional RFC 8707 OAuth resource parameter to include during MCP login.
1114
1115Key
1116
1047`mcp_servers.<id>.required`1117`mcp_servers.<id>.required`
1048 1118
1049Type / Values1119Type / Values
1056 1126
1057Key1127Key
1058 1128
1129`mcp_servers.<id>.scopes`
1130
1131Type / Values
1132
1133`array<string>`
1134
1135Details
1136
1137OAuth scopes to request when authenticating to that MCP server.
1138
1139Key
1140
1059`mcp_servers.<id>.startup_timeout_ms`1141`mcp_servers.<id>.startup_timeout_ms`
1060 1142
1061Type / Values1143Type / Values
1320 1402
1321Key1403Key
1322 1404
1405`model_providers.<id>.supports_websockets`
1406
1407Type / Values
1408
1409`boolean`
1410
1411Details
1412
1413Whether that provider supports the Responses API WebSocket transport.
1414
1415Key
1416
1323`model_providers.<id>.wire_api`1417`model_providers.<id>.wire_api`
1324 1418
1325Type / Values1419Type / Values
1326 1420
1327`chat | responses`1421`responses`
1328 1422
1329Details1423Details
1330 1424
1331Protocol used by the provider (defaults to `chat` if omitted).1425Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1332 1426
1333Key1427Key
1334 1428
1376 1470
1377Details1471Details
1378 1472
1379Control GPT-5 Responses API verbosity (defaults to `medium`).1473Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1380 1474
1381Key1475Key
1382 1476
1464 1558
1465Key1559Key
1466 1560
1561`openai_base_url`
1562
1563Type / Values
1564
1565`string`
1566
1567Details
1568
1569Base URL override for the built-in `openai` model provider.
1570
1571Key
1572
1467`oss_provider`1573`oss_provider`
1468 1574
1469Type / Values1575Type / Values
1584 1690
1585Key1691Key
1586 1692
1693`otel.metrics_exporter`
1694
1695Type / Values
1696
1697`none | statsig | otlp-http | otlp-grpc`
1698
1699Details
1700
1701Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1702
1703Key
1704
1587`otel.trace_exporter`1705`otel.trace_exporter`
1588 1706
1589Type / Values1707Type / Values
1668 1786
1669Key1787Key
1670 1788
1789`permissions.<name>.filesystem`
1790
1791Type / Values
1792
1793`table`
1794
1795Details
1796
1797Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.
1798
1799Key
1800
1801`permissions.<name>.filesystem.":project_roots".<subpath>`
1802
1803Type / Values
1804
1805`"read" | "write" | "none"`
1806
1807Details
1808
1809Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself.
1810
1811Key
1812
1813`permissions.<name>.filesystem.<path>`
1814
1815Type / Values
1816
1817`"read" | "write" | "none" | table`
1818
1819Details
1820
1821Grant direct access for a path or special token, or scope nested entries under that root.
1822
1823Key
1824
1825`permissions.<name>.network.allow_local_binding`
1826
1827Type / Values
1828
1829`boolean`
1830
1831Details
1832
1833Permit local bind/listen operations through the managed proxy.
1834
1835Key
1836
1837`permissions.<name>.network.allow_unix_sockets`
1838
1839Type / Values
1840
1841`array<string>`
1842
1843Details
1844
1845Allowlist of Unix socket paths permitted through the managed proxy.
1846
1847Key
1848
1849`permissions.<name>.network.allow_upstream_proxy`
1850
1851Type / Values
1852
1853`boolean`
1854
1855Details
1856
1857Allow the managed proxy to chain to another upstream proxy.
1858
1859Key
1860
1861`permissions.<name>.network.allowed_domains`
1862
1863Type / Values
1864
1865`array<string>`
1866
1867Details
1868
1869Allowlist of domains permitted through the managed proxy.
1870
1871Key
1872
1873`permissions.<name>.network.dangerously_allow_all_unix_sockets`
1874
1875Type / Values
1876
1877`boolean`
1878
1879Details
1880
1881Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
1882
1883Key
1884
1885`permissions.<name>.network.dangerously_allow_non_loopback_proxy`
1886
1887Type / Values
1888
1889`boolean`
1890
1891Details
1892
1893Permit non-loopback bind addresses for the managed proxy listener.
1894
1895Key
1896
1897`permissions.<name>.network.denied_domains`
1898
1899Type / Values
1900
1901`array<string>`
1902
1903Details
1904
1905Denylist of domains blocked by the managed proxy.
1906
1907Key
1908
1909`permissions.<name>.network.enable_socks5`
1910
1911Type / Values
1912
1913`boolean`
1914
1915Details
1916
1917Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.
1918
1919Key
1920
1921`permissions.<name>.network.enable_socks5_udp`
1922
1923Type / Values
1924
1925`boolean`
1926
1927Details
1928
1929Allow UDP over the SOCKS5 listener when enabled.
1930
1931Key
1932
1933`permissions.<name>.network.enabled`
1934
1935Type / Values
1936
1937`boolean`
1938
1939Details
1940
1941Enable network access for this named permissions profile.
1942
1943Key
1944
1945`permissions.<name>.network.mode`
1946
1947Type / Values
1948
1949`limited | full`
1950
1951Details
1952
1953Network proxy mode used for subprocess traffic.
1954
1955Key
1956
1957`permissions.<name>.network.proxy_url`
1958
1959Type / Values
1960
1961`string`
1962
1963Details
1964
1965HTTP proxy endpoint used when this permissions profile enables the managed network proxy.
1966
1967Key
1968
1969`permissions.<name>.network.socks_url`
1970
1971Type / Values
1972
1973`string`
1974
1975Details
1976
1977SOCKS5 proxy endpoint used by this permissions profile.
1978
1979Key
1980
1671`personality`1981`personality`
1672 1982
1673Type / Values1983Type / Values
1680 1990
1681Key1991Key
1682 1992
1993`plan_mode_reasoning_effort`
1994
1995Type / Values
1996
1997`none | minimal | low | medium | high | xhigh`
1998
1999Details
2000
2001Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
2002
2003Key
2004
1683`profile`2005`profile`
1684 2006
1685Type / Values2007Type / Values
1704 2026
1705Key2027Key
1706 2028
1707`profiles.<name>.experimental_use_freeform_apply_patch`2029`profiles.<name>.analytics.enabled`
1708 2030
1709Type / Values2031Type / Values
1710 2032
1712 2034
1713Details2035Details
1714 2036
1715Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.2037Profile-scoped analytics enablement override.
1716 2038
1717Key2039Key
1718 2040
1728 2050
1729Key2051Key
1730 2052
1731`profiles.<name>.include_apply_patch_tool`2053`profiles.<name>.model_catalog_json`
1732 2054
1733Type / Values2055Type / Values
1734 2056
1735`boolean`2057`string (path)`
1736 2058
1737Details2059Details
1738 2060
1739Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.2061Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).
1740 2062
1741Key2063Key
1742 2064
1743`profiles.<name>.model_catalog_json`2065`profiles.<name>.model_instructions_file`
1744 2066
1745Type / Values2067Type / Values
1746 2068
1748 2070
1749Details2071Details
1750 2072
1751Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).2073Profile-scoped replacement for the built-in instruction file.
1752 2074
1753Key2075Key
1754 2076
1776 2098
1777Key2099Key
1778 2100
2101`profiles.<name>.plan_mode_reasoning_effort`
2102
2103Type / Values
2104
2105`none | minimal | low | medium | high | xhigh`
2106
2107Details
2108
2109Profile-scoped Plan-mode reasoning override.
2110
2111Key
2112
2113`profiles.<name>.service_tier`
2114
2115Type / Values
2116
2117`flex | fast`
2118
2119Details
2120
2121Profile-scoped service tier preference for new turns.
2122
2123Key
2124
2125`profiles.<name>.tools_view_image`
2126
2127Type / Values
2128
2129`boolean`
2130
2131Details
2132
2133Enable or disable the `view_image` tool in that profile.
2134
2135Key
2136
1779`profiles.<name>.web_search`2137`profiles.<name>.web_search`
1780 2138
1781Type / Values2139Type / Values
1788 2146
1789Key2147Key
1790 2148
2149`profiles.<name>.windows.sandbox`
2150
2151Type / Values
2152
2153`unelevated | elevated`
2154
2155Details
2156
2157Profile-scoped Windows sandbox mode override.
2158
2159Key
2160
1791`project_doc_fallback_filenames`2161`project_doc_fallback_filenames`
1792 2162
1793Type / Values2163Type / Values
1908 2278
1909Key2279Key
1910 2280
2281`service_tier`
2282
2283Type / Values
2284
2285`flex | fast`
2286
2287Details
2288
2289Preferred service tier for new turns.
2290
2291Key
2292
1911`shell_environment_policy.exclude`2293`shell_environment_policy.exclude`
1912 2294
1913Type / Values2295Type / Values
2028 2410
2029Key2411Key
2030 2412
2413`sqlite_home`
2414
2415Type / Values
2416
2417`string (path)`
2418
2419Details
2420
2421Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.
2422
2423Key
2424
2031`suppress_unstable_features_warning`2425`suppress_unstable_features_warning`
2032 2426
2033Type / Values2427Type / Values
2052 2446
2053Key2447Key
2054 2448
2055`tools.web_search`2449`tools.view_image`
2056 2450
2057Type / Values2451Type / Values
2058 2452
2060 2454
2061Details2455Details
2062 2456
2063Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.2457Enable the local-image attachment tool `view_image`.
2458
2459Key
2460
2461`tools.web_search`
2462
2463Type / Values
2464
2465`boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }`
2466
2467Details
2468
2469Optional 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.
2064 2470
2065Key2471Key
2066 2472
2100 2506
2101Key2507Key
2102 2508
2509`tui.model_availability_nux.<model>`
2510
2511Type / Values
2512
2513`integer`
2514
2515Details
2516
2517Internal startup-tooltip state keyed by model slug.
2518
2519Key
2520
2103`tui.notification_method`2521`tui.notification_method`
2104 2522
2105Type / Values2523Type / Values
2148 2566
2149Key2567Key
2150 2568
2569`tui.theme`
2570
2571Type / Values
2572
2573`string`
2574
2575Details
2576
2577Syntax-highlighting theme override (kebab-case theme name).
2578
2579Key
2580
2151`web_search`2581`web_search`
2152 2582
2153Type / Values2583Type / Values
2182 2612
2183Windows-only native sandbox mode when running Codex natively on Windows.2613Windows-only native sandbox mode when running Codex natively on Windows.
2184 2614
2615Key
2616
2617`windows.sandbox_private_desktop`
2618
2619Type / Values
2620
2621`boolean`
2622
2623Details
2624
2625Run 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.
2626
2185Expand to view all2627Expand to view all
2186 2628
2187You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).2629You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
2201For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched2643For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
2202requirements. See the security page for precedence details.2644requirements. See the security page for precedence details.
2203 2645
2646Use `[features]` in `requirements.toml` to pin feature flags by the same
2647canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
2648
2204| Key | Type / Values | Details |2649| Key | Type / Values | Details |
2205| --- | --- | --- |2650| --- | --- | --- |
2206| `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`). |2651| `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`). |
2207| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |2652| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |
2208| `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`. |2653| `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`. |
2654| `features` | `table` | Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. |
2655| `features.<name>` | `boolean` | Require a specific canonical feature key to stay enabled or disabled. |
2209| `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. |2656| `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. |
2210| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |2657| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |
2211| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |2658| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
2228 2675
2229Details2676Details
2230 2677
2231Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`).2678Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).
2232 2679
2233Key2680Key
2234 2681
2256 2703
2257Key2704Key
2258 2705
2706`features`
2707
2708Type / Values
2709
2710`table`
2711
2712Details
2713
2714Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.
2715
2716Key
2717
2718`features.<name>`
2719
2720Type / Values
2721
2722`boolean`
2723
2724Details
2725
2726Require a specific canonical feature key to stay enabled or disabled.
2727
2728Key
2729
2259`mcp_servers`2730`mcp_servers`
2260 2731
2261Type / Values2732Type / Values