config-reference.md +1509 −2985
8 8
9For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/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).9For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/agent-approvals-security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/agent-approvals-security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/agent-approvals-security#network-access).
10 10
1111| Key | Type / Values | Details |<ConfigTable
1212| --- | --- | --- | options={[
1313| `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. | {
1414| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. | key: "model",
1515| `agents.<name>.nickname_candidates` | `array<string>` | Optional pool of display nicknames for spawned agents in that role. | type: "string",
1616| `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. | description: "Model to use (e.g., `gpt-5.5`).",
1717| `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). | },
1818| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset. | {
1919| `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. | key: "review_model",
2020| `analytics.enabled` | `boolean` | Enable or disable analytics for this machine/profile. When unset, the client default applies. | type: "string",
2121| `approval_policy` | `untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }` | Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. | description:
2222| `approval_policy.reject.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user. | "Optional model override used by `/review` (defaults to the current session model).",
2323| `approval_policy.reject.rules` | `boolean` | When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected. | },
2424| `approval_policy.reject.sandbox_approval` | `boolean` | When `true`, sandbox escalation approval prompts are auto-rejected. | {
2525| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. | key: "model_provider",
2626| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. | type: "string",
2727| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. | description: "Provider id from `model_providers` (default: `openai`).",
2828| `apps.<id>.default_tools_approval_mode` | `auto | prompt | approve` | Default approval behavior for tools in this app unless a per-tool override exists. | },
2929| `apps.<id>.default_tools_enabled` | `boolean` | Default enabled state for tools in this app unless a per-tool override exists. | {
3030| `apps.<id>.destructive_enabled` | `boolean` | Allow or block tools in this app that advertise `destructive_hint = true`. | key: "openai_base_url",
3131| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). | type: "string",
3232| `apps.<id>.open_world_enabled` | `boolean` | Allow or block tools in this app that advertise `open_world_hint = true`. | description:
3333| `apps.<id>.tools.<tool>.approval_mode` | `auto | prompt | approve` | Per-tool approval behavior override for a single app tool. | "Base URL override for the built-in `openai` model provider.",
3434| `apps.<id>.tools.<tool>.enabled` | `boolean` | Per-tool enabled override for an app tool (for example `repos/list`). | },
3535| `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. | {
3636| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. | key: "model_context_window",
3737| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). | type: "number",
3838| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). | description: "Context window tokens available to the active model.",
3939| `commit_attribution` | `string` | Override the commit co-author trailer text. Set an empty string to disable automatic attribution. | },
4040| `compact_prompt` | `string` | Inline override for the history compaction prompt. | {
4141| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). | key: "model_auto_compact_token_limit",
4242| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. | type: "number",
4343| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). | description:
4444| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. | "Token threshold that triggers automatic history compaction (unset uses model defaults).",
4545| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). | },
4646| `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). | {
4747| `features.artifact` | `boolean` | Enable native artifact tools such as slides and spreadsheets (under development). | key: "model_catalog_json",
4848| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). | type: "string (path)",
4949| `features.collaboration_modes` | `boolean` | Legacy toggle for collaboration modes. Plan and default modes are available in current builds without setting this key. | description:
5050| `features.default_mode_request_user_input` | `boolean` | Allow `request_user_input` in default collaboration mode (under development; off by default). | "Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.",
5151| `features.elevated_windows_sandbox` | `boolean` | Legacy toggle for an earlier elevated Windows sandbox rollout. Current builds do not use it. | },
5252| `features.enable_request_compression` | `boolean` | Compress streaming request bodies with zstd when supported (stable; on by default). | {
5353| `features.experimental_windows_sandbox` | `boolean` | Legacy toggle for an earlier Windows sandbox rollout. Current builds do not use it. | key: "oss_provider",
5454| `features.fast_mode` | `boolean` | Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default). | type: "lmstudio | ollama",
5555| `features.image_detail_original` | `boolean` | Allow image outputs with `detail = "original"` on supported models (under development). | description:
5656| `features.image_generation` | `boolean` | Enable the built-in image generation tool (under development). | "Default local provider used when running with `--oss` (defaults to prompting if unset).",
5757| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait`, `close_agent`, and `spawn_agents_on_csv`) (experimental; off by default). | },
5858| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). | {
5959| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output. Enabled by default on Windows and off elsewhere. | key: "approval_policy",
6060| `features.prevent_idle_sleep` | `boolean` | Prevent the machine from sleeping while a turn is actively running (experimental; off by default). | type: "untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }",
6161| `features.remote_models` | `boolean` | Legacy toggle for an older remote-model readiness flow. Current builds do not use it. | description:
6262| `features.request_rule` | `boolean` | Legacy toggle for Smart approvals. Current builds include this behavior by default, so most users can leave this unset. | "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.",
6363| `features.responses_websockets` | `boolean` | Prefer the Responses API WebSocket transport for supported providers (under development). | },
6464| `features.responses_websockets_v2` | `boolean` | Enable Responses API WebSocket v2 mode (under development). | {
6565| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). | key: "approval_policy.granular.sandbox_approval",
6666| `features.search_tool` | `boolean` | Legacy toggle for an older Apps discovery flow. Current builds do not use it. | type: "boolean",
6767| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (stable; on by default). | description:
6868| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). | "When `true`, sandbox escalation approval prompts are allowed to surface.",
6969| `features.skill_env_var_dependency_prompt` | `boolean` | Prompt for missing skill environment-variable dependencies (under development). | },
7070| `features.skill_mcp_dependency_install` | `boolean` | Allow prompting and installing missing MCP dependencies for skills (stable; on by default). | {
7171| `features.sqlite` | `boolean` | Enable SQLite-backed state persistence (stable; on by default). | key: "approval_policy.granular.rules",
7272| `features.steer` | `boolean` | Legacy toggle from an earlier Enter/Tab steering rollout. Current builds always use the current steering behavior. | type: "boolean",
7373| `features.undo` | `boolean` | Enable undo support (stable; off by default). | description:
7474| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (stable; enabled by default except on Windows). | "When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.",
7575| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). | },
7676| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. | {
7777| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. | key: "approval_policy.granular.mcp_elicitations",
7878| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. | type: "boolean",
7979| `feedback.enabled` | `boolean` | Enable feedback submission via `/feedback` across Codex surfaces (default: true). | description:
8080| `file_opener` | `vscode | vscode-insiders | windsurf | cursor | none` | URI scheme used to open citations from Codex output (default: `vscode`). | "When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.",
8181| `forced_chatgpt_workspace_id` | `string (uuid)` | Limit ChatGPT logins to a specific workspace identifier. | },
8282| `forced_login_method` | `chatgpt | api` | Restrict Codex to a specific authentication method. | {
8383| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. | key: "approval_policy.granular.request_permissions",
8484| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. | type: "boolean",
8585| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. | description:
8686| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. | "When `true`, prompts from the `request_permissions` tool are allowed to surface.",
8787| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. | },
8888| `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. | {
8989| `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. | key: "approval_policy.granular.skill_approval",
9090| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. | type: "boolean",
9191| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. | description:
9292| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. | "When `true`, skill-script approval prompts are allowed to surface.",
9393| `mcp_servers.<id>.command` | `string` | Launcher command for an MCP stdio server. | },
9494| `mcp_servers.<id>.cwd` | `string` | Working directory for the MCP stdio server process. | {
9595| `mcp_servers.<id>.disabled_tools` | `array<string>` | Deny list applied after `enabled_tools` for the MCP server. | key: "approvals_reviewer",
9696| `mcp_servers.<id>.enabled` | `boolean` | Disable an MCP server without removing its configuration. | type: "user | auto_review",
9797| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. | description:
9898| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. | "Who reviews eligible approval prompts under `on-request` or granular approval policies. Defaults to `user`; `auto_review` uses the reviewer subagent. This setting doesn't change sandboxing or review actions already allowed inside the sandbox.",
9999| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. | },
100100| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. | {
101101| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. | key: "auto_review.policy",
102102| `mcp_servers.<id>.oauth_resource` | `string` | Optional RFC 8707 OAuth resource parameter to include during MCP login. | type: "string",
103103| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. | description:
104104| `mcp_servers.<id>.scopes` | `array<string>` | OAuth scopes to request when authenticating to that MCP server. | "Local Markdown policy instructions for automatic review. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",
105105| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. | },
106106| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. | {
107107| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. | key: "allow_login_shell",
108108| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. | type: "boolean",
109109| `model` | `string` | Model to use (e.g., `gpt-5-codex`). | description:
110110| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). | "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.",
111111| `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. | },
112112| `model_context_window` | `number` | Context window tokens available to the active model. | {
113113| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. | key: "sandbox_mode",
114114| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). | type: "read-only | workspace-write | danger-full-access",
115115| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. | description:
116116| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. | "Sandbox policy for filesystem and network access during command execution.",
117117| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. | },
118118| `model_providers.<id>.env_key_instructions` | `string` | Optional setup guidance for the provider API key. | {
119119| `model_providers.<id>.experimental_bearer_token` | `string` | Direct bearer token for the provider (discouraged; use `env_key`). | key: "sandbox_workspace_write.writable_roots",
120120| `model_providers.<id>.http_headers` | `map<string,string>` | Static HTTP headers added to provider requests. | type: "array<string>",
121121| `model_providers.<id>.name` | `string` | Display name for a custom model provider. | description:
122122| `model_providers.<id>.query_params` | `map<string,string>` | Extra query parameters appended to provider requests. | 'Additional writable roots when `sandbox_mode = "workspace-write"`.',
123123| `model_providers.<id>.request_max_retries` | `number` | Retry count for HTTP requests to the provider (default: 4). | },
124124| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). | {
125125| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). | key: "sandbox_workspace_write.network_access",
126126| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). | type: "boolean",
127127| `model_providers.<id>.supports_websockets` | `boolean` | Whether that provider supports the Responses API WebSocket transport. | description:
128128| `model_providers.<id>.wire_api` | `responses` | Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted. | "Allow outbound network access inside the workspace-write sandbox.",
129129| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). | },
130130| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. | {
131131| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. | key: "sandbox_workspace_write.exclude_tmpdir_env_var",
132132| `model_verbosity` | `low | medium | high` | Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used. | type: "boolean",
133133| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. | description:
134134| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. | "Exclude `$TMPDIR` from writable roots in workspace-write mode.",
135135| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. | },
136136| `notice.hide_rate_limit_model_nudge` | `boolean` | Track opt-out of the rate limit model switch reminder. | {
137137| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. | key: "sandbox_workspace_write.exclude_slash_tmp",
138138| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. | type: "boolean",
139139| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. | description:
140140| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). | "Exclude `/tmp` from writable roots in workspace-write mode.",
141141| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). | },
142142| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. | {
143143| `otel.exporter.<id>.endpoint` | `string` | Exporter endpoint for OTEL logs. | key: "windows.sandbox",
144144| `otel.exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL exporter requests. | type: "unelevated | elevated",
145145| `otel.exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP exporter. | description:
146146| `otel.exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL exporter TLS. | "Windows-only native sandbox mode when running Codex natively on Windows.",
147147| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. | },
148148| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. | {
149149| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. | key: "windows.sandbox_private_desktop",
150150| `otel.metrics_exporter` | `none | statsig | otlp-http | otlp-grpc` | Select the OpenTelemetry metrics exporter (defaults to `statsig`). | type: "boolean",
151151| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. | description:
152152| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. | "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.",
153153| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. | },
154154| `otel.trace_exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP trace exporter. | {
155155| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. | key: "notify",
156156| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. | type: "array<string>",
157157| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. | description:
158158| `permissions.network.admin_url` | `string` | Admin endpoint for the managed network proxy. | "Command invoked for notifications; receives a JSON payload from Codex.",
159159| `permissions.network.allow_local_binding` | `boolean` | Permit local bind/listen operations through the managed proxy. | },
160160| `permissions.network.allow_unix_sockets` | `array<string>` | Allowlist of Unix socket paths permitted through the managed proxy. | {
161161| `permissions.network.allow_upstream_proxy` | `boolean` | Allow the managed proxy to chain to another upstream proxy. | key: "check_for_update_on_startup",
162162| `permissions.network.allowed_domains` | `array<string>` | Allowlist of domains permitted through the managed proxy. | type: "boolean",
163163| `permissions.network.dangerously_allow_all_unix_sockets` | `boolean` | Allow the proxy to use arbitrary Unix sockets instead of the default restricted set. | description:
164164| `permissions.network.dangerously_allow_non_loopback_admin` | `boolean` | Permit non-loopback bind addresses for the managed proxy admin listener. | "Check for Codex updates on startup (set to false only when updates are centrally managed).",
165165| `permissions.network.dangerously_allow_non_loopback_proxy` | `boolean` | Permit non-loopback bind addresses for the managed proxy listener. | },
166166| `permissions.network.denied_domains` | `array<string>` | Denylist of domains blocked by the managed proxy. | {
167167| `permissions.network.enable_socks5` | `boolean` | Expose a SOCKS5 listener from the managed network proxy. | key: "feedback.enabled",
168168| `permissions.network.enable_socks5_udp` | `boolean` | Allow UDP over the SOCKS5 listener when enabled. | type: "boolean",
169169| `permissions.network.enabled` | `boolean` | Enable the managed network proxy configuration for subprocesses. | description:
170170| `permissions.network.mode` | `limited | full` | Network proxy mode used for subprocess traffic. | "Enable feedback submission via `/feedback` across Codex surfaces (default: true).",
171171| `permissions.network.proxy_url` | `string` | HTTP proxy endpoint used by the managed network proxy. | },
172172| `permissions.network.socks_url` | `string` | SOCKS5 proxy endpoint used by the managed network proxy. | {
173173| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. | key: "analytics.enabled",
174174| `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. | type: "boolean",
175175| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). | description:
176176| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. | "Enable or disable analytics for this machine/profile. When unset, the client default applies.",
177177| `profiles.<name>.analytics.enabled` | `boolean` | Profile-scoped analytics enablement override. | },
178178| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. | {
179179| `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). | key: "instructions",
180180| `profiles.<name>.model_instructions_file` | `string (path)` | Profile-scoped replacement for the built-in instruction file. | type: "string",
181181| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. | description:
182182| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. | "Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.",
183183| `profiles.<name>.plan_mode_reasoning_effort` | `none | minimal | low | medium | high | xhigh` | Profile-scoped Plan-mode reasoning override. | },
184184| `profiles.<name>.service_tier` | `flex | fast` | Profile-scoped service tier preference for new turns. | {
185185| `profiles.<name>.tools_view_image` | `boolean` | Enable or disable the `view_image` tool in that profile. | key: "developer_instructions",
186186| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). | type: "string",
187187| `profiles.<name>.windows.sandbox` | `unelevated | elevated` | Profile-scoped Windows sandbox mode override. | description:
188188| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. | "Additional developer instructions injected into the session (optional).",
189189| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. | },
190190| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. | {
191191| `projects.<path>.trust_level` | `string` | Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers. | key: "log_dir",
192192| `review_model` | `string` | Optional model override used by `/review` (defaults to the current session model). | type: "string (path)",
193193| `sandbox_mode` | `read-only | workspace-write | danger-full-access` | Sandbox policy for filesystem and network access during command execution. | description:
194194| `sandbox_workspace_write.exclude_slash_tmp` | `boolean` | Exclude `/tmp` from writable roots in workspace-write mode. | "Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.",
195195| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. | },
196196| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. | {
197197| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. | key: "sqlite_home",
198198| `service_tier` | `flex | fast` | Preferred service tier for new turns. `fast` is honored only when the `features.fast_mode` gate is enabled. | type: "string (path)",
199199| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. | description:
200200| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. | "Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.",
201201| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. | },
202202| `shell_environment_policy.include_only` | `array<string>` | Whitelist of patterns; when set only matching variables are kept. | {
203203| `shell_environment_policy.inherit` | `all | core | none` | Baseline environment inheritance when spawning subprocesses. | key: "compact_prompt",
204204| `shell_environment_policy.set` | `map<string,string>` | Explicit environment overrides injected into every subprocess. | type: "string",
205205| `show_raw_agent_reasoning` | `boolean` | Surface raw reasoning content when the active model emits it. | description: "Inline override for the history compaction prompt.",
206206| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. | },
207207| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. | {
208208| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. | key: "commit_attribution",
209209| `sqlite_home` | `string (path)` | Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state. | type: "string",
210210| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. | description:
211211| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. | 'Commit co-author trailer used when `[features].codex_git_commit` is enabled. Defaults to `Codex <noreply@openai.com>`; set `""` to disable.',
212212| `tools.view_image` | `boolean` | Enable the local-image attachment tool `view_image`. | },
213213| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. | {
214214| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. | key: "model_instructions_file",
215215| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). | type: "string (path)",
216216| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). | description:
217217| `tui.model_availability_nux.<model>` | `integer` | Internal startup-tooltip state keyed by model slug. | "Replacement for built-in instructions instead of `AGENTS.md`.",
218218| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). | },
219219| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. | {
220220| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). | key: "personality",
221221| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. | type: "none | friendly | pragmatic",
222222| `tui.theme` | `string` | Syntax-highlighting theme override (kebab-case theme name). | description:
223223| `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. | "Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.",
224224| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). | },
225225| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. | {
226226 key: "service_tier",
227227Key type: "flex | fast",
228228 description: "Preferred service tier for new turns.",
229229`agents.<name>.config_file` },
230230 {
231231Type / Values key: "experimental_compact_prompt_file",
232232 type: "string (path)",
233233`string (path)` description:
234234 "Load the compaction prompt override from a file (experimental).",
235235Details },
236236 {
237237Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. key: "skills.config",
238238 type: "array<object>",
239239Key description: "Per-skill enablement overrides stored in config.toml.",
240240 },
241241`agents.<name>.description` {
242242 key: "skills.config.<index>.path",
243243Type / Values type: "string (path)",
244244 description: "Path to a skill folder containing `SKILL.md`.",
245245`string` },
246246 {
247247Details key: "skills.config.<index>.enabled",
248248 type: "boolean",
249249Role guidance shown to Codex when choosing and spawning that agent type. description: "Enable or disable the referenced skill.",
250250 },
251251Key {
252252 key: "apps.<id>.enabled",
253253`agents.<name>.nickname_candidates` type: "boolean",
254254 description:
255255Type / Values "Enable or disable a specific app/connector by id (default: true).",
256256 },
257257`array<string>` {
258258 key: "apps._default.enabled",
259259Details type: "boolean",
260260 description:
261261Optional pool of display nicknames for spawned agents in that role. "Default app enabled state for all apps unless overridden per app.",
262262 },
263263Key {
264264 key: "apps._default.destructive_enabled",
265265`agents.job_max_runtime_seconds` type: "boolean",
266266 description:
267267Type / Values "Default allow/deny for app tools with `destructive_hint = true`.",
268268 },
269269`number` {
270270 key: "apps._default.open_world_enabled",
271271Details type: "boolean",
272272 description:
273273Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker. "Default allow/deny for app tools with `open_world_hint = true`.",
274274 },
275275Key {
276276 key: "apps.<id>.destructive_enabled",
277277`agents.max_depth` type: "boolean",
278278 description:
279279Type / Values "Allow or block tools in this app that advertise `destructive_hint = true`.",
280280 },
281281`number` {
282282 key: "apps.<id>.open_world_enabled",
283283Details type: "boolean",
284284 description:
285285Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). "Allow or block tools in this app that advertise `open_world_hint = true`.",
286286 },
287287Key {
288288 key: "apps.<id>.default_tools_enabled",
289289`agents.max_threads` type: "boolean",
290290 description:
291291Type / Values "Default enabled state for tools in this app unless a per-tool override exists.",
292292 },
293293`number` {
294294 key: "apps.<id>.default_tools_approval_mode",
295295Details type: "auto | prompt | approve",
296296 description:
297297Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset. "Default approval behavior for tools in this app unless a per-tool override exists.",
298298 },
299299Key {
300300 key: "apps.<id>.tools.<tool>.enabled",
301301`allow_login_shell` type: "boolean",
302302 description:
303303Type / Values "Per-tool enabled override for an app tool (for example `repos/list`).",
304304 },
305305`boolean` {
306306 key: "apps.<id>.tools.<tool>.approval_mode",
307307Details type: "auto | prompt | approve",
308308 description: "Per-tool approval behavior override for a single app tool.",
309309Allow 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. },
310310 {
311311Key key: "tool_suggest.discoverables",
312312 type: "array<table>",
313313`analytics.enabled` description:
314314 'Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',
315315Type / Values },
316316 {
317317`boolean` key: "tool_suggest.disabled_tools",
318318 type: "array<table>",
319319Details description:
320320 'Disable suggestions for specific discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',
321321Enable or disable analytics for this machine/profile. When unset, the client default applies. },
322322 {
323323Key key: "features.apps",
324324 type: "boolean",
325325`approval_policy` description: "Enable ChatGPT Apps/connectors support (experimental).",
326326 },
327327Type / Values {
328328 key: "features.codex_hooks",
329329`untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }` type: "boolean",
330330 description:
331331Details "Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config.",
332332 },
333333Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. {
334334 key: "features.codex_git_commit",
335335Key type: "boolean",
336336 description:
337337`approval_policy.reject.mcp_elicitations` "Enable Codex-generated git commits. When enabled, Codex uses `commit_attribution` to append a `Co-authored-by:` trailer to generated commit messages.",
338338 },
339339Type / Values {
340340 key: "hooks",
341341`boolean` type: "table",
342342 description:
343343Details "Lifecycle hooks configured inline in `config.toml`. Uses the same event schema as `hooks.json`; see the Hooks guide for examples and supported events.",
344344 },
345345When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user. {
346346 key: "features.memories",
347347Key type: "boolean",
348348 description: "Enable [Memories](https://developers.openai.com/codex/memories) (off by default).",
349349`approval_policy.reject.rules` },
350350 {
351351Type / Values key: "mcp_servers.<id>.command",
352352 type: "string",
353353`boolean` description: "Launcher command for an MCP stdio server.",
354354 },
355355Details {
356356 key: "mcp_servers.<id>.args",
357357When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected. type: "array<string>",
358358 description: "Arguments passed to the MCP stdio server command.",
359359Key },
360360 {
361361`approval_policy.reject.sandbox_approval` key: "mcp_servers.<id>.env",
362362 type: "map<string,string>",
363363Type / Values description: "Environment variables forwarded to the MCP stdio server.",
364364 },
365365`boolean` {
366366 key: "mcp_servers.<id>.env_vars",
367367Details type: 'array<string | { name = string, source = "local" | "remote" }>',
368368 description:
369369When `true`, sandbox escalation approval prompts are auto-rejected. '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.',
370370 },
371371Key {
372372 key: "mcp_servers.<id>.cwd",
373373`apps._default.destructive_enabled` type: "string",
374374 description: "Working directory for the MCP stdio server process.",
375375Type / Values },
376376 {
377377`boolean` key: "mcp_servers.<id>.url",
378378 type: "string",
379379Details description: "Endpoint for an MCP streamable HTTP server.",
380380 },
381381Default allow/deny for app tools with `destructive_hint = true`. {
382382 key: "mcp_servers.<id>.bearer_token_env_var",
383383Key type: "string",
384384 description:
385385`apps._default.enabled` "Environment variable sourcing the bearer token for an MCP HTTP server.",
386386 },
387387Type / Values {
388388 key: "mcp_servers.<id>.http_headers",
389389`boolean` type: "map<string,string>",
390390 description: "Static HTTP headers included with each MCP HTTP request.",
391391Details },
392392 {
393393Default app enabled state for all apps unless overridden per app. key: "mcp_servers.<id>.env_http_headers",
394394 type: "map<string,string>",
395395Key description:
396396 "HTTP headers populated from environment variables for an MCP HTTP server.",
397397`apps._default.open_world_enabled` },
398398 {
399399Type / Values key: "mcp_servers.<id>.enabled",
400400 type: "boolean",
401401`boolean` description: "Disable an MCP server without removing its configuration.",
402402 },
403403Details {
404404 key: "mcp_servers.<id>.required",
405405Default allow/deny for app tools with `open_world_hint = true`. type: "boolean",
406406 description:
407407Key "When true, fail startup/resume if this enabled MCP server cannot initialize.",
408408 },
409409`apps.<id>.default_tools_approval_mode` {
410410 key: "mcp_servers.<id>.startup_timeout_sec",
411411Type / Values type: "number",
412412 description:
413413`auto | prompt | approve` "Override the default 10s startup timeout for an MCP server.",
414414 },
415415Details {
416416 key: "mcp_servers.<id>.startup_timeout_ms",
417417Default approval behavior for tools in this app unless a per-tool override exists. type: "number",
418418 description: "Alias for `startup_timeout_sec` in milliseconds.",
419419Key },
420420 {
421421`apps.<id>.default_tools_enabled` key: "mcp_servers.<id>.tool_timeout_sec",
422422 type: "number",
423423Type / Values description:
424424 "Override the default 60s per-tool timeout for an MCP server.",
425425`boolean` },
426426 {
427427Details key: "mcp_servers.<id>.enabled_tools",
428428 type: "array<string>",
429429Default enabled state for tools in this app unless a per-tool override exists. description: "Allow list of tool names exposed by the MCP server.",
430430 },
431431Key {
432432 key: "mcp_servers.<id>.disabled_tools",
433433`apps.<id>.destructive_enabled` type: "array<string>",
434434 description:
435435Type / Values "Deny list applied after `enabled_tools` for the MCP server.",
436436 },
437437`boolean` {
438438 key: "mcp_servers.<id>.scopes",
439439Details type: "array<string>",
440440 description:
441441Allow or block tools in this app that advertise `destructive_hint = true`. "OAuth scopes to request when authenticating to that MCP server.",
442442 },
443443Key {
444444 key: "mcp_servers.<id>.oauth_resource",
445445`apps.<id>.enabled` type: "string",
446446 description:
447447Type / Values "Optional RFC 8707 OAuth resource parameter to include during MCP login.",
448448 },
449449`boolean` {
450450 key: "mcp_servers.<id>.experimental_environment",
451451Details type: "local | remote",
452452 description:
453453Enable or disable a specific app/connector by id (default: true). "Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.",
454454 },
455455Key {
456456 key: "agents.max_threads",
457457`apps.<id>.open_world_enabled` type: "number",
458458 description:
459459Type / Values "Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.",
460460 },
461461`boolean` {
462462 key: "agents.max_depth",
463463Details type: "number",
464464 description:
465465Allow or block tools in this app that advertise `open_world_hint = true`. "Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).",
466466 },
467467Key {
468468 key: "agents.job_max_runtime_seconds",
469469`apps.<id>.tools.<tool>.approval_mode` type: "number",
470470 description:
471471Type / Values "Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.",
472472 },
473473`auto | prompt | approve` {
474474 key: "agents.<name>.description",
475475Details type: "string",
476476 description:
477477Per-tool approval behavior override for a single app tool. "Role guidance shown to Codex when choosing and spawning that agent type.",
478478 },
479479Key {
480480 key: "agents.<name>.config_file",
481481`apps.<id>.tools.<tool>.enabled` type: "string (path)",
482482 description:
483483Type / Values "Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role.",
484484 },
485485`boolean` {
486486 key: "agents.<name>.nickname_candidates",
487487Details type: "array<string>",
488488 description:
489489Per-tool enabled override for an app tool (for example `repos/list`). "Optional pool of display nicknames for spawned agents in that role.",
490490 },
491491Key {
492492 key: "memories.generate_memories",
493493`background_terminal_max_timeout` type: "boolean",
494494 description:
495495Type / Values "When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.",
496496 },
497497`number` {
498498 key: "memories.use_memories",
499499Details type: "boolean",
500500 description:
501501Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key. "When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.",
502502 },
503503Key {
504504 key: "memories.disable_on_external_context",
505505`chatgpt_base_url` type: "boolean",
506506 description:
507507Type / Values "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`.",
508508 },
509509`string` {
510510 key: "memories.max_raw_memories_for_consolidation",
511511Details type: "number",
512512 description:
513513Override the base URL used during the ChatGPT login flow. "Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.",
514514 },
515515Key {
516516 key: "memories.max_unused_days",
517517`check_for_update_on_startup` type: "number",
518518 description:
519519Type / Values "Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`.",
520520 },
521521`boolean` {
522522 key: "memories.max_rollout_age_days",
523523Details type: "number",
524524 description:
525525Check for Codex updates on startup (set to false only when updates are centrally managed). "Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.",
526526 },
527527Key {
528528 key: "memories.max_rollouts_per_startup",
529529`cli_auth_credentials_store` type: "number",
530530 description:
531531Type / Values "Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.",
532532 },
533533`file | keyring | auto` {
534534 key: "memories.min_rollout_idle_hours",
535535Details type: "number",
536536 description:
537537Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). "Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.",
538538 },
539539Key {
540540 key: "memories.min_rate_limit_remaining_percent",
541541`commit_attribution` type: "number",
542542 description:
543543Type / Values "Minimum remaining percentage required in Codex rate-limit windows before memory generation starts. Defaults to `25` and is clamped to `0`-`100`.",
544544 },
545545`string` {
546546 key: "memories.extract_model",
547547Details type: "string",
548548 description: "Optional model override for per-thread memory extraction.",
549549Override the commit co-author trailer text. Set an empty string to disable automatic attribution. },
550550 {
551551Key key: "memories.consolidation_model",
552552 type: "string",
553553`compact_prompt` description: "Optional model override for global memory consolidation.",
554554 },
555555Type / Values {
556556 key: "features.unified_exec",
557557`string` type: "boolean",
558558 description:
559559Details "Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).",
560560 },
561561Inline override for the history compaction prompt. {
562562 key: "features.shell_snapshot",
563563Key type: "boolean",
564564 description:
565565`developer_instructions` "Snapshot shell environment to speed up repeated commands (stable; on by default).",
566566 },
567567Type / Values {
568568 key: "features.undo",
569569`string` type: "boolean",
570570 description: "Enable undo support (stable; off by default).",
571571Details },
572572 {
573573Additional developer instructions injected into the session (optional). key: "features.multi_agent",
574574 type: "boolean",
575575Key description:
576576 "Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).",
577577`disable_paste_burst` },
578578 {
579579Type / Values key: "features.personality",
580580 type: "boolean",
581581`boolean` description:
582582 "Enable personality selection controls (stable; on by default).",
583583Details },
584584 {
585585Disable burst-paste detection in the TUI. key: "features.web_search",
586586 type: "boolean",
587587Key description:
588588 "Deprecated legacy toggle; prefer the top-level `web_search` setting.",
589589`experimental_compact_prompt_file` },
590590 {
591591Type / Values key: "features.web_search_cached",
592592 type: "boolean",
593593`string (path)` description:
594594 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.',
595595Details },
596596 {
597597Load the compaction prompt override from a file (experimental). key: "features.web_search_request",
598598 type: "boolean",
599599Key description:
600600 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.',
601601`experimental_use_unified_exec_tool` },
602602 {
603603Type / Values key: "features.shell_tool",
604604 type: "boolean",
605605`boolean` description:
606606 "Enable the default `shell` tool for running commands (stable; on by default).",
607607Details },
608608 {
609609Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. key: "features.enable_request_compression",
610610 type: "boolean",
611611Key description:
612612 "Compress streaming request bodies with zstd when supported (stable; on by default).",
613613`features.apps` },
614614 {
615615Type / Values key: "features.skill_mcp_dependency_install",
616616 type: "boolean",
617617`boolean` description:
618618 "Allow prompting and installing missing MCP dependencies for skills (stable; on by default).",
619619Details },
620620 {
621621Enable ChatGPT Apps/connectors support (experimental). key: "features.fast_mode",
622622 type: "boolean",
623623Key description:
624624 'Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).',
625625`features.apps_mcp_gateway` },
626626 {
627627Type / Values key: "features.prevent_idle_sleep",
628628 type: "boolean",
629629`boolean` description:
630630 "Prevent the machine from sleeping while a turn is actively running (experimental; off by default).",
631631Details },
632632 {
633633Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental). key: "suppress_unstable_features_warning",
634634 type: "boolean",
635635Key description:
636636 "Suppress the warning that appears when under-development feature flags are enabled.",
637637`features.artifact` },
638638 {
639639Type / Values key: "model_providers.<id>",
640640 type: "table",
641641`boolean` description:
642642 "Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.",
643643Details },
644644 {
645645Enable native artifact tools such as slides and spreadsheets (under development). key: "model_providers.<id>.name",
646646 type: "string",
647647Key description: "Display name for a custom model provider.",
648648 },
649649`features.child_agents_md` {
650650 key: "model_providers.<id>.base_url",
651651Type / Values type: "string",
652652 description: "API base URL for the model provider.",
653653`boolean` },
654654 {
655655Details key: "model_providers.<id>.env_key",
656656 type: "string",
657657Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). description: "Environment variable supplying the provider API key.",
658658 },
659659Key {
660660 key: "model_providers.<id>.env_key_instructions",
661661`features.collaboration_modes` type: "string",
662662 description: "Optional setup guidance for the provider API key.",
663663Type / Values },
664664 {
665665`boolean` key: "model_providers.<id>.experimental_bearer_token",
666666 type: "string",
667667Details description:
668668 "Direct bearer token for the provider (discouraged; use `env_key`).",
669669Legacy toggle for collaboration modes. Plan and default modes are available in current builds without setting this key. },
670670 {
671671Key key: "model_providers.<id>.requires_openai_auth",
672672 type: "boolean",
673673`features.default_mode_request_user_input` description:
674674 "The provider uses OpenAI authentication (defaults to false).",
675675Type / Values },
676676 {
677677`boolean` key: "model_providers.<id>.wire_api",
678678 type: "responses",
679679Details description:
680680 "Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.",
681681Allow `request_user_input` in default collaboration mode (under development; off by default). },
682682 {
683683Key key: "model_providers.<id>.query_params",
684684 type: "map<string,string>",
685685`features.elevated_windows_sandbox` description: "Extra query parameters appended to provider requests.",
686686 },
687687Type / Values {
688688 key: "model_providers.<id>.http_headers",
689689`boolean` type: "map<string,string>",
690690 description: "Static HTTP headers added to provider requests.",
691691Details },
692692 {
693693Legacy toggle for an earlier elevated Windows sandbox rollout. Current builds do not use it. key: "model_providers.<id>.env_http_headers",
694694 type: "map<string,string>",
695695Key description:
696696 "HTTP headers populated from environment variables when present.",
697697`features.enable_request_compression` },
698698 {
699699Type / Values key: "model_providers.<id>.request_max_retries",
700700 type: "number",
701701`boolean` description:
702702 "Retry count for HTTP requests to the provider (default: 4).",
703703Details },
704704 {
705705Compress streaming request bodies with zstd when supported (stable; on by default). key: "model_providers.<id>.stream_max_retries",
706706 type: "number",
707707Key description: "Retry count for SSE streaming interruptions (default: 5).",
708708 },
709709`features.experimental_windows_sandbox` {
710710 key: "model_providers.<id>.stream_idle_timeout_ms",
711711Type / Values type: "number",
712712 description:
713713`boolean` "Idle timeout for SSE streams in milliseconds (default: 300000).",
714714 },
715715Details {
716716 key: "model_providers.<id>.supports_websockets",
717717Legacy toggle for an earlier Windows sandbox rollout. Current builds do not use it. type: "boolean",
718718 description:
719719Key "Whether that provider supports the Responses API WebSocket transport.",
720720 },
721721`features.fast_mode` {
722722 key: "model_providers.<id>.auth",
723723Type / Values type: "table",
724724 description:
725725`boolean` "Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.",
726726 },
727727Details {
728728 key: "model_providers.<id>.auth.command",
729729Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default). type: "string",
730730 description:
731731Key "Command to run when Codex needs a bearer token. The command must print the token to stdout.",
732732 },
733733`features.image_detail_original` {
734734 key: "model_providers.<id>.auth.args",
735735Type / Values type: "array<string>",
736736 description: "Arguments passed to the token command.",
737737`boolean` },
738738 {
739739Details key: "model_providers.<id>.auth.timeout_ms",
740740 type: "number",
741741Allow image outputs with `detail = "original"` on supported models (under development). description:
742742 "Maximum token command runtime in milliseconds (default: 5000).",
743743Key },
744744 {
745745`features.image_generation` key: "model_providers.<id>.auth.refresh_interval_ms",
746746 type: "number",
747747Type / Values description:
748748 "How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.",
749749`boolean` },
750750 {
751751Details key: "model_providers.<id>.auth.cwd",
752752 type: "string (path)",
753753Enable the built-in image generation tool (under development). description: "Working directory for the token command.",
754754 },
755755Key {
756756 key: "model_providers.amazon-bedrock.aws.profile",
757757`features.multi_agent` type: "string",
758758 description:
759759Type / Values "AWS profile name used by the built-in `amazon-bedrock` provider.",
760760 },
761761`boolean` {
762762 key: "model_providers.amazon-bedrock.aws.region",
763763Details type: "string",
764764 description: "AWS region used by the built-in `amazon-bedrock` provider.",
765765Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait`, `close_agent`, and `spawn_agents_on_csv`) (experimental; off by default). },
766766 {
767767Key key: "model_reasoning_effort",
768768 type: "minimal | low | medium | high | xhigh",
769769`features.personality` description:
770770 "Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).",
771771Type / Values },
772772 {
773773`boolean` key: "plan_mode_reasoning_effort",
774774 type: "none | minimal | low | medium | high | xhigh",
775775Details description:
776776 "Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.",
777777Enable personality selection controls (stable; on by default). },
778778 {
779779Key key: "model_reasoning_summary",
780780 type: "auto | concise | detailed | none",
781781`features.powershell_utf8` description:
782782 "Select reasoning summary detail or disable summaries entirely.",
783783Type / Values },
784784 {
785785`boolean` key: "model_verbosity",
786786 type: "low | medium | high",
787787Details description:
788788 "Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.",
789789Force PowerShell UTF-8 output. Enabled by default on Windows and off elsewhere. },
790790 {
791791Key key: "model_supports_reasoning_summaries",
792792 type: "boolean",
793793`features.prevent_idle_sleep` description: "Force Codex to send or not send reasoning metadata.",
794794 },
795795Type / Values {
796796 key: "shell_environment_policy.inherit",
797797`boolean` type: "all | core | none",
798798 description:
799799Details "Baseline environment inheritance when spawning subprocesses.",
800800 },
801801Prevent the machine from sleeping while a turn is actively running (experimental; off by default). {
802802 key: "shell_environment_policy.ignore_default_excludes",
803803Key type: "boolean",
804804 description:
805805`features.remote_models` "Keep variables containing KEY/SECRET/TOKEN before other filters run.",
806806 },
807807Type / Values {
808808 key: "shell_environment_policy.exclude",
809809`boolean` type: "array<string>",
810810 description:
811811Details "Glob patterns for removing environment variables after the defaults.",
812812 },
813813Legacy toggle for an older remote-model readiness flow. Current builds do not use it. {
814814 key: "shell_environment_policy.include_only",
815815Key type: "array<string>",
816816 description:
817817`features.request_rule` "Whitelist of patterns; when set only matching variables are kept.",
818818 },
819819Type / Values {
820820 key: "shell_environment_policy.set",
821821`boolean` type: "map<string,string>",
822822 description:
823823Details "Explicit environment overrides injected into every subprocess.",
824824 },
825825Legacy toggle for Smart approvals. Current builds include this behavior by default, so most users can leave this unset. {
826826 key: "shell_environment_policy.experimental_use_profile",
827827Key type: "boolean",
828828 description: "Use the user shell profile when spawning subprocesses.",
829829`features.responses_websockets` },
830830 {
831831Type / Values key: "project_root_markers",
832832 type: "array<string>",
833833`boolean` description:
834834 "List of project root marker filenames; used when searching parent directories for the project root.",
835835Details },
836836 {
837837Prefer the Responses API WebSocket transport for supported providers (under development). key: "project_doc_max_bytes",
838838 type: "number",
839839Key description:
840840 "Maximum bytes read from `AGENTS.md` when building project instructions.",
841841`features.responses_websockets_v2` },
842842 {
843843Type / Values key: "project_doc_fallback_filenames",
844844 type: "array<string>",
845845`boolean` description: "Additional filenames to try when `AGENTS.md` is missing.",
846846 },
847847Details {
848848 key: "profile",
849849Enable Responses API WebSocket v2 mode (under development). type: "string",
850850 description:
851851Key "Default profile applied at startup (equivalent to `--profile`).",
852852 },
853853`features.runtime_metrics` {
854854 key: "profiles.<name>.*",
855855Type / Values type: "various",
856856 description:
857857`boolean` "Profile-scoped overrides for any of the supported configuration keys.",
858858 },
859859Details {
860860 key: "profiles.<name>.service_tier",
861861Show runtime metrics summary in TUI turn separators (experimental). type: "flex | fast",
862862 description: "Profile-scoped service tier preference for new turns.",
863863Key },
864864 {
865865`features.search_tool` key: "profiles.<name>.plan_mode_reasoning_effort",
866866 type: "none | minimal | low | medium | high | xhigh",
867867Type / Values description: "Profile-scoped Plan-mode reasoning override.",
868868 },
869869`boolean` {
870870 key: "profiles.<name>.web_search",
871871Details type: "disabled | cached | live",
872872 description:
873873Legacy toggle for an older Apps discovery flow. Current builds do not use it. 'Profile-scoped web search mode override (default: `"cached"`).',
874874 },
875875Key {
876876 key: "profiles.<name>.personality",
877877`features.shell_snapshot` type: "none | friendly | pragmatic",
878878 description:
879879Type / Values "Profile-scoped communication style override for supported models.",
880880 },
881881`boolean` {
882882 key: "profiles.<name>.model_catalog_json",
883883Details type: "string (path)",
884884 description:
885885Snapshot shell environment to speed up repeated commands (stable; on by default). "Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).",
886886 },
887887Key {
888888 key: "profiles.<name>.model_instructions_file",
889889`features.shell_tool` type: "string (path)",
890890 description:
891891Type / Values "Profile-scoped replacement for the built-in instruction file.",
892892 },
893893`boolean` {
894894 key: "profiles.<name>.experimental_use_unified_exec_tool",
895895Details type: "boolean",
896896 description:
897897Enable the default `shell` tool for running commands (stable; on by default). "Legacy name for enabling unified exec; prefer `[features].unified_exec`.",
898898 },
899899Key {
900900 key: "profiles.<name>.oss_provider",
901901`features.skill_env_var_dependency_prompt` type: "lmstudio | ollama",
902902 description: "Profile-scoped OSS provider for `--oss` sessions.",
903903Type / Values },
904904 {
905905`boolean` key: "profiles.<name>.tools_view_image",
906906 type: "boolean",
907907Details description: "Enable or disable the `view_image` tool in that profile.",
908908 },
909909Prompt for missing skill environment-variable dependencies (under development). {
910910 key: "profiles.<name>.analytics.enabled",
911911Key type: "boolean",
912912 description: "Profile-scoped analytics enablement override.",
913913`features.skill_mcp_dependency_install` },
914914 {
915915Type / Values key: "profiles.<name>.windows.sandbox",
916916 type: "unelevated | elevated",
917917`boolean` description: "Profile-scoped Windows sandbox mode override.",
918918 },
919919Details {
920920 key: "history.persistence",
921921Allow prompting and installing missing MCP dependencies for skills (stable; on by default). type: "save-all | none",
922922 description:
923923Key "Control whether Codex saves session transcripts to history.jsonl.",
924924 },
925925`features.sqlite` {
926926 key: "tool_output_token_limit",
927927Type / Values type: "number",
928928 description:
929929`boolean` "Token budget for storing individual tool/function outputs in history.",
930930 },
931931Details {
932932 key: "background_terminal_max_timeout",
933933Enable SQLite-backed state persistence (stable; on by default). type: "number",
934934 description:
935935Key "Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.",
936936 },
937937`features.steer` {
938938 key: "history.max_bytes",
939939Type / Values type: "number",
940940 description:
941941`boolean` "If set, caps the history file size in bytes by dropping oldest entries.",
942942 },
943943Details {
944944 key: "file_opener",
945945Legacy toggle from an earlier Enter/Tab steering rollout. Current builds always use the current steering behavior. type: "vscode | vscode-insiders | windsurf | cursor | none",
946946 description:
947947Key "URI scheme used to open citations from Codex output (default: `vscode`).",
948948 },
949949`features.undo` {
950950 key: "otel.environment",
951951Type / Values type: "string",
952952 description:
953953`boolean` "Environment tag applied to emitted OpenTelemetry events (default: `dev`).",
954954 },
955955Details {
956956 key: "otel.exporter",
957957Enable undo support (stable; off by default). type: "none | otlp-http | otlp-grpc",
958958 description:
959959Key "Select the OpenTelemetry exporter and provide any endpoint metadata.",
960960 },
961961`features.unified_exec` {
962962 key: "otel.trace_exporter",
963963Type / Values type: "none | otlp-http | otlp-grpc",
964964 description:
965965`boolean` "Select the OpenTelemetry trace exporter and provide any endpoint metadata.",
966966 },
967967Details {
968968 key: "otel.metrics_exporter",
969969Use the unified PTY-backed exec tool (stable; enabled by default except on Windows). type: "none | statsig | otlp-http | otlp-grpc",
970970 description:
971971Key "Select the OpenTelemetry metrics exporter (defaults to `statsig`).",
972972 },
973973`features.use_linux_sandbox_bwrap` {
974974 key: "otel.log_user_prompt",
975975Type / Values type: "boolean",
976976 description:
977977`boolean` "Opt in to exporting raw user prompts with OpenTelemetry logs.",
978978 },
979979Details {
980980 key: "otel.exporter.<id>.endpoint",
981981Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). type: "string",
982982 description: "Exporter endpoint for OTEL logs.",
983983Key },
984984 {
985985`features.web_search` key: "otel.exporter.<id>.protocol",
986986 type: "binary | json",
987987Type / Values description: "Protocol used by the OTLP/HTTP exporter.",
988988 },
989989`boolean` {
990990 key: "otel.exporter.<id>.headers",
991991Details type: "map<string,string>",
992992 description: "Static headers included with OTEL exporter requests.",
993993Deprecated legacy toggle; prefer the top-level `web_search` setting. },
994994 {
995995Key key: "otel.trace_exporter.<id>.endpoint",
996996 type: "string",
997997`features.web_search_cached` description: "Trace exporter endpoint for OTEL logs.",
998998 },
999999Type / Values {
10001000 key: "otel.trace_exporter.<id>.protocol",
10011001`boolean` type: "binary | json",
10021002 description: "Protocol used by the OTLP/HTTP trace exporter.",
10031003Details },
10041004 {
10051005Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. key: "otel.trace_exporter.<id>.headers",
10061006 type: "map<string,string>",
10071007Key description: "Static headers included with OTEL trace exporter requests.",
10081008 },
10091009`features.web_search_request` {
10101010 key: "otel.exporter.<id>.tls.ca-certificate",
10111011Type / Values type: "string",
10121012 description: "CA certificate path for OTEL exporter TLS.",
10131013`boolean` },
10141014 {
10151015Details key: "otel.exporter.<id>.tls.client-certificate",
10161016 type: "string",
10171017Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. description: "Client certificate path for OTEL exporter TLS.",
10181018 },
10191019Key {
10201020 key: "otel.exporter.<id>.tls.client-private-key",
10211021`feedback.enabled` type: "string",
10221022 description: "Client private key path for OTEL exporter TLS.",
10231023Type / Values },
10241024 {
10251025`boolean` key: "otel.trace_exporter.<id>.tls.ca-certificate",
10261026 type: "string",
10271027Details description: "CA certificate path for OTEL trace exporter TLS.",
10281028 },
10291029Enable feedback submission via `/feedback` across Codex surfaces (default: true). {
10301030 key: "otel.trace_exporter.<id>.tls.client-certificate",
10311031Key type: "string",
10321032 description: "Client certificate path for OTEL trace exporter TLS.",
10331033`file_opener` },
10341034 {
10351035Type / Values key: "otel.trace_exporter.<id>.tls.client-private-key",
10361036 type: "string",
10371037`vscode | vscode-insiders | windsurf | cursor | none` description: "Client private key path for OTEL trace exporter TLS.",
10381038 },
10391039Details {
10401040 key: "tui",
10411041URI scheme used to open citations from Codex output (default: `vscode`). type: "table",
10421042 description:
10431043Key "TUI-specific options such as enabling inline desktop notifications.",
10441044 },
10451045`forced_chatgpt_workspace_id` {
10461046 key: "tui.notifications",
10471047Type / Values type: "boolean | array<string>",
10481048 description:
10491049`string (uuid)` "Enable TUI notifications; optionally restrict to specific event types.",
10501050 },
10511051Details {
10521052 key: "tui.notification_method",
10531053Limit ChatGPT logins to a specific workspace identifier. type: "auto | osc9 | bel",
10541054 description:
10551055Key "Notification method for terminal notifications (default: auto).",
10561056 },
10571057`forced_login_method` {
10581058 key: "tui.notification_condition",
10591059Type / Values type: "unfocused | always",
10601060 description:
10611061`chatgpt | api` "Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.",
10621062 },
10631063Details {
10641064 key: "tui.animations",
10651065Restrict Codex to a specific authentication method. type: "boolean",
10661066 description:
10671067Key "Enable terminal animations (welcome screen, shimmer, spinner) (default: true).",
10681068 },
10691069`hide_agent_reasoning` {
10701070 key: "tui.alternate_screen",
10711071Type / Values type: "auto | always | never",
10721072 description:
10731073`boolean` "Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).",
10741074 },
10751075Details {
10761076 key: "tui.show_tooltips",
10771077Suppress reasoning events in both the TUI and `codex exec` output. type: "boolean",
10781078 description:
10791079Key "Show onboarding tooltips in the TUI welcome screen (default: true).",
10801080 },
10811081`history.max_bytes` {
10821082 key: "tui.status_line",
10831083Type / Values type: "array<string> | null",
10841084 description:
10851085`number` "Ordered list of TUI footer status-line item identifiers. `null` disables the status line.",
10861086 },
10871087Details {
10881088 key: "tui.terminal_title",
10891089If set, caps the history file size in bytes by dropping oldest entries. type: "array<string> | null",
10901090 description:
10911091Key 'Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.',
10921092 },
10931093`history.persistence` {
10941094 key: "tui.theme",
10951095Type / Values type: "string",
10961096 description:
10971097`save-all | none` "Syntax-highlighting theme override (kebab-case theme name).",
10981098 },
10991099Details {
11001100 key: "tui.keymap.<context>.<action>",
11011101Control whether Codex saves session transcripts to history.jsonl. type: "string | array<string>",
11021102 description:
11031103Key "Keyboard shortcut binding for a TUI action. Supported contexts include `global`, `chat`, `composer`, `editor`, `pager`, `list`, and `approval`; context-specific bindings override `tui.keymap.global`.",
11041104 },
11051105`instructions` {
11061106 key: "tui.keymap.<context>.<action> = []",
11071107Type / Values type: "empty array",
11081108 description:
11091109`string` "Unbind the action in that keymap context. Key names use normalized strings such as `ctrl-a`, `shift-enter`, or `page-down`.",
11101110 },
11111111Details {
11121112 key: "tui.model_availability_nux.<model>",
11131113Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. type: "integer",
11141114 description: "Internal startup-tooltip state keyed by model slug.",
11151115Key },
11161116 {
11171117`log_dir` key: "hide_agent_reasoning",
11181118 type: "boolean",
11191119Type / Values description:
11201120 "Suppress reasoning events in both the TUI and `codex exec` output.",
11211121`string (path)` },
11221122 {
11231123Details key: "show_raw_agent_reasoning",
11241124 type: "boolean",
11251125Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. description:
11261126 "Surface raw reasoning content when the active model emits it.",
11271127Key },
11281128 {
11291129`mcp_oauth_callback_port` key: "disable_paste_burst",
11301130 type: "boolean",
11311131Type / Values description: "Disable burst-paste detection in the TUI.",
11321132 },
11331133`integer` {
11341134 key: "windows_wsl_setup_acknowledged",
11351135Details type: "boolean",
11361136 description: "Track Windows onboarding acknowledgement (Windows only).",
11371137Optional 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. },
11381138 {
11391139Key key: "chatgpt_base_url",
11401140 type: "string",
11411141`mcp_oauth_callback_url` description: "Override the base URL used during the ChatGPT login flow.",
11421142 },
11431143Type / Values {
11441144 key: "cli_auth_credentials_store",
11451145`string` type: "file | keyring | auto",
11461146 description:
11471147Details "Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).",
11481148 },
11491149Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port. {
11501150 key: "mcp_oauth_credentials_store",
11511151Key type: "auto | file | keyring",
11521152 description: "Preferred store for MCP OAuth credentials.",
11531153`mcp_oauth_credentials_store` },
11541154 {
11551155Type / Values key: "mcp_oauth_callback_port",
11561156 type: "integer",
11571157`auto | file | keyring` description:
11581158 "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.",
11591159Details },
11601160 {
11611161Preferred store for MCP OAuth credentials. key: "mcp_oauth_callback_url",
11621162 type: "string",
11631163Key description:
11641164 "Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.",
11651165`mcp_servers.<id>.args` },
11661166 {
11671167Type / Values key: "experimental_use_unified_exec_tool",
11681168 type: "boolean",
11691169`array<string>` description:
11701170 "Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.",
11711171Details },
11721172 {
11731173Arguments passed to the MCP stdio server command. key: "tools.web_search",
11741174 type: 'boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }',
11751175Key description:
11761176 "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.",
11771177`mcp_servers.<id>.bearer_token_env_var` },
11781178 {
11791179Type / Values key: "tools.view_image",
11801180 type: "boolean",
11811181`string` description: "Enable the local-image attachment tool `view_image`.",
11821182 },
11831183Details {
11841184 key: "web_search",
11851185Environment variable sourcing the bearer token for an MCP HTTP server. type: "disabled | cached | live",
11861186 description:
11871187Key '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.',
11881188 },
11891189`mcp_servers.<id>.command` {
11901190 key: "default_permissions",
11911191Type / Values type: "string",
11921192 description:
11931193`string` "Name of the default permissions profile to apply to sandboxed tool calls. Built-ins are `:read-only`, `:workspace`, and `:danger-no-sandbox`; custom profile names require matching `[permissions.<name>]` tables.",
11941194 },
11951195Details {
11961196 key: "permissions.<name>.filesystem",
11971197Launcher command for an MCP stdio server. type: "table",
11981198 description:
11991199Key "Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.",
12001200 },
12011201`mcp_servers.<id>.cwd` {
12021202 key: "permissions.<name>.filesystem.glob_scan_max_depth",
12031203Type / Values type: "number",
12041204 description:
12051205`string` "Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.",
12061206 },
12071207Details {
12081208 key: "permissions.<name>.filesystem.<path-or-glob>",
12091209Working directory for the MCP stdio server process. type: '"read" | "write" | "none" | table',
12101210 description:
12111211Key '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.',
12121212 },
12131213`mcp_servers.<id>.disabled_tools` {
12141214 key: 'permissions.<name>.filesystem.":project_roots".<subpath-or-glob>',
12151215Type / Values type: '"read" | "write" | "none"',
12161216 description:
12171217`array<string>` 'Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.',
12181218 },
12191219Details {
12201220 key: "permissions.<name>.network.enabled",
12211221Deny list applied after `enabled_tools` for the MCP server. type: "boolean",
12221222 description: "Enable network access for this named permissions profile.",
12231223Key },
12241224 {
12251225`mcp_servers.<id>.enabled` key: "permissions.<name>.network.proxy_url",
12261226 type: "string",
12271227Type / Values description:
12281228 "HTTP proxy endpoint used when this permissions profile enables the managed network proxy.",
12291229`boolean` },
12301230 {
12311231Details key: "permissions.<name>.network.enable_socks5",
12321232 type: "boolean",
12331233Disable an MCP server without removing its configuration. description:
12341234 "Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.",
12351235Key },
12361236 {
12371237`mcp_servers.<id>.enabled_tools` key: "permissions.<name>.network.socks_url",
12381238 type: "string",
12391239Type / Values description: "SOCKS5 proxy endpoint used by this permissions profile.",
12401240 },
12411241`array<string>` {
12421242 key: "permissions.<name>.network.enable_socks5_udp",
12431243Details type: "boolean",
12441244 description: "Allow UDP over the SOCKS5 listener when enabled.",
12451245Allow list of tool names exposed by the MCP server. },
12461246 {
12471247Key key: "permissions.<name>.network.allow_upstream_proxy",
12481248 type: "boolean",
12491249`mcp_servers.<id>.env` description:
12501250 "Allow the managed proxy to chain to another upstream proxy.",
12511251Type / Values },
12521252 {
12531253`map<string,string>` key: "permissions.<name>.network.dangerously_allow_non_loopback_proxy",
12541254 type: "boolean",
12551255Details description:
12561256 "Permit non-loopback bind addresses for the managed proxy listener.",
12571257Environment variables forwarded to the MCP stdio server. },
12581258 {
12591259Key key: "permissions.<name>.network.dangerously_allow_all_unix_sockets",
12601260 type: "boolean",
12611261`mcp_servers.<id>.env_http_headers` description:
12621262 "Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.",
12631263Type / Values },
12641264 {
12651265`map<string,string>` key: "permissions.<name>.network.mode",
12661266 type: "limited | full",
12671267Details description: "Network proxy mode used for subprocess traffic.",
12681268 },
12691269HTTP headers populated from environment variables for an MCP HTTP server. {
12701270 key: "permissions.<name>.network.domains",
12711271Key type: "map<string, allow | deny>",
12721272 description:
12731273`mcp_servers.<id>.env_vars` "Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.",
12741274 },
12751275Type / Values {
12761276 key: "permissions.<name>.network.unix_sockets",
12771277`array<string>` type: "map<string, allow | none>",
12781278 description:
12791279Details "Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.",
12801280 },
12811281Additional environment variables to whitelist for an MCP stdio server. {
12821282 key: "permissions.<name>.network.allow_local_binding",
12831283Key type: "boolean",
12841284 description:
12851285`mcp_servers.<id>.http_headers` "Permit local bind/listen operations through the managed proxy.",
12861286 },
12871287Type / Values {
12881288 key: "projects.<path>.trust_level",
12891289`map<string,string>` type: "string",
12901290 description:
12911291Details 'Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers, including project-local config, hooks, and rules.',
12921292 },
12931293Static HTTP headers included with each MCP HTTP request. {
12941294 key: "notice.hide_full_access_warning",
12951295Key type: "boolean",
12961296 description: "Track acknowledgement of the full access warning prompt.",
12971297`mcp_servers.<id>.oauth_resource` },
12981298 {
12991299Type / Values key: "notice.hide_world_writable_warning",
13001300 type: "boolean",
13011301`string` description:
13021302 "Track acknowledgement of the Windows world-writable directories warning.",
13031303Details },
13041304 {
13051305Optional RFC 8707 OAuth resource parameter to include during MCP login. key: "notice.hide_rate_limit_model_nudge",
13061306 type: "boolean",
13071307Key description: "Track opt-out of the rate limit model switch reminder.",
13081308 },
13091309`mcp_servers.<id>.required` {
13101310 key: "notice.hide_gpt5_1_migration_prompt",
13111311Type / Values type: "boolean",
13121312 description: "Track acknowledgement of the GPT-5.1 migration prompt.",
13131313`boolean` },
13141314 {
13151315Details key: "notice.hide_gpt-5.1-codex-max_migration_prompt",
13161316 type: "boolean",
13171317When true, fail startup/resume if this enabled MCP server cannot initialize. description:
13181318 "Track acknowledgement of the gpt-5.1-codex-max migration prompt.",
13191319Key },
13201320 {
13211321`mcp_servers.<id>.scopes` key: "notice.model_migrations",
13221322 type: "map<string,string>",
13231323Type / Values description: "Track acknowledged model migrations as old->new mappings.",
13241324 },
13251325`array<string>` {
13261326 key: "forced_login_method",
13271327Details type: "chatgpt | api",
13281328 description: "Restrict Codex to a specific authentication method.",
13291329OAuth scopes to request when authenticating to that MCP server. },
13301330 {
13311331Key key: "forced_chatgpt_workspace_id",
13321332 type: "string (uuid)",
13331333`mcp_servers.<id>.startup_timeout_ms` description: "Limit ChatGPT logins to a specific workspace identifier.",
13341334 },
13351335Type / Values ]}
13361336 client:load
13371337`number`/>
1338
1339Details
1340
1341Alias for `startup_timeout_sec` in milliseconds.
1342
1343Key
1344
1345`mcp_servers.<id>.startup_timeout_sec`
1346
1347Type / Values
1348
1349`number`
1350
1351Details
1352
1353Override the default 10s startup timeout for an MCP server.
1354
1355Key
1356
1357`mcp_servers.<id>.tool_timeout_sec`
1358
1359Type / Values
1360
1361`number`
1362
1363Details
1364
1365Override the default 60s per-tool timeout for an MCP server.
1366
1367Key
1368
1369`mcp_servers.<id>.url`
1370
1371Type / Values
1372
1373`string`
1374
1375Details
1376
1377Endpoint for an MCP streamable HTTP server.
1378
1379Key
1380
1381`model`
1382
1383Type / Values
1384
1385`string`
1386
1387Details
1388
1389Model to use (e.g., `gpt-5-codex`).
1390
1391Key
1392
1393`model_auto_compact_token_limit`
1394
1395Type / Values
1396
1397`number`
1398
1399Details
1400
1401Token threshold that triggers automatic history compaction (unset uses model defaults).
1402
1403Key
1404
1405`model_catalog_json`
1406
1407Type / Values
1408
1409`string (path)`
1410
1411Details
1412
1413Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.
1414
1415Key
1416
1417`model_context_window`
1418
1419Type / Values
1420
1421`number`
1422
1423Details
1424
1425Context window tokens available to the active model.
1426
1427Key
1428
1429`model_instructions_file`
1430
1431Type / Values
1432
1433`string (path)`
1434
1435Details
1436
1437Replacement for built-in instructions instead of `AGENTS.md`.
1438
1439Key
1440
1441`model_provider`
1442
1443Type / Values
1444
1445`string`
1446
1447Details
1448
1449Provider id from `model_providers` (default: `openai`).
1450
1451Key
1452
1453`model_providers.<id>.base_url`
1454
1455Type / Values
1456
1457`string`
1458
1459Details
1460
1461API base URL for the model provider.
1462
1463Key
1464
1465`model_providers.<id>.env_http_headers`
1466
1467Type / Values
1468
1469`map<string,string>`
1470
1471Details
1472
1473HTTP headers populated from environment variables when present.
1474
1475Key
1476
1477`model_providers.<id>.env_key`
1478
1479Type / Values
1480
1481`string`
1482
1483Details
1484
1485Environment variable supplying the provider API key.
1486
1487Key
1488
1489`model_providers.<id>.env_key_instructions`
1490
1491Type / Values
1492
1493`string`
1494
1495Details
1496
1497Optional setup guidance for the provider API key.
1498
1499Key
1500
1501`model_providers.<id>.experimental_bearer_token`
1502
1503Type / Values
1504
1505`string`
1506
1507Details
1508
1509Direct bearer token for the provider (discouraged; use `env_key`).
1510
1511Key
1512
1513`model_providers.<id>.http_headers`
1514
1515Type / Values
1516
1517`map<string,string>`
1518
1519Details
1520
1521Static HTTP headers added to provider requests.
1522
1523Key
1524
1525`model_providers.<id>.name`
1526
1527Type / Values
1528
1529`string`
1530
1531Details
1532
1533Display name for a custom model provider.
1534
1535Key
1536
1537`model_providers.<id>.query_params`
1538
1539Type / Values
1540
1541`map<string,string>`
1542
1543Details
1544
1545Extra query parameters appended to provider requests.
1546
1547Key
1548
1549`model_providers.<id>.request_max_retries`
1550
1551Type / Values
1552
1553`number`
1554
1555Details
1556
1557Retry count for HTTP requests to the provider (default: 4).
1558
1559Key
1560
1561`model_providers.<id>.requires_openai_auth`
1562
1563Type / Values
1564
1565`boolean`
1566
1567Details
1568
1569The provider uses OpenAI authentication (defaults to false).
1570
1571Key
1572
1573`model_providers.<id>.stream_idle_timeout_ms`
1574
1575Type / Values
1576
1577`number`
1578
1579Details
1580
1581Idle timeout for SSE streams in milliseconds (default: 300000).
1582
1583Key
1584
1585`model_providers.<id>.stream_max_retries`
1586
1587Type / Values
1588
1589`number`
1590
1591Details
1592
1593Retry count for SSE streaming interruptions (default: 5).
1594
1595Key
1596
1597`model_providers.<id>.supports_websockets`
1598
1599Type / Values
1600
1601`boolean`
1602
1603Details
1604
1605Whether that provider supports the Responses API WebSocket transport.
1606
1607Key
1608
1609`model_providers.<id>.wire_api`
1610
1611Type / Values
1612
1613`responses`
1614
1615Details
1616
1617Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.
1618
1619Key
1620
1621`model_reasoning_effort`
1622
1623Type / Values
1624
1625`minimal | low | medium | high | xhigh`
1626
1627Details
1628
1629Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).
1630
1631Key
1632
1633`model_reasoning_summary`
1634
1635Type / Values
1636
1637`auto | concise | detailed | none`
1638
1639Details
1640
1641Select reasoning summary detail or disable summaries entirely.
1642
1643Key
1644
1645`model_supports_reasoning_summaries`
1646
1647Type / Values
1648
1649`boolean`
1650
1651Details
1652
1653Force Codex to send or not send reasoning metadata.
1654
1655Key
1656
1657`model_verbosity`
1658
1659Type / Values
1660
1661`low | medium | high`
1662
1663Details
1664
1665Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.
1666
1667Key
1668
1669`notice.hide_full_access_warning`
1670
1671Type / Values
1672
1673`boolean`
1674
1675Details
1676
1677Track acknowledgement of the full access warning prompt.
1678
1679Key
1680
1681`notice.hide_gpt-5.1-codex-max_migration_prompt`
1682
1683Type / Values
1684
1685`boolean`
1686
1687Details
1688
1689Track acknowledgement of the gpt-5.1-codex-max migration prompt.
1690
1691Key
1692
1693`notice.hide_gpt5_1_migration_prompt`
1694
1695Type / Values
1696
1697`boolean`
1698
1699Details
1700
1701Track acknowledgement of the GPT-5.1 migration prompt.
1702
1703Key
1704
1705`notice.hide_rate_limit_model_nudge`
1706
1707Type / Values
1708
1709`boolean`
1710
1711Details
1712
1713Track opt-out of the rate limit model switch reminder.
1714
1715Key
1716
1717`notice.hide_world_writable_warning`
1718
1719Type / Values
1720
1721`boolean`
1722
1723Details
1724
1725Track acknowledgement of the Windows world-writable directories warning.
1726
1727Key
1728
1729`notice.model_migrations`
1730
1731Type / Values
1732
1733`map<string,string>`
1734
1735Details
1736
1737Track acknowledged model migrations as old->new mappings.
1738
1739Key
1740
1741`notify`
1742
1743Type / Values
1744
1745`array<string>`
1746
1747Details
1748
1749Command invoked for notifications; receives a JSON payload from Codex.
1750
1751Key
1752
1753`oss_provider`
1754
1755Type / Values
1756
1757`lmstudio | ollama`
1758
1759Details
1760
1761Default local provider used when running with `--oss` (defaults to prompting if unset).
1762
1763Key
1764
1765`otel.environment`
1766
1767Type / Values
1768
1769`string`
1770
1771Details
1772
1773Environment tag applied to emitted OpenTelemetry events (default: `dev`).
1774
1775Key
1776
1777`otel.exporter`
1778
1779Type / Values
1780
1781`none | otlp-http | otlp-grpc`
1782
1783Details
1784
1785Select the OpenTelemetry exporter and provide any endpoint metadata.
1786
1787Key
1788
1789`otel.exporter.<id>.endpoint`
1790
1791Type / Values
1792
1793`string`
1794
1795Details
1796
1797Exporter endpoint for OTEL logs.
1798
1799Key
1800
1801`otel.exporter.<id>.headers`
1802
1803Type / Values
1804
1805`map<string,string>`
1806
1807Details
1808
1809Static headers included with OTEL exporter requests.
1810
1811Key
1812
1813`otel.exporter.<id>.protocol`
1814
1815Type / Values
1816
1817`binary | json`
1818
1819Details
1820
1821Protocol used by the OTLP/HTTP exporter.
1822
1823Key
1824
1825`otel.exporter.<id>.tls.ca-certificate`
1826
1827Type / Values
1828
1829`string`
1830
1831Details
1832
1833CA certificate path for OTEL exporter TLS.
1834
1835Key
1836
1837`otel.exporter.<id>.tls.client-certificate`
1838
1839Type / Values
1840
1841`string`
1842
1843Details
1844
1845Client certificate path for OTEL exporter TLS.
1846
1847Key
1848
1849`otel.exporter.<id>.tls.client-private-key`
1850
1851Type / Values
1852
1853`string`
1854
1855Details
1856
1857Client private key path for OTEL exporter TLS.
1858
1859Key
1860
1861`otel.log_user_prompt`
1862
1863Type / Values
1864
1865`boolean`
1866
1867Details
1868
1869Opt in to exporting raw user prompts with OpenTelemetry logs.
1870
1871Key
1872
1873`otel.metrics_exporter`
1874
1875Type / Values
1876
1877`none | statsig | otlp-http | otlp-grpc`
1878
1879Details
1880
1881Select the OpenTelemetry metrics exporter (defaults to `statsig`).
1882
1883Key
1884
1885`otel.trace_exporter`
1886
1887Type / Values
1888
1889`none | otlp-http | otlp-grpc`
1890
1891Details
1892
1893Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1894
1895Key
1896
1897`otel.trace_exporter.<id>.endpoint`
1898
1899Type / Values
1900
1901`string`
1902
1903Details
1904
1905Trace exporter endpoint for OTEL logs.
1906
1907Key
1908
1909`otel.trace_exporter.<id>.headers`
1910
1911Type / Values
1912
1913`map<string,string>`
1914
1915Details
1916
1917Static headers included with OTEL trace exporter requests.
1918
1919Key
1920
1921`otel.trace_exporter.<id>.protocol`
1922
1923Type / Values
1924
1925`binary | json`
1926
1927Details
1928
1929Protocol used by the OTLP/HTTP trace exporter.
1930
1931Key
1932
1933`otel.trace_exporter.<id>.tls.ca-certificate`
1934
1935Type / Values
1936
1937`string`
1938
1939Details
1940
1941CA certificate path for OTEL trace exporter TLS.
1942
1943Key
1944
1945`otel.trace_exporter.<id>.tls.client-certificate`
1946
1947Type / Values
1948
1949`string`
1950
1951Details
1952
1953Client certificate path for OTEL trace exporter TLS.
1954
1955Key
1956
1957`otel.trace_exporter.<id>.tls.client-private-key`
1958
1959Type / Values
1960
1961`string`
1962
1963Details
1964
1965Client private key path for OTEL trace exporter TLS.
1966
1967Key
1968
1969`permissions.network.admin_url`
1970
1971Type / Values
1972
1973`string`
1974
1975Details
1976
1977Admin endpoint for the managed network proxy.
1978
1979Key
1980
1981`permissions.network.allow_local_binding`
1982
1983Type / Values
1984
1985`boolean`
1986
1987Details
1988
1989Permit local bind/listen operations through the managed proxy.
1990
1991Key
1992
1993`permissions.network.allow_unix_sockets`
1994
1995Type / Values
1996
1997`array<string>`
1998
1999Details
2000
2001Allowlist of Unix socket paths permitted through the managed proxy.
2002
2003Key
2004
2005`permissions.network.allow_upstream_proxy`
2006
2007Type / Values
2008
2009`boolean`
2010
2011Details
2012
2013Allow the managed proxy to chain to another upstream proxy.
2014
2015Key
2016
2017`permissions.network.allowed_domains`
2018
2019Type / Values
2020
2021`array<string>`
2022
2023Details
2024
2025Allowlist of domains permitted through the managed proxy.
2026
2027Key
2028
2029`permissions.network.dangerously_allow_all_unix_sockets`
2030
2031Type / Values
2032
2033`boolean`
2034
2035Details
2036
2037Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.
2038
2039Key
2040
2041`permissions.network.dangerously_allow_non_loopback_admin`
2042
2043Type / Values
2044
2045`boolean`
2046
2047Details
2048
2049Permit non-loopback bind addresses for the managed proxy admin listener.
2050
2051Key
2052
2053`permissions.network.dangerously_allow_non_loopback_proxy`
2054
2055Type / Values
2056
2057`boolean`
2058
2059Details
2060
2061Permit non-loopback bind addresses for the managed proxy listener.
2062
2063Key
2064
2065`permissions.network.denied_domains`
2066
2067Type / Values
2068
2069`array<string>`
2070
2071Details
2072
2073Denylist of domains blocked by the managed proxy.
2074
2075Key
2076
2077`permissions.network.enable_socks5`
2078
2079Type / Values
2080
2081`boolean`
2082
2083Details
2084
2085Expose a SOCKS5 listener from the managed network proxy.
2086
2087Key
2088
2089`permissions.network.enable_socks5_udp`
2090
2091Type / Values
2092
2093`boolean`
2094
2095Details
2096
2097Allow UDP over the SOCKS5 listener when enabled.
2098
2099Key
2100
2101`permissions.network.enabled`
2102
2103Type / Values
2104
2105`boolean`
2106
2107Details
2108
2109Enable the managed network proxy configuration for subprocesses.
2110
2111Key
2112
2113`permissions.network.mode`
2114
2115Type / Values
2116
2117`limited | full`
2118
2119Details
2120
2121Network proxy mode used for subprocess traffic.
2122
2123Key
2124
2125`permissions.network.proxy_url`
2126
2127Type / Values
2128
2129`string`
2130
2131Details
2132
2133HTTP proxy endpoint used by the managed network proxy.
2134
2135Key
2136
2137`permissions.network.socks_url`
2138
2139Type / Values
2140
2141`string`
2142
2143Details
2144
2145SOCKS5 proxy endpoint used by the managed network proxy.
2146
2147Key
2148
2149`personality`
2150
2151Type / Values
2152
2153`none | friendly | pragmatic`
2154
2155Details
2156
2157Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
2158
2159Key
2160
2161`plan_mode_reasoning_effort`
2162
2163Type / Values
2164
2165`none | minimal | low | medium | high | xhigh`
2166
2167Details
2168
2169Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.
2170
2171Key
2172
2173`profile`
2174
2175Type / Values
2176
2177`string`
2178
2179Details
2180
2181Default profile applied at startup (equivalent to `--profile`).
2182
2183Key
2184
2185`profiles.<name>.*`
2186
2187Type / Values
2188
2189`various`
2190
2191Details
2192
2193Profile-scoped overrides for any of the supported configuration keys.
2194
2195Key
2196
2197`profiles.<name>.analytics.enabled`
2198
2199Type / Values
2200
2201`boolean`
2202
2203Details
2204
2205Profile-scoped analytics enablement override.
2206
2207Key
2208
2209`profiles.<name>.experimental_use_unified_exec_tool`
2210
2211Type / Values
2212
2213`boolean`
2214
2215Details
2216
2217Legacy name for enabling unified exec; prefer `[features].unified_exec`.
2218
2219Key
2220
2221`profiles.<name>.model_catalog_json`
2222
2223Type / Values
2224
2225`string (path)`
2226
2227Details
2228
2229Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).
2230
2231Key
2232
2233`profiles.<name>.model_instructions_file`
2234
2235Type / Values
2236
2237`string (path)`
2238
2239Details
2240
2241Profile-scoped replacement for the built-in instruction file.
2242
2243Key
2244
2245`profiles.<name>.oss_provider`
2246
2247Type / Values
2248
2249`lmstudio | ollama`
2250
2251Details
2252
2253Profile-scoped OSS provider for `--oss` sessions.
2254
2255Key
2256
2257`profiles.<name>.personality`
2258
2259Type / Values
2260
2261`none | friendly | pragmatic`
2262
2263Details
2264
2265Profile-scoped communication style override for supported models.
2266
2267Key
2268
2269`profiles.<name>.plan_mode_reasoning_effort`
2270
2271Type / Values
2272
2273`none | minimal | low | medium | high | xhigh`
2274
2275Details
2276
2277Profile-scoped Plan-mode reasoning override.
2278
2279Key
2280
2281`profiles.<name>.service_tier`
2282
2283Type / Values
2284
2285`flex | fast`
2286
2287Details
2288
2289Profile-scoped service tier preference for new turns.
2290
2291Key
2292
2293`profiles.<name>.tools_view_image`
2294
2295Type / Values
2296
2297`boolean`
2298
2299Details
2300
2301Enable or disable the `view_image` tool in that profile.
2302
2303Key
2304
2305`profiles.<name>.web_search`
2306
2307Type / Values
2308
2309`disabled | cached | live`
2310
2311Details
2312
2313Profile-scoped web search mode override (default: `"cached"`).
2314
2315Key
2316
2317`profiles.<name>.windows.sandbox`
2318
2319Type / Values
2320
2321`unelevated | elevated`
2322
2323Details
2324
2325Profile-scoped Windows sandbox mode override.
2326
2327Key
2328
2329`project_doc_fallback_filenames`
2330
2331Type / Values
2332
2333`array<string>`
2334
2335Details
2336
2337Additional filenames to try when `AGENTS.md` is missing.
2338
2339Key
2340
2341`project_doc_max_bytes`
2342
2343Type / Values
2344
2345`number`
2346
2347Details
2348
2349Maximum bytes read from `AGENTS.md` when building project instructions.
2350
2351Key
2352
2353`project_root_markers`
2354
2355Type / Values
2356
2357`array<string>`
2358
2359Details
2360
2361List of project root marker filenames; used when searching parent directories for the project root.
2362
2363Key
2364
2365`projects.<path>.trust_level`
2366
2367Type / Values
2368
2369`string`
2370
2371Details
2372
2373Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers.
2374
2375Key
2376
2377`review_model`
2378
2379Type / Values
2380
2381`string`
2382
2383Details
2384
2385Optional model override used by `/review` (defaults to the current session model).
2386
2387Key
2388
2389`sandbox_mode`
2390
2391Type / Values
2392
2393`read-only | workspace-write | danger-full-access`
2394
2395Details
2396
2397Sandbox policy for filesystem and network access during command execution.
2398
2399Key
2400
2401`sandbox_workspace_write.exclude_slash_tmp`
2402
2403Type / Values
2404
2405`boolean`
2406
2407Details
2408
2409Exclude `/tmp` from writable roots in workspace-write mode.
2410
2411Key
2412
2413`sandbox_workspace_write.exclude_tmpdir_env_var`
2414
2415Type / Values
2416
2417`boolean`
2418
2419Details
2420
2421Exclude `$TMPDIR` from writable roots in workspace-write mode.
2422
2423Key
2424
2425`sandbox_workspace_write.network_access`
2426
2427Type / Values
2428
2429`boolean`
2430
2431Details
2432
2433Allow outbound network access inside the workspace-write sandbox.
2434
2435Key
2436
2437`sandbox_workspace_write.writable_roots`
2438
2439Type / Values
2440
2441`array<string>`
2442
2443Details
2444
2445Additional writable roots when `sandbox_mode = "workspace-write"`.
2446
2447Key
2448
2449`service_tier`
2450
2451Type / Values
2452
2453`flex | fast`
2454
2455Details
2456
2457Preferred service tier for new turns. `fast` is honored only when the `features.fast_mode` gate is enabled.
2458
2459Key
2460
2461`shell_environment_policy.exclude`
2462
2463Type / Values
2464
2465`array<string>`
2466
2467Details
2468
2469Glob patterns for removing environment variables after the defaults.
2470
2471Key
2472
2473`shell_environment_policy.experimental_use_profile`
2474
2475Type / Values
2476
2477`boolean`
2478
2479Details
2480
2481Use the user shell profile when spawning subprocesses.
2482
2483Key
2484
2485`shell_environment_policy.ignore_default_excludes`
2486
2487Type / Values
2488
2489`boolean`
2490
2491Details
2492
2493Keep variables containing KEY/SECRET/TOKEN before other filters run.
2494
2495Key
2496
2497`shell_environment_policy.include_only`
2498
2499Type / Values
2500
2501`array<string>`
2502
2503Details
2504
2505Whitelist of patterns; when set only matching variables are kept.
2506
2507Key
2508
2509`shell_environment_policy.inherit`
2510
2511Type / Values
2512
2513`all | core | none`
2514
2515Details
2516
2517Baseline environment inheritance when spawning subprocesses.
2518
2519Key
2520
2521`shell_environment_policy.set`
2522
2523Type / Values
2524
2525`map<string,string>`
2526
2527Details
2528
2529Explicit environment overrides injected into every subprocess.
2530
2531Key
2532
2533`show_raw_agent_reasoning`
2534
2535Type / Values
2536
2537`boolean`
2538
2539Details
2540
2541Surface raw reasoning content when the active model emits it.
2542
2543Key
2544
2545`skills.config`
2546
2547Type / Values
2548
2549`array<object>`
2550
2551Details
2552
2553Per-skill enablement overrides stored in config.toml.
2554
2555Key
2556
2557`skills.config.<index>.enabled`
2558
2559Type / Values
2560
2561`boolean`
2562
2563Details
2564
2565Enable or disable the referenced skill.
2566
2567Key
2568
2569`skills.config.<index>.path`
2570
2571Type / Values
2572
2573`string (path)`
2574
2575Details
2576
2577Path to a skill folder containing `SKILL.md`.
2578
2579Key
2580
2581`sqlite_home`
2582
2583Type / Values
2584
2585`string (path)`
2586
2587Details
2588
2589Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.
2590
2591Key
2592
2593`suppress_unstable_features_warning`
2594
2595Type / Values
2596
2597`boolean`
2598
2599Details
2600
2601Suppress the warning that appears when under-development feature flags are enabled.
2602
2603Key
2604
2605`tool_output_token_limit`
2606
2607Type / Values
2608
2609`number`
2610
2611Details
2612
2613Token budget for storing individual tool/function outputs in history.
2614
2615Key
2616
2617`tools.view_image`
2618
2619Type / Values
2620
2621`boolean`
2622
2623Details
2624
2625Enable the local-image attachment tool `view_image`.
2626
2627Key
2628
2629`tools.web_search`
2630
2631Type / Values
2632
2633`boolean`
2634
2635Details
2636
2637Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.
2638
2639Key
2640
2641`tui`
2642
2643Type / Values
2644
2645`table`
2646
2647Details
2648
2649TUI-specific options such as enabling inline desktop notifications.
2650
2651Key
2652
2653`tui.alternate_screen`
2654
2655Type / Values
2656
2657`auto | always | never`
2658
2659Details
2660
2661Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).
2662
2663Key
2664
2665`tui.animations`
2666
2667Type / Values
2668
2669`boolean`
2670
2671Details
2672
2673Enable terminal animations (welcome screen, shimmer, spinner) (default: true).
2674
2675Key
2676
2677`tui.model_availability_nux.<model>`
2678
2679Type / Values
2680
2681`integer`
2682
2683Details
2684
2685Internal startup-tooltip state keyed by model slug.
2686
2687Key
2688
2689`tui.notification_method`
2690
2691Type / Values
2692
2693`auto | osc9 | bel`
2694
2695Details
2696
2697Notification method for unfocused terminal notifications (default: auto).
2698
2699Key
2700
2701`tui.notifications`
2702
2703Type / Values
2704
2705`boolean | array<string>`
2706
2707Details
2708
2709Enable TUI notifications; optionally restrict to specific event types.
2710
2711Key
2712
2713`tui.show_tooltips`
2714
2715Type / Values
2716
2717`boolean`
2718
2719Details
2720
2721Show onboarding tooltips in the TUI welcome screen (default: true).
2722
2723Key
2724
2725`tui.status_line`
2726
2727Type / Values
2728
2729`array<string> | null`
2730
2731Details
2732
2733Ordered list of TUI footer status-line item identifiers. `null` disables the status line.
2734
2735Key
2736
2737`tui.theme`
2738
2739Type / Values
2740
2741`string`
2742
2743Details
2744
2745Syntax-highlighting theme override (kebab-case theme name).
2746
2747Key
2748
2749`web_search`
2750
2751Type / Values
2752
2753`disabled | cached | live`
2754
2755Details
2756
2757Web 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.
2758
2759Key
2760
2761`windows_wsl_setup_acknowledged`
2762
2763Type / Values
2764
2765`boolean`
2766
2767Details
2768
2769Track Windows onboarding acknowledgement (Windows only).
2770
2771Key
2772
2773`windows.sandbox`
2774
2775Type / Values
2776
2777`unelevated | elevated`
2778
2779Details
2780
2781Windows-only native sandbox mode when running Codex natively on Windows.
2782
2783Expand to view all
2784 1338
2785You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).1339You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
2786 1340
2802Use `[features]` in `requirements.toml` to pin feature flags by the same1356Use `[features]` in `requirements.toml` to pin feature flags by the same
2803canonical keys that `config.toml` uses. Omitted keys remain unconstrained.1357canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
2804 1358
28051359| Key | Type / Values | Details |<ConfigTable
28061360| --- | --- | --- | options={[
28071361| `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`). | {
28081362| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. | key: "allowed_approval_policies",
28091363| `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`. | type: "array<string>",
28101364| `features` | `table` | Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. | description:
28111365| `features.<name>` | `boolean` | Require a specific canonical feature key to stay enabled or disabled. | "Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).",
28121366| `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. | },
28131367| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). | {
28141368| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. | key: "allowed_approvals_reviewers",
28151369| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. | type: "array<string>",
28161370| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. | description:
28171371| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. | "Allowed values for `approvals_reviewer`, such as `user` and `auto_review`.",
28181372| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). | },
28191373| `rules.prefix_rules[].justification` | `string` | Optional non-empty rationale surfaced in approval prompts or rejection messages. | {
28201374| `rules.prefix_rules[].pattern` | `array<table>` | Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`. | key: "guardian_policy_config",
28211375| `rules.prefix_rules[].pattern[].any_of` | `array<string>` | A list of allowed alternative tokens at this position. | type: "string",
28221376| `rules.prefix_rules[].pattern[].token` | `string` | A single literal token at this position. | description:
28231377 "Managed Markdown policy instructions for automatic review. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",
28241378Key },
28251379 {
28261380`allowed_approval_policies` key: "allowed_sandbox_modes",
28271381 type: "array<string>",
28281382Type / Values description: "Allowed values for `sandbox_mode`.",
28291383 },
28301384`array<string>` {
28311385 key: "remote_sandbox_config",
28321386Details type: "array<table>",
28331387 description:
28341388Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`). "Host-specific sandbox requirements. The first entry whose `hostname_patterns` match the resolved host name overrides top-level `allowed_sandbox_modes` for that requirements source. Host-specific entries currently override sandbox modes only.",
28351389 },
28361390Key {
28371391 key: "remote_sandbox_config[].hostname_patterns",
28381392`allowed_sandbox_modes` type: "array<string>",
28391393 description:
28401394Type / Values "Case-insensitive host name patterns. Supports `*` for any sequence of characters and `?` for one character.",
28411395 },
28421396`array<string>` {
28431397 key: "remote_sandbox_config[].allowed_sandbox_modes",
28441398Details type: "array<string>",
28451399 description:
28461400Allowed values for `sandbox_mode`. "Allowed sandbox modes to apply when this host-specific entry matches.",
28471401 },
28481402Key {
28491403 key: "allowed_web_search_modes",
28501404`allowed_web_search_modes` type: "array<string>",
28511405 description:
28521406Type / Values "Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.",
28531407 },
28541408`array<string>` {
28551409 key: "features",
28561410Details type: "table",
28571411 description:
28581412Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`. "Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.",
28591413 },
28601414Key {
28611415 key: "features.<name>",
28621416`features` type: "boolean",
28631417 description:
28641418Type / Values "Require a specific canonical feature key to stay enabled or disabled.",
28651419 },
28661420`table` {
28671421 key: "features.in_app_browser",
28681422Details type: "boolean",
28691423 description:
28701424Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table. "Set to `false` in `requirements.toml` to disable the in-app browser pane.",
28711425 },
28721426Key {
28731427 key: "features.browser_use",
28741428`features.<name>` type: "boolean",
28751429 description:
28761430Type / Values "Set to `false` in `requirements.toml` to disable Browser Use and Browser Agent availability.",
28771431 },
28781432`boolean` {
28791433 key: "features.computer_use",
28801434Details type: "boolean",
28811435 description:
28821436Require a specific canonical feature key to stay enabled or disabled. "Set to `false` in `requirements.toml` to disable Computer Use availability and related install or enablement flows.",
28831437 },
28841438Key {
28851439 key: "hooks",
28861440`mcp_servers` type: "table",
28871441 description:
28881442Type / Values "Admin-enforced managed lifecycle hooks. Requires a managed hook directory and uses the same event schema as inline `[hooks]` in `config.toml`.",
28891443 },
28901444`table` {
28911445 key: "hooks.managed_dir",
28921446Details type: "string (absolute path)",
28931447 description:
28941448Allowlist 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. "Directory containing managed hook scripts on macOS and Linux. Codex validates that it is absolute and exists before loading managed hooks.",
28951449 },
28961450Key {
28971451 key: "hooks.windows_managed_dir",
28981452`mcp_servers.<id>.identity` type: "string (absolute path)",
28991453 description:
29001454Type / Values "Directory containing managed hook scripts on Windows. Codex validates that it is absolute and exists before loading managed hooks.",
29011455 },
29021456`table` {
29031457 key: "hooks.<Event>",
29041458Details type: "array<table>",
29051459 description:
29061460Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). "Matcher groups for a hook event such as `PreToolUse`, `PostToolUse`, `PermissionRequest`, `SessionStart`, `UserPromptSubmit`, or `Stop`.",
29071461 },
29081462Key {
29091463 key: "hooks.<Event>[].hooks",
29101464`mcp_servers.<id>.identity.command` type: "array<table>",
29111465 description:
29121466Type / Values "Hook handlers for a matcher group. Command hooks are currently supported; prompt and agent hook handlers are parsed but skipped.",
29131467 },
29141468`string` {
29151469 key: "permissions.filesystem.deny_read",
29161470Details type: "array<string>",
29171471 description:
29181472Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. "Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config.",
29191473 },
29201474Key {
29211475 key: "mcp_servers",
29221476`mcp_servers.<id>.identity.url` type: "table",
29231477 description:
29241478Type / Values "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.",
29251479 },
29261480`string` {
29271481 key: "mcp_servers.<id>.identity",
29281482Details type: "table",
29291483 description:
29301484Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. "Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).",
29311485 },
29321486Key {
29331487 key: "mcp_servers.<id>.identity.command",
29341488`rules` type: "string",
29351489 description:
29361490Type / Values "Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.",
29371491 },
29381492`table` {
29391493 key: "mcp_servers.<id>.identity.url",
29401494Details type: "string",
29411495 description:
29421496Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. "Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.",
29431497 },
29441498Key {
29451499 key: "rules",
29461500`rules.prefix_rules` type: "table",
29471501 description:
29481502Type / Values "Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive.",
29491503 },
29501504`array<table>` {
29511505 key: "rules.prefix_rules",
29521506Details type: "array<table>",
29531507 description:
29541508List of enforced prefix rules. Each rule must include `pattern` and `decision`. "List of enforced prefix rules. Each rule must include `pattern` and `decision`.",
29551509 },
29561510Key {
29571511 key: "rules.prefix_rules[].pattern",
29581512`rules.prefix_rules[].decision` type: "array<table>",
29591513 description:
29601514Type / Values "Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`.",
29611515 },
29621516`prompt | forbidden` {
29631517 key: "rules.prefix_rules[].pattern[].token",
29641518Details type: "string",
29651519 description: "A single literal token at this position.",
29661520Required. Requirements rules can only prompt or forbid (not allow). },
29671521 {
29681522Key key: "rules.prefix_rules[].pattern[].any_of",
29691523 type: "array<string>",
29701524`rules.prefix_rules[].justification` description: "A list of allowed alternative tokens at this position.",
29711525 },
29721526Type / Values {
29731527 key: "rules.prefix_rules[].decision",
29741528`string` type: "prompt | forbidden",
29751529 description:
29761530Details "Required. Requirements rules can only prompt or forbid (not allow).",
29771531 },
29781532Optional non-empty rationale surfaced in approval prompts or rejection messages. {
29791533 key: "rules.prefix_rules[].justification",
29801534Key type: "string",
29811535 description:
29821536`rules.prefix_rules[].pattern` "Optional non-empty rationale surfaced in approval prompts or rejection messages.",
29831537 },
29841538Type / Values ]}
29851539 client:load
29861540`array<table>`/>
2987
2988Details
2989
2990Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`.
2991
2992Key
2993
2994`rules.prefix_rules[].pattern[].any_of`
2995
2996Type / Values
2997
2998`array<string>`
2999
3000Details
3001
3002A list of allowed alternative tokens at this position.
3003
3004Key
3005
3006`rules.prefix_rules[].pattern[].token`
3007
3008Type / Values
3009
3010`string`
3011
3012Details
3013
3014A single literal token at this position.
3015
3016Expand to view all