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