6 6
7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.7User-level configuration lives in `~/.codex/config.toml`. You can also add project-scoped overrides in `.codex/config.toml` files. Codex loads project-scoped config files only when you trust the project.
8 8
9| Key | Type / Values | Details |9Project-scoped config can't override machine-local provider, auth,
10| --- | --- | --- |10notification, profile, or telemetry routing keys. Codex ignores
11| `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. |11`openai_base_url`, `chatgpt_base_url`, `model_provider`, `model_providers`,
12| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |12`notify`, `profile`, `profiles`, `experimental_realtime_ws_base_url`, and
13| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. |13`otel` when they appear in a project-local `.codex/config.toml`; put those in
14| `approval_policy` | `untrusted | on-request | never` | Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. |14user-level config instead.
15| `apps.<id>.disabled_reason` | `unknown | user` | Optional reason attached when an app/connector is disabled. |15
16| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). |16For 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).
17| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |17
18| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |18<ConfigTable
19| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |19 options={[
20| `compact_prompt` | `string` | Inline override for the history compaction prompt. |20 {
21| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |21 key: "model",
22| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |22 type: "string",
23| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |23 description: "Model to use (e.g., `gpt-5.5`).",
24| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. |24 },
25| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |25 {
26| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). |26 key: "review_model",
27| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |27 type: "string",
28| `features.apps_mcp_gateway` | `boolean` | Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental). |28 description:
29| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). |29 "Optional model override used by `/review` (defaults to the current session model).",
30| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). |30 },
31| `features.elevated_windows_sandbox` | `boolean` | Enable the elevated Windows sandbox pipeline (experimental). |31 {
32| `features.experimental_windows_sandbox` | `boolean` | Run the Windows restricted-token sandbox (experimental). |32 key: "model_provider",
33| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). |33 type: "string",
34| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |34 description: "Provider id from `model_providers` (default: `openai`).",
35| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). |35 },
36| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). |36 {
37| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |37 key: "openai_base_url",
38| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |38 type: "string",
39| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |39 description:
40| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |40 "Base URL override for the built-in `openai` model provider.",
41| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |41 },
42| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). |42 {
43| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). |43 key: "model_context_window",
44| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |44 type: "number",
45| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |45 description: "Context window tokens available to the active model.",
46| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |46 },
47| `feedback.enabled` | `boolean` | Enable feedback submission via `/feedback` across Codex surfaces (default: true). |47 {
48| `file_opener` | `vscode | vscode-insiders | windsurf | cursor | none` | URI scheme used to open citations from Codex output (default: `vscode`). |48 key: "model_auto_compact_token_limit",
49| `forced_chatgpt_workspace_id` | `string (uuid)` | Limit ChatGPT logins to a specific workspace identifier. |49 type: "number",
50| `forced_login_method` | `chatgpt | api` | Restrict Codex to a specific authentication method. |50 description:
51| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |51 "Token threshold that triggers automatic history compaction (unset uses model defaults).",
52| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |52 },
53| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |53 {
54| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |54 key: "model_catalog_json",
55| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |55 type: "string (path)",
56| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |56 description:
57| `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. |57 "Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.",
58| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. |58 },
59| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. |59 {
60| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |60 key: "oss_provider",
61| `mcp_servers.<id>.command` | `string` | Launcher command for an MCP stdio server. |61 type: "lmstudio | ollama",
62| `mcp_servers.<id>.cwd` | `string` | Working directory for the MCP stdio server process. |62 description:
63| `mcp_servers.<id>.disabled_tools` | `array<string>` | Deny list applied after `enabled_tools` for the MCP server. |63 "Default local provider used when running with `--oss` (defaults to prompting if unset).",
64| `mcp_servers.<id>.enabled` | `boolean` | Disable an MCP server without removing its configuration. |64 },
65| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |65 {
66| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |66 key: "approval_policy",
67| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |67 type: "untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }",
68| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |68 description:
69| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |69 "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.",
70| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |70 },
71| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |71 {
72| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |72 key: "approval_policy.granular.sandbox_approval",
73| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |73 type: "boolean",
74| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |74 description:
75| `model` | `string` | Model to use (e.g., `gpt-5-codex`). |75 "When `true`, sandbox escalation approval prompts are allowed to surface.",
76| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |76 },
77| `model_context_window` | `number` | Context window tokens available to the active model. |77 {
78| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |78 key: "approval_policy.granular.rules",
79| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |79 type: "boolean",
80| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. |80 description:
81| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. |81 "When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.",
82| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. |82 },
83| `model_providers.<id>.env_key_instructions` | `string` | Optional setup guidance for the provider API key. |83 {
84| `model_providers.<id>.experimental_bearer_token` | `string` | Direct bearer token for the provider (discouraged; use `env_key`). |84 key: "approval_policy.granular.mcp_elicitations",
85| `model_providers.<id>.http_headers` | `map<string,string>` | Static HTTP headers added to provider requests. |85 type: "boolean",
86| `model_providers.<id>.name` | `string` | Display name for a custom model provider. |86 description:
87| `model_providers.<id>.query_params` | `map<string,string>` | Extra query parameters appended to provider requests. |87 "When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.",
88| `model_providers.<id>.request_max_retries` | `number` | Retry count for HTTP requests to the provider (default: 4). |88 },
89| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |89 {
90| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |90 key: "approval_policy.granular.request_permissions",
91| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |91 type: "boolean",
92| `model_providers.<id>.wire_api` | `chat | responses` | Protocol used by the provider (defaults to `chat` if omitted). |92 description:
93| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |93 "When `true`, prompts from the `request_permissions` tool are allowed to surface.",
94| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |94 },
95| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |95 {
96| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). |96 key: "approval_policy.granular.skill_approval",
97| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |97 type: "boolean",
98| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |98 description:
99| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |99 "When `true`, skill-script approval prompts are allowed to surface.",
100| `notice.hide_rate_limit_model_nudge` | `boolean` | Track opt-out of the rate limit model switch reminder. |100 },
101| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |101 {
102| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |102 key: "approvals_reviewer",
103| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |103 type: "user | auto_review",
104| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |104 description:
105| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |105 "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.",
106| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |106 },
107| `otel.exporter.<id>.endpoint` | `string` | Exporter endpoint for OTEL logs. |107 {
108| `otel.exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL exporter requests. |108 key: "auto_review.policy",
109| `otel.exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP exporter. |109 type: "string",
110| `otel.exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL exporter TLS. |110 description:
111| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |111 "Local Markdown policy instructions for automatic review. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",
112| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |112 },
113| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |113 {
114| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |114 key: "allow_login_shell",
115| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |115 type: "boolean",
116| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |116 description:
117| `otel.trace_exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP trace exporter. |117 "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.",
118| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |118 },
119| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |119 {
120| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |120 key: "sandbox_mode",
121| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |121 type: "read-only | workspace-write | danger-full-access",
122| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |122 description:
123| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |123 "Sandbox policy for filesystem and network access during command execution.",
124| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |124 },
125| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |125 {
126| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |126 key: "sandbox_workspace_write.writable_roots",
127| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |127 type: "array<string>",
128| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |128 description:
129| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |129 'Additional writable roots when `sandbox_mode = "workspace-write"`.',
130| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |130 },
131| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |131 {
132| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |132 key: "sandbox_workspace_write.network_access",
133| `projects.<path>.trust_level` | `string` | Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers. |133 type: "boolean",
134| `review_model` | `string` | Optional model override used by `/review` (defaults to the current session model). |134 description:
135| `sandbox_mode` | `read-only | workspace-write | danger-full-access` | Sandbox policy for filesystem and network access during command execution. |135 "Allow outbound network access inside the workspace-write sandbox.",
136| `sandbox_workspace_write.exclude_slash_tmp` | `boolean` | Exclude `/tmp` from writable roots in workspace-write mode. |136 },
137| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |137 {
138| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |138 key: "sandbox_workspace_write.exclude_tmpdir_env_var",
139| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |139 type: "boolean",
140| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |140 description:
141| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |141 "Exclude `$TMPDIR` from writable roots in workspace-write mode.",
142| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |142 },
143| `shell_environment_policy.include_only` | `array<string>` | Whitelist of patterns; when set only matching variables are kept. |143 {
144| `shell_environment_policy.inherit` | `all | core | none` | Baseline environment inheritance when spawning subprocesses. |144 key: "sandbox_workspace_write.exclude_slash_tmp",
145| `shell_environment_policy.set` | `map<string,string>` | Explicit environment overrides injected into every subprocess. |145 type: "boolean",
146| `show_raw_agent_reasoning` | `boolean` | Surface raw reasoning content when the active model emits it. |146 description:
147| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |147 "Exclude `/tmp` from writable roots in workspace-write mode.",
148| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |148 },
149| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |149 {
150| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |150 key: "windows.sandbox",
151| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |151 type: "unelevated | elevated",
152| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. |152 description:
153| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |153 "Windows-only native sandbox mode when running Codex natively on Windows.",
154| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |154 },
155| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |155 {
156| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |156 key: "windows.sandbox_private_desktop",
157| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |157 type: "boolean",
158| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |158 description:
159| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |159 "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.",
160| `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. |160 },
161| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |161 {
162 162 key: "notify",
163Key163 type: "array<string>",
164 164 description:
165`agents.<name>.config_file`165 "Command invoked for notifications; receives a JSON payload from Codex.",
166 166 },
167Type / Values167 {
168 168 key: "check_for_update_on_startup",
169`string (path)`169 type: "boolean",
170 170 description:
171Details171 "Check for Codex updates on startup (set to false only when updates are centrally managed).",
172 172 },
173Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role.173 {
174 174 key: "feedback.enabled",
175Key175 type: "boolean",
176 176 description:
177`agents.<name>.description`177 "Enable feedback submission via `/feedback` across Codex surfaces (default: true).",
178 178 },
179Type / Values179 {
180 180 key: "analytics.enabled",
181`string`181 type: "boolean",
182 182 description:
183Details183 "Enable or disable analytics for this machine/profile. When unset, the client default applies.",
184 184 },
185Role guidance shown to Codex when choosing and spawning that agent type.185 {
186 186 key: "instructions",
187Key187 type: "string",
188 188 description:
189`agents.max_threads`189 "Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.",
190 190 },
191Type / Values191 {
192 192 key: "developer_instructions",
193`number`193 type: "string",
194 194 description:
195Details195 "Additional developer instructions injected into the session (optional).",
196 196 },
197Maximum number of agent threads that can be open concurrently.197 {
198 198 key: "log_dir",
199Key199 type: "string (path)",
200 200 description:
201`approval_policy`201 "Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.",
202 202 },
203Type / Values203 {
204 204 key: "sqlite_home",
205`untrusted | on-request | never`205 type: "string (path)",
206 206 description:
207Details207 "Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.",
208 208 },
209Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.209 {
210 210 key: "compact_prompt",
211Key211 type: "string",
212 212 description: "Inline override for the history compaction prompt.",
213`apps.<id>.disabled_reason`213 },
214 214 {
215Type / Values215 key: "commit_attribution",
216 216 type: "string",
217`unknown | user`217 description:
218 218 'Commit co-author trailer used when `[features].codex_git_commit` is enabled. Defaults to `Codex <noreply@openai.com>`; set `""` to disable.',
219Details219 },
220 220 {
221Optional reason attached when an app/connector is disabled.221 key: "model_instructions_file",
222 222 type: "string (path)",
223Key223 description:
224 224 "Replacement for built-in instructions instead of `AGENTS.md`.",
225`apps.<id>.enabled`225 },
226 226 {
227Type / Values227 key: "personality",
228 228 type: "none | friendly | pragmatic",
229`boolean`229 description:
230 230 "Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.",
231Details231 },
232 232 {
233Enable or disable a specific app/connector by id (default: true).233 key: "service_tier",
234 234 type: "string",
235Key235 description:
236 236 "Preferred service tier for new turns. Built-in values include `flex` and `fast`; legacy `fast` config maps to the request value `priority`, and catalog-provided tier IDs can also be stored.",
237`chatgpt_base_url`237 },
238 238 {
239Type / Values239 key: "experimental_compact_prompt_file",
240 240 type: "string (path)",
241`string`241 description:
242 242 "Load the compaction prompt override from a file (experimental).",
243Details243 },
244 244 {
245Override the base URL used during the ChatGPT login flow.245 key: "skills.config",
246 246 type: "array<object>",
247Key247 description: "Per-skill enablement overrides stored in config.toml.",
248 248 },
249`check_for_update_on_startup`249 {
250 250 key: "skills.config.<index>.path",
251Type / Values251 type: "string (path)",
252 252 description: "Path to a skill folder containing `SKILL.md`.",
253`boolean`253 },
254 254 {
255Details255 key: "skills.config.<index>.enabled",
256 256 type: "boolean",
257Check for Codex updates on startup (set to false only when updates are centrally managed).257 description: "Enable or disable the referenced skill.",
258 258 },
259Key259 {
260 260 key: "apps.<id>.enabled",
261`cli_auth_credentials_store`261 type: "boolean",
262 262 description:
263Type / Values263 "Enable or disable a specific app/connector by id (default: true).",
264 264 },
265`file | keyring | auto`265 {
266 266 key: "apps._default.enabled",
267Details267 type: "boolean",
268 268 description:
269Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).269 "Default app enabled state for all apps unless overridden per app.",
270 270 },
271Key271 {
272 272 key: "apps._default.destructive_enabled",
273`compact_prompt`273 type: "boolean",
274 274 description:
275Type / Values275 "Default allow/deny for app tools with `destructive_hint = true`.",
276 276 },
277`string`277 {
278 278 key: "apps._default.open_world_enabled",
279Details279 type: "boolean",
280 280 description:
281Inline override for the history compaction prompt.281 "Default allow/deny for app tools with `open_world_hint = true`.",
282 282 },
283Key283 {
284 284 key: "apps.<id>.destructive_enabled",
285`developer_instructions`285 type: "boolean",
286 286 description:
287Type / Values287 "Allow or block tools in this app that advertise `destructive_hint = true`.",
288 288 },
289`string`289 {
290 290 key: "apps.<id>.open_world_enabled",
291Details291 type: "boolean",
292 292 description:
293Additional developer instructions injected into the session (optional).293 "Allow or block tools in this app that advertise `open_world_hint = true`.",
294 294 },
295Key295 {
296 296 key: "apps.<id>.default_tools_enabled",
297`disable_paste_burst`297 type: "boolean",
298 298 description:
299Type / Values299 "Default enabled state for tools in this app unless a per-tool override exists.",
300 300 },
301`boolean`301 {
302 302 key: "apps.<id>.default_tools_approval_mode",
303Details303 type: "auto | prompt | approve",
304 304 description:
305Disable burst-paste detection in the TUI.305 "Default approval behavior for tools in this app unless a per-tool override exists.",
306 306 },
307Key307 {
308 308 key: "apps.<id>.tools.<tool>.enabled",
309`experimental_compact_prompt_file`309 type: "boolean",
310 310 description:
311Type / Values311 "Per-tool enabled override for an app tool (for example `repos/list`).",
312 312 },
313`string (path)`313 {
314 314 key: "apps.<id>.tools.<tool>.approval_mode",
315Details315 type: "auto | prompt | approve",
316 316 description: "Per-tool approval behavior override for a single app tool.",
317Load the compaction prompt override from a file (experimental).317 },
318 318 {
319Key319 key: "tool_suggest.discoverables",
320 320 type: "array<table>",
321`experimental_use_freeform_apply_patch`321 description:
322 322 'Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',
323Type / Values323 },
324 324 {
325`boolean`325 key: "tool_suggest.disabled_tools",
326 326 type: "array<table>",
327Details327 description:
328 328 'Disable suggestions for specific discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',
329Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.329 },
330 330 {
331Key331 key: "features.apps",
332 332 type: "boolean",
333`experimental_use_unified_exec_tool`333 description: "Enable ChatGPT Apps/connectors support (experimental).",
334 334 },
335Type / Values335 {
336 336 key: "features.hooks",
337`boolean`337 type: "boolean",
338 338 description:
339Details339 "Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config. `features.codex_hooks` is a deprecated alias.",
340 340 },
341Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.341 {
342 342 key: "features.codex_git_commit",
343Key343 type: "boolean",
344 344 description:
345`features.apply_patch_freeform`345 "Enable Codex-generated git commits. When enabled, Codex uses `commit_attribution` to append a `Co-authored-by:` trailer to generated commit messages.",
346 346 },
347Type / Values347 {
348 348 key: "hooks",
349`boolean`349 type: "table",
350 350 description:
351Details351 "Lifecycle hooks configured inline in `config.toml`. Uses the same event schema as `hooks.json`; see the Hooks guide for examples and supported events.",
352 352 },
353Expose the freeform `apply_patch` tool (experimental).353 {
354 354 key: "features.plugin_hooks",
355Key355 type: "boolean",
356 356 description:
357`features.apps`357 "Opt into lifecycle hooks bundled with enabled plugins. Off by default in this release; set to `true` to opt in.",
358 358 },
359Type / Values359 {
360 360 key: "features.memories",
361`boolean`361 type: "boolean",
362 362 description: "Enable [Memories](https://developers.openai.com/codex/memories) (off by default).",
363Details363 },
364 364 {
365Enable ChatGPT Apps/connectors support (experimental).365 key: "mcp_servers.<id>.command",
366 366 type: "string",
367Key367 description: "Launcher command for an MCP stdio server.",
368 368 },
369`features.apps_mcp_gateway`369 {
370 370 key: "mcp_servers.<id>.args",
371Type / Values371 type: "array<string>",
372 372 description: "Arguments passed to the MCP stdio server command.",
373`boolean`373 },
374 374 {
375Details375 key: "mcp_servers.<id>.env",
376 376 type: "map<string,string>",
377Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).377 description: "Environment variables forwarded to the MCP stdio server.",
378 378 },
379Key379 {
380 380 key: "mcp_servers.<id>.env_vars",
381`features.child_agents_md`381 type: 'array<string | { name = string, source = "local" | "remote" }>',
382 382 description:
383Type / Values383 '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.',
384 384 },
385`boolean`385 {
386 386 key: "mcp_servers.<id>.cwd",
387Details387 type: "string",
388 388 description: "Working directory for the MCP stdio server process.",
389Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).389 },
390 390 {
391Key391 key: "mcp_servers.<id>.url",
392 392 type: "string",
393`features.collaboration_modes`393 description: "Endpoint for an MCP streamable HTTP server.",
394 394 },
395Type / Values395 {
396 396 key: "mcp_servers.<id>.bearer_token_env_var",
397`boolean`397 type: "string",
398 398 description:
399Details399 "Environment variable sourcing the bearer token for an MCP HTTP server.",
400 400 },
401Enable collaboration modes such as plan mode (stable; on by default).401 {
402 402 key: "mcp_servers.<id>.http_headers",
403Key403 type: "map<string,string>",
404 404 description: "Static HTTP headers included with each MCP HTTP request.",
405`features.elevated_windows_sandbox`405 },
406 406 {
407Type / Values407 key: "mcp_servers.<id>.env_http_headers",
408 408 type: "map<string,string>",
409`boolean`409 description:
410 410 "HTTP headers populated from environment variables for an MCP HTTP server.",
411Details411 },
412 412 {
413Enable the elevated Windows sandbox pipeline (experimental).413 key: "mcp_servers.<id>.enabled",
414 414 type: "boolean",
415Key415 description: "Disable an MCP server without removing its configuration.",
416 416 },
417`features.experimental_windows_sandbox`417 {
418 418 key: "mcp_servers.<id>.required",
419Type / Values419 type: "boolean",
420 420 description:
421`boolean`421 "When true, fail startup/resume if this enabled MCP server cannot initialize.",
422 422 },
423Details423 {
424 424 key: "mcp_servers.<id>.startup_timeout_sec",
425Run the Windows restricted-token sandbox (experimental).425 type: "number",
426 426 description:
427Key427 "Override the default 10s startup timeout for an MCP server.",
428 428 },
429`features.multi_agent`429 {
430 430 key: "mcp_servers.<id>.startup_timeout_ms",
431Type / Values431 type: "number",
432 432 description: "Alias for `startup_timeout_sec` in milliseconds.",
433`boolean`433 },
434 434 {
435Details435 key: "mcp_servers.<id>.tool_timeout_sec",
436 436 type: "number",
437Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).437 description:
438 438 "Override the default 60s per-tool timeout for an MCP server.",
439Key439 },
440 440 {
441`features.personality`441 key: "mcp_servers.<id>.enabled_tools",
442 442 type: "array<string>",
443Type / Values443 description: "Allow list of tool names exposed by the MCP server.",
444 444 },
445`boolean`445 {
446 446 key: "mcp_servers.<id>.disabled_tools",
447Details447 type: "array<string>",
448 448 description:
449Enable personality selection controls (stable; on by default).449 "Deny list applied after `enabled_tools` for the MCP server.",
450 450 },
451Key451 {
452 452 key: "mcp_servers.<id>.default_tools_approval_mode",
453`features.powershell_utf8`453 type: "auto | prompt | approve",
454 454 description:
455Type / Values455 "Default approval behavior for MCP tools on this server unless a per-tool override exists.",
456 456 },
457`boolean`457 {
458 458 key: "mcp_servers.<id>.tools.<tool>.approval_mode",
459Details459 type: "auto | prompt | approve",
460 460 description:
461Force PowerShell UTF-8 output (defaults to true).461 "Per-tool approval behavior override for one MCP tool on this server.",
462 462 },
463Key463 {
464 464 key: "mcp_servers.<id>.scopes",
465`features.remote_models`465 type: "array<string>",
466 466 description:
467Type / Values467 "OAuth scopes to request when authenticating to that MCP server.",
468 468 },
469`boolean`469 {
470 470 key: "mcp_servers.<id>.oauth_resource",
471Details471 type: "string",
472 472 description:
473Refresh remote model list before showing readiness (experimental).473 "Optional RFC 8707 OAuth resource parameter to include during MCP login.",
474 474 },
475Key475 {
476 476 key: "mcp_servers.<id>.experimental_environment",
477`features.request_rule`477 type: "local | remote",
478 478 description:
479Type / Values479 "Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.",
480 480 },
481`boolean`481 {
482 482 key: "agents.max_threads",
483Details483 type: "number",
484 484 description:
485Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).485 "Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.",
486 486 },
487Key487 {
488 488 key: "agents.max_depth",
489`features.runtime_metrics`489 type: "number",
490 490 description:
491Type / Values491 "Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).",
492 492 },
493`boolean`493 {
494 494 key: "agents.job_max_runtime_seconds",
495Details495 type: "number",
496 496 description:
497Show runtime metrics summary in TUI turn separators (experimental).497 "Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.",
498 498 },
499Key499 {
500 500 key: "agents.<name>.description",
501`features.search_tool`501 type: "string",
502 502 description:
503Type / Values503 "Role guidance shown to Codex when choosing and spawning that agent type.",
504 504 },
505`boolean`505 {
506 506 key: "agents.<name>.config_file",
507Details507 type: "string (path)",
508 508 description:
509Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).509 "Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role.",
510 510 },
511Key511 {
512 512 key: "agents.<name>.nickname_candidates",
513`features.shell_snapshot`513 type: "array<string>",
514 514 description:
515Type / Values515 "Optional pool of display nicknames for spawned agents in that role.",
516 516 },
517`boolean`517 {
518 518 key: "memories.generate_memories",
519Details519 type: "boolean",
520 520 description:
521Snapshot shell environment to speed up repeated commands (beta).521 "When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.",
522 522 },
523Key523 {
524 524 key: "memories.use_memories",
525`features.shell_tool`525 type: "boolean",
526 526 description:
527Type / Values527 "When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.",
528 528 },
529`boolean`529 {
530 530 key: "memories.disable_on_external_context",
531Details531 type: "boolean",
532 532 description:
533Enable the default `shell` tool for running commands (stable; on by default).533 "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`.",
534 534 },
535Key535 {
536 536 key: "memories.max_raw_memories_for_consolidation",
537`features.unified_exec`537 type: "number",
538 538 description:
539Type / Values539 "Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.",
540 540 },
541`boolean`541 {
542 542 key: "memories.max_unused_days",
543Details543 type: "number",
544 544 description:
545Use the unified PTY-backed exec tool (beta).545 "Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`.",
546 546 },
547Key547 {
548 548 key: "memories.max_rollout_age_days",
549`features.use_linux_sandbox_bwrap`549 type: "number",
550 550 description:
551Type / Values551 "Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.",
552 552 },
553`boolean`553 {
554 554 key: "memories.max_rollouts_per_startup",
555Details555 type: "number",
556 556 description:
557Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).557 "Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.",
558 558 },
559Key559 {
560 560 key: "memories.min_rollout_idle_hours",
561`features.web_search`561 type: "number",
562 562 description:
563Type / Values563 "Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.",
564 564 },
565`boolean`565 {
566 566 key: "memories.min_rate_limit_remaining_percent",
567Details567 type: "number",
568 568 description:
569Deprecated legacy toggle; prefer the top-level `web_search` setting.569 "Minimum remaining percentage required in Codex rate-limit windows before memory generation starts. Defaults to `25` and is clamped to `0`-`100`.",
570 570 },
571Key571 {
572 572 key: "memories.extract_model",
573`features.web_search_cached`573 type: "string",
574 574 description: "Optional model override for per-thread memory extraction.",
575Type / Values575 },
576 576 {
577`boolean`577 key: "memories.consolidation_model",
578 578 type: "string",
579Details579 description: "Optional model override for global memory consolidation.",
580 580 },
581Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.581 {
582 582 key: "features.unified_exec",
583Key583 type: "boolean",
584 584 description:
585`features.web_search_request`585 "Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).",
586 586 },
587Type / Values587 {
588 588 key: "features.shell_snapshot",
589`boolean`589 type: "boolean",
590 590 description:
591Details591 "Snapshot shell environment to speed up repeated commands (stable; on by default).",
592 592 },
593Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.593 {
594 594 key: "features.undo",
595Key595 type: "boolean",
596 596 description: "Enable undo support (stable; off by default).",
597`feedback.enabled`597 },
598 598 {
599Type / Values599 key: "features.multi_agent",
600 600 type: "boolean",
601`boolean`601 description:
602 602 "Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).",
603Details603 },
604 604 {
605Enable feedback submission via `/feedback` across Codex surfaces (default: true).605 key: "features.personality",
606 606 type: "boolean",
607Key607 description:
608 608 "Enable personality selection controls (stable; on by default).",
609`file_opener`609 },
610 610 {
611Type / Values611 key: "features.network_proxy",
612 612 type: "boolean | table",
613`vscode | vscode-insiders | windsurf | cursor | none`613 description:
614 614 "Enable sandboxed networking. Use a table form when setting network policy options such as `domains` (experimental; off by default).",
615Details615 },
616 616 {
617URI scheme used to open citations from Codex output (default: `vscode`).617 key: "features.network_proxy.enabled",
618 618 type: "boolean",
619Key619 description: "Enable sandboxed networking. Defaults to `false`.",
620 620 },
621`forced_chatgpt_workspace_id`621 {
622 622 key: "features.network_proxy.domains",
623Type / Values623 type: "map<string, allow | deny>",
624 624 description:
625`string (uuid)`625 "Domain policy for sandboxed networking. Unset by default, which means no external destinations are allowed until you add `allow` rules. Supports exact hosts, `*.example.com` for subdomains only, `**.example.com` for apex plus subdomains, and global `*` allow rules; prefer scoped rules because `*` broadly opens public outbound access. Add `deny` rules for blocked destinations; `deny` wins on conflicts.",
626 626 },
627Details627 {
628 628 key: "features.network_proxy.unix_sockets",
629Limit ChatGPT logins to a specific workspace identifier.629 type: "map<string, allow | none>",
630 630 description:
631Key631 "Unix socket policy for sandboxed networking. Unset by default; add `allow` entries for permitted sockets.",
632 632 },
633`forced_login_method`633 {
634 634 key: "features.network_proxy.allow_local_binding",
635Type / Values635 type: "boolean",
636 636 description:
637`chatgpt | api`637 "Allow broader local/private-network access. Defaults to `false`; exact local IP literal or `localhost` allow rules can still permit specific local targets.",
638 638 },
639Details639 {
640 640 key: "features.network_proxy.enable_socks5",
641Restrict Codex to a specific authentication method.641 type: "boolean",
642 642 description: "Expose SOCKS5 support. Defaults to `true`.",
643Key643 },
644 644 {
645`hide_agent_reasoning`645 key: "features.network_proxy.enable_socks5_udp",
646 646 type: "boolean",
647Type / Values647 description: "Allow UDP over SOCKS5. Defaults to `true`.",
648 648 },
649`boolean`649 {
650 650 key: "features.network_proxy.allow_upstream_proxy",
651Details651 type: "boolean",
652 652 description:
653Suppress reasoning events in both the TUI and `codex exec` output.653 "Allow chaining through an upstream proxy from the environment. Defaults to `true`.",
654 654 },
655Key655 {
656 656 key: "features.network_proxy.dangerously_allow_non_loopback_proxy",
657`history.max_bytes`657 type: "boolean",
658 658 description:
659Type / Values659 "Permit non-loopback listener addresses. Defaults to `false`; enabling it can expose proxy listeners beyond localhost.",
660 660 },
661`number`661 {
662 662 key: "features.network_proxy.dangerously_allow_all_unix_sockets",
663Details663 type: "boolean",
664 664 description:
665If set, caps the history file size in bytes by dropping oldest entries.665 "Permit arbitrary Unix socket destinations instead of allowlist-only access. Defaults to `false`; use only in tightly controlled environments.",
666 666 },
667Key667 {
668 668 key: "features.network_proxy.proxy_url",
669`history.persistence`669 type: "string",
670 670 description:
671Type / Values671 'HTTP listener URL for sandboxed networking. Defaults to `"http://127.0.0.1:3128"`.',
672 672 },
673`save-all | none`673 {
674 674 key: "features.network_proxy.socks_url",
675Details675 type: "string",
676 676 description:
677Control whether Codex saves session transcripts to history.jsonl.677 'SOCKS5 listener URL. Defaults to `"http://127.0.0.1:8081"`.',
678 678 },
679Key679 {
680 680 key: "features.web_search",
681`include_apply_patch_tool`681 type: "boolean",
682 682 description:
683Type / Values683 "Deprecated legacy toggle; prefer the top-level `web_search` setting.",
684 684 },
685`boolean`685 {
686 686 key: "features.web_search_cached",
687Details687 type: "boolean",
688 688 description:
689Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.689 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.',
690 690 },
691Key691 {
692 692 key: "features.web_search_request",
693`instructions`693 type: "boolean",
694 694 description:
695Type / Values695 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.',
696 696 },
697`string`697 {
698 698 key: "features.shell_tool",
699Details699 type: "boolean",
700 700 description:
701Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.701 "Enable the default `shell` tool for running commands (stable; on by default).",
702 702 },
703Key703 {
704 704 key: "features.enable_request_compression",
705`log_dir`705 type: "boolean",
706 706 description:
707Type / Values707 "Compress streaming request bodies with zstd when supported (stable; on by default).",
708 708 },
709`string (path)`709 {
710 710 key: "features.skill_mcp_dependency_install",
711Details711 type: "boolean",
712 712 description:
713Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.713 "Allow prompting and installing missing MCP dependencies for skills (stable; on by default).",
714 714 },
715Key715 {
716 716 key: "features.fast_mode",
717`mcp_oauth_callback_port`717 type: "boolean",
718 718 description:
719Type / Values719 "Enable model-catalog service tier selection in the TUI, including Fast-tier commands when the active model advertises them (stable; on by default).",
720 720 },
721`integer`721 {
722 722 key: "features.prevent_idle_sleep",
723Details723 type: "boolean",
724 724 description:
725Optional 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.725 "Prevent the machine from sleeping while a turn is actively running (experimental; off by default).",
726 726 },
727Key727 {
728 728 key: "suppress_unstable_features_warning",
729`mcp_oauth_credentials_store`729 type: "boolean",
730 730 description:
731Type / Values731 "Suppress the warning that appears when under-development feature flags are enabled.",
732 732 },
733`auto | file | keyring`733 {
734 734 key: "model_providers.<id>",
735Details735 type: "table",
736 736 description:
737Preferred store for MCP OAuth credentials.737 "Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.",
738 738 },
739Key739 {
740 740 key: "model_providers.<id>.name",
741`mcp_servers.<id>.args`741 type: "string",
742 742 description: "Display name for a custom model provider.",
743Type / Values743 },
744 744 {
745`array<string>`745 key: "model_providers.<id>.base_url",
746 746 type: "string",
747Details747 description: "API base URL for the model provider.",
748 748 },
749Arguments passed to the MCP stdio server command.749 {
750 750 key: "model_providers.<id>.env_key",
751Key751 type: "string",
752 752 description: "Environment variable supplying the provider API key.",
753`mcp_servers.<id>.bearer_token_env_var`753 },
754 754 {
755Type / Values755 key: "model_providers.<id>.env_key_instructions",
756 756 type: "string",
757`string`757 description: "Optional setup guidance for the provider API key.",
758 758 },
759Details759 {
760 760 key: "model_providers.<id>.experimental_bearer_token",
761Environment variable sourcing the bearer token for an MCP HTTP server.761 type: "string",
762 762 description:
763Key763 "Direct bearer token for the provider (discouraged; use `env_key`).",
764 764 },
765`mcp_servers.<id>.command`765 {
766 766 key: "model_providers.<id>.requires_openai_auth",
767Type / Values767 type: "boolean",
768 768 description:
769`string`769 "The provider uses OpenAI authentication (defaults to false).",
770 770 },
771Details771 {
772 772 key: "model_providers.<id>.wire_api",
773Launcher command for an MCP stdio server.773 type: "responses",
774 774 description:
775Key775 "Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.",
776 776 },
777`mcp_servers.<id>.cwd`777 {
778 778 key: "model_providers.<id>.query_params",
779Type / Values779 type: "map<string,string>",
780 780 description: "Extra query parameters appended to provider requests.",
781`string`781 },
782 782 {
783Details783 key: "model_providers.<id>.http_headers",
784 784 type: "map<string,string>",
785Working directory for the MCP stdio server process.785 description: "Static HTTP headers added to provider requests.",
786 786 },
787Key787 {
788 788 key: "model_providers.<id>.env_http_headers",
789`mcp_servers.<id>.disabled_tools`789 type: "map<string,string>",
790 790 description:
791Type / Values791 "HTTP headers populated from environment variables when present.",
792 792 },
793`array<string>`793 {
794 794 key: "model_providers.<id>.request_max_retries",
795Details795 type: "number",
796 796 description:
797Deny list applied after `enabled_tools` for the MCP server.797 "Retry count for HTTP requests to the provider (default: 4).",
798 798 },
799Key799 {
800 800 key: "model_providers.<id>.stream_max_retries",
801`mcp_servers.<id>.enabled`801 type: "number",
802 802 description: "Retry count for SSE streaming interruptions (default: 5).",
803Type / Values803 },
804 804 {
805`boolean`805 key: "model_providers.<id>.stream_idle_timeout_ms",
806 806 type: "number",
807Details807 description:
808 808 "Idle timeout for SSE streams in milliseconds (default: 300000).",
809Disable an MCP server without removing its configuration.809 },
810 810 {
811Key811 key: "model_providers.<id>.supports_websockets",
812 812 type: "boolean",
813`mcp_servers.<id>.enabled_tools`813 description:
814 814 "Whether that provider supports the Responses API WebSocket transport.",
815Type / Values815 },
816 816 {
817`array<string>`817 key: "model_providers.<id>.auth",
818 818 type: "table",
819Details819 description:
820 820 "Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.",
821Allow list of tool names exposed by the MCP server.821 },
822 822 {
823Key823 key: "model_providers.<id>.auth.command",
824 824 type: "string",
825`mcp_servers.<id>.env`825 description:
826 826 "Command to run when Codex needs a bearer token. The command must print the token to stdout.",
827Type / Values827 },
828 828 {
829`map<string,string>`829 key: "model_providers.<id>.auth.args",
830 830 type: "array<string>",
831Details831 description: "Arguments passed to the token command.",
832 832 },
833Environment variables forwarded to the MCP stdio server.833 {
834 834 key: "model_providers.<id>.auth.timeout_ms",
835Key835 type: "number",
836 836 description:
837`mcp_servers.<id>.env_http_headers`837 "Maximum token command runtime in milliseconds (default: 5000).",
838 838 },
839Type / Values839 {
840 840 key: "model_providers.<id>.auth.refresh_interval_ms",
841`map<string,string>`841 type: "number",
842 842 description:
843Details843 "How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.",
844 844 },
845HTTP headers populated from environment variables for an MCP HTTP server.845 {
846 846 key: "model_providers.<id>.auth.cwd",
847Key847 type: "string (path)",
848 848 description: "Working directory for the token command.",
849`mcp_servers.<id>.env_vars`849 },
850 850 {
851Type / Values851 key: "model_providers.amazon-bedrock.aws.profile",
852 852 type: "string",
853`array<string>`853 description:
854 854 "AWS profile name used by the built-in `amazon-bedrock` provider.",
855Details855 },
856 856 {
857Additional environment variables to whitelist for an MCP stdio server.857 key: "model_providers.amazon-bedrock.aws.region",
858 858 type: "string",
859Key859 description: "AWS region used by the built-in `amazon-bedrock` provider.",
860 860 },
861`mcp_servers.<id>.http_headers`861 {
862 862 key: "model_reasoning_effort",
863Type / Values863 type: "minimal | low | medium | high | xhigh",
864 864 description:
865`map<string,string>`865 "Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).",
866 866 },
867Details867 {
868 868 key: "plan_mode_reasoning_effort",
869Static HTTP headers included with each MCP HTTP request.869 type: "none | minimal | low | medium | high | xhigh",
870 870 description:
871Key871 "Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.",
872 872 },
873`mcp_servers.<id>.required`873 {
874 874 key: "model_reasoning_summary",
875Type / Values875 type: "auto | concise | detailed | none",
876 876 description:
877`boolean`877 "Select reasoning summary detail or disable summaries entirely.",
878 878 },
879Details879 {
880 880 key: "model_verbosity",
881When true, fail startup/resume if this enabled MCP server cannot initialize.881 type: "low | medium | high",
882 882 description:
883Key883 "Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.",
884 884 },
885`mcp_servers.<id>.startup_timeout_ms`885 {
886 886 key: "model_supports_reasoning_summaries",
887Type / Values887 type: "boolean",
888 888 description: "Force Codex to send or not send reasoning metadata.",
889`number`889 },
890 890 {
891Details891 key: "shell_environment_policy.inherit",
892 892 type: "all | core | none",
893Alias for `startup_timeout_sec` in milliseconds.893 description:
894 894 "Baseline environment inheritance when spawning subprocesses.",
895Key895 },
896 896 {
897`mcp_servers.<id>.startup_timeout_sec`897 key: "shell_environment_policy.ignore_default_excludes",
898 898 type: "boolean",
899Type / Values899 description:
900 900 "Keep variables containing KEY/SECRET/TOKEN before other filters run.",
901`number`901 },
902 902 {
903Details903 key: "shell_environment_policy.exclude",
904 904 type: "array<string>",
905Override the default 10s startup timeout for an MCP server.905 description:
906 906 "Glob patterns for removing environment variables after the defaults.",
907Key907 },
908 908 {
909`mcp_servers.<id>.tool_timeout_sec`909 key: "shell_environment_policy.include_only",
910 910 type: "array<string>",
911Type / Values911 description:
912 912 "Whitelist of patterns; when set only matching variables are kept.",
913`number`913 },
914 914 {
915Details915 key: "shell_environment_policy.set",
916 916 type: "map<string,string>",
917Override the default 60s per-tool timeout for an MCP server.917 description:
918 918 "Explicit environment overrides injected into every subprocess.",
919Key919 },
920 920 {
921`mcp_servers.<id>.url`921 key: "shell_environment_policy.experimental_use_profile",
922 922 type: "boolean",
923Type / Values923 description: "Use the user shell profile when spawning subprocesses.",
924 924 },
925`string`925 {
926 926 key: "project_root_markers",
927Details927 type: "array<string>",
928 928 description:
929Endpoint for an MCP streamable HTTP server.929 "List of project root marker filenames; used when searching parent directories for the project root.",
930 930 },
931Key931 {
932 932 key: "project_doc_max_bytes",
933`model`933 type: "number",
934 934 description:
935Type / Values935 "Maximum bytes read from `AGENTS.md` when building project instructions.",
936 936 },
937`string`937 {
938 938 key: "project_doc_fallback_filenames",
939Details939 type: "array<string>",
940 940 description: "Additional filenames to try when `AGENTS.md` is missing.",
941Model to use (e.g., `gpt-5-codex`).941 },
942 942 {
943Key943 key: "profile",
944 944 type: "string",
945`model_auto_compact_token_limit`945 description:
946 946 "Default profile applied at startup (equivalent to `--profile`).",
947Type / Values947 },
948 948 {
949`number`949 key: "profiles.<name>.*",
950 950 type: "various",
951Details951 description:
952 952 "Profile-scoped overrides for any of the supported configuration keys.",
953Token threshold that triggers automatic history compaction (unset uses model defaults).953 },
954 954 {
955Key955 key: "profiles.<name>.service_tier",
956 956 type: "string",
957`model_context_window`957 description: "Profile-scoped service tier preference for new turns.",
958 958 },
959Type / Values959 {
960 960 key: "profiles.<name>.plan_mode_reasoning_effort",
961`number`961 type: "none | minimal | low | medium | high | xhigh",
962 962 description: "Profile-scoped Plan-mode reasoning override.",
963Details963 },
964 964 {
965Context window tokens available to the active model.965 key: "profiles.<name>.web_search",
966 966 type: "disabled | cached | live",
967Key967 description:
968 968 'Profile-scoped web search mode override (default: `"cached"`).',
969`model_instructions_file`969 },
970 970 {
971Type / Values971 key: "profiles.<name>.personality",
972 972 type: "none | friendly | pragmatic",
973`string (path)`973 description:
974 974 "Profile-scoped communication style override for supported models.",
975Details975 },
976 976 {
977Replacement for built-in instructions instead of `AGENTS.md`.977 key: "profiles.<name>.model_catalog_json",
978 978 type: "string (path)",
979Key979 description:
980 980 "Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).",
981`model_provider`981 },
982 982 {
983Type / Values983 key: "profiles.<name>.model_instructions_file",
984 984 type: "string (path)",
985`string`985 description:
986 986 "Profile-scoped replacement for the built-in instruction file.",
987Details987 },
988 988 {
989Provider id from `model_providers` (default: `openai`).989 key: "profiles.<name>.experimental_use_unified_exec_tool",
990 990 type: "boolean",
991Key991 description:
992 992 "Legacy name for enabling unified exec; prefer `[features].unified_exec`.",
993`model_providers.<id>.base_url`993 },
994 994 {
995Type / Values995 key: "profiles.<name>.oss_provider",
996 996 type: "lmstudio | ollama",
997`string`997 description: "Profile-scoped OSS provider for `--oss` sessions.",
998 998 },
999Details999 {
1000 1000 key: "profiles.<name>.tools_view_image",
1001API base URL for the model provider.1001 type: "boolean",
1002 1002 description: "Enable or disable the `view_image` tool in that profile.",
1003Key1003 },
1004 1004 {
1005`model_providers.<id>.env_http_headers`1005 key: "profiles.<name>.analytics.enabled",
1006 1006 type: "boolean",
1007Type / Values1007 description: "Profile-scoped analytics enablement override.",
1008 1008 },
1009`map<string,string>`1009 {
1010 1010 key: "profiles.<name>.windows.sandbox",
1011Details1011 type: "unelevated | elevated",
1012 1012 description: "Profile-scoped Windows sandbox mode override.",
1013HTTP headers populated from environment variables when present.1013 },
1014 1014 {
1015Key1015 key: "history.persistence",
1016 1016 type: "save-all | none",
1017`model_providers.<id>.env_key`1017 description:
1018 1018 "Control whether Codex saves session transcripts to history.jsonl.",
1019Type / Values1019 },
1020 1020 {
1021`string`1021 key: "tool_output_token_limit",
1022 1022 type: "number",
1023Details1023 description:
1024 1024 "Token budget for storing individual tool/function outputs in history.",
1025Environment variable supplying the provider API key.1025 },
1026 1026 {
1027Key1027 key: "background_terminal_max_timeout",
1028 1028 type: "number",
1029`model_providers.<id>.env_key_instructions`1029 description:
1030 1030 "Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.",
1031Type / Values1031 },
1032 1032 {
1033`string`1033 key: "history.max_bytes",
1034 1034 type: "number",
1035Details1035 description:
1036 1036 "If set, caps the history file size in bytes by dropping oldest entries.",
1037Optional setup guidance for the provider API key.1037 },
1038 1038 {
1039Key1039 key: "file_opener",
1040 1040 type: "vscode | vscode-insiders | windsurf | cursor | none",
1041`model_providers.<id>.experimental_bearer_token`1041 description:
1042 1042 "URI scheme used to open citations from Codex output (default: `vscode`).",
1043Type / Values1043 },
1044 1044 {
1045`string`1045 key: "otel.environment",
1046 1046 type: "string",
1047Details1047 description:
1048 1048 "Environment tag applied to emitted OpenTelemetry events (default: `dev`).",
1049Direct bearer token for the provider (discouraged; use `env_key`).1049 },
1050 1050 {
1051Key1051 key: "otel.exporter",
1052 1052 type: "none | otlp-http | otlp-grpc",
1053`model_providers.<id>.http_headers`1053 description:
1054 1054 "Select the OpenTelemetry exporter and provide any endpoint metadata.",
1055Type / Values1055 },
1056 1056 {
1057`map<string,string>`1057 key: "otel.trace_exporter",
1058 1058 type: "none | otlp-http | otlp-grpc",
1059Details1059 description:
1060 1060 "Select the OpenTelemetry trace exporter and provide any endpoint metadata.",
1061Static HTTP headers added to provider requests.1061 },
1062 1062 {
1063Key1063 key: "otel.metrics_exporter",
1064 1064 type: "none | statsig | otlp-http | otlp-grpc",
1065`model_providers.<id>.name`1065 description:
1066 1066 "Select the OpenTelemetry metrics exporter (defaults to `statsig`).",
1067Type / Values1067 },
1068 1068 {
1069`string`1069 key: "otel.log_user_prompt",
1070 1070 type: "boolean",
1071Details1071 description:
1072 1072 "Opt in to exporting raw user prompts with OpenTelemetry logs.",
1073Display name for a custom model provider.1073 },
1074 1074 {
1075Key1075 key: "otel.exporter.<id>.endpoint",
1076 1076 type: "string",
1077`model_providers.<id>.query_params`1077 description: "Exporter endpoint for OTEL logs.",
1078 1078 },
1079Type / Values1079 {
1080 1080 key: "otel.exporter.<id>.protocol",
1081`map<string,string>`1081 type: "binary | json",
1082 1082 description: "Protocol used by the OTLP/HTTP exporter.",
1083Details1083 },
1084 1084 {
1085Extra query parameters appended to provider requests.1085 key: "otel.exporter.<id>.headers",
1086 1086 type: "map<string,string>",
1087Key1087 description: "Static headers included with OTEL exporter requests.",
1088 1088 },
1089`model_providers.<id>.request_max_retries`1089 {
1090 1090 key: "otel.trace_exporter.<id>.endpoint",
1091Type / Values1091 type: "string",
1092 1092 description: "Trace exporter endpoint for OTEL logs.",
1093`number`1093 },
1094 1094 {
1095Details1095 key: "otel.trace_exporter.<id>.protocol",
1096 1096 type: "binary | json",
1097Retry count for HTTP requests to the provider (default: 4).1097 description: "Protocol used by the OTLP/HTTP trace exporter.",
1098 1098 },
1099Key1099 {
1100 1100 key: "otel.trace_exporter.<id>.headers",
1101`model_providers.<id>.requires_openai_auth`1101 type: "map<string,string>",
1102 1102 description: "Static headers included with OTEL trace exporter requests.",
1103Type / Values1103 },
1104 1104 {
1105`boolean`1105 key: "otel.exporter.<id>.tls.ca-certificate",
1106 1106 type: "string",
1107Details1107 description: "CA certificate path for OTEL exporter TLS.",
1108 1108 },
1109The provider uses OpenAI authentication (defaults to false).1109 {
1110 1110 key: "otel.exporter.<id>.tls.client-certificate",
1111Key1111 type: "string",
1112 1112 description: "Client certificate path for OTEL exporter TLS.",
1113`model_providers.<id>.stream_idle_timeout_ms`1113 },
1114 1114 {
1115Type / Values1115 key: "otel.exporter.<id>.tls.client-private-key",
1116 1116 type: "string",
1117`number`1117 description: "Client private key path for OTEL exporter TLS.",
1118 1118 },
1119Details1119 {
1120 1120 key: "otel.trace_exporter.<id>.tls.ca-certificate",
1121Idle timeout for SSE streams in milliseconds (default: 300000).1121 type: "string",
1122 1122 description: "CA certificate path for OTEL trace exporter TLS.",
1123Key1123 },
1124 1124 {
1125`model_providers.<id>.stream_max_retries`1125 key: "otel.trace_exporter.<id>.tls.client-certificate",
1126 1126 type: "string",
1127Type / Values1127 description: "Client certificate path for OTEL trace exporter TLS.",
1128 1128 },
1129`number`1129 {
1130 1130 key: "otel.trace_exporter.<id>.tls.client-private-key",
1131Details1131 type: "string",
1132 1132 description: "Client private key path for OTEL trace exporter TLS.",
1133Retry count for SSE streaming interruptions (default: 5).1133 },
1134 1134 {
1135Key1135 key: "tui",
1136 1136 type: "table",
1137`model_providers.<id>.wire_api`1137 description:
1138 1138 "TUI-specific options such as enabling inline desktop notifications.",
1139Type / Values1139 },
1140 1140 {
1141`chat | responses`1141 key: "tui.notifications",
1142 1142 type: "boolean | array<string>",
1143Details1143 description:
1144 1144 "Enable TUI notifications; optionally restrict to specific event types.",
1145Protocol used by the provider (defaults to `chat` if omitted).1145 },
1146 1146 {
1147Key1147 key: "tui.notification_method",
1148 1148 type: "auto | osc9 | bel",
1149`model_reasoning_effort`1149 description:
1150 1150 "Notification method for terminal notifications (default: auto).",
1151Type / Values1151 },
1152 1152 {
1153`minimal | low | medium | high | xhigh`1153 key: "tui.notification_condition",
1154 1154 type: "unfocused | always",
1155Details1155 description:
1156 1156 "Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.",
1157Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).1157 },
1158 1158 {
1159Key1159 key: "tui.animations",
1160 1160 type: "boolean",
1161`model_reasoning_summary`1161 description:
1162 1162 "Enable terminal animations (welcome screen, shimmer, spinner) (default: true).",
1163Type / Values1163 },
1164 1164 {
1165`auto | concise | detailed | none`1165 key: "tui.alternate_screen",
1166 1166 type: "auto | always | never",
1167Details1167 description:
1168 1168 "Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).",
1169Select reasoning summary detail or disable summaries entirely.1169 },
1170 1170 {
1171Key1171 key: "tui.vim_mode_default",
1172 1172 type: "boolean",
1173`model_supports_reasoning_summaries`1173 description:
1174 1174 "Start the composer in Vim normal mode instead of insert mode (default: false). You can still toggle it per session with `/vim`.",
1175Type / Values1175 },
1176 1176 {
1177`boolean`1177 key: "tui.raw_output_mode",
1178 1178 type: "boolean",
1179Details1179 description:
1180 1180 "Start the TUI in raw scrollback mode for copy-friendly terminal selection (default: false). You can toggle it with `/raw` or the default `alt-r` key binding.",
1181Force Codex to send or not send reasoning metadata.1181 },
1182 1182 {
1183Key1183 key: "tui.show_tooltips",
1184 1184 type: "boolean",
1185`model_verbosity`1185 description:
1186 1186 "Show onboarding tooltips in the TUI welcome screen (default: true).",
1187Type / Values1187 },
1188 1188 {
1189`low | medium | high`1189 key: "tui.status_line",
1190 1190 type: "array<string> | null",
1191Details1191 description:
1192 1192 "Ordered list of TUI footer status-line item identifiers. `null` disables the status line.",
1193Control GPT-5 Responses API verbosity (defaults to `medium`).1193 },
1194 1194 {
1195Key1195 key: "tui.terminal_title",
1196 1196 type: "array<string> | null",
1197`notice.hide_full_access_warning`1197 description:
1198 1198 'Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.',
1199Type / Values1199 },
1200 1200 {
1201`boolean`1201 key: "tui.theme",
1202 1202 type: "string",
1203Details1203 description:
1204 1204 "Syntax-highlighting theme override (kebab-case theme name).",
1205Track acknowledgement of the full access warning prompt.1205 },
1206 1206 {
1207Key1207 key: "tui.keymap.<context>.<action>",
1208 1208 type: "string | array<string>",
1209`notice.hide_gpt-5.1-codex-max_migration_prompt`1209 description:
1210 1210 "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`.",
1211Type / Values1211 },
1212 1212 {
1213`boolean`1213 key: "tui.keymap.<context>.<action> = []",
1214 1214 type: "empty array",
1215Details1215 description:
1216 1216 "Unbind the action in that keymap context. Key names use normalized strings such as `ctrl-a`, `shift-enter`, `page-down`, or `minus`.",
1217Track acknowledgement of the gpt-5.1-codex-max migration prompt.1217 },
1218 1218 {
1219Key1219 key: "plugins.<plugin>.mcp_servers.<server>.enabled",
1220 1220 type: "boolean",
1221`notice.hide_gpt5_1_migration_prompt`1221 description:
1222 1222 "Enable or disable an MCP server bundled by an installed plugin without changing the plugin manifest.",
1223Type / Values1223 },
1224 1224 {
1225`boolean`1225 key: "plugins.<plugin>.mcp_servers.<server>.default_tools_approval_mode",
1226 1226 type: "auto | prompt | approve",
1227Details1227 description:
1228 1228 "Default approval behavior for tools on a plugin-provided MCP server.",
1229Track acknowledgement of the GPT-5.1 migration prompt.1229 },
1230 1230 {
1231Key1231 key: "plugins.<plugin>.mcp_servers.<server>.enabled_tools",
1232 1232 type: "array<string>",
1233`notice.hide_rate_limit_model_nudge`1233 description:
1234 1234 "Allow list of tools exposed from a plugin-provided MCP server.",
1235Type / Values1235 },
1236 1236 {
1237`boolean`1237 key: "plugins.<plugin>.mcp_servers.<server>.disabled_tools",
1238 1238 type: "array<string>",
1239Details1239 description:
1240 1240 "Deny list applied after `enabled_tools` for a plugin-provided MCP server.",
1241Track opt-out of the rate limit model switch reminder.1241 },
1242 1242 {
1243Key1243 key: "plugins.<plugin>.mcp_servers.<server>.tools.<tool>.approval_mode",
1244 1244 type: "auto | prompt | approve",
1245`notice.hide_world_writable_warning`1245 description:
1246 1246 "Per-tool approval behavior override for a plugin-provided MCP tool.",
1247Type / Values1247 },
1248 1248 {
1249`boolean`1249 key: "tui.model_availability_nux.<model>",
1250 1250 type: "integer",
1251Details1251 description: "Internal startup-tooltip state keyed by model slug.",
1252 1252 },
1253Track acknowledgement of the Windows world-writable directories warning.1253 {
1254 1254 key: "hide_agent_reasoning",
1255Key1255 type: "boolean",
1256 1256 description:
1257`notice.model_migrations`1257 "Suppress reasoning events in both the TUI and `codex exec` output.",
1258 1258 },
1259Type / Values1259 {
1260 1260 key: "show_raw_agent_reasoning",
1261`map<string,string>`1261 type: "boolean",
1262 1262 description:
1263Details1263 "Surface raw reasoning content when the active model emits it.",
1264 1264 },
1265Track acknowledged model migrations as old->new mappings.1265 {
1266 1266 key: "disable_paste_burst",
1267Key1267 type: "boolean",
1268 1268 description: "Disable burst-paste detection in the TUI.",
1269`notify`1269 },
1270 1270 {
1271Type / Values1271 key: "windows_wsl_setup_acknowledged",
1272 1272 type: "boolean",
1273`array<string>`1273 description: "Track Windows onboarding acknowledgement (Windows only).",
1274 1274 },
1275Details1275 {
1276 1276 key: "chatgpt_base_url",
1277Command invoked for notifications; receives a JSON payload from Codex.1277 type: "string",
1278 1278 description: "Override the base URL used during the ChatGPT login flow.",
1279Key1279 },
1280 1280 {
1281`oss_provider`1281 key: "cli_auth_credentials_store",
1282 1282 type: "file | keyring | auto",
1283Type / Values1283 description:
1284 1284 "Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).",
1285`lmstudio | ollama`1285 },
1286 1286 {
1287Details1287 key: "mcp_oauth_credentials_store",
1288 1288 type: "auto | file | keyring",
1289Default local provider used when running with `--oss` (defaults to prompting if unset).1289 description: "Preferred store for MCP OAuth credentials.",
1290 1290 },
1291Key1291 {
1292 1292 key: "mcp_oauth_callback_port",
1293`otel.environment`1293 type: "integer",
1294 1294 description:
1295Type / Values1295 "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.",
1296 1296 },
1297`string`1297 {
1298 1298 key: "mcp_oauth_callback_url",
1299Details1299 type: "string",
1300 1300 description:
1301Environment tag applied to emitted OpenTelemetry events (default: `dev`).1301 "Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.",
1302 1302 },
1303Key1303 {
1304 1304 key: "experimental_use_unified_exec_tool",
1305`otel.exporter`1305 type: "boolean",
1306 1306 description:
1307Type / Values1307 "Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.",
1308 1308 },
1309`none | otlp-http | otlp-grpc`1309 {
1310 1310 key: "tools.web_search",
1311Details1311 type: 'boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }',
1312 1312 description:
1313Select the OpenTelemetry exporter and provide any endpoint metadata.1313 "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.",
1314 1314 },
1315Key1315 {
1316 1316 key: "tools.view_image",
1317`otel.exporter.<id>.endpoint`1317 type: "boolean",
1318 1318 description: "Enable the local-image attachment tool `view_image`.",
1319Type / Values1319 },
1320 1320 {
1321`string`1321 key: "web_search",
1322 1322 type: "disabled | cached | live",
1323Details1323 description:
1324 1324 '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.',
1325Exporter endpoint for OTEL logs.1325 },
1326 1326 {
1327Key1327 key: "default_permissions",
1328 1328 type: "string",
1329`otel.exporter.<id>.headers`1329 description:
1330 1330 "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.",
1331Type / Values1331 },
1332 1332 {
1333`map<string,string>`1333 key: "permissions.<name>.filesystem",
1334 1334 type: "table",
1335Details1335 description:
1336 1336 "Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.",
1337Static headers included with OTEL exporter requests.1337 },
1338 1338 {
1339Key1339 key: "permissions.<name>.filesystem.glob_scan_max_depth",
1340 1340 type: "number",
1341`otel.exporter.<id>.protocol`1341 description:
1342 1342 "Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.",
1343Type / Values1343 },
1344 1344 {
1345`binary | json`1345 key: "permissions.<name>.filesystem.<path-or-glob>",
1346 1346 type: '"read" | "write" | "none" | table',
1347Details1347 description:
1348 1348 '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.',
1349Protocol used by the OTLP/HTTP exporter.1349 },
1350 1350 {
1351Key1351 key: 'permissions.<name>.filesystem.":project_roots".<subpath-or-glob>',
1352 1352 type: '"read" | "write" | "none"',
1353`otel.exporter.<id>.tls.ca-certificate`1353 description:
1354 1354 'Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.',
1355Type / Values1355 },
1356 1356 {
1357`string`1357 key: "permissions.<name>.network.enabled",
1358 1358 type: "boolean",
1359Details1359 description: "Enable network access for this named permissions profile.",
1360 1360 },
1361CA certificate path for OTEL exporter TLS.1361 {
1362 1362 key: "permissions.<name>.network.proxy_url",
1363Key1363 type: "string",
1364 1364 description:
1365`otel.exporter.<id>.tls.client-certificate`1365 "HTTP listener URL used when this permissions profile enables sandboxed networking.",
1366 1366 },
1367Type / Values1367 {
1368 1368 key: "permissions.<name>.network.enable_socks5",
1369`string`1369 type: "boolean",
1370 1370 description:
1371Details1371 "Expose SOCKS5 support when this permissions profile enables sandboxed networking.",
1372 1372 },
1373Client certificate path for OTEL exporter TLS.1373 {
1374 1374 key: "permissions.<name>.network.socks_url",
1375Key1375 type: "string",
1376 1376 description: "SOCKS5 proxy endpoint used by this permissions profile.",
1377`otel.exporter.<id>.tls.client-private-key`1377 },
1378 1378 {
1379Type / Values1379 key: "permissions.<name>.network.enable_socks5_udp",
1380 1380 type: "boolean",
1381`string`1381 description: "Allow UDP over the SOCKS5 listener when enabled.",
1382 1382 },
1383Details1383 {
1384 1384 key: "permissions.<name>.network.allow_upstream_proxy",
1385Client private key path for OTEL exporter TLS.1385 type: "boolean",
1386 1386 description:
1387Key1387 "Allow sandboxed networking to chain through another upstream proxy.",
1388 1388 },
1389`otel.log_user_prompt`1389 {
1390 1390 key: "permissions.<name>.network.dangerously_allow_non_loopback_proxy",
1391Type / Values1391 type: "boolean",
1392 1392 description:
1393`boolean`1393 "Permit non-loopback bind addresses for sandboxed networking listeners. Enabling it can expose listeners beyond localhost.",
1394 1394 },
1395Details1395 {
1396 1396 key: "permissions.<name>.network.dangerously_allow_all_unix_sockets",
1397Opt in to exporting raw user prompts with OpenTelemetry logs.1397 type: "boolean",
1398 1398 description:
1399Key1399 "Allow arbitrary Unix socket destinations instead of the default restricted set. Use only in tightly controlled environments.",
1400 1400 },
1401`otel.trace_exporter`1401 {
1402 1402 key: "permissions.<name>.network.domains",
1403Type / Values1403 type: "map<string, allow | deny>",
1404 1404 description:
1405`none | otlp-http | otlp-grpc`1405 "Domain rules for sandboxed networking. Supports exact hosts, `*.example.com` for subdomains only, `**.example.com` for apex plus subdomains, and global `*` allow rules. `deny` wins on conflicts.",
1406 1406 },
1407Details1407 {
1408 1408 key: "permissions.<name>.network.unix_sockets",
1409Select the OpenTelemetry trace exporter and provide any endpoint metadata.1409 type: "map<string, allow | none>",
1410 1410 description:
1411Key1411 "Unix socket rules for sandboxed networking. Use socket paths as keys, with `allow` or `none` values.",
1412 1412 },
1413`otel.trace_exporter.<id>.endpoint`1413 {
1414 1414 key: "permissions.<name>.network.allow_local_binding",
1415Type / Values1415 type: "boolean",
1416 1416 description:
1417`string`1417 "Permit broader local/private-network access through sandboxed networking. Exact local IP literal or `localhost` allow rules can still permit specific local targets when this stays `false`.",
1418 1418 },
1419Details1419 {
1420 1420 key: "projects.<path>.trust_level",
1421Trace exporter endpoint for OTEL logs.1421 type: "string",
1422 1422 description:
1423Key1423 '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.',
1424 1424 },
1425`otel.trace_exporter.<id>.headers`1425 {
1426 1426 key: "notice.hide_full_access_warning",
1427Type / Values1427 type: "boolean",
1428 1428 description: "Track acknowledgement of the full access warning prompt.",
1429`map<string,string>`1429 },
1430 1430 {
1431Details1431 key: "notice.hide_world_writable_warning",
1432 1432 type: "boolean",
1433Static headers included with OTEL trace exporter requests.1433 description:
1434 1434 "Track acknowledgement of the Windows world-writable directories warning.",
1435Key1435 },
1436 1436 {
1437`otel.trace_exporter.<id>.protocol`1437 key: "notice.hide_rate_limit_model_nudge",
1438 1438 type: "boolean",
1439Type / Values1439 description: "Track opt-out of the rate limit model switch reminder.",
1440 1440 },
1441`binary | json`1441 {
1442 1442 key: "notice.hide_gpt5_1_migration_prompt",
1443Details1443 type: "boolean",
1444 1444 description: "Track acknowledgement of the GPT-5.1 migration prompt.",
1445Protocol used by the OTLP/HTTP trace exporter.1445 },
1446 1446 {
1447Key1447 key: "notice.hide_gpt-5.1-codex-max_migration_prompt",
1448 1448 type: "boolean",
1449`otel.trace_exporter.<id>.tls.ca-certificate`1449 description:
1450 1450 "Track acknowledgement of the gpt-5.1-codex-max migration prompt.",
1451Type / Values1451 },
1452 1452 {
1453`string`1453 key: "notice.model_migrations",
1454 1454 type: "map<string,string>",
1455Details1455 description: "Track acknowledged model migrations as old->new mappings.",
1456 1456 },
1457CA certificate path for OTEL trace exporter TLS.1457 {
1458 1458 key: "forced_login_method",
1459Key1459 type: "chatgpt | api",
1460 1460 description: "Restrict Codex to a specific authentication method.",
1461`otel.trace_exporter.<id>.tls.client-certificate`1461 },
1462 1462 {
1463Type / Values1463 key: "forced_chatgpt_workspace_id",
1464 1464 type: "string (uuid)",
1465`string`1465 description: "Limit ChatGPT logins to a specific workspace identifier.",
1466 1466 },
1467Details1467 ]}
1468 1468 client:load
1469Client certificate path for OTEL trace exporter TLS.1469/>
1470
1471Key
1472
1473`otel.trace_exporter.<id>.tls.client-private-key`
1474
1475Type / Values
1476
1477`string`
1478
1479Details
1480
1481Client private key path for OTEL trace exporter TLS.
1482
1483Key
1484
1485`personality`
1486
1487Type / Values
1488
1489`none | friendly | pragmatic`
1490
1491Details
1492
1493Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.
1494
1495Key
1496
1497`profile`
1498
1499Type / Values
1500
1501`string`
1502
1503Details
1504
1505Default profile applied at startup (equivalent to `--profile`).
1506
1507Key
1508
1509`profiles.<name>.*`
1510
1511Type / Values
1512
1513`various`
1514
1515Details
1516
1517Profile-scoped overrides for any of the supported configuration keys.
1518
1519Key
1520
1521`profiles.<name>.experimental_use_freeform_apply_patch`
1522
1523Type / Values
1524
1525`boolean`
1526
1527Details
1528
1529Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.
1530
1531Key
1532
1533`profiles.<name>.experimental_use_unified_exec_tool`
1534
1535Type / Values
1536
1537`boolean`
1538
1539Details
1540
1541Legacy name for enabling unified exec; prefer `[features].unified_exec`.
1542
1543Key
1544
1545`profiles.<name>.include_apply_patch_tool`
1546
1547Type / Values
1548
1549`boolean`
1550
1551Details
1552
1553Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.
1554
1555Key
1556
1557`profiles.<name>.oss_provider`
1558
1559Type / Values
1560
1561`lmstudio | ollama`
1562
1563Details
1564
1565Profile-scoped OSS provider for `--oss` sessions.
1566
1567Key
1568
1569`profiles.<name>.personality`
1570
1571Type / Values
1572
1573`none | friendly | pragmatic`
1574
1575Details
1576
1577Profile-scoped communication style override for supported models.
1578
1579Key
1580
1581`profiles.<name>.web_search`
1582
1583Type / Values
1584
1585`disabled | cached | live`
1586
1587Details
1588
1589Profile-scoped web search mode override (default: `"cached"`).
1590
1591Key
1592
1593`project_doc_fallback_filenames`
1594
1595Type / Values
1596
1597`array<string>`
1598
1599Details
1600
1601Additional filenames to try when `AGENTS.md` is missing.
1602
1603Key
1604
1605`project_doc_max_bytes`
1606
1607Type / Values
1608
1609`number`
1610
1611Details
1612
1613Maximum bytes read from `AGENTS.md` when building project instructions.
1614
1615Key
1616
1617`project_root_markers`
1618
1619Type / Values
1620
1621`array<string>`
1622
1623Details
1624
1625List of project root marker filenames; used when searching parent directories for the project root.
1626
1627Key
1628
1629`projects.<path>.trust_level`
1630
1631Type / Values
1632
1633`string`
1634
1635Details
1636
1637Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers.
1638
1639Key
1640
1641`review_model`
1642
1643Type / Values
1644
1645`string`
1646
1647Details
1648
1649Optional model override used by `/review` (defaults to the current session model).
1650
1651Key
1652
1653`sandbox_mode`
1654
1655Type / Values
1656
1657`read-only | workspace-write | danger-full-access`
1658
1659Details
1660
1661Sandbox policy for filesystem and network access during command execution.
1662
1663Key
1664
1665`sandbox_workspace_write.exclude_slash_tmp`
1666
1667Type / Values
1668
1669`boolean`
1670
1671Details
1672
1673Exclude `/tmp` from writable roots in workspace-write mode.
1674
1675Key
1676
1677`sandbox_workspace_write.exclude_tmpdir_env_var`
1678
1679Type / Values
1680
1681`boolean`
1682
1683Details
1684
1685Exclude `$TMPDIR` from writable roots in workspace-write mode.
1686
1687Key
1688
1689`sandbox_workspace_write.network_access`
1690
1691Type / Values
1692
1693`boolean`
1694
1695Details
1696
1697Allow outbound network access inside the workspace-write sandbox.
1698
1699Key
1700
1701`sandbox_workspace_write.writable_roots`
1702
1703Type / Values
1704
1705`array<string>`
1706
1707Details
1708
1709Additional writable roots when `sandbox_mode = "workspace-write"`.
1710
1711Key
1712
1713`shell_environment_policy.exclude`
1714
1715Type / Values
1716
1717`array<string>`
1718
1719Details
1720
1721Glob patterns for removing environment variables after the defaults.
1722
1723Key
1724
1725`shell_environment_policy.experimental_use_profile`
1726
1727Type / Values
1728
1729`boolean`
1730
1731Details
1732
1733Use the user shell profile when spawning subprocesses.
1734
1735Key
1736
1737`shell_environment_policy.ignore_default_excludes`
1738
1739Type / Values
1740
1741`boolean`
1742
1743Details
1744
1745Keep variables containing KEY/SECRET/TOKEN before other filters run.
1746
1747Key
1748
1749`shell_environment_policy.include_only`
1750
1751Type / Values
1752
1753`array<string>`
1754
1755Details
1756
1757Whitelist of patterns; when set only matching variables are kept.
1758
1759Key
1760
1761`shell_environment_policy.inherit`
1762
1763Type / Values
1764
1765`all | core | none`
1766
1767Details
1768
1769Baseline environment inheritance when spawning subprocesses.
1770
1771Key
1772
1773`shell_environment_policy.set`
1774
1775Type / Values
1776
1777`map<string,string>`
1778
1779Details
1780
1781Explicit environment overrides injected into every subprocess.
1782
1783Key
1784
1785`show_raw_agent_reasoning`
1786
1787Type / Values
1788
1789`boolean`
1790
1791Details
1792
1793Surface raw reasoning content when the active model emits it.
1794
1795Key
1796
1797`skills.config`
1798
1799Type / Values
1800
1801`array<object>`
1802
1803Details
1804
1805Per-skill enablement overrides stored in config.toml.
1806
1807Key
1808
1809`skills.config.<index>.enabled`
1810
1811Type / Values
1812
1813`boolean`
1814
1815Details
1816
1817Enable or disable the referenced skill.
1818
1819Key
1820
1821`skills.config.<index>.path`
1822
1823Type / Values
1824
1825`string (path)`
1826
1827Details
1828
1829Path to a skill folder containing `SKILL.md`.
1830
1831Key
1832
1833`suppress_unstable_features_warning`
1834
1835Type / Values
1836
1837`boolean`
1838
1839Details
1840
1841Suppress the warning that appears when under-development feature flags are enabled.
1842
1843Key
1844
1845`tool_output_token_limit`
1846
1847Type / Values
1848
1849`number`
1850
1851Details
1852
1853Token budget for storing individual tool/function outputs in history.
1854
1855Key
1856
1857`tools.web_search`
1858
1859Type / Values
1860
1861`boolean`
1862
1863Details
1864
1865Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.
1866
1867Key
1868
1869`tui`
1870
1871Type / Values
1872
1873`table`
1874
1875Details
1876
1877TUI-specific options such as enabling inline desktop notifications.
1878
1879Key
1880
1881`tui.alternate_screen`
1882
1883Type / Values
1884
1885`auto | always | never`
1886
1887Details
1888
1889Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).
1890
1891Key
1892
1893`tui.animations`
1894
1895Type / Values
1896
1897`boolean`
1898
1899Details
1900
1901Enable terminal animations (welcome screen, shimmer, spinner) (default: true).
1902
1903Key
1904
1905`tui.notification_method`
1906
1907Type / Values
1908
1909`auto | osc9 | bel`
1910
1911Details
1912
1913Notification method for unfocused terminal notifications (default: auto).
1914
1915Key
1916
1917`tui.notifications`
1918
1919Type / Values
1920
1921`boolean | array<string>`
1922
1923Details
1924
1925Enable TUI notifications; optionally restrict to specific event types.
1926
1927Key
1928
1929`tui.show_tooltips`
1930
1931Type / Values
1932
1933`boolean`
1934
1935Details
1936
1937Show onboarding tooltips in the TUI welcome screen (default: true).
1938
1939Key
1940
1941`tui.status_line`
1942
1943Type / Values
1944
1945`array<string> | null`
1946
1947Details
1948
1949Ordered list of TUI footer status-line item identifiers. `null` disables the status line.
1950
1951Key
1952
1953`web_search`
1954
1955Type / Values
1956
1957`disabled | cached | live`
1958
1959Details
1960
1961Web 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.
1962
1963Key
1964
1965`windows_wsl_setup_acknowledged`
1966
1967Type / Values
1968
1969`boolean`
1970
1971Details
1972
1973Track Windows onboarding acknowledgement (Windows only).
1974
1975Expand to view all
1976 1470
1977You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).1471You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
1978 1472
1986 1480
1987## `requirements.toml`1481## `requirements.toml`
1988 1482
1989`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can’t override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/security#admin-enforced-requirements-requirementstoml).1483`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can't override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/enterprise/managed-configuration#admin-enforced-requirements-requirementstoml).
1990 1484
1991For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched1485For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
1992requirements. See the security page for precedence details.1486requirements. See the security page for precedence details.
1993 1487
1994| Key | Type / Values | Details |1488Use `[features]` in `requirements.toml` to pin feature flags by the same
1995| --- | --- | --- |1489canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
1996| `allowed_approval_policies` | `array<string>` | Allowed values for `approval\_policy`. |1490
1997| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |1491<ConfigTable
1998| `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`. |1492 options={[
1999| `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. |1493 {
2000| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |1494 key: "allowed_approval_policies",
2001| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |1495 type: "array<string>",
2002| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |1496 description:
2003| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |1497 "Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).",
2004| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |1498 },
2005| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |1499 {
2006| `rules.prefix_rules[].justification` | `string` | Optional non-empty rationale surfaced in approval prompts or rejection messages. |1500 key: "allowed_approvals_reviewers",
2007| `rules.prefix_rules[].pattern` | `array<table>` | Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`. |1501 type: "array<string>",
2008| `rules.prefix_rules[].pattern[].any_of` | `array<string>` | A list of allowed alternative tokens at this position. |1502 description:
2009| `rules.prefix_rules[].pattern[].token` | `string` | A single literal token at this position. |1503 "Allowed values for `approvals_reviewer`, such as `user` and `auto_review`.",
2010 1504 },
2011Key1505 {
2012 1506 key: "guardian_policy_config",
2013`allowed_approval_policies`1507 type: "string",
2014 1508 description:
2015Type / Values1509 "Managed Markdown policy instructions for automatic review. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",
2016 1510 },
2017`array<string>`1511 {
2018 1512 key: "allowed_sandbox_modes",
2019Details1513 type: "array<string>",
2020 1514 description: "Allowed values for `sandbox_mode`.",
2021Allowed values for `approval\_policy`.1515 },
2022 1516 {
2023Key1517 key: "remote_sandbox_config",
2024 1518 type: "array<table>",
2025`allowed_sandbox_modes`1519 description:
2026 1520 "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.",
2027Type / Values1521 },
2028 1522 {
2029`array<string>`1523 key: "remote_sandbox_config[].hostname_patterns",
2030 1524 type: "array<string>",
2031Details1525 description:
2032 1526 "Case-insensitive host name patterns. Supports `*` for any sequence of characters and `?` for one character.",
2033Allowed values for `sandbox_mode`.1527 },
2034 1528 {
2035Key1529 key: "remote_sandbox_config[].allowed_sandbox_modes",
2036 1530 type: "array<string>",
2037`allowed_web_search_modes`1531 description:
2038 1532 "Allowed sandbox modes to apply when this host-specific entry matches.",
2039Type / Values1533 },
2040 1534 {
2041`array<string>`1535 key: "allowed_web_search_modes",
2042 1536 type: "array<string>",
2043Details1537 description:
2044 1538 "Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.",
2045Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.1539 },
2046 1540 {
2047Key1541 key: "features",
2048 1542 type: "table",
2049`mcp_servers`1543 description:
2050 1544 "Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.",
2051Type / Values1545 },
2052 1546 {
2053`table`1547 key: "features.<name>",
2054 1548 type: "boolean",
2055Details1549 description:
2056 1550 "Require a specific canonical feature key to stay enabled or disabled.",
2057Allowlist 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.1551 },
2058 1552 {
2059Key1553 key: "features.in_app_browser",
2060 1554 type: "boolean",
2061`mcp_servers.<id>.identity`1555 description:
2062 1556 "Set to `false` in `requirements.toml` to disable the in-app browser pane.",
2063Type / Values1557 },
2064 1558 {
2065`table`1559 key: "features.browser_use",
2066 1560 type: "boolean",
2067Details1561 description:
2068 1562 "Set to `false` in `requirements.toml` to disable Browser Use and Browser Agent availability.",
2069Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).1563 },
2070 1564 {
2071Key1565 key: "features.computer_use",
2072 1566 type: "boolean",
2073`mcp_servers.<id>.identity.command`1567 description:
2074 1568 "Set to `false` in `requirements.toml` to disable Computer Use availability and related install or enablement flows.",
2075Type / Values1569 },
2076 1570 {
2077`string`1571 key: "experimental_network",
2078 1572 type: "table",
2079Details1573 description:
2080 1574 "Network access requirements enforced from `requirements.toml`. These constraints are separate from `features.network_proxy` and can configure sandboxed networking without the user feature flag.",
2081Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.1575 },
2082 1576 {
2083Key1577 key: "experimental_network.enabled",
2084 1578 type: "boolean",
2085`mcp_servers.<id>.identity.url`1579 description:
2086 1580 "Enable sandboxed networking requirements. This does not grant network access when the active sandbox keeps command networking off.",
2087Type / Values1581 },
2088 1582 {
2089`string`1583 key: "experimental_network.http_port",
2090 1584 type: "integer",
2091Details1585 description:
2092 1586 "Loopback HTTP listener port to use for `[experimental_network]` requirements.",
2093Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.1587 },
2094 1588 {
2095Key1589 key: "experimental_network.socks_port",
2096 1590 type: "integer",
2097`rules`1591 description:
2098 1592 "Loopback SOCKS5 listener port to use for `[experimental_network]` requirements.",
2099Type / Values1593 },
2100 1594 {
2101`table`1595 key: "experimental_network.allow_upstream_proxy",
2102 1596 type: "boolean",
2103Details1597 description:
2104 1598 "Allow sandboxed networking to chain through an upstream proxy from the environment.",
2105Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive.1599 },
2106 1600 {
2107Key1601 key: "experimental_network.dangerously_allow_non_loopback_proxy",
2108 1602 type: "boolean",
2109`rules.prefix_rules`1603 description:
2110 1604 "Permit non-loopback listener addresses for `[experimental_network]` requirements. Enabling it can expose listeners beyond localhost.",
2111Type / Values1605 },
2112 1606 {
2113`array<table>`1607 key: "experimental_network.dangerously_allow_all_unix_sockets",
2114 1608 type: "boolean",
2115Details1609 description:
2116 1610 "Permit arbitrary Unix socket destinations instead of allowlist-only access. Use only in tightly controlled environments.",
2117List of enforced prefix rules. Each rule must include `pattern` and `decision`.1611 },
2118 1612 {
2119Key1613 key: "experimental_network.domains",
2120 1614 type: "map<string, allow | deny>",
2121`rules.prefix_rules[].decision`1615 description:
2122 1616 "Map-shaped administrator domain policy for sandboxed networking. Supports exact hosts, `*.example.com` for subdomains only, `**.example.com` for apex plus subdomains, and global `*` allow rules; prefer scoped rules because `*` broadly opens public outbound access. `deny` wins on conflicts. Do not combine this with `experimental_network.allowed_domains` or `experimental_network.denied_domains`.",
2123Type / Values1617 },
2124 1618 {
2125`prompt | forbidden`1619 key: "experimental_network.allowed_domains",
2126 1620 type: "array<string>",
2127Details1621 description:
2128 1622 "List-shaped administrator allow rules for sandboxed networking. Do not combine this with `experimental_network.domains`.",
2129Required. Requirements rules can only prompt or forbid (not allow).1623 },
2130 1624 {
2131Key1625 key: "experimental_network.denied_domains",
2132 1626 type: "array<string>",
2133`rules.prefix_rules[].justification`1627 description:
2134 1628 "List-shaped administrator deny rules for sandboxed networking. Do not combine this with `experimental_network.domains`.",
2135Type / Values1629 },
2136 1630 {
2137`string`1631 key: "experimental_network.managed_allowed_domains_only",
2138 1632 type: "boolean",
2139Details1633 description:
2140 1634 "When `true`, only administrator-managed allow rules remain effective while sandboxed networking requirements are active; user allowlist additions are ignored. Without managed allow rules, user-added domain allow rules do not remain effective.",
2141Optional non-empty rationale surfaced in approval prompts or rejection messages.1635 },
2142 1636 {
2143Key1637 key: "experimental_network.unix_sockets",
2144 1638 type: "map<string, allow | none>",
2145`rules.prefix_rules[].pattern`1639 description:
2146 1640 "Administrator-managed Unix socket policy for sandboxed networking.",
2147Type / Values1641 },
2148 1642 {
2149`array<table>`1643 key: "experimental_network.allow_local_binding",
2150 1644 type: "boolean",
2151Details1645 description:
2152 1646 "Permit broader local/private-network access for sandboxed networking. Exact local IP literal or `localhost` allow rules can still permit specific local targets when this stays `false`.",
2153Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`.1647 },
2154 1648 {
2155Key1649 key: "hooks",
2156 1650 type: "table",
2157`rules.prefix_rules[].pattern[].any_of`1651 description:
2158 1652 "Admin-enforced managed lifecycle hooks. Requires a managed hook directory and uses the same event schema as inline `[hooks]` in `config.toml`.",
2159Type / Values1653 },
2160 1654 {
2161`array<string>`1655 key: "hooks.managed_dir",
2162 1656 type: "string (absolute path)",
2163Details1657 description:
2164 1658 "Directory containing managed hook scripts on macOS and Linux. Codex validates that it is absolute and exists before loading managed hooks.",
2165A list of allowed alternative tokens at this position.1659 },
2166 1660 {
2167Key1661 key: "hooks.windows_managed_dir",
2168 1662 type: "string (absolute path)",
2169`rules.prefix_rules[].pattern[].token`1663 description:
2170 1664 "Directory containing managed hook scripts on Windows. Codex validates that it is absolute and exists before loading managed hooks.",
2171Type / Values1665 },
2172 1666 {
2173`string`1667 key: "hooks.<Event>",
2174 1668 type: "array<table>",
2175Details1669 description:
2176 1670 "Matcher groups for a hook event such as `PreToolUse`, `PermissionRequest`, `PostToolUse`, `SessionStart`, `UserPromptSubmit`, or `Stop`.",
2177A single literal token at this position.1671 },
2178 1672 {
2179Expand to view all1673 key: "hooks.<Event>[].hooks",
1674 type: "array<table>",
1675 description:
1676 "Hook handlers for a matcher group. Command hooks are currently supported; prompt and agent hook handlers are parsed but skipped.",
1677 },
1678 {
1679 key: "permissions.filesystem.deny_read",
1680 type: "array<string>",
1681 description:
1682 "Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config.",
1683 },
1684 {
1685 key: "mcp_servers",
1686 type: "table",
1687 description:
1688 "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.",
1689 },
1690 {
1691 key: "mcp_servers.<id>.identity",
1692 type: "table",
1693 description:
1694 "Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).",
1695 },
1696 {
1697 key: "mcp_servers.<id>.identity.command",
1698 type: "string",
1699 description:
1700 "Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.",
1701 },
1702 {
1703 key: "mcp_servers.<id>.identity.url",
1704 type: "string",
1705 description:
1706 "Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.",
1707 },
1708 {
1709 key: "rules",
1710 type: "table",
1711 description:
1712 "Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive.",
1713 },
1714 {
1715 key: "rules.prefix_rules",
1716 type: "array<table>",
1717 description:
1718 "List of enforced prefix rules. Each rule must include `pattern` and `decision`.",
1719 },
1720 {
1721 key: "rules.prefix_rules[].pattern",
1722 type: "array<table>",
1723 description:
1724 "Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`.",
1725 },
1726 {
1727 key: "rules.prefix_rules[].pattern[].token",
1728 type: "string",
1729 description: "A single literal token at this position.",
1730 },
1731 {
1732 key: "rules.prefix_rules[].pattern[].any_of",
1733 type: "array<string>",
1734 description: "A list of allowed alternative tokens at this position.",
1735 },
1736 {
1737 key: "rules.prefix_rules[].decision",
1738 type: "prompt | forbidden",
1739 description:
1740 "Required. Requirements rules can only prompt or forbid (not allow).",
1741 },
1742 {
1743 key: "rules.prefix_rules[].justification",
1744 type: "string",
1745 description:
1746 "Optional non-empty rationale surfaced in approval prompts or rejection messages.",
1747 },
1748 ]}
1749 client:load
1750/>