config-reference.md +1030 −221
6 6
7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.
8 8
99For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/security#network-access).For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/agent-approvals-security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/agent-approvals-security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/agent-approvals-security#network-access).
10 10
11| Key | Type / Values | Details |11| Key | Type / Values | Details |
12| --- | --- | --- |12| --- | --- | --- |
13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |13| `agents.<name>.config_file` | `string (path)` | Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. |
14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |
1515| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. || `agents.<name>.nickname_candidates` | `array<string>` | Optional pool of display nicknames for spawned agents in that role. |
1616| `approval_policy` | `untrusted | on-request | never` | Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. || `agents.job_max_runtime_seconds` | `number` | Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker. |
1717| `apps.<id>.disabled_reason` | `unknown | user` | Optional reason attached when an app/connector is disabled. || `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |
18| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset. |
19| `allow_login_shell` | `boolean` | Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells. |
20| `analytics.enabled` | `boolean` | Enable or disable analytics for this machine/profile. When unset, the client default applies. |
21| `approval_policy` | `untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }` | Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { granular = { ... } }` to allow or auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. |
22| `approval_policy.granular.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected. |
23| `approval_policy.granular.request_permissions` | `boolean` | When `true`, prompts from the `request_permissions` tool are allowed to surface. |
24| `approval_policy.granular.rules` | `boolean` | When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface. |
25| `approval_policy.granular.sandbox_approval` | `boolean` | When `true`, sandbox escalation approval prompts are allowed to surface. |
26| `approval_policy.granular.skill_approval` | `boolean` | When `true`, skill-script approval prompts are allowed to surface. |
27| `approvals_reviewer` | `user | guardian_subagent` | Select who reviews eligible approval prompts. Defaults to `user`; `guardian_subagent` routes supported reviews through the Guardian reviewer subagent. |
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| `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. |39| `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). |40| `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). |41| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |
42| `commit_attribution` | `string` | Override the commit co-author trailer text. Set an empty string to disable automatic attribution. |
22| `compact_prompt` | `string` | Inline override for the history compaction prompt. |43| `compact_prompt` | `string` | Inline override for the history compaction prompt. |
44| `default_permissions` | `string` | Name of the default permissions profile to apply to sandboxed tool calls. |
23| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |45| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |
24| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |46| `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). |47| `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`. |48| `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). |49| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |
3050| `features.apps_mcp_gateway` | `boolean` | Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental). || `features.codex_hooks` | `boolean` | Enable lifecycle hooks loaded from `hooks.json` (under development; off by default). |
3151| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). || `features.enable_request_compression` | `boolean` | Compress streaming request bodies with zstd when supported (stable; on by default). |
3252| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). || `features.fast_mode` | `boolean` | Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default). |
3353| `features.elevated_windows_sandbox` | `boolean` | Enable the elevated Windows sandbox pipeline (experimental). || `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default). |
34| `features.experimental_windows_sandbox` | `boolean` | Run the Windows restricted-token sandbox (experimental). |
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). |54| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |
3755| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). || `features.prevent_idle_sleep` | `boolean` | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). |
3856| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). || `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (stable; on by default). |
39| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |
40| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |
41| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |
42| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |
43| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |57| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |
4458| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). || `features.skill_mcp_dependency_install` | `boolean` | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). |
4559| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). || `features.smart_approvals` | `boolean` | Route eligible approval requests through the guardian reviewer subagent (experimental; off by default). |
60| `features.undo` | `boolean` | Enable undo support (stable; off by default). |
61| `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. |62| `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"`. |63| `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"`. |64| `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. |69| `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. |70| `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. |71| `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`. |
57| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |72| `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`. |73| `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. |74| `mcp_oauth_callback_port` | `integer` | Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS. |
75| `mcp_oauth_callback_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. |76| `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. |77| `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. |78| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |
69| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |85| `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. |86| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |
71| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |87| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |
88| `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. |89| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |
90| `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. |91| `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. |92| `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. |93| `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. |94| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |
7795| `model` | `string` | Model to use (e.g., `gpt-5-codex`). || `model` | `string` | Model to use (e.g., `gpt-5.4`). |
78| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |96| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |
97| `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. |98| `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`. |99| `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`). |100| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |
101| `model_providers.<id>` | `table` | Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden. |
102| `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`. |
103| `model_providers.<id>.auth.args` | `array<string>` | Arguments passed to the token command. |
104| `model_providers.<id>.auth.command` | `string` | Command to run when Codex needs a bearer token. The command must print the token to stdout. |
105| `model_providers.<id>.auth.cwd` | `string (path)` | Working directory for the token command. |
106| `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. |
107| `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. |108| `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. |109| `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. |110| `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). |117| `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). |118| `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). |119| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |
94120| `model_providers.<id>.wire_api` | `chat | responses` | Protocol used by the provider (defaults to `chat` if omitted). || `model_providers.<id>.supports_websockets` | `boolean` | Whether that provider supports the Responses API WebSocket transport. |
121| `model_providers.<id>.wire_api` | `responses` | Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted. |
95| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |122| `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. |123| `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. |124| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |
98125| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). || `model_verbosity` | `low | medium | high` | Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used. |
99| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |126| `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. |127| `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. |128| `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. |130| `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. |131| `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. |132| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |
133| `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). |134| `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`). |135| `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. |136| `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. |141| `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. |142| `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. |143| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |
144| `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. |145| `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. |146| `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. |147| `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. |149| `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. |150| `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. |151| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |
152| `permissions.<name>.filesystem` | `table` | Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`. |
153| `permissions.<name>.filesystem.":project_roots".<subpath>` | `"read" | "write" | "none"` | Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself. |
154| `permissions.<name>.filesystem.<path>` | `"read" | "write" | "none" | table` | Grant direct access for a path or special token, or scope nested entries under that root. |
155| `permissions.<name>.network.allow_local_binding` | `boolean` | Permit local bind/listen operations through the managed proxy. |
156| `permissions.<name>.network.allow_upstream_proxy` | `boolean` | Allow the managed proxy to chain to another upstream proxy. |
157| `permissions.<name>.network.dangerously_allow_all_unix_sockets` | `boolean` | Allow the proxy to use arbitrary Unix sockets instead of the default restricted set. |
158| `permissions.<name>.network.dangerously_allow_non_loopback_proxy` | `boolean` | Permit non-loopback bind addresses for the managed proxy listener. |
159| `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. |
160| `permissions.<name>.network.enable_socks5` | `boolean` | Expose a SOCKS5 listener when this permissions profile enables the managed network proxy. |
161| `permissions.<name>.network.enable_socks5_udp` | `boolean` | Allow UDP over the SOCKS5 listener when enabled. |
162| `permissions.<name>.network.enabled` | `boolean` | Enable network access for this named permissions profile. |
163| `permissions.<name>.network.mode` | `limited | full` | Network proxy mode used for subprocess traffic. |
164| `permissions.<name>.network.proxy_url` | `string` | HTTP proxy endpoint used when this permissions profile enables the managed network proxy. |
165| `permissions.<name>.network.socks_url` | `string` | SOCKS5 proxy endpoint used by this permissions profile. |
166| `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`. |167| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |
168| `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`). |169| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |
125| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |170| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |
126171| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. || `profiles.<name>.analytics.enabled` | `boolean` | Profile-scoped analytics enablement override. |
127| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |172| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |
128173| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. || `profiles.<name>.model_catalog_json` | `string (path)` | Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile). |
174| `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. |175| `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. |176| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |
177| `profiles.<name>.plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Profile-scoped Plan-mode reasoning override. |
178| `profiles.<name>.service_tier` | `flex | fast` | Profile-scoped service tier preference for new turns. |
179| `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"`). |180| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |
181| `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. |182| `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. |183| `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. |184| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |
139| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |189| `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. |190| `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"`. |191| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |
192| `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. |193| `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. |194| `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. |195| `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. |200| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |
150| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |201| `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`. |202| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |
203| `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. |204| `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. |205| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |
154206| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. || `tool_suggest.discoverables` | `array<table>` | Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`. |
207| `tools.view_image` | `boolean` | Enable the local-image attachment tool `view_image`. |
208| `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. |209| `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). |210| `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). |211| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
212| `tui.model_availability_nux.<model>` | `integer` | Internal startup-tooltip state keyed by model slug. |
158| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |213| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |
159| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |214| `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). |215| `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. |216| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |
217| `tui.terminal_title` | `array<string> | null` | Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates. |
218| `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. |219| `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). |220| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |
221| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |
222| `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 223
165Key224Key
166 225
188 247
189Key248Key
190 249
250`agents.<name>.nickname_candidates`
251
252Type / Values
253
254`array<string>`
255
256Details
257
258Optional pool of display nicknames for spawned agents in that role.
259
260Key
261
262`agents.job_max_runtime_seconds`
263
264Type / Values
265
266`number`
267
268Details
269
270Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.
271
272Key
273
274`agents.max_depth`
275
276Type / Values
277
278`number`
279
280Details
281
282Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).
283
284Key
285
191`agents.max_threads`286`agents.max_threads`
192 287
193Type / Values288Type / Values
196 291
197Details292Details
198 293
199294Maximum number of agent threads that can be open concurrently.Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.
200 295
201Key296Key
202 297
203298`approval_policy``allow_login_shell`
299
300Type / Values
301
302`boolean`
303
304Details
305
306Allow 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.
307
308Key
309
310`analytics.enabled`
204 311
205Type / Values312Type / Values
206 313
207314`untrusted | on-request | never``boolean`
208 315
209Details316Details
210 317
211318Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.Enable or disable analytics for this machine/profile. When unset, the client default applies.
212 319
213Key320Key
214 321
215322`apps.<id>.disabled_reason``approval_policy`
216 323
217Type / Values324Type / Values
218 325
219326`unknown | user``untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }`
220 327
221Details328Details
222 329
223330Optional reason attached when an app/connector is disabled.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.
224 331
225Key332Key
226 333
227334`apps.<id>.enabled``approval_policy.granular.mcp_elicitations`
228 335
229Type / Values336Type / Values
230 337
232 339
233Details340Details
234 341
235342Enable or disable a specific app/connector by id (default: true).When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.
236 343
237Key344Key
238 345
239346`chatgpt_base_url``approval_policy.granular.request_permissions`
240 347
241Type / Values348Type / Values
242 349
243350`string``boolean`
244 351
245Details352Details
246 353
247354Override the base URL used during the ChatGPT login flow.When `true`, prompts from the `request_permissions` tool are allowed to surface.
248 355
249Key356Key
250 357
251358`check_for_update_on_startup``approval_policy.granular.rules`
252 359
253Type / Values360Type / Values
254 361
256 363
257Details364Details
258 365
259366Check for Codex updates on startup (set to false only when updates are centrally managed).When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.
260 367
261Key368Key
262 369
263370`cli_auth_credentials_store``approval_policy.granular.sandbox_approval`
264 371
265Type / Values372Type / Values
266 373
267374`file | keyring | auto``boolean`
268 375
269Details376Details
270 377
271378Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).When `true`, sandbox escalation approval prompts are allowed to surface.
272 379
273Key380Key
274 381
275382`compact_prompt``approval_policy.granular.skill_approval`
276 383
277Type / Values384Type / Values
278 385
279386`string``boolean`
280 387
281Details388Details
282 389
283390Inline override for the history compaction prompt.When `true`, skill-script approval prompts are allowed to surface.
284 391
285Key392Key
286 393
287394`developer_instructions``approvals_reviewer`
288 395
289Type / Values396Type / Values
290 397
291398`string``user | guardian_subagent`
292 399
293Details400Details
294 401
295402Additional developer instructions injected into the session (optional).Select who reviews eligible approval prompts. Defaults to `user`; `guardian_subagent` routes supported reviews through the Guardian reviewer subagent.
296 403
297Key404Key
298 405
299406`disable_paste_burst``apps._default.destructive_enabled`
300 407
301Type / Values408Type / Values
302 409
304 411
305Details412Details
306 413
307414Disable burst-paste detection in the TUI.Default allow/deny for app tools with `destructive_hint = true`.
308 415
309Key416Key
310 417
311418`experimental_compact_prompt_file``apps._default.enabled`
312 419
313Type / Values420Type / Values
314 421
315422`string (path)``boolean`
316 423
317Details424Details
318 425
319426Load the compaction prompt override from a file (experimental).Default app enabled state for all apps unless overridden per app.
320 427
321Key428Key
322 429
323430`experimental_use_freeform_apply_patch``apps._default.open_world_enabled`
324 431
325Type / Values432Type / Values
326 433
328 435
329Details436Details
330 437
331438Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.Default allow/deny for app tools with `open_world_hint = true`.
332 439
333Key440Key
334 441
335442`experimental_use_unified_exec_tool``apps.<id>.default_tools_approval_mode`
443
444Type / Values
445
446`auto | prompt | approve`
447
448Details
449
450Default approval behavior for tools in this app unless a per-tool override exists.
451
452Key
453
454`apps.<id>.default_tools_enabled`
336 455
337Type / Values456Type / Values
338 457
340 459
341Details460Details
342 461
343462Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.Default enabled state for tools in this app unless a per-tool override exists.
344 463
345Key464Key
346 465
347466`features.apply_patch_freeform``apps.<id>.destructive_enabled`
348 467
349Type / Values468Type / Values
350 469
352 471
353Details472Details
354 473
355474Expose the freeform `apply_patch` tool (experimental).Allow or block tools in this app that advertise `destructive_hint = true`.
356 475
357Key476Key
358 477
359478`features.apps``apps.<id>.enabled`
360 479
361Type / Values480Type / Values
362 481
364 483
365Details484Details
366 485
367486Enable ChatGPT Apps/connectors support (experimental).Enable or disable a specific app/connector by id (default: true).
368 487
369Key488Key
370 489
371490`features.apps_mcp_gateway``apps.<id>.open_world_enabled`
372 491
373Type / Values492Type / Values
374 493
376 495
377Details496Details
378 497
379498Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).Allow or block tools in this app that advertise `open_world_hint = true`.
499
500Key
501
502`apps.<id>.tools.<tool>.approval_mode`
503
504Type / Values
505
506`auto | prompt | approve`
507
508Details
509
510Per-tool approval behavior override for a single app tool.
380 511
381Key512Key
382 513
383514`features.child_agents_md``apps.<id>.tools.<tool>.enabled`
384 515
385Type / Values516Type / Values
386 517
388 519
389Details520Details
390 521
391522Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).Per-tool enabled override for an app tool (for example `repos/list`).
523
524Key
525
526`background_terminal_max_timeout`
527
528Type / Values
529
530`number`
531
532Details
533
534Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.
535
536Key
537
538`chatgpt_base_url`
539
540Type / Values
541
542`string`
543
544Details
545
546Override the base URL used during the ChatGPT login flow.
392 547
393Key548Key
394 549
395550`features.collaboration_modes``check_for_update_on_startup`
396 551
397Type / Values552Type / Values
398 553
400 555
401Details556Details
402 557
403558Enable collaboration modes such as plan mode (stable; on by default).Check for Codex updates on startup (set to false only when updates are centrally managed).
559
560Key
561
562`cli_auth_credentials_store`
563
564Type / Values
565
566`file | keyring | auto`
567
568Details
569
570Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).
571
572Key
573
574`commit_attribution`
575
576Type / Values
577
578`string`
579
580Details
581
582Override the commit co-author trailer text. Set an empty string to disable automatic attribution.
583
584Key
585
586`compact_prompt`
587
588Type / Values
589
590`string`
591
592Details
593
594Inline override for the history compaction prompt.
595
596Key
597
598`default_permissions`
599
600Type / Values
601
602`string`
603
604Details
605
606Name of the default permissions profile to apply to sandboxed tool calls.
404 607
405Key608Key
406 609
407610`features.elevated_windows_sandbox``developer_instructions`
611
612Type / Values
613
614`string`
615
616Details
617
618Additional developer instructions injected into the session (optional).
619
620Key
621
622`disable_paste_burst`
408 623
409Type / Values624Type / Values
410 625
412 627
413Details628Details
414 629
415630Enable the elevated Windows sandbox pipeline (experimental).Disable burst-paste detection in the TUI.
631
632Key
633
634`experimental_compact_prompt_file`
635
636Type / Values
637
638`string (path)`
639
640Details
641
642Load the compaction prompt override from a file (experimental).
416 643
417Key644Key
418 645
419646`features.experimental_windows_sandbox``experimental_use_unified_exec_tool`
420 647
421Type / Values648Type / Values
422 649
424 651
425Details652Details
426 653
427654Run the Windows restricted-token sandbox (experimental).Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
428 655
429Key656Key
430 657
431658`features.multi_agent``features.apps`
432 659
433Type / Values660Type / Values
434 661
436 663
437Details664Details
438 665
439666Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).Enable ChatGPT Apps/connectors support (experimental).
440 667
441Key668Key
442 669
443670`features.personality``features.codex_hooks`
444 671
445Type / Values672Type / Values
446 673
448 675
449Details676Details
450 677
451678Enable personality selection controls (stable; on by default).Enable lifecycle hooks loaded from `hooks.json` (under development; off by default).
452 679
453Key680Key
454 681
455682`features.powershell_utf8``features.enable_request_compression`
456 683
457Type / Values684Type / Values
458 685
460 687
461Details688Details
462 689
463690Force PowerShell UTF-8 output (defaults to true).Compress streaming request bodies with zstd when supported (stable; on by default).
464 691
465Key692Key
466 693
467694`features.remote_models``features.fast_mode`
468 695
469Type / Values696Type / Values
470 697
472 699
473Details700Details
474 701
475702Refresh remote model list before showing readiness (experimental).Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
476 703
477Key704Key
478 705
479706`features.request_rule``features.multi_agent`
480 707
481Type / Values708Type / Values
482 709
484 711
485Details712Details
486 713
487714Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).
488 715
489Key716Key
490 717
491718`features.runtime_metrics``features.personality`
492 719
493Type / Values720Type / Values
494 721
496 723
497Details724Details
498 725
499726Show runtime metrics summary in TUI turn separators (experimental).Enable personality selection controls (stable; on by default).
500 727
501Key728Key
502 729
503730`features.search_tool``features.prevent_idle_sleep`
504 731
505Type / Values732Type / Values
506 733
508 735
509Details736Details
510 737
511738Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).Prevent the machine from sleeping while a turn is actively running (experimental; off by default).
512 739
513Key740Key
514 741
520 747
521Details748Details
522 749
523750Snapshot shell environment to speed up repeated commands (beta).Snapshot shell environment to speed up repeated commands (stable; on by default).
524 751
525Key752Key
526 753
536 763
537Key764Key
538 765
539766`features.unified_exec``features.skill_mcp_dependency_install`
767
768Type / Values
769
770`boolean`
771
772Details
773
774Allow prompting and installing missing MCP dependencies for skills (stable; on by default).
775
776Key
777
778`features.smart_approvals`
779
780Type / Values
781
782`boolean`
783
784Details
785
786Route eligible approval requests through the guardian reviewer subagent (experimental; off by default).
787
788Key
789
790`features.undo`
540 791
541Type / Values792Type / Values
542 793
544 795
545Details796Details
546 797
547798Use the unified PTY-backed exec tool (beta).Enable undo support (stable; off by default).
548 799
549Key800Key
550 801
551802`features.use_linux_sandbox_bwrap``features.unified_exec`
552 803
553Type / Values804Type / Values
554 805
556 807
557Details808Details
558 809
559810Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
560 811
561Key812Key
562 813
680 931
681Key932Key
682 933
683`include_apply_patch_tool`
684
685Type / Values
686
687`boolean`
688
689Details
690
691Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.
692
693Key
694
695`instructions`934`instructions`
696 935
697Type / Values936Type / Values
728 967
729Key968Key
730 969
970`mcp_oauth_callback_url`
971
972Type / Values
973
974`string`
975
976Details
977
978Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.
979
980Key
981
731`mcp_oauth_credentials_store`982`mcp_oauth_credentials_store`
732 983
733Type / Values984Type / Values
872 1123
873Key1124Key
874 1125
8751126`mcp_servers.<id>.required``mcp_servers.<id>.oauth_resource`
876 1127
877Type / Values1128Type / Values
878 1129
8791130`boolean``string`
880 1131
881Details1132Details
882 1133
8831134When true, fail startup/resume if this enabled MCP server cannot initialize.Optional RFC 8707 OAuth resource parameter to include during MCP login.
884 1135
885Key1136Key
886 1137
8871138`mcp_servers.<id>.startup_timeout_ms``mcp_servers.<id>.required`
888 1139
889Type / Values1140Type / Values
890 1141
8911142`number``boolean`
892 1143
893Details1144Details
894 1145
8951146Alias for `startup_timeout_sec` in milliseconds.When true, fail startup/resume if this enabled MCP server cannot initialize.
896 1147
897Key1148Key
898 1149
8991150`mcp_servers.<id>.startup_timeout_sec``mcp_servers.<id>.scopes`
900 1151
901Type / Values1152Type / Values
902 1153
9031154`number``array<string>`
904 1155
905Details1156Details
906 1157
9071158Override the default 10s startup timeout for an MCP server.OAuth scopes to request when authenticating to that MCP server.
908 1159
909Key1160Key
910 1161
9111162`mcp_servers.<id>.tool_timeout_sec``mcp_servers.<id>.startup_timeout_ms`
912 1163
913Type / Values1164Type / Values
914 1165
916 1167
917Details1168Details
918 1169
9191170Override the default 60s per-tool timeout for an MCP server.Alias for `startup_timeout_sec` in milliseconds.
1171
1172Key
1173
1174`mcp_servers.<id>.startup_timeout_sec`
1175
1176Type / Values
1177
1178`number`
1179
1180Details
1181
1182Override the default 10s startup timeout for an MCP server.
1183
1184Key
1185
1186`mcp_servers.<id>.tool_timeout_sec`
1187
1188Type / Values
1189
1190`number`
1191
1192Details
1193
1194Override the default 60s per-tool timeout for an MCP server.
920 1195
921Key1196Key
922 1197
940 1215
941Details1216Details
942 1217
9431218Model to use (e.g., `gpt-5-codex`).Model to use (e.g., `gpt-5.4`).
944 1219
945Key1220Key
946 1221
956 1231
957Key1232Key
958 1233
1234`model_catalog_json`
1235
1236Type / Values
1237
1238`string (path)`
1239
1240Details
1241
1242Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.
1243
1244Key
1245
959`model_context_window`1246`model_context_window`
960 1247
961Type / Values1248Type / Values
992 1279
993Key1280Key
994 1281
1282`model_providers.<id>`
1283
1284Type / Values
1285
1286`table`
1287
1288Details
1289
1290Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.
1291
1292Key
1293
1294`model_providers.<id>.auth`
1295
1296Type / Values
1297
1298`table`
1299
1300Details
1301
1302Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.
1303
1304Key
1305
1306`model_providers.<id>.auth.args`
1307
1308Type / Values
1309
1310`array<string>`
1311
1312Details
1313
1314Arguments passed to the token command.
1315
1316Key
1317
1318`model_providers.<id>.auth.command`
1319
1320Type / Values
1321
1322`string`
1323
1324Details
1325
1326Command to run when Codex needs a bearer token. The command must print the token to stdout.
1327
1328Key
1329
1330`model_providers.<id>.auth.cwd`
1331
1332Type / Values
1333
1334`string (path)`
1335
1336Details
1337
1338Working directory for the token command.
1339
1340Key
1341
1342`model_providers.<id>.auth.refresh_interval_ms`
1343
1344Type / Values
1345
1346`number`
1347
1348Details
1349
1350How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.
1351
1352Key
1353
1354`model_providers.<id>.auth.timeout_ms`
1355
1356Type / Values
1357
1358`number`
1359
1360Details
1361
1362Maximum token command runtime in milliseconds (default: 5000).
1363
1364Key
1365
995`model_providers.<id>.base_url`1366`model_providers.<id>.base_url`
996 1367
997Type / Values1368Type / Values
1136 1507
1137Key1508Key
1138 1509
1510`model_providers.<id>.supports_websockets`
1511
1512Type / Values
1513
1514`boolean`
1515
1516Details
1517
1518Whether that provider supports the Responses API WebSocket transport.
1519
1520Key
1521
1139`model_providers.<id>.wire_api`1522`model_providers.<id>.wire_api`
1140 1523
1141Type / Values1524Type / Values
1142 1525
11431526`chat | responses``responses`
1144 1527
1145Details1528Details
1146 1529
11471530Protocol used by the provider (defaults to `chat` if omitted).Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1148 1531
1149Key1532Key
1150 1533
1192 1575
1193Details1576Details
1194 1577
11951578Control GPT-5 Responses API verbosity (defaults to `medium`).Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1196 1579
1197Key1580Key
1198 1581
1200 1583
1201Type / Values1584Type / Values
1202 1585
12031586`boolean``boolean`
1587
1588Details
1589
1590Track acknowledgement of the full access warning prompt.
1591
1592Key
1593
1594`notice.hide_gpt-5.1-codex-max_migration_prompt`
1595
1596Type / Values
1597
1598`boolean`
1599
1600Details
1601
1602Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1603
1604Key
1605
1606`notice.hide_gpt5_1_migration_prompt`
1607
1608Type / Values
1609
1610`boolean`
1611
1612Details
1613
1614Track acknowledgement of the GPT-5.1 migration prompt.
1615
1616Key
1617
1618`notice.hide_rate_limit_model_nudge`
1619
1620Type / Values
1621
1622`boolean`
1623
1624Details
1625
1626Track opt-out of the rate limit model switch reminder.
1627
1628Key
1629
1630`notice.hide_world_writable_warning`
1631
1632Type / Values
1633
1634`boolean`
1635
1636Details
1637
1638Track acknowledgement of the Windows world-writable directories warning.
1639
1640Key
1641
1642`notice.model_migrations`
1643
1644Type / Values
1645
1646`map<string,string>`
1647
1648Details
1649
1650Track acknowledged model migrations as old->new mappings.
1651
1652Key
1653
1654`notify`
1655
1656Type / Values
1657
1658`array<string>`
1659
1660Details
1661
1662Command invoked for notifications; receives a JSON payload from Codex.
1663
1664Key
1665
1666`openai_base_url`
1667
1668Type / Values
1669
1670`string`
1671
1672Details
1673
1674Base URL override for the built-in `openai` model provider.
1675
1676Key
1677
1678`oss_provider`
1679
1680Type / Values
1681
1682`lmstudio | ollama`
1683
1684Details
1685
1686Default local provider used when running with `--oss` (defaults to prompting if unset).
1687
1688Key
1689
1690`otel.environment`
1691
1692Type / Values
1693
1694`string`
1695
1696Details
1697
1698Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1699
1700Key
1701
1702`otel.exporter`
1703
1704Type / Values
1705
1706`none | otlp-http | otlp-grpc`
1707
1708Details
1709
1710Select the OpenTelemetry exporter and provide any endpoint metadata.
1711
1712Key
1713
1714`otel.exporter.<id>.endpoint`
1715
1716Type / Values
1717
1718`string`
1719
1720Details
1721
1722Exporter endpoint for OTEL logs.
1723
1724Key
1725
1726`otel.exporter.<id>.headers`
1727
1728Type / Values
1729
1730`map<string,string>`
1731
1732Details
1733
1734Static headers included with OTEL exporter requests.
1735
1736Key
1737
1738`otel.exporter.<id>.protocol`
1739
1740Type / Values
1741
1742`binary | json`
1743
1744Details
1745
1746Protocol used by the OTLP/HTTP exporter.
1747
1748Key
1749
1750`otel.exporter.<id>.tls.ca-certificate`
1751
1752Type / Values
1753
1754`string`
1755
1756Details
1757
1758CA certificate path for OTEL exporter TLS.
1759
1760Key
1761
1762`otel.exporter.<id>.tls.client-certificate`
1763
1764Type / Values
1765
1766`string`
1767
1768Details
1769
1770Client certificate path for OTEL exporter TLS.
1771
1772Key
1773
1774`otel.exporter.<id>.tls.client-private-key`
1775
1776Type / Values
1777
1778`string`
1779
1780Details
1781
1782Client private key path for OTEL exporter TLS.
1783
1784Key
1785
1786`otel.log_user_prompt`
1787
1788Type / Values
1789
1790`boolean`
1791
1792Details
1793
1794Opt in to exporting raw user prompts with OpenTelemetry logs.
1795
1796Key
1797
1798`otel.metrics_exporter`
1799
1800Type / Values
1801
1802`none | statsig | otlp-http | otlp-grpc`
1803
1804Details
1805
1806Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1807
1808Key
1809
1810`otel.trace_exporter`
1811
1812Type / Values
1813
1814`none | otlp-http | otlp-grpc`
1815
1816Details
1817
1818Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1819
1820Key
1821
1822`otel.trace_exporter.<id>.endpoint`
1823
1824Type / Values
1825
1826`string`
1827
1828Details
1829
1830Trace exporter endpoint for OTEL logs.
1831
1832Key
1833
1834`otel.trace_exporter.<id>.headers`
1835
1836Type / Values
1837
1838`map<string,string>`
1839
1840Details
1841
1842Static headers included with OTEL trace exporter requests.
1843
1844Key
1845
1846`otel.trace_exporter.<id>.protocol`
1847
1848Type / Values
1849
1850`binary | json`
1851
1852Details
1853
1854Protocol used by the OTLP/HTTP trace exporter.
1855
1856Key
1857
1858`otel.trace_exporter.<id>.tls.ca-certificate`
1859
1860Type / Values
1861
1862`string`
1204 1863
1205Details1864Details
1206 1865
12071866Track acknowledgement of the full access warning prompt.CA certificate path for OTEL trace exporter TLS.
1208 1867
1209Key1868Key
1210 1869
12111870`notice.hide_gpt-5.1-codex-max_migration_prompt``otel.trace_exporter.<id>.tls.client-certificate`
1212 1871
1213Type / Values1872Type / Values
1214 1873
12151874`boolean``string`
1216 1875
1217Details1876Details
1218 1877
12191878Track acknowledgement of the gpt-5.1-codex-max migration prompt.Client certificate path for OTEL trace exporter TLS.
1220 1879
1221Key1880Key
1222 1881
12231882`notice.hide_gpt5_1_migration_prompt``otel.trace_exporter.<id>.tls.client-private-key`
1224 1883
1225Type / Values1884Type / Values
1226 1885
12271886`boolean``string`
1228 1887
1229Details1888Details
1230 1889
12311890Track acknowledgement of the GPT-5.1 migration prompt.Client private key path for OTEL trace exporter TLS.
1232 1891
1233Key1892Key
1234 1893
12351894`notice.hide_rate_limit_model_nudge``permissions.<name>.filesystem`
1236 1895
1237Type / Values1896Type / Values
1238 1897
12391898`boolean``table`
1240 1899
1241Details1900Details
1242 1901
12431902Track opt-out of the rate limit model switch reminder.Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.
1244 1903
1245Key1904Key
1246 1905
12471906`notice.hide_world_writable_warning``permissions.<name>.filesystem.":project_roots".<subpath>`
1248 1907
1249Type / Values1908Type / Values
1250 1909
12511910`boolean``"read" | "write" | "none"`
1252 1911
1253Details1912Details
1254 1913
12551914Track acknowledgement of the Windows world-writable directories warning.Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself.
1256 1915
1257Key1916Key
1258 1917
12591918`notice.model_migrations``permissions.<name>.filesystem.<path>`
1260 1919
1261Type / Values1920Type / Values
1262 1921
12631922`map<string,string>``"read" | "write" | "none" | table`
1264 1923
1265Details1924Details
1266 1925
12671926Track acknowledged model migrations as old->new mappings.Grant direct access for a path or special token, or scope nested entries under that root.
1268 1927
1269Key1928Key
1270 1929
12711930`notify``permissions.<name>.network.allow_local_binding`
1272 1931
1273Type / Values1932Type / Values
1274 1933
12751934`array<string>``boolean`
1276 1935
1277Details1936Details
1278 1937
12791938Command invoked for notifications; receives a JSON payload from Codex.Permit local bind/listen operations through the managed proxy.
1280 1939
1281Key1940Key
1282 1941
12831942`oss_provider``permissions.<name>.network.allow_upstream_proxy`
1284 1943
1285Type / Values1944Type / Values
1286 1945
12871946`lmstudio | ollama``boolean`
1288 1947
1289Details1948Details
1290 1949
12911950Default local provider used when running with `--oss` (defaults to prompting if unset).Allow the managed proxy to chain to another upstream proxy.
1292 1951
1293Key1952Key
1294 1953
12951954`otel.environment``permissions.<name>.network.dangerously_allow_all_unix_sockets`
1296 1955
1297Type / Values1956Type / Values
1298 1957
12991958`string``boolean`
1300 1959
1301Details1960Details
1302 1961
13031962Environment tag applied to emitted OpenTelemetry events (default: `dev`).Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
1304 1963
1305Key1964Key
1306 1965
13071966`otel.exporter``permissions.<name>.network.dangerously_allow_non_loopback_proxy`
1308 1967
1309Type / Values1968Type / Values
1310 1969
13111970`none | otlp-http | otlp-grpc``boolean`
1312 1971
1313Details1972Details
1314 1973
13151974Select the OpenTelemetry exporter and provide any endpoint metadata.Permit non-loopback bind addresses for the managed proxy listener.
1316 1975
1317Key1976Key
1318 1977
13191978`otel.exporter.<id>.endpoint``permissions.<name>.network.domains`
1320 1979
1321Type / Values1980Type / Values
1322 1981
13231982`string``map<string, allow | deny>`
1324 1983
1325Details1984Details
1326 1985
13271986Exporter endpoint for OTEL logs.Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.
1328 1987
1329Key1988Key
1330 1989
13311990`otel.exporter.<id>.headers``permissions.<name>.network.enable_socks5`
1332 1991
1333Type / Values1992Type / Values
1334 1993
13351994`map<string,string>``boolean`
1336 1995
1337Details1996Details
1338 1997
13391998Static headers included with OTEL exporter requests.Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.
1340 1999
1341Key2000Key
1342 2001
13432002`otel.exporter.<id>.protocol``permissions.<name>.network.enable_socks5_udp`
1344 2003
1345Type / Values2004Type / Values
1346 2005
13472006`binary | json``boolean`
1348 2007
1349Details2008Details
1350 2009
13512010Protocol used by the OTLP/HTTP exporter.Allow UDP over the SOCKS5 listener when enabled.
1352 2011
1353Key2012Key
1354 2013
13552014`otel.exporter.<id>.tls.ca-certificate``permissions.<name>.network.enabled`
1356 2015
1357Type / Values2016Type / Values
1358 2017
13592018`string``boolean`
1360 2019
1361Details2020Details
1362 2021
13632022CA certificate path for OTEL exporter TLS.Enable network access for this named permissions profile.
1364 2023
1365Key2024Key
1366 2025
13672026`otel.exporter.<id>.tls.client-certificate``permissions.<name>.network.mode`
1368 2027
1369Type / Values2028Type / Values
1370 2029
13712030`string``limited | full`
1372 2031
1373Details2032Details
1374 2033
13752034Client certificate path for OTEL exporter TLS.Network proxy mode used for subprocess traffic.
1376 2035
1377Key2036Key
1378 2037
13792038`otel.exporter.<id>.tls.client-private-key``permissions.<name>.network.proxy_url`
1380 2039
1381Type / Values2040Type / Values
1382 2041
1384 2043
1385Details2044Details
1386 2045
13872046Client private key path for OTEL exporter TLS.HTTP proxy endpoint used when this permissions profile enables the managed network proxy.
1388 2047
1389Key2048Key
1390 2049
13912050`otel.log_user_prompt``permissions.<name>.network.socks_url`
1392 2051
1393Type / Values2052Type / Values
1394 2053
13952054`boolean``string`
1396 2055
1397Details2056Details
1398 2057
13992058Opt in to exporting raw user prompts with OpenTelemetry logs.SOCKS5 proxy endpoint used by this permissions profile.
1400 2059
1401Key2060Key
1402 2061
14032062`otel.trace_exporter``permissions.<name>.network.unix_sockets`
1404 2063
1405Type / Values2064Type / Values
1406 2065
14072066`none | otlp-http | otlp-grpc``map<string, allow | none>`
1408 2067
1409Details2068Details
1410 2069
14112070Select the OpenTelemetry trace exporter and provide any endpoint metadata.Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.
1412 2071
1413Key2072Key
1414 2073
14152074`otel.trace_exporter.<id>.endpoint``personality`
1416 2075
1417Type / Values2076Type / Values
1418 2077
14192078`string``none | friendly | pragmatic`
1420 2079
1421Details2080Details
1422 2081
14232082Trace exporter endpoint for OTEL logs.Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
1424 2083
1425Key2084Key
1426 2085
14272086`otel.trace_exporter.<id>.headers``plan_mode_reasoning_effort`
1428 2087
1429Type / Values2088Type / Values
1430 2089
14312090`map<string,string>``none | minimal | low | medium | high | xhigh`
1432 2091
1433Details2092Details
1434 2093
14352094Static headers included with OTEL trace exporter requests.Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
1436 2095
1437Key2096Key
1438 2097
14392098`otel.trace_exporter.<id>.protocol``profile`
1440 2099
1441Type / Values2100Type / Values
1442 2101
14432102`binary | json``string`
1444 2103
1445Details2104Details
1446 2105
14472106Protocol used by the OTLP/HTTP trace exporter.Default profile applied at startup (equivalent to `--profile`).
1448 2107
1449Key2108Key
1450 2109
14512110`otel.trace_exporter.<id>.tls.ca-certificate``profiles.<name>.*`
1452 2111
1453Type / Values2112Type / Values
1454 2113
14552114`string``various`
1456 2115
1457Details2116Details
1458 2117
14592118CA certificate path for OTEL trace exporter TLS.Profile-scoped overrides for any of the supported configuration keys.
1460 2119
1461Key2120Key
1462 2121
14632122`otel.trace_exporter.<id>.tls.client-certificate``profiles.<name>.analytics.enabled`
1464 2123
1465Type / Values2124Type / Values
1466 2125
14672126`string``boolean`
1468 2127
1469Details2128Details
1470 2129
14712130Client certificate path for OTEL trace exporter TLS.Profile-scoped analytics enablement override.
1472 2131
1473Key2132Key
1474 2133
14752134`otel.trace_exporter.<id>.tls.client-private-key``profiles.<name>.experimental_use_unified_exec_tool`
1476 2135
1477Type / Values2136Type / Values
1478 2137
14792138`string``boolean`
1480 2139
1481Details2140Details
1482 2141
14832142Client private key path for OTEL trace exporter TLS.Legacy name for enabling unified exec; prefer `[features].unified_exec`.
1484 2143
1485Key2144Key
1486 2145
14872146`personality``profiles.<name>.model_catalog_json`
1488 2147
1489Type / Values2148Type / Values
1490 2149
14912150`none | friendly | pragmatic``string (path)`
1492 2151
1493Details2152Details
1494 2153
14952154Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).
1496 2155
1497Key2156Key
1498 2157
14992158`profile``profiles.<name>.model_instructions_file`
1500 2159
1501Type / Values2160Type / Values
1502 2161
15032162`string``string (path)`
1504 2163
1505Details2164Details
1506 2165
15072166Default profile applied at startup (equivalent to `--profile`).Profile-scoped replacement for the built-in instruction file.
1508 2167
1509Key2168Key
1510 2169
15112170`profiles.<name>.*``profiles.<name>.oss_provider`
1512 2171
1513Type / Values2172Type / Values
1514 2173
15152174`various``lmstudio | ollama`
1516 2175
1517Details2176Details
1518 2177
15192178Profile-scoped overrides for any of the supported configuration keys.Profile-scoped OSS provider for `--oss` sessions.
1520 2179
1521Key2180Key
1522 2181
15232182`profiles.<name>.experimental_use_freeform_apply_patch``profiles.<name>.personality`
1524 2183
1525Type / Values2184Type / Values
1526 2185
15272186`boolean``none | friendly | pragmatic`
1528 2187
1529Details2188Details
1530 2189
15312190Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped communication style override for supported models.
1532 2191
1533Key2192Key
1534 2193
15352194`profiles.<name>.experimental_use_unified_exec_tool``profiles.<name>.plan_mode_reasoning_effort`
1536 2195
1537Type / Values2196Type / Values
1538 2197
15392198`boolean``none | minimal | low | medium | high | xhigh`
1540 2199
1541Details2200Details
1542 2201
15432202Legacy name for enabling unified exec; prefer `[features].unified_exec`.Profile-scoped Plan-mode reasoning override.
1544 2203
1545Key2204Key
1546 2205
15472206`profiles.<name>.include_apply_patch_tool``profiles.<name>.service_tier`
1548 2207
1549Type / Values2208Type / Values
1550 2209
15512210`boolean``flex | fast`
1552 2211
1553Details2212Details
1554 2213
15552214Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped service tier preference for new turns.
1556 2215
1557Key2216Key
1558 2217
15592218`profiles.<name>.oss_provider``profiles.<name>.tools_view_image`
1560 2219
1561Type / Values2220Type / Values
1562 2221
15632222`lmstudio | ollama``boolean`
1564 2223
1565Details2224Details
1566 2225
15672226Profile-scoped OSS provider for `--oss` sessions.Enable or disable the `view_image` tool in that profile.
1568 2227
1569Key2228Key
1570 2229
15712230`profiles.<name>.personality``profiles.<name>.web_search`
1572 2231
1573Type / Values2232Type / Values
1574 2233
15752234`none | friendly | pragmatic``disabled | cached | live`
1576 2235
1577Details2236Details
1578 2237
15792238Profile-scoped communication style override for supported models.Profile-scoped web search mode override (default: `"cached"`).
1580 2239
1581Key2240Key
1582 2241
15832242`profiles.<name>.web_search``profiles.<name>.windows.sandbox`
1584 2243
1585Type / Values2244Type / Values
1586 2245
15872246`disabled | cached | live``unelevated | elevated`
1588 2247
1589Details2248Details
1590 2249
15912250Profile-scoped web search mode override (default: `"cached"`).Profile-scoped Windows sandbox mode override.
1592 2251
1593Key2252Key
1594 2253
1712 2371
1713Key2372Key
1714 2373
2374`service_tier`
2375
2376Type / Values
2377
2378`flex | fast`
2379
2380Details
2381
2382Preferred service tier for new turns.
2383
2384Key
2385
1715`shell_environment_policy.exclude`2386`shell_environment_policy.exclude`
1716 2387
1717Type / Values2388Type / Values
1832 2503
1833Key2504Key
1834 2505
2506`sqlite_home`
2507
2508Type / Values
2509
2510`string (path)`
2511
2512Details
2513
2514Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.
2515
2516Key
2517
1835`suppress_unstable_features_warning`2518`suppress_unstable_features_warning`
1836 2519
1837Type / Values2520Type / Values
1856 2539
1857Key2540Key
1858 2541
18592542`tools.web_search``tool_suggest.discoverables`
2543
2544Type / Values
2545
2546`array<table>`
2547
2548Details
2549
2550Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.
2551
2552Key
2553
2554`tools.view_image`
1860 2555
1861Type / Values2556Type / Values
1862 2557
1864 2559
1865Details2560Details
1866 2561
18672562Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.Enable the local-image attachment tool `view_image`.
2563
2564Key
2565
2566`tools.web_search`
2567
2568Type / Values
2569
2570`boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }`
2571
2572Details
2573
2574Optional 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.
1868 2575
1869Key2576Key
1870 2577
1904 2611
1905Key2612Key
1906 2613
2614`tui.model_availability_nux.<model>`
2615
2616Type / Values
2617
2618`integer`
2619
2620Details
2621
2622Internal startup-tooltip state keyed by model slug.
2623
2624Key
2625
1907`tui.notification_method`2626`tui.notification_method`
1908 2627
1909Type / Values2628Type / Values
1952 2671
1953Key2672Key
1954 2673
2674`tui.terminal_title`
2675
2676Type / Values
2677
2678`array<string> | null`
2679
2680Details
2681
2682Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.
2683
2684Key
2685
2686`tui.theme`
2687
2688Type / Values
2689
2690`string`
2691
2692Details
2693
2694Syntax-highlighting theme override (kebab-case theme name).
2695
2696Key
2697
1955`web_search`2698`web_search`
1956 2699
1957Type / Values2700Type / Values
1974 2717
1975Track Windows onboarding acknowledgement (Windows only).2718Track Windows onboarding acknowledgement (Windows only).
1976 2719
2720Key
2721
2722`windows.sandbox`
2723
2724Type / Values
2725
2726`unelevated | elevated`
2727
2728Details
2729
2730Windows-only native sandbox mode when running Codex natively on Windows.
2731
2732Key
2733
2734`windows.sandbox_private_desktop`
2735
2736Type / Values
2737
2738`boolean`
2739
2740Details
2741
2742Run 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.
2743
1977Expand to view all2744Expand to view all
1978 2745
1979You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).2746You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
1988 2755
1989## `requirements.toml`2756## `requirements.toml`
1990 2757
19912758`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).`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).
1992 2759
1993For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched2760For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
1994requirements. See the security page for precedence details.2761requirements. See the security page for precedence details.
1995 2762
2763Use `[features]` in `requirements.toml` to pin feature flags by the same
2764canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
2765
1996| Key | Type / Values | Details |2766| Key | Type / Values | Details |
1997| --- | --- | --- |2767| --- | --- | --- |
19982768| `allowed_approval_policies` | `array<string>` | Allowed values for `approval\_policy`. || `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`). |
2769| `allowed_approvals_reviewers` | `array<string>` | Allowed values for `approvals_reviewer` (for example `user` and `guardian_subagent`). |
1999| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |2770| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |
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`. |2771| `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`. |
2772| `features` | `table` | Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. |
2773| `features.<name>` | `boolean` | Require a specific canonical feature key to stay enabled or disabled. |
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. |2774| `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. |
2002| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |2775| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |
2003| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |2776| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
2020 2793
2021Details2794Details
2022 2795
20232796Allowed values for `approval\_policy`.Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).
2797
2798Key
2799
2800`allowed_approvals_reviewers`
2801
2802Type / Values
2803
2804`array<string>`
2805
2806Details
2807
2808Allowed values for `approvals_reviewer` (for example `user` and `guardian_subagent`).
2024 2809
2025Key2810Key
2026 2811
2048 2833
2049Key2834Key
2050 2835
2836`features`
2837
2838Type / Values
2839
2840`table`
2841
2842Details
2843
2844Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.
2845
2846Key
2847
2848`features.<name>`
2849
2850Type / Values
2851
2852`boolean`
2853
2854Details
2855
2856Require a specific canonical feature key to stay enabled or disabled.
2857
2858Key
2859
2051`mcp_servers`2860`mcp_servers`
2052 2861
2053Type / Values2862Type / Values