config-reference.md +1360 −356
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.guardian_approval` | `boolean` | Route eligible approval requests through the guardian reviewer subagent (experimental; off by default). Use with `approvals_reviewer = "guardian_subagent"`. |
3454| `features.experimental_windows_sandbox` | `boolean` | Run the Windows restricted-token sandbox (experimental). || `features.memories` | `boolean` | Enable [Memories](https://developers.openai.com/codex/memories) (off by default). |
3555| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). || `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default). |
36| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |56| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |
3757| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). || `features.prevent_idle_sleep` | `boolean` | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). |
3858| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). || `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (stable; on by default). |
39| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |
40| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |
41| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |
42| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |
43| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |59| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |
4460| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). || `features.skill_mcp_dependency_install` | `boolean` | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). |
4561| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). || `features.undo` | `boolean` | Enable undo support (stable; off by default). |
62| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (stable; enabled by default except on Windows). |
46| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |63| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |
47| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |64| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |
48| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |65| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |
53| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |70| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |
54| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |71| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |
55| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |72| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |
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`. |73| `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`. |74| `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. |75| `mcp_oauth_callback_port` | `integer` | Optional fixed port for the local HTTP callback server used during MCP OAuth login. When unset, Codex binds to an ephemeral port chosen by the OS. |
76| `mcp_oauth_callback_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. |77| `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. |78| `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. |79| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |
67| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |84| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |
68| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |85| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |
69| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |86| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |
7087| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. || `mcp_servers.<id>.env_vars` | `array<string | { name = string, source = "local" | "remote" }>` | Additional environment variables to whitelist for an MCP stdio server. String entries default to `source = "local"`; use `source = "remote"` only with executor-backed remote stdio. |
88| `mcp_servers.<id>.experimental_environment` | `local | remote` | Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented. |
71| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |89| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |
90| `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. |91| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |
92| `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. |93| `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. |94| `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. |95| `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. |96| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |
7797| `model` | `string` | Model to use (e.g., `gpt-5-codex`). || `memories.consolidation_model` | `string` | Optional model override for global memory consolidation. |
98| `memories.disable_on_external_context` | `boolean` | When `true`, threads that use external context such as MCP tool calls, web search, or tool search are kept out of memory generation. Defaults to `false`. Legacy alias: `memories.no_memories_if_mcp_or_web_search`. |
99| `memories.extract_model` | `string` | Optional model override for per-thread memory extraction. |
100| `memories.generate_memories` | `boolean` | When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`. |
101| `memories.max_raw_memories_for_consolidation` | `number` | Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`. |
102| `memories.max_rollout_age_days` | `number` | Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`. |
103| `memories.max_rollouts_per_startup` | `number` | Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`. |
104| `memories.max_unused_days` | `number` | Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`. |
105| `memories.min_rollout_idle_hours` | `number` | Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`. |
106| `memories.use_memories` | `boolean` | When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`. |
107| `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). |108| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |
109| `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. |110| `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`. |111| `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`). |112| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |
113| `model_providers.<id>` | `table` | Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden. |
114| `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`. |
115| `model_providers.<id>.auth.args` | `array<string>` | Arguments passed to the token command. |
116| `model_providers.<id>.auth.command` | `string` | Command to run when Codex needs a bearer token. The command must print the token to stdout. |
117| `model_providers.<id>.auth.cwd` | `string (path)` | Working directory for the token command. |
118| `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. |
119| `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. |120| `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. |121| `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. |122| `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). |129| `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). |130| `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). |131| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |
94132| `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. |
133| `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). |134| `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. |135| `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. |136| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |
98137| `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. |138| `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. |139| `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. |140| `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. |142| `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. |143| `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. |144| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |
145| `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). |146| `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`). |147| `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. |148| `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. |153| `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. |154| `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. |155| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |
156| `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. |157| `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. |158| `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. |159| `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. |161| `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. |162| `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. |163| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |
164| `permissions.<name>.filesystem` | `table` | Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`. |
165| `permissions.<name>.filesystem.":project_roots".<subpath-or-glob>` | `"read" | "write" | "none"` | Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`. |
166| `permissions.<name>.filesystem.<path-or-glob>` | `"read" | "write" | "none" | table` | Grant direct access for a path, glob pattern, or special token, or scope nested entries under that root. Use `"none"` to deny reads for matching paths. |
167| `permissions.<name>.filesystem.glob_scan_max_depth` | `number` | Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set. |
168| `permissions.<name>.network.allow_local_binding` | `boolean` | Permit local bind/listen operations through the managed proxy. |
169| `permissions.<name>.network.allow_upstream_proxy` | `boolean` | Allow the managed proxy to chain to another upstream proxy. |
170| `permissions.<name>.network.dangerously_allow_all_unix_sockets` | `boolean` | Allow the proxy to use arbitrary Unix sockets instead of the default restricted set. |
171| `permissions.<name>.network.dangerously_allow_non_loopback_proxy` | `boolean` | Permit non-loopback bind addresses for the managed proxy listener. |
172| `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. |
173| `permissions.<name>.network.enable_socks5` | `boolean` | Expose a SOCKS5 listener when this permissions profile enables the managed network proxy. |
174| `permissions.<name>.network.enable_socks5_udp` | `boolean` | Allow UDP over the SOCKS5 listener when enabled. |
175| `permissions.<name>.network.enabled` | `boolean` | Enable network access for this named permissions profile. |
176| `permissions.<name>.network.mode` | `limited | full` | Network proxy mode used for subprocess traffic. |
177| `permissions.<name>.network.proxy_url` | `string` | HTTP proxy endpoint used when this permissions profile enables the managed network proxy. |
178| `permissions.<name>.network.socks_url` | `string` | SOCKS5 proxy endpoint used by this permissions profile. |
179| `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`. |180| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |
181| `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`). |182| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |
125| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |183| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |
126184| `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`. |185| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |
128186| `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). |
187| `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. |188| `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. |189| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |
190| `profiles.<name>.plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Profile-scoped Plan-mode reasoning override. |
191| `profiles.<name>.service_tier` | `flex | fast` | Profile-scoped service tier preference for new turns. |
192| `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"`). |193| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |
194| `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. |195| `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. |196| `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. |197| `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. |202| `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. |203| `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"`. |204| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |
205| `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. |206| `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. |207| `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. |208| `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. |213| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |
150| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |214| `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`. |215| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |
216| `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. |217| `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. |218| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |
154219| `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`. |
220| `tools.view_image` | `boolean` | Enable the local-image attachment tool `view_image`. |
221| `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. |222| `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). |223| `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). |224| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |
158225| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). || `tui.model_availability_nux.<model>` | `integer` | Internal startup-tooltip state keyed by model slug. |
226| `tui.notification_condition` | `unfocused | always` | Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`. |
227| `tui.notification_method` | `auto | osc9 | bel` | Notification method for terminal notifications (default: auto). |
159| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |228| `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). |229| `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. |230| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |
231| `tui.terminal_title` | `array<string> | null` | Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates. |
232| `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. |233| `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). |234| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |
235| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |
236| `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 237
165Key238Key
166 239
188 261
189Key262Key
190 263
191264`agents.max_threads``agents.<name>.nickname_candidates`
192 265
193Type / Values266Type / Values
194 267
195268`number``array<string>`
196 269
197Details270Details
198 271
199272Maximum number of agent threads that can be open concurrently.Optional pool of display nicknames for spawned agents in that role.
200 273
201Key274Key
202 275
203276`approval_policy``agents.job_max_runtime_seconds`
204 277
205Type / Values278Type / Values
206 279
207280`untrusted | on-request | never``number`
208 281
209Details282Details
210 283
211284Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.
212 285
213Key286Key
214 287
215288`apps.<id>.disabled_reason``agents.max_depth`
216 289
217Type / Values290Type / Values
218 291
219292`unknown | user``number`
220 293
221Details294Details
222 295
223296Optional reason attached when an app/connector is disabled.Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).
224 297
225Key298Key
226 299
227300`apps.<id>.enabled``agents.max_threads`
228 301
229Type / Values302Type / Values
230 303
231304`boolean``number`
232 305
233Details306Details
234 307
235308Enable or disable a specific app/connector by id (default: true).Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.
236 309
237Key310Key
238 311
239312`chatgpt_base_url``allow_login_shell`
240 313
241Type / Values314Type / Values
242 315
243316`string``boolean`
244 317
245Details318Details
246 319
247320Override the base URL used during the ChatGPT login flow.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.
248 321
249Key322Key
250 323
251324`check_for_update_on_startup``analytics.enabled`
252 325
253Type / Values326Type / Values
254 327
256 329
257Details330Details
258 331
259332Check for Codex updates on startup (set to false only when updates are centrally managed).Enable or disable analytics for this machine/profile. When unset, the client default applies.
260 333
261Key334Key
262 335
263336`cli_auth_credentials_store``approval_policy`
264 337
265Type / Values338Type / Values
266 339
267340`file | keyring | auto``untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }`
268 341
269Details342Details
270 343
271344Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).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.
272 345
273Key346Key
274 347
275348`compact_prompt``approval_policy.granular.mcp_elicitations`
276 349
277Type / Values350Type / Values
278 351
279352`string``boolean`
280 353
281Details354Details
282 355
283356Inline override for the history compaction prompt.When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.
284 357
285Key358Key
286 359
287360`developer_instructions``approval_policy.granular.request_permissions`
288 361
289Type / Values362Type / Values
290 363
291364`string``boolean`
292 365
293Details366Details
294 367
295368Additional developer instructions injected into the session (optional).When `true`, prompts from the `request_permissions` tool are allowed to surface.
296 369
297Key370Key
298 371
299372`disable_paste_burst``approval_policy.granular.rules`
300 373
301Type / Values374Type / Values
302 375
304 377
305Details378Details
306 379
307380Disable burst-paste detection in the TUI.When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.
308 381
309Key382Key
310 383
311384`experimental_compact_prompt_file``approval_policy.granular.sandbox_approval`
312 385
313Type / Values386Type / Values
314 387
315388`string (path)``boolean`
316 389
317Details390Details
318 391
319392Load the compaction prompt override from a file (experimental).When `true`, sandbox escalation approval prompts are allowed to surface.
320 393
321Key394Key
322 395
323396`experimental_use_freeform_apply_patch``approval_policy.granular.skill_approval`
324 397
325Type / Values398Type / Values
326 399
328 401
329Details402Details
330 403
331404Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.When `true`, skill-script approval prompts are allowed to surface.
332 405
333Key406Key
334 407
335408`experimental_use_unified_exec_tool``approvals_reviewer`
336 409
337Type / Values410Type / Values
338 411
339412`boolean``user | guardian_subagent`
340 413
341Details414Details
342 415
343416Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.Select who reviews eligible approval prompts. Defaults to `user`; `guardian_subagent` routes supported reviews through the Guardian reviewer subagent.
344 417
345Key418Key
346 419
347420`features.apply_patch_freeform``apps._default.destructive_enabled`
348 421
349Type / Values422Type / Values
350 423
352 425
353Details426Details
354 427
355428Expose the freeform `apply_patch` tool (experimental).Default allow/deny for app tools with `destructive_hint = true`.
356 429
357Key430Key
358 431
359432`features.apps``apps._default.enabled`
360 433
361Type / Values434Type / Values
362 435
364 437
365Details438Details
366 439
367440Enable ChatGPT Apps/connectors support (experimental).Default app enabled state for all apps unless overridden per app.
368 441
369Key442Key
370 443
371444`features.apps_mcp_gateway``apps._default.open_world_enabled`
372 445
373Type / Values446Type / Values
374 447
376 449
377Details450Details
378 451
379452Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).Default allow/deny for app tools with `open_world_hint = true`.
380 453
381Key454Key
382 455
383456`features.child_agents_md``apps.<id>.default_tools_approval_mode`
384 457
385Type / Values458Type / Values
386 459
387460`boolean``auto | prompt | approve`
388 461
389Details462Details
390 463
391464Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).Default approval behavior for tools in this app unless a per-tool override exists.
392 465
393Key466Key
394 467
395468`features.collaboration_modes``apps.<id>.default_tools_enabled`
396 469
397Type / Values470Type / Values
398 471
400 473
401Details474Details
402 475
403476Enable collaboration modes such as plan mode (stable; on by default).Default enabled state for tools in this app unless a per-tool override exists.
404 477
405Key478Key
406 479
407480`features.elevated_windows_sandbox``apps.<id>.destructive_enabled`
408 481
409Type / Values482Type / Values
410 483
412 485
413Details486Details
414 487
415488Enable the elevated Windows sandbox pipeline (experimental).Allow or block tools in this app that advertise `destructive_hint = true`.
416 489
417Key490Key
418 491
419492`features.experimental_windows_sandbox``apps.<id>.enabled`
420 493
421Type / Values494Type / Values
422 495
424 497
425Details498Details
426 499
427500Run the Windows restricted-token sandbox (experimental).Enable or disable a specific app/connector by id (default: true).
428 501
429Key502Key
430 503
431504`features.multi_agent``apps.<id>.open_world_enabled`
432 505
433Type / Values506Type / Values
434 507
436 509
437Details510Details
438 511
439512Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).Allow or block tools in this app that advertise `open_world_hint = true`.
440 513
441Key514Key
442 515
443516`features.personality``apps.<id>.tools.<tool>.approval_mode`
444 517
445Type / Values518Type / Values
446 519
447520`boolean``auto | prompt | approve`
448 521
449Details522Details
450 523
451524Enable personality selection controls (stable; on by default).Per-tool approval behavior override for a single app tool.
452 525
453Key526Key
454 527
455528`features.powershell_utf8``apps.<id>.tools.<tool>.enabled`
456 529
457Type / Values530Type / Values
458 531
460 533
461Details534Details
462 535
463536Force PowerShell UTF-8 output (defaults to true).Per-tool enabled override for an app tool (for example `repos/list`).
464 537
465Key538Key
466 539
467540`features.remote_models``background_terminal_max_timeout`
468 541
469Type / Values542Type / Values
470 543
471544`boolean``number`
472 545
473Details546Details
474 547
475548Refresh remote model list before showing readiness (experimental).Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.
476 549
477Key550Key
478 551
479552`features.request_rule``chatgpt_base_url`
480 553
481Type / Values554Type / Values
482 555
483556`boolean``string`
484 557
485Details558Details
486 559
487560Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).Override the base URL used during the ChatGPT login flow.
488 561
489Key562Key
490 563
491564`features.runtime_metrics``check_for_update_on_startup`
492 565
493Type / Values566Type / Values
494 567
496 569
497Details570Details
498 571
499572Show runtime metrics summary in TUI turn separators (experimental).Check for Codex updates on startup (set to false only when updates are centrally managed).
500 573
501Key574Key
502 575
503576`features.search_tool``cli_auth_credentials_store`
504 577
505Type / Values578Type / Values
506 579
507580`boolean``file | keyring | auto`
508 581
509Details582Details
510 583
511584Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).
512 585
513Key586Key
514 587
515588`features.shell_snapshot``commit_attribution`
516 589
517Type / Values590Type / Values
518 591
519592`boolean``string`
520 593
521Details594Details
522 595
523596Snapshot shell environment to speed up repeated commands (beta).Override the commit co-author trailer text. Set an empty string to disable automatic attribution.
524 597
525Key598Key
526 599
527600`features.shell_tool``compact_prompt`
528 601
529Type / Values602Type / Values
530 603
531604`boolean``string`
532 605
533Details606Details
534 607
535608Enable the default `shell` tool for running commands (stable; on by default).Inline override for the history compaction prompt.
536 609
537Key610Key
538 611
539612`features.unified_exec``default_permissions`
540 613
541Type / Values614Type / Values
542 615
543616`boolean``string`
544 617
545Details618Details
546 619
547620Use the unified PTY-backed exec tool (beta).Name of the default permissions profile to apply to sandboxed tool calls.
548 621
549Key622Key
550 623
551624`features.use_linux_sandbox_bwrap``developer_instructions`
552 625
553Type / Values626Type / Values
554 627
555628`boolean``string`
556 629
557Details630Details
558 631
559632Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).Additional developer instructions injected into the session (optional).
560 633
561Key634Key
562 635
563636`features.web_search``disable_paste_burst`
564 637
565Type / Values638Type / Values
566 639
568 641
569Details642Details
570 643
571644Deprecated legacy toggle; prefer the top-level `web_search` setting.Disable burst-paste detection in the TUI.
572 645
573Key646Key
574 647
575648`features.web_search_cached``experimental_compact_prompt_file`
576 649
577Type / Values650Type / Values
578 651
579652`boolean``string (path)`
580 653
581Details654Details
582 655
583656Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.Load the compaction prompt override from a file (experimental).
584 657
585Key658Key
586 659
587660`features.web_search_request``experimental_use_unified_exec_tool`
588 661
589Type / Values662Type / Values
590 663
592 665
593Details666Details
594 667
595668Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.
596 669
597Key670Key
598 671
599672`feedback.enabled``features.apps`
600 673
601Type / Values674Type / Values
602 675
604 677
605Details678Details
606 679
607680Enable feedback submission via `/feedback` across Codex surfaces (default: true).Enable ChatGPT Apps/connectors support (experimental).
608 681
609Key682Key
610 683
611684`file_opener``features.codex_hooks`
612 685
613Type / Values686Type / Values
614 687
615688`vscode | vscode-insiders | windsurf | cursor | none``boolean`
616 689
617Details690Details
618 691
619692URI scheme used to open citations from Codex output (default: `vscode`).Enable lifecycle hooks loaded from `hooks.json` (under development; off by default).
620 693
621Key694Key
622 695
623696`forced_chatgpt_workspace_id``features.enable_request_compression`
624 697
625Type / Values698Type / Values
626 699
627700`string (uuid)``boolean`
628 701
629Details702Details
630 703
631704Limit ChatGPT logins to a specific workspace identifier.Compress streaming request bodies with zstd when supported (stable; on by default).
632 705
633Key706Key
634 707
635708`forced_login_method``features.fast_mode`
636 709
637Type / Values710Type / Values
638 711
639712`chatgpt | api``boolean`
640 713
641Details714Details
642 715
643716Restrict Codex to a specific authentication method.Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).
644 717
645Key718Key
646 719
647720`hide_agent_reasoning``features.guardian_approval`
648 721
649Type / Values722Type / Values
650 723
652 725
653Details726Details
654 727
655728Suppress reasoning events in both the TUI and `codex exec` output.Route eligible approval requests through the guardian reviewer subagent (experimental; off by default). Use with `approvals_reviewer = "guardian_subagent"`.
656 729
657Key730Key
658 731
659732`history.max_bytes``features.memories`
660 733
661Type / Values734Type / Values
662 735
663736`number``boolean`
664 737
665Details738Details
666 739
667740If set, caps the history file size in bytes by dropping oldest entries.Enable [Memories](https://developers.openai.com/codex/memories) (off by default).
668 741
669Key742Key
670 743
671744`history.persistence``features.multi_agent`
672 745
673Type / Values746Type / Values
674 747
675748`save-all | none``boolean`
676 749
677Details750Details
678 751
679752Control whether Codex saves session transcripts to history.jsonl.Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).
680 753
681Key754Key
682 755
683756`include_apply_patch_tool``features.personality`
684 757
685Type / Values758Type / Values
686 759
688 761
689Details762Details
690 763
691764Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Enable personality selection controls (stable; on by default).
692 765
693Key766Key
694 767
695768`instructions``features.prevent_idle_sleep`
696 769
697Type / Values770Type / Values
698 771
699772`string``boolean`
700 773
701Details774Details
702 775
703776Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.Prevent the machine from sleeping while a turn is actively running (experimental; off by default).
704 777
705Key778Key
706 779
707780`log_dir``features.shell_snapshot`
708 781
709Type / Values782Type / Values
710 783
711784`string (path)``boolean`
712 785
713Details786Details
714 787
715788Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.Snapshot shell environment to speed up repeated commands (stable; on by default).
716 789
717Key790Key
718 791
719792`mcp_oauth_callback_port``features.shell_tool`
720 793
721Type / Values794Type / Values
722 795
723796`integer``boolean`
724 797
725Details798Details
726 799
727800Optional 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.Enable the default `shell` tool for running commands (stable; on by default).
728 801
729Key802Key
730 803
731804`mcp_oauth_credentials_store``features.skill_mcp_dependency_install`
732 805
733Type / Values806Type / Values
734 807
735808`auto | file | keyring``boolean`
736 809
737Details810Details
738 811
739812Preferred store for MCP OAuth credentials.Allow prompting and installing missing MCP dependencies for skills (stable; on by default).
740 813
741Key814Key
742 815
743816`mcp_servers.<id>.args``features.undo`
744 817
745Type / Values818Type / Values
746 819
747820`array<string>``boolean`
748 821
749Details822Details
750 823
751824Arguments passed to the MCP stdio server command.Enable undo support (stable; off by default).
752 825
753Key826Key
754 827
755828`mcp_servers.<id>.bearer_token_env_var``features.unified_exec`
756 829
757Type / Values830Type / Values
758 831
759832`string``boolean`
760 833
761Details834Details
762 835
763836Environment variable sourcing the bearer token for an MCP HTTP server.Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).
764 837
765Key838Key
766 839
767840`mcp_servers.<id>.command``features.web_search`
768 841
769Type / Values842Type / Values
770 843
771844`string``boolean`
772 845
773Details846Details
774 847
775848Launcher command for an MCP stdio server.Deprecated legacy toggle; prefer the top-level `web_search` setting.
776 849
777Key850Key
778 851
779852`mcp_servers.<id>.cwd``features.web_search_cached`
780 853
781Type / Values854Type / Values
782 855
783856`string``boolean`
784 857
785Details858Details
786 859
787860Working directory for the MCP stdio server process.Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.
788 861
789Key862Key
790 863
791864`mcp_servers.<id>.disabled_tools``features.web_search_request`
792 865
793Type / Values866Type / Values
794 867
795868`array<string>``boolean`
796 869
797Details870Details
798 871
799872Deny list applied after `enabled_tools` for the MCP server.Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.
800 873
801Key874Key
802 875
803876`mcp_servers.<id>.enabled``feedback.enabled`
804 877
805Type / Values878Type / Values
806 879
808 881
809Details882Details
810 883
811884Disable an MCP server without removing its configuration.Enable feedback submission via `/feedback` across Codex surfaces (default: true).
812 885
813Key886Key
814 887
815888`mcp_servers.<id>.enabled_tools``file_opener`
816 889
817Type / Values890Type / Values
818 891
819892`array<string>``vscode | vscode-insiders | windsurf | cursor | none`
820 893
821Details894Details
822 895
823896Allow list of tool names exposed by the MCP server.URI scheme used to open citations from Codex output (default: `vscode`).
824 897
825Key898Key
826 899
827900`mcp_servers.<id>.env``forced_chatgpt_workspace_id`
828 901
829Type / Values902Type / Values
830 903
831904`map<string,string>``string (uuid)`
832 905
833Details906Details
834 907
835908Environment variables forwarded to the MCP stdio server.Limit ChatGPT logins to a specific workspace identifier.
836 909
837Key910Key
838 911
839912`mcp_servers.<id>.env_http_headers``forced_login_method`
840 913
841Type / Values914Type / Values
842 915
843916`map<string,string>``chatgpt | api`
844 917
845Details918Details
846 919
847920HTTP headers populated from environment variables for an MCP HTTP server.Restrict Codex to a specific authentication method.
848 921
849Key922Key
850 923
851924`mcp_servers.<id>.env_vars``hide_agent_reasoning`
852 925
853Type / Values926Type / Values
854 927
855928`array<string>``boolean`
856 929
857Details930Details
858 931
859932Additional environment variables to whitelist for an MCP stdio server.Suppress reasoning events in both the TUI and `codex exec` output.
860 933
861Key934Key
862 935
863936`mcp_servers.<id>.http_headers``history.max_bytes`
864 937
865Type / Values938Type / Values
866 939
867940`map<string,string>``number`
868 941
869Details942Details
870 943
871944Static HTTP headers included with each MCP HTTP request.If set, caps the history file size in bytes by dropping oldest entries.
872 945
873Key946Key
874 947
875948`mcp_servers.<id>.required``history.persistence`
876 949
877Type / Values950Type / Values
878 951
879952`boolean``save-all | none`
880 953
881Details954Details
882 955
883956When true, fail startup/resume if this enabled MCP server cannot initialize.Control whether Codex saves session transcripts to history.jsonl.
884 957
885Key958Key
886 959
887960`mcp_servers.<id>.startup_timeout_ms``instructions`
888 961
889Type / Values962Type / Values
890 963
891964`number``string`
892 965
893Details966Details
894 967
895968Alias for `startup_timeout_sec` in milliseconds.Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.
896 969
897Key970Key
898 971
899972`mcp_servers.<id>.startup_timeout_sec``log_dir`
900 973
901Type / Values974Type / Values
902 975
903976`number``string (path)`
904 977
905Details978Details
906 979
907980Override the default 10s startup timeout for an MCP server.Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.
908 981
909Key982Key
910 983
911984`mcp_servers.<id>.tool_timeout_sec``mcp_oauth_callback_port`
912 985
913Type / Values986Type / Values
914 987
915988`number``integer`
916 989
917Details990Details
918 991
919992Override the default 60s per-tool timeout for an MCP server.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.
920 993
921Key994Key
922 995
923996`mcp_servers.<id>.url``mcp_oauth_callback_url`
924 997
925Type / Values998Type / Values
926 999
928 1001
929Details1002Details
930 1003
9311004Endpoint for an MCP streamable HTTP server.Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.
932 1005
933Key1006Key
934 1007
9351008`model``mcp_oauth_credentials_store`
936 1009
937Type / Values1010Type / Values
938 1011
9391012`string``auto | file | keyring`
940 1013
941Details1014Details
942 1015
9431016Model to use (e.g., `gpt-5-codex`).Preferred store for MCP OAuth credentials.
944 1017
945Key1018Key
946 1019
9471020`model_auto_compact_token_limit``mcp_servers.<id>.args`
948 1021
949Type / Values1022Type / Values
950 1023
9511024`number``array<string>`
952 1025
953Details1026Details
954 1027
9551028Token threshold that triggers automatic history compaction (unset uses model defaults).Arguments passed to the MCP stdio server command.
956 1029
957Key1030Key
958 1031
9591032`model_context_window``mcp_servers.<id>.bearer_token_env_var`
960 1033
961Type / Values1034Type / Values
962 1035
9631036`number``string`
964 1037
965Details1038Details
966 1039
9671040Context window tokens available to the active model.Environment variable sourcing the bearer token for an MCP HTTP server.
968 1041
969Key1042Key
970 1043
9711044`model_instructions_file``mcp_servers.<id>.command`
972 1045
973Type / Values1046Type / Values
974 1047
9751048`string (path)``string`
976 1049
977Details1050Details
978 1051
9791052Replacement for built-in instructions instead of `AGENTS.md`.Launcher command for an MCP stdio server.
980 1053
981Key1054Key
982 1055
9831056`model_provider``mcp_servers.<id>.cwd`
984 1057
985Type / Values1058Type / Values
986 1059
988 1061
989Details1062Details
990 1063
9911064Provider id from `model_providers` (default: `openai`).Working directory for the MCP stdio server process.
992 1065
993Key1066Key
994 1067
9951068`model_providers.<id>.base_url``mcp_servers.<id>.disabled_tools`
996 1069
997Type / Values1070Type / Values
998 1071
9991072`string``array<string>`
1000 1073
1001Details1074Details
1002 1075
10031076API base URL for the model provider.Deny list applied after `enabled_tools` for the MCP server.
1004 1077
1005Key1078Key
1006 1079
10071080`model_providers.<id>.env_http_headers``mcp_servers.<id>.enabled`
1081
1082Type / Values
1083
1084`boolean`
1085
1086Details
1087
1088Disable an MCP server without removing its configuration.
1089
1090Key
1091
1092`mcp_servers.<id>.enabled_tools`
1093
1094Type / Values
1095
1096`array<string>`
1097
1098Details
1099
1100Allow list of tool names exposed by the MCP server.
1101
1102Key
1103
1104`mcp_servers.<id>.env`
1008 1105
1009Type / Values1106Type / Values
1010 1107
1012 1109
1013Details1110Details
1014 1111
10151112HTTP headers populated from environment variables when present.Environment variables forwarded to the MCP stdio server.
1016 1113
1017Key1114Key
1018 1115
10191116`model_providers.<id>.env_key``mcp_servers.<id>.env_http_headers`
1117
1118Type / Values
1119
1120`map<string,string>`
1121
1122Details
1123
1124HTTP headers populated from environment variables for an MCP HTTP server.
1125
1126Key
1127
1128`mcp_servers.<id>.env_vars`
1129
1130Type / Values
1131
1132`array<string | { name = string, source = "local" | "remote" }>`
1133
1134Details
1135
1136Additional environment variables to whitelist for an MCP stdio server. String entries default to `source = "local"`; use `source = "remote"` only with executor-backed remote stdio.
1137
1138Key
1139
1140`mcp_servers.<id>.experimental_environment`
1141
1142Type / Values
1143
1144`local | remote`
1145
1146Details
1147
1148Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.
1149
1150Key
1151
1152`mcp_servers.<id>.http_headers`
1153
1154Type / Values
1155
1156`map<string,string>`
1157
1158Details
1159
1160Static HTTP headers included with each MCP HTTP request.
1161
1162Key
1163
1164`mcp_servers.<id>.oauth_resource`
1020 1165
1021Type / Values1166Type / Values
1022 1167
1024 1169
1025Details1170Details
1026 1171
10271172Environment variable supplying the provider API key.Optional RFC 8707 OAuth resource parameter to include during MCP login.
1028 1173
1029Key1174Key
1030 1175
10311176`model_providers.<id>.env_key_instructions``mcp_servers.<id>.required`
1177
1178Type / Values
1179
1180`boolean`
1181
1182Details
1183
1184When true, fail startup/resume if this enabled MCP server cannot initialize.
1185
1186Key
1187
1188`mcp_servers.<id>.scopes`
1189
1190Type / Values
1191
1192`array<string>`
1193
1194Details
1195
1196OAuth scopes to request when authenticating to that MCP server.
1197
1198Key
1199
1200`mcp_servers.<id>.startup_timeout_ms`
1201
1202Type / Values
1203
1204`number`
1205
1206Details
1207
1208Alias for `startup_timeout_sec` in milliseconds.
1209
1210Key
1211
1212`mcp_servers.<id>.startup_timeout_sec`
1213
1214Type / Values
1215
1216`number`
1217
1218Details
1219
1220Override the default 10s startup timeout for an MCP server.
1221
1222Key
1223
1224`mcp_servers.<id>.tool_timeout_sec`
1225
1226Type / Values
1227
1228`number`
1229
1230Details
1231
1232Override the default 60s per-tool timeout for an MCP server.
1233
1234Key
1235
1236`mcp_servers.<id>.url`
1032 1237
1033Type / Values1238Type / Values
1034 1239
1036 1241
1037Details1242Details
1038 1243
10391244Optional setup guidance for the provider API key.Endpoint for an MCP streamable HTTP server.
1040 1245
1041Key1246Key
1042 1247
10431248`model_providers.<id>.experimental_bearer_token``memories.consolidation_model`
1044 1249
1045Type / Values1250Type / Values
1046 1251
1048 1253
1049Details1254Details
1050 1255
10511256Direct bearer token for the provider (discouraged; use `env_key`).Optional model override for global memory consolidation.
1052 1257
1053Key1258Key
1054 1259
10551260`model_providers.<id>.http_headers``memories.disable_on_external_context`
1056 1261
1057Type / Values1262Type / Values
1058 1263
10591264`map<string,string>``boolean`
1060 1265
1061Details1266Details
1062 1267
10631268Static HTTP headers added to provider requests.When `true`, threads that use external context such as MCP tool calls, web search, or tool search are kept out of memory generation. Defaults to `false`. Legacy alias: `memories.no_memories_if_mcp_or_web_search`.
1064 1269
1065Key1270Key
1066 1271
10671272`model_providers.<id>.name``memories.extract_model`
1068 1273
1069Type / Values1274Type / Values
1070 1275
1072 1277
1073Details1278Details
1074 1279
10751280Display name for a custom model provider.Optional model override for per-thread memory extraction.
1076 1281
1077Key1282Key
1078 1283
10791284`model_providers.<id>.query_params``memories.generate_memories`
1080 1285
1081Type / Values1286Type / Values
1082 1287
10831288`map<string,string>``boolean`
1084 1289
1085Details1290Details
1086 1291
10871292Extra query parameters appended to provider requests.When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.
1088 1293
1089Key1294Key
1090 1295
10911296`model_providers.<id>.request_max_retries``memories.max_raw_memories_for_consolidation`
1092 1297
1093Type / Values1298Type / Values
1094 1299
1096 1301
1097Details1302Details
1098 1303
10991304Retry count for HTTP requests to the provider (default: 4).Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.
1100 1305
1101Key1306Key
1102 1307
11031308`model_providers.<id>.requires_openai_auth``memories.max_rollout_age_days`
1309
1310Type / Values
1311
1312`number`
1313
1314Details
1315
1316Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.
1317
1318Key
1319
1320`memories.max_rollouts_per_startup`
1321
1322Type / Values
1323
1324`number`
1325
1326Details
1327
1328Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.
1329
1330Key
1331
1332`memories.max_unused_days`
1333
1334Type / Values
1335
1336`number`
1337
1338Details
1339
1340Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`.
1341
1342Key
1343
1344`memories.min_rollout_idle_hours`
1345
1346Type / Values
1347
1348`number`
1349
1350Details
1351
1352Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.
1353
1354Key
1355
1356`memories.use_memories`
1104 1357
1105Type / Values1358Type / Values
1106 1359
1108 1361
1109Details1362Details
1110 1363
11111364The provider uses OpenAI authentication (defaults to false).When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.
1112 1365
1113Key1366Key
1114 1367
11151368`model_providers.<id>.stream_idle_timeout_ms``model`
1369
1370Type / Values
1371
1372`string`
1373
1374Details
1375
1376Model to use (e.g., `gpt-5.4`).
1377
1378Key
1379
1380`model_auto_compact_token_limit`
1116 1381
1117Type / Values1382Type / Values
1118 1383
1120 1385
1121Details1386Details
1122 1387
11231388Idle timeout for SSE streams in milliseconds (default: 300000).Token threshold that triggers automatic history compaction (unset uses model defaults).
1124 1389
1125Key1390Key
1126 1391
11271392`model_providers.<id>.stream_max_retries``model_catalog_json`
1393
1394Type / Values
1395
1396`string (path)`
1397
1398Details
1399
1400Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.
1401
1402Key
1403
1404`model_context_window`
1128 1405
1129Type / Values1406Type / Values
1130 1407
1132 1409
1133Details1410Details
1134 1411
11351412Retry count for SSE streaming interruptions (default: 5).Context window tokens available to the active model.
1136 1413
1137Key1414Key
1138 1415
11391416`model_providers.<id>.wire_api``model_instructions_file`
1140 1417
1141Type / Values1418Type / Values
1142 1419
11431420`chat | responses``string (path)`
1144 1421
1145Details1422Details
1146 1423
11471424Protocol used by the provider (defaults to `chat` if omitted).Replacement for built-in instructions instead of `AGENTS.md`.
1148 1425
1149Key1426Key
1150 1427
11511428`model_reasoning_effort``model_provider`
1152 1429
1153Type / Values1430Type / Values
1154 1431
11551432`minimal | low | medium | high | xhigh``string`
1156 1433
1157Details1434Details
1158 1435
11591436Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).Provider id from `model_providers` (default: `openai`).
1160 1437
1161Key1438Key
1162 1439
11631440`model_reasoning_summary``model_providers.<id>`
1164 1441
1165Type / Values1442Type / Values
1166 1443
11671444`auto | concise | detailed | none``table`
1168 1445
1169Details1446Details
1170 1447
11711448Select reasoning summary detail or disable summaries entirely.Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.
1172 1449
1173Key1450Key
1174 1451
11751452`model_supports_reasoning_summaries``model_providers.<id>.auth`
1176 1453
1177Type / Values1454Type / Values
1178 1455
11791456`boolean``table`
1180 1457
1181Details1458Details
1182 1459
11831460Force Codex to send or not send reasoning metadata.Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.
1184 1461
1185Key1462Key
1186 1463
11871464`model_verbosity``model_providers.<id>.auth.args`
1188 1465
1189Type / Values1466Type / Values
1190 1467
11911468`low | medium | high``array<string>`
1192 1469
1193Details1470Details
1194 1471
11951472Control GPT-5 Responses API verbosity (defaults to `medium`).Arguments passed to the token command.
1196 1473
1197Key1474Key
1198 1475
11991476`notice.hide_full_access_warning``model_providers.<id>.auth.command`
1200 1477
1201Type / Values1478Type / Values
1202 1479
12031480`boolean``string`
1204 1481
1205Details1482Details
1206 1483
12071484Track acknowledgement of the full access warning prompt.Command to run when Codex needs a bearer token. The command must print the token to stdout.
1208 1485
1209Key1486Key
1210 1487
12111488`notice.hide_gpt-5.1-codex-max_migration_prompt``model_providers.<id>.auth.cwd`
1212 1489
1213Type / Values1490Type / Values
1214 1491
12151492`boolean``string (path)`
1216 1493
1217Details1494Details
1218 1495
12191496Track acknowledgement of the gpt-5.1-codex-max migration prompt.Working directory for the token command.
1220 1497
1221Key1498Key
1222 1499
12231500`notice.hide_gpt5_1_migration_prompt``model_providers.<id>.auth.refresh_interval_ms`
1224 1501
1225Type / Values1502Type / Values
1226 1503
12271504`boolean``number`
1228 1505
1229Details1506Details
1230 1507
12311508Track acknowledgement of the GPT-5.1 migration prompt.How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.
1232 1509
1233Key1510Key
1234 1511
12351512`notice.hide_rate_limit_model_nudge``model_providers.<id>.auth.timeout_ms`
1236 1513
1237Type / Values1514Type / Values
1238 1515
12391516`boolean``number`
1517
1518Details
1519
1520Maximum token command runtime in milliseconds (default: 5000).
1521
1522Key
1523
1524`model_providers.<id>.base_url`
1525
1526Type / Values
1527
1528`string`
1529
1530Details
1531
1532API base URL for the model provider.
1533
1534Key
1535
1536`model_providers.<id>.env_http_headers`
1537
1538Type / Values
1539
1540`map<string,string>`
1541
1542Details
1543
1544HTTP headers populated from environment variables when present.
1545
1546Key
1547
1548`model_providers.<id>.env_key`
1549
1550Type / Values
1551
1552`string`
1553
1554Details
1555
1556Environment variable supplying the provider API key.
1557
1558Key
1559
1560`model_providers.<id>.env_key_instructions`
1561
1562Type / Values
1563
1564`string`
1565
1566Details
1567
1568Optional setup guidance for the provider API key.
1569
1570Key
1571
1572`model_providers.<id>.experimental_bearer_token`
1573
1574Type / Values
1575
1576`string`
1577
1578Details
1579
1580Direct bearer token for the provider (discouraged; use `env_key`).
1581
1582Key
1583
1584`model_providers.<id>.http_headers`
1585
1586Type / Values
1587
1588`map<string,string>`
1589
1590Details
1591
1592Static HTTP headers added to provider requests.
1593
1594Key
1595
1596`model_providers.<id>.name`
1597
1598Type / Values
1599
1600`string`
1601
1602Details
1603
1604Display name for a custom model provider.
1605
1606Key
1607
1608`model_providers.<id>.query_params`
1609
1610Type / Values
1611
1612`map<string,string>`
1613
1614Details
1615
1616Extra query parameters appended to provider requests.
1617
1618Key
1619
1620`model_providers.<id>.request_max_retries`
1621
1622Type / Values
1623
1624`number`
1625
1626Details
1627
1628Retry count for HTTP requests to the provider (default: 4).
1629
1630Key
1631
1632`model_providers.<id>.requires_openai_auth`
1633
1634Type / Values
1635
1636`boolean`
1637
1638Details
1639
1640The provider uses OpenAI authentication (defaults to false).
1641
1642Key
1643
1644`model_providers.<id>.stream_idle_timeout_ms`
1645
1646Type / Values
1647
1648`number`
1649
1650Details
1651
1652Idle timeout for SSE streams in milliseconds (default: 300000).
1653
1654Key
1655
1656`model_providers.<id>.stream_max_retries`
1657
1658Type / Values
1659
1660`number`
1661
1662Details
1663
1664Retry count for SSE streaming interruptions (default: 5).
1665
1666Key
1667
1668`model_providers.<id>.supports_websockets`
1669
1670Type / Values
1671
1672`boolean`
1673
1674Details
1675
1676Whether that provider supports the Responses API WebSocket transport.
1677
1678Key
1679
1680`model_providers.<id>.wire_api`
1681
1682Type / Values
1683
1684`responses`
1685
1686Details
1687
1688Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1689
1690Key
1691
1692`model_reasoning_effort`
1693
1694Type / Values
1695
1696`minimal | low | medium | high | xhigh`
1697
1698Details
1699
1700Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).
1701
1702Key
1703
1704`model_reasoning_summary`
1705
1706Type / Values
1707
1708`auto | concise | detailed | none`
1709
1710Details
1711
1712Select reasoning summary detail or disable summaries entirely.
1713
1714Key
1715
1716`model_supports_reasoning_summaries`
1717
1718Type / Values
1719
1720`boolean`
1721
1722Details
1723
1724Force Codex to send or not send reasoning metadata.
1725
1726Key
1727
1728`model_verbosity`
1729
1730Type / Values
1731
1732`low | medium | high`
1733
1734Details
1735
1736Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1737
1738Key
1739
1740`notice.hide_full_access_warning`
1741
1742Type / Values
1743
1744`boolean`
1745
1746Details
1747
1748Track acknowledgement of the full access warning prompt.
1749
1750Key
1751
1752`notice.hide_gpt-5.1-codex-max_migration_prompt`
1753
1754Type / Values
1755
1756`boolean`
1757
1758Details
1759
1760Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1761
1762Key
1763
1764`notice.hide_gpt5_1_migration_prompt`
1765
1766Type / Values
1767
1768`boolean`
1769
1770Details
1771
1772Track acknowledgement of the GPT-5.1 migration prompt.
1773
1774Key
1775
1776`notice.hide_rate_limit_model_nudge`
1777
1778Type / Values
1779
1780`boolean`
1781
1782Details
1783
1784Track opt-out of the rate limit model switch reminder.
1785
1786Key
1787
1788`notice.hide_world_writable_warning`
1789
1790Type / Values
1791
1792`boolean`
1793
1794Details
1795
1796Track acknowledgement of the Windows world-writable directories warning.
1797
1798Key
1799
1800`notice.model_migrations`
1801
1802Type / Values
1803
1804`map<string,string>`
1805
1806Details
1807
1808Track acknowledged model migrations as old->new mappings.
1809
1810Key
1811
1812`notify`
1813
1814Type / Values
1815
1816`array<string>`
1817
1818Details
1819
1820Command invoked for notifications; receives a JSON payload from Codex.
1821
1822Key
1823
1824`openai_base_url`
1825
1826Type / Values
1827
1828`string`
1829
1830Details
1831
1832Base URL override for the built-in `openai` model provider.
1833
1834Key
1835
1836`oss_provider`
1837
1838Type / Values
1839
1840`lmstudio | ollama`
1841
1842Details
1843
1844Default local provider used when running with `--oss` (defaults to prompting if unset).
1845
1846Key
1847
1848`otel.environment`
1849
1850Type / Values
1851
1852`string`
1853
1854Details
1855
1856Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1857
1858Key
1859
1860`otel.exporter`
1861
1862Type / Values
1863
1864`none | otlp-http | otlp-grpc`
1865
1866Details
1867
1868Select the OpenTelemetry exporter and provide any endpoint metadata.
1869
1870Key
1871
1872`otel.exporter.<id>.endpoint`
1873
1874Type / Values
1875
1876`string`
1877
1878Details
1879
1880Exporter endpoint for OTEL logs.
1881
1882Key
1883
1884`otel.exporter.<id>.headers`
1885
1886Type / Values
1887
1888`map<string,string>`
1889
1890Details
1891
1892Static headers included with OTEL exporter requests.
1893
1894Key
1895
1896`otel.exporter.<id>.protocol`
1897
1898Type / Values
1899
1900`binary | json`
1901
1902Details
1903
1904Protocol used by the OTLP/HTTP exporter.
1905
1906Key
1907
1908`otel.exporter.<id>.tls.ca-certificate`
1909
1910Type / Values
1911
1912`string`
1913
1914Details
1915
1916CA certificate path for OTEL exporter TLS.
1917
1918Key
1919
1920`otel.exporter.<id>.tls.client-certificate`
1921
1922Type / Values
1923
1924`string`
1925
1926Details
1927
1928Client certificate path for OTEL exporter TLS.
1929
1930Key
1931
1932`otel.exporter.<id>.tls.client-private-key`
1933
1934Type / Values
1935
1936`string`
1937
1938Details
1939
1940Client private key path for OTEL exporter TLS.
1941
1942Key
1943
1944`otel.log_user_prompt`
1945
1946Type / Values
1947
1948`boolean`
1949
1950Details
1951
1952Opt in to exporting raw user prompts with OpenTelemetry logs.
1953
1954Key
1955
1956`otel.metrics_exporter`
1957
1958Type / Values
1959
1960`none | statsig | otlp-http | otlp-grpc`
1961
1962Details
1963
1964Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1965
1966Key
1967
1968`otel.trace_exporter`
1969
1970Type / Values
1971
1972`none | otlp-http | otlp-grpc`
1973
1974Details
1975
1976Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1977
1978Key
1979
1980`otel.trace_exporter.<id>.endpoint`
1981
1982Type / Values
1983
1984`string`
1985
1986Details
1987
1988Trace exporter endpoint for OTEL logs.
1989
1990Key
1991
1992`otel.trace_exporter.<id>.headers`
1993
1994Type / Values
1995
1996`map<string,string>`
1997
1998Details
1999
2000Static headers included with OTEL trace exporter requests.
2001
2002Key
2003
2004`otel.trace_exporter.<id>.protocol`
2005
2006Type / Values
2007
2008`binary | json`
2009
2010Details
2011
2012Protocol used by the OTLP/HTTP trace exporter.
2013
2014Key
2015
2016`otel.trace_exporter.<id>.tls.ca-certificate`
2017
2018Type / Values
2019
2020`string`
2021
2022Details
2023
2024CA certificate path for OTEL trace exporter TLS.
2025
2026Key
2027
2028`otel.trace_exporter.<id>.tls.client-certificate`
2029
2030Type / Values
2031
2032`string`
2033
2034Details
2035
2036Client certificate path for OTEL trace exporter TLS.
2037
2038Key
2039
2040`otel.trace_exporter.<id>.tls.client-private-key`
2041
2042Type / Values
2043
2044`string`
2045
2046Details
2047
2048Client private key path for OTEL trace exporter TLS.
2049
2050Key
2051
2052`permissions.<name>.filesystem`
2053
2054Type / Values
2055
2056`table`
2057
2058Details
2059
2060Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.
2061
2062Key
2063
2064`permissions.<name>.filesystem.":project_roots".<subpath-or-glob>`
2065
2066Type / Values
2067
2068`"read" | "write" | "none"`
1240 2069
1241Details2070Details
1242 2071
12432072Track opt-out of the rate limit model switch reminder.Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.
1244 2073
1245Key2074Key
1246 2075
12472076`notice.hide_world_writable_warning``permissions.<name>.filesystem.<path-or-glob>`
1248 2077
1249Type / Values2078Type / Values
1250 2079
12512080`boolean``"read" | "write" | "none" | table`
1252 2081
1253Details2082Details
1254 2083
12552084Track acknowledgement of the Windows world-writable directories warning.Grant direct access for a path, glob pattern, or special token, or scope nested entries under that root. Use `"none"` to deny reads for matching paths.
1256 2085
1257Key2086Key
1258 2087
12592088`notice.model_migrations``permissions.<name>.filesystem.glob_scan_max_depth`
1260 2089
1261Type / Values2090Type / Values
1262 2091
12632092`map<string,string>``number`
1264 2093
1265Details2094Details
1266 2095
12672096Track acknowledged model migrations as old->new mappings.Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.
1268 2097
1269Key2098Key
1270 2099
12712100`notify``permissions.<name>.network.allow_local_binding`
1272 2101
1273Type / Values2102Type / Values
1274 2103
12752104`array<string>``boolean`
1276 2105
1277Details2106Details
1278 2107
12792108Command invoked for notifications; receives a JSON payload from Codex.Permit local bind/listen operations through the managed proxy.
1280 2109
1281Key2110Key
1282 2111
12832112`oss_provider``permissions.<name>.network.allow_upstream_proxy`
1284 2113
1285Type / Values2114Type / Values
1286 2115
12872116`lmstudio | ollama``boolean`
1288 2117
1289Details2118Details
1290 2119
12912120Default local provider used when running with `--oss` (defaults to prompting if unset).Allow the managed proxy to chain to another upstream proxy.
1292 2121
1293Key2122Key
1294 2123
12952124`otel.environment``permissions.<name>.network.dangerously_allow_all_unix_sockets`
1296 2125
1297Type / Values2126Type / Values
1298 2127
12992128`string``boolean`
1300 2129
1301Details2130Details
1302 2131
13032132Environment tag applied to emitted OpenTelemetry events (default: `dev`).Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
1304 2133
1305Key2134Key
1306 2135
13072136`otel.exporter``permissions.<name>.network.dangerously_allow_non_loopback_proxy`
1308 2137
1309Type / Values2138Type / Values
1310 2139
13112140`none | otlp-http | otlp-grpc``boolean`
1312 2141
1313Details2142Details
1314 2143
13152144Select the OpenTelemetry exporter and provide any endpoint metadata.Permit non-loopback bind addresses for the managed proxy listener.
1316 2145
1317Key2146Key
1318 2147
13192148`otel.exporter.<id>.endpoint``permissions.<name>.network.domains`
1320 2149
1321Type / Values2150Type / Values
1322 2151
13232152`string``map<string, allow | deny>`
1324 2153
1325Details2154Details
1326 2155
13272156Exporter endpoint for OTEL logs.Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.
1328 2157
1329Key2158Key
1330 2159
13312160`otel.exporter.<id>.headers``permissions.<name>.network.enable_socks5`
1332 2161
1333Type / Values2162Type / Values
1334 2163
13352164`map<string,string>``boolean`
1336 2165
1337Details2166Details
1338 2167
13392168Static headers included with OTEL exporter requests.Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.
1340 2169
1341Key2170Key
1342 2171
13432172`otel.exporter.<id>.protocol``permissions.<name>.network.enable_socks5_udp`
1344 2173
1345Type / Values2174Type / Values
1346 2175
13472176`binary | json``boolean`
1348 2177
1349Details2178Details
1350 2179
13512180Protocol used by the OTLP/HTTP exporter.Allow UDP over the SOCKS5 listener when enabled.
1352 2181
1353Key2182Key
1354 2183
13552184`otel.exporter.<id>.tls.ca-certificate``permissions.<name>.network.enabled`
1356 2185
1357Type / Values2186Type / Values
1358 2187
13592188`string``boolean`
1360 2189
1361Details2190Details
1362 2191
13632192CA certificate path for OTEL exporter TLS.Enable network access for this named permissions profile.
1364 2193
1365Key2194Key
1366 2195
13672196`otel.exporter.<id>.tls.client-certificate``permissions.<name>.network.mode`
1368 2197
1369Type / Values2198Type / Values
1370 2199
13712200`string``limited | full`
1372 2201
1373Details2202Details
1374 2203
13752204Client certificate path for OTEL exporter TLS.Network proxy mode used for subprocess traffic.
1376 2205
1377Key2206Key
1378 2207
13792208`otel.exporter.<id>.tls.client-private-key``permissions.<name>.network.proxy_url`
1380 2209
1381Type / Values2210Type / Values
1382 2211
1384 2213
1385Details2214Details
1386 2215
13872216Client private key path for OTEL exporter TLS.HTTP proxy endpoint used when this permissions profile enables the managed network proxy.
1388 2217
1389Key2218Key
1390 2219
13912220`otel.log_user_prompt``permissions.<name>.network.socks_url`
1392 2221
1393Type / Values2222Type / Values
1394 2223
13952224`boolean``string`
1396 2225
1397Details2226Details
1398 2227
13992228Opt in to exporting raw user prompts with OpenTelemetry logs.SOCKS5 proxy endpoint used by this permissions profile.
1400 2229
1401Key2230Key
1402 2231
14032232`otel.trace_exporter``permissions.<name>.network.unix_sockets`
1404 2233
1405Type / Values2234Type / Values
1406 2235
14072236`none | otlp-http | otlp-grpc``map<string, allow | none>`
1408 2237
1409Details2238Details
1410 2239
14112240Select 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 2241
1413Key2242Key
1414 2243
14152244`otel.trace_exporter.<id>.endpoint``personality`
1416 2245
1417Type / Values2246Type / Values
1418 2247
14192248`string``none | friendly | pragmatic`
1420 2249
1421Details2250Details
1422 2251
14232252Trace exporter endpoint for OTEL logs.Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
1424 2253
1425Key2254Key
1426 2255
14272256`otel.trace_exporter.<id>.headers``plan_mode_reasoning_effort`
1428 2257
1429Type / Values2258Type / Values
1430 2259
14312260`map<string,string>``none | minimal | low | medium | high | xhigh`
1432 2261
1433Details2262Details
1434 2263
14352264Static headers included with OTEL trace exporter requests.Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
1436 2265
1437Key2266Key
1438 2267
14392268`otel.trace_exporter.<id>.protocol``profile`
1440 2269
1441Type / Values2270Type / Values
1442 2271
14432272`binary | json``string`
1444 2273
1445Details2274Details
1446 2275
14472276Protocol used by the OTLP/HTTP trace exporter.Default profile applied at startup (equivalent to `--profile`).
1448 2277
1449Key2278Key
1450 2279
14512280`otel.trace_exporter.<id>.tls.ca-certificate``profiles.<name>.*`
1452 2281
1453Type / Values2282Type / Values
1454 2283
14552284`string``various`
1456 2285
1457Details2286Details
1458 2287
14592288CA certificate path for OTEL trace exporter TLS.Profile-scoped overrides for any of the supported configuration keys.
1460 2289
1461Key2290Key
1462 2291
14632292`otel.trace_exporter.<id>.tls.client-certificate``profiles.<name>.analytics.enabled`
1464 2293
1465Type / Values2294Type / Values
1466 2295
14672296`string``boolean`
1468 2297
1469Details2298Details
1470 2299
14712300Client certificate path for OTEL trace exporter TLS.Profile-scoped analytics enablement override.
1472 2301
1473Key2302Key
1474 2303
14752304`otel.trace_exporter.<id>.tls.client-private-key``profiles.<name>.experimental_use_unified_exec_tool`
1476 2305
1477Type / Values2306Type / Values
1478 2307
14792308`string``boolean`
1480 2309
1481Details2310Details
1482 2311
14832312Client private key path for OTEL trace exporter TLS.Legacy name for enabling unified exec; prefer `[features].unified_exec`.
1484 2313
1485Key2314Key
1486 2315
14872316`personality``profiles.<name>.model_catalog_json`
1488 2317
1489Type / Values2318Type / Values
1490 2319
14912320`none | friendly | pragmatic``string (path)`
1492 2321
1493Details2322Details
1494 2323
14952324Default 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 2325
1497Key2326Key
1498 2327
14992328`profile``profiles.<name>.model_instructions_file`
1500 2329
1501Type / Values2330Type / Values
1502 2331
15032332`string``string (path)`
1504 2333
1505Details2334Details
1506 2335
15072336Default profile applied at startup (equivalent to `--profile`).Profile-scoped replacement for the built-in instruction file.
1508 2337
1509Key2338Key
1510 2339
15112340`profiles.<name>.*``profiles.<name>.oss_provider`
1512 2341
1513Type / Values2342Type / Values
1514 2343
15152344`various``lmstudio | ollama`
1516 2345
1517Details2346Details
1518 2347
15192348Profile-scoped overrides for any of the supported configuration keys.Profile-scoped OSS provider for `--oss` sessions.
1520 2349
1521Key2350Key
1522 2351
15232352`profiles.<name>.experimental_use_freeform_apply_patch``profiles.<name>.personality`
1524 2353
1525Type / Values2354Type / Values
1526 2355
15272356`boolean``none | friendly | pragmatic`
1528 2357
1529Details2358Details
1530 2359
15312360Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped communication style override for supported models.
1532 2361
1533Key2362Key
1534 2363
15352364`profiles.<name>.experimental_use_unified_exec_tool``profiles.<name>.plan_mode_reasoning_effort`
1536 2365
1537Type / Values2366Type / Values
1538 2367
15392368`boolean``none | minimal | low | medium | high | xhigh`
1540 2369
1541Details2370Details
1542 2371
15432372Legacy name for enabling unified exec; prefer `[features].unified_exec`.Profile-scoped Plan-mode reasoning override.
1544 2373
1545Key2374Key
1546 2375
15472376`profiles.<name>.include_apply_patch_tool``profiles.<name>.service_tier`
1548 2377
1549Type / Values2378Type / Values
1550 2379
15512380`boolean``flex | fast`
1552 2381
1553Details2382Details
1554 2383
15552384Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.Profile-scoped service tier preference for new turns.
1556 2385
1557Key2386Key
1558 2387
15592388`profiles.<name>.oss_provider``profiles.<name>.tools_view_image`
1560 2389
1561Type / Values2390Type / Values
1562 2391
15632392`lmstudio | ollama``boolean`
1564 2393
1565Details2394Details
1566 2395
15672396Profile-scoped OSS provider for `--oss` sessions.Enable or disable the `view_image` tool in that profile.
1568 2397
1569Key2398Key
1570 2399
15712400`profiles.<name>.personality``profiles.<name>.web_search`
1572 2401
1573Type / Values2402Type / Values
1574 2403
15752404`none | friendly | pragmatic``disabled | cached | live`
1576 2405
1577Details2406Details
1578 2407
15792408Profile-scoped communication style override for supported models.Profile-scoped web search mode override (default: `"cached"`).
1580 2409
1581Key2410Key
1582 2411
15832412`profiles.<name>.web_search``profiles.<name>.windows.sandbox`
1584 2413
1585Type / Values2414Type / Values
1586 2415
15872416`disabled | cached | live``unelevated | elevated`
1588 2417
1589Details2418Details
1590 2419
15912420Profile-scoped web search mode override (default: `"cached"`).Profile-scoped Windows sandbox mode override.
1592 2421
1593Key2422Key
1594 2423
1712 2541
1713Key2542Key
1714 2543
2544`service_tier`
2545
2546Type / Values
2547
2548`flex | fast`
2549
2550Details
2551
2552Preferred service tier for new turns.
2553
2554Key
2555
1715`shell_environment_policy.exclude`2556`shell_environment_policy.exclude`
1716 2557
1717Type / Values2558Type / Values
1832 2673
1833Key2674Key
1834 2675
2676`sqlite_home`
2677
2678Type / Values
2679
2680`string (path)`
2681
2682Details
2683
2684Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.
2685
2686Key
2687
1835`suppress_unstable_features_warning`2688`suppress_unstable_features_warning`
1836 2689
1837Type / Values2690Type / Values
1856 2709
1857Key2710Key
1858 2711
18592712`tools.web_search``tool_suggest.discoverables`
2713
2714Type / Values
2715
2716`array<table>`
2717
2718Details
2719
2720Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.
2721
2722Key
2723
2724`tools.view_image`
1860 2725
1861Type / Values2726Type / Values
1862 2727
1864 2729
1865Details2730Details
1866 2731
18672732Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.Enable the local-image attachment tool `view_image`.
2733
2734Key
2735
2736`tools.web_search`
2737
2738Type / Values
2739
2740`boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }`
2741
2742Details
2743
2744Optional 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 2745
1869Key2746Key
1870 2747
1904 2781
1905Key2782Key
1906 2783
2784`tui.model_availability_nux.<model>`
2785
2786Type / Values
2787
2788`integer`
2789
2790Details
2791
2792Internal startup-tooltip state keyed by model slug.
2793
2794Key
2795
2796`tui.notification_condition`
2797
2798Type / Values
2799
2800`unfocused | always`
2801
2802Details
2803
2804Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.
2805
2806Key
2807
1907`tui.notification_method`2808`tui.notification_method`
1908 2809
1909Type / Values2810Type / Values
1912 2813
1913Details2814Details
1914 2815
19152816Notification method for unfocused terminal notifications (default: auto).Notification method for terminal notifications (default: auto).
1916 2817
1917Key2818Key
1918 2819
1952 2853
1953Key2854Key
1954 2855
2856`tui.terminal_title`
2857
2858Type / Values
2859
2860`array<string> | null`
2861
2862Details
2863
2864Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.
2865
2866Key
2867
2868`tui.theme`
2869
2870Type / Values
2871
2872`string`
2873
2874Details
2875
2876Syntax-highlighting theme override (kebab-case theme name).
2877
2878Key
2879
1955`web_search`2880`web_search`
1956 2881
1957Type / Values2882Type / Values
1974 2899
1975Track Windows onboarding acknowledgement (Windows only).2900Track Windows onboarding acknowledgement (Windows only).
1976 2901
2902Key
2903
2904`windows.sandbox`
2905
2906Type / Values
2907
2908`unelevated | elevated`
2909
2910Details
2911
2912Windows-only native sandbox mode when running Codex natively on Windows.
2913
2914Key
2915
2916`windows.sandbox_private_desktop`
2917
2918Type / Values
2919
2920`boolean`
2921
2922Details
2923
2924Run 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.
2925
1977Expand to view all2926Expand to view all
1978 2927
1979You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).2928You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
1988 2937
1989## `requirements.toml`2938## `requirements.toml`
1990 2939
19912940`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 2941
1993For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched2942For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
1994requirements. See the security page for precedence details.2943requirements. See the security page for precedence details.
1995 2944
2945Use `[features]` in `requirements.toml` to pin feature flags by the same
2946canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
2947
1996| Key | Type / Values | Details |2948| Key | Type / Values | Details |
1997| --- | --- | --- |2949| --- | --- | --- |
19982950| `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`). |
2951| `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`. |2952| `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`. |2953| `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`. |
2954| `features` | `table` | Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. |
2955| `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. |2956| `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). |2957| `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. |2958| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |
2004| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |2959| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |
2960| `permissions.filesystem.deny_read` | `array<string>` | Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config. |
2005| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |2961| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |
2006| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |2962| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |
2007| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |2963| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |
2020 2976
2021Details2977Details
2022 2978
20232979Allowed values for `approval\_policy`.Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).
2980
2981Key
2982
2983`allowed_approvals_reviewers`
2984
2985Type / Values
2986
2987`array<string>`
2988
2989Details
2990
2991Allowed values for `approvals_reviewer` (for example `user` and `guardian_subagent`).
2024 2992
2025Key2993Key
2026 2994
2048 3016
2049Key3017Key
2050 3018
3019`features`
3020
3021Type / Values
3022
3023`table`
3024
3025Details
3026
3027Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.
3028
3029Key
3030
3031`features.<name>`
3032
3033Type / Values
3034
3035`boolean`
3036
3037Details
3038
3039Require a specific canonical feature key to stay enabled or disabled.
3040
3041Key
3042
2051`mcp_servers`3043`mcp_servers`
2052 3044
2053Type / Values3045Type / Values
2096 3088
2097Key3089Key
2098 3090
3091`permissions.filesystem.deny_read`
3092
3093Type / Values
3094
3095`array<string>`
3096
3097Details
3098
3099Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config.
3100
3101Key
3102
2099`rules`3103`rules`
2100 3104
2101Type / Values3105Type / Values