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