config-reference.md +1509 −2154
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
99| Key | Type / Values | Details |For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/agent-approvals-security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/agent-approvals-security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/agent-approvals-security#network-access).
1010| --- | --- | --- |
1111| `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. |<ConfigTable
1212| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. | options={[
1313| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. | {
1414| `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. | key: "model",
1515| `apps.<id>.disabled_reason` | `unknown | user` | Optional reason attached when an app/connector is disabled. | type: "string",
1616| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). | description: "Model to use (e.g., `gpt-5.5`).",
1717| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. | },
1818| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). | {
1919| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). | key: "review_model",
2020| `compact_prompt` | `string` | Inline override for the history compaction prompt. | type: "string",
2121| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). | description:
2222| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. | "Optional model override used by `/review` (defaults to the current session model).",
2323| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). | },
2424| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. | {
2525| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. | key: "model_provider",
2626| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). | type: "string",
2727| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). | description: "Provider id from `model_providers` (default: `openai`).",
2828| `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). | },
2929| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). | {
3030| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). | key: "openai_base_url",
3131| `features.elevated_windows_sandbox` | `boolean` | Enable the elevated Windows sandbox pipeline (experimental). | type: "string",
3232| `features.experimental_windows_sandbox` | `boolean` | Run the Windows restricted-token sandbox (experimental). | description:
3333| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). | "Base URL override for the built-in `openai` model provider.",
3434| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). | },
3535| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). | {
3636| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). | key: "model_context_window",
3737| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). | type: "number",
3838| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). | description: "Context window tokens available to the active model.",
3939| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). | },
4040| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). | {
4141| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). | key: "model_auto_compact_token_limit",
4242| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). | type: "number",
4343| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). | description:
4444| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. | "Token threshold that triggers automatic history compaction (unset uses model defaults).",
4545| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. | },
4646| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. | {
4747| `feedback.enabled` | `boolean` | Enable feedback submission via `/feedback` across Codex surfaces (default: true). | key: "model_catalog_json",
4848| `file_opener` | `vscode | vscode-insiders | windsurf | cursor | none` | URI scheme used to open citations from Codex output (default: `vscode`). | type: "string (path)",
4949| `forced_chatgpt_workspace_id` | `string (uuid)` | Limit ChatGPT logins to a specific workspace identifier. | description:
5050| `forced_login_method` | `chatgpt | api` | Restrict Codex to a specific authentication method. | "Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.",
5151| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. | },
5252| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. | {
5353| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. | key: "oss_provider",
5454| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. | type: "lmstudio | ollama",
5555| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. | description:
5656| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. | "Default local provider used when running with `--oss` (defaults to prompting if unset).",
5757| `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. | },
5858| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. | {
5959| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. | key: "approval_policy",
6060| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. | type: "untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }",
6161| `mcp_servers.<id>.command` | `string` | Launcher command for an MCP stdio server. | description:
6262| `mcp_servers.<id>.cwd` | `string` | Working directory for the MCP stdio server process. | "Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { granular = { ... } }` to allow or auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.",
6363| `mcp_servers.<id>.disabled_tools` | `array<string>` | Deny list applied after `enabled_tools` for the MCP server. | },
6464| `mcp_servers.<id>.enabled` | `boolean` | Disable an MCP server without removing its configuration. | {
6565| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. | key: "approval_policy.granular.sandbox_approval",
6666| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. | type: "boolean",
6767| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. | description:
6868| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. | "When `true`, sandbox escalation approval prompts are allowed to surface.",
6969| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. | },
7070| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. | {
7171| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. | key: "approval_policy.granular.rules",
7272| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. | type: "boolean",
7373| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. | description:
7474| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. | "When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.",
7575| `model` | `string` | Model to use (e.g., `gpt-5-codex`). | },
7676| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). | {
7777| `model_context_window` | `number` | Context window tokens available to the active model. | key: "approval_policy.granular.mcp_elicitations",
7878| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. | type: "boolean",
7979| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). | description:
8080| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. | "When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.",
8181| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. | },
8282| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. | {
8383| `model_providers.<id>.env_key_instructions` | `string` | Optional setup guidance for the provider API key. | key: "approval_policy.granular.request_permissions",
8484| `model_providers.<id>.experimental_bearer_token` | `string` | Direct bearer token for the provider (discouraged; use `env_key`). | type: "boolean",
8585| `model_providers.<id>.http_headers` | `map<string,string>` | Static HTTP headers added to provider requests. | description:
8686| `model_providers.<id>.name` | `string` | Display name for a custom model provider. | "When `true`, prompts from the `request_permissions` tool are allowed to surface.",
8787| `model_providers.<id>.query_params` | `map<string,string>` | Extra query parameters appended to provider requests. | },
8888| `model_providers.<id>.request_max_retries` | `number` | Retry count for HTTP requests to the provider (default: 4). | {
8989| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). | key: "approval_policy.granular.skill_approval",
9090| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). | type: "boolean",
9191| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). | description:
9292| `model_providers.<id>.wire_api` | `chat | responses` | Protocol used by the provider (defaults to `chat` if omitted). | "When `true`, skill-script approval prompts are allowed to surface.",
9393| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). | },
9494| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. | {
9595| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. | key: "approvals_reviewer",
9696| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). | type: "user | auto_review",
9797| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. | description:
9898| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. | "Who reviews eligible approval prompts under `on-request` or granular approval policies. Defaults to `user`; `auto_review` uses the reviewer subagent. This setting doesn't change sandboxing or review actions already allowed inside the sandbox.",
9999| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. | },
100100| `notice.hide_rate_limit_model_nudge` | `boolean` | Track opt-out of the rate limit model switch reminder. | {
101101| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. | key: "auto_review.policy",
102102| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. | type: "string",
103103| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. | description:
104104| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). | "Local Markdown policy instructions for automatic review. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",
105105| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). | },
106106| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. | {
107107| `otel.exporter.<id>.endpoint` | `string` | Exporter endpoint for OTEL logs. | key: "allow_login_shell",
108108| `otel.exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL exporter requests. | type: "boolean",
109109| `otel.exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP exporter. | description:
110110| `otel.exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL exporter TLS. | "Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells.",
111111| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. | },
112112| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. | {
113113| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. | key: "sandbox_mode",
114114| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. | type: "read-only | workspace-write | danger-full-access",
115115| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. | description:
116116| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. | "Sandbox policy for filesystem and network access during command execution.",
117117| `otel.trace_exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP trace exporter. | },
118118| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. | {
119119| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. | key: "sandbox_workspace_write.writable_roots",
120120| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. | type: "array<string>",
121121| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. | description:
122122| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). | 'Additional writable roots when `sandbox_mode = "workspace-write"`.',
123123| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. | },
124124| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. | {
125125| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. | key: "sandbox_workspace_write.network_access",
126126| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. | type: "boolean",
127127| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. | description:
128128| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. | "Allow outbound network access inside the workspace-write sandbox.",
129129| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). | },
130130| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. | {
131131| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. | key: "sandbox_workspace_write.exclude_tmpdir_env_var",
132132| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. | type: "boolean",
133133| `projects.<path>.trust_level` | `string` | Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers. | description:
134134| `review_model` | `string` | Optional model override used by `/review` (defaults to the current session model). | "Exclude `$TMPDIR` from writable roots in workspace-write mode.",
135135| `sandbox_mode` | `read-only | workspace-write | danger-full-access` | Sandbox policy for filesystem and network access during command execution. | },
136136| `sandbox_workspace_write.exclude_slash_tmp` | `boolean` | Exclude `/tmp` from writable roots in workspace-write mode. | {
137137| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. | key: "sandbox_workspace_write.exclude_slash_tmp",
138138| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. | type: "boolean",
139139| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. | description:
140140| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. | "Exclude `/tmp` from writable roots in workspace-write mode.",
141141| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. | },
142142| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. | {
143143| `shell_environment_policy.include_only` | `array<string>` | Whitelist of patterns; when set only matching variables are kept. | key: "windows.sandbox",
144144| `shell_environment_policy.inherit` | `all | core | none` | Baseline environment inheritance when spawning subprocesses. | type: "unelevated | elevated",
145145| `shell_environment_policy.set` | `map<string,string>` | Explicit environment overrides injected into every subprocess. | description:
146146| `show_raw_agent_reasoning` | `boolean` | Surface raw reasoning content when the active model emits it. | "Windows-only native sandbox mode when running Codex natively on Windows.",
147147| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. | },
148148| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. | {
149149| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. | key: "windows.sandbox_private_desktop",
150150| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. | type: "boolean",
151151| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. | description:
152152| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. | "Run the final sandboxed child process on a private desktop by default on native Windows. Set `false` only for compatibility with the older `Winsta0\\\\Default` behavior.",
153153| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. | },
154154| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). | {
155155| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). | key: "notify",
156156| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). | type: "array<string>",
157157| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. | description:
158158| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). | "Command invoked for notifications; receives a JSON payload from Codex.",
159159| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. | },
160160| `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. | {
161161| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). | key: "check_for_update_on_startup",
162162 type: "boolean",
163163Key description:
164164 "Check for Codex updates on startup (set to false only when updates are centrally managed).",
165165`agents.<name>.config_file` },
166166 {
167167Type / Values key: "feedback.enabled",
168168 type: "boolean",
169169`string (path)` description:
170170 "Enable feedback submission via `/feedback` across Codex surfaces (default: true).",
171171Details },
172172 {
173173Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role. key: "analytics.enabled",
174174 type: "boolean",
175175Key description:
176176 "Enable or disable analytics for this machine/profile. When unset, the client default applies.",
177177`agents.<name>.description` },
178178 {
179179Type / Values key: "instructions",
180180 type: "string",
181181`string` description:
182182 "Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.",
183183Details },
184184 {
185185Role guidance shown to Codex when choosing and spawning that agent type. key: "developer_instructions",
186186 type: "string",
187187Key description:
188188 "Additional developer instructions injected into the session (optional).",
189189`agents.max_threads` },
190190 {
191191Type / Values key: "log_dir",
192192 type: "string (path)",
193193`number` description:
194194 "Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.",
195195Details },
196196 {
197197Maximum number of agent threads that can be open concurrently. key: "sqlite_home",
198198 type: "string (path)",
199199Key description:
200200 "Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.",
201201`approval_policy` },
202202 {
203203Type / Values key: "compact_prompt",
204204 type: "string",
205205`untrusted | on-request | never` description: "Inline override for the history compaction prompt.",
206206 },
207207Details {
208208 key: "commit_attribution",
209209Controls when Codex pauses for approval before executing commands. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. type: "string",
210210 description:
211211Key "Override the commit co-author trailer text. Set an empty string to disable automatic attribution.",
212212 },
213213`apps.<id>.disabled_reason` {
214214 key: "model_instructions_file",
215215Type / Values type: "string (path)",
216216 description:
217217`unknown | user` "Replacement for built-in instructions instead of `AGENTS.md`.",
218218 },
219219Details {
220220 key: "personality",
221221Optional reason attached when an app/connector is disabled. type: "none | friendly | pragmatic",
222222 description:
223223Key "Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.",
224224 },
225225`apps.<id>.enabled` {
226226 key: "service_tier",
227227Type / Values type: "flex | fast",
228228 description: "Preferred service tier for new turns.",
229229`boolean` },
230230 {
231231Details key: "experimental_compact_prompt_file",
232232 type: "string (path)",
233233Enable or disable a specific app/connector by id (default: true). description:
234234 "Load the compaction prompt override from a file (experimental).",
235235Key },
236236 {
237237`chatgpt_base_url` key: "skills.config",
238238 type: "array<object>",
239239Type / Values description: "Per-skill enablement overrides stored in config.toml.",
240240 },
241241`string` {
242242 key: "skills.config.<index>.path",
243243Details type: "string (path)",
244244 description: "Path to a skill folder containing `SKILL.md`.",
245245Override the base URL used during the ChatGPT login flow. },
246246 {
247247Key key: "skills.config.<index>.enabled",
248248 type: "boolean",
249249`check_for_update_on_startup` description: "Enable or disable the referenced skill.",
250250 },
251251Type / Values {
252252 key: "apps.<id>.enabled",
253253`boolean` type: "boolean",
254254 description:
255255Details "Enable or disable a specific app/connector by id (default: true).",
256256 },
257257Check for Codex updates on startup (set to false only when updates are centrally managed). {
258258 key: "apps._default.enabled",
259259Key type: "boolean",
260260 description:
261261`cli_auth_credentials_store` "Default app enabled state for all apps unless overridden per app.",
262262 },
263263Type / Values {
264264 key: "apps._default.destructive_enabled",
265265`file | keyring | auto` type: "boolean",
266266 description:
267267Details "Default allow/deny for app tools with `destructive_hint = true`.",
268268 },
269269Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). {
270270 key: "apps._default.open_world_enabled",
271271Key type: "boolean",
272272 description:
273273`compact_prompt` "Default allow/deny for app tools with `open_world_hint = true`.",
274274 },
275275Type / Values {
276276 key: "apps.<id>.destructive_enabled",
277277`string` type: "boolean",
278278 description:
279279Details "Allow or block tools in this app that advertise `destructive_hint = true`.",
280280 },
281281Inline override for the history compaction prompt. {
282282 key: "apps.<id>.open_world_enabled",
283283Key type: "boolean",
284284 description:
285285`developer_instructions` "Allow or block tools in this app that advertise `open_world_hint = true`.",
286286 },
287287Type / Values {
288288 key: "apps.<id>.default_tools_enabled",
289289`string` type: "boolean",
290290 description:
291291Details "Default enabled state for tools in this app unless a per-tool override exists.",
292292 },
293293Additional developer instructions injected into the session (optional). {
294294 key: "apps.<id>.default_tools_approval_mode",
295295Key type: "auto | prompt | approve",
296296 description:
297297`disable_paste_burst` "Default approval behavior for tools in this app unless a per-tool override exists.",
298298 },
299299Type / Values {
300300 key: "apps.<id>.tools.<tool>.enabled",
301301`boolean` type: "boolean",
302302 description:
303303Details "Per-tool enabled override for an app tool (for example `repos/list`).",
304304 },
305305Disable burst-paste detection in the TUI. {
306306 key: "apps.<id>.tools.<tool>.approval_mode",
307307Key type: "auto | prompt | approve",
308308 description: "Per-tool approval behavior override for a single app tool.",
309309`experimental_compact_prompt_file` },
310310 {
311311Type / Values key: "tool_suggest.discoverables",
312312 type: "array<table>",
313313`string (path)` description:
314314 'Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',
315315Details },
316316 {
317317Load the compaction prompt override from a file (experimental). key: "tool_suggest.disabled_tools",
318318 type: "array<table>",
319319Key description:
320320 'Disable suggestions for specific discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',
321321`experimental_use_freeform_apply_patch` },
322322 {
323323Type / Values key: "features.apps",
324324 type: "boolean",
325325`boolean` description: "Enable ChatGPT Apps/connectors support (experimental).",
326326 },
327327Details {
328328 key: "features.codex_hooks",
329329Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. type: "boolean",
330330 description:
331331Key "Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config.",
332332 },
333333`experimental_use_unified_exec_tool` {
334334 key: "hooks",
335335Type / Values type: "table",
336336 description:
337337`boolean` "Lifecycle hooks configured inline in `config.toml`. Uses the same event schema as `hooks.json`; see the Hooks guide for examples and supported events.",
338338 },
339339Details {
340340 key: "features.memories",
341341Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. type: "boolean",
342342 description: "Enable [Memories](https://developers.openai.com/codex/memories) (off by default).",
343343Key },
344344 {
345345`features.apply_patch_freeform` key: "mcp_servers.<id>.command",
346346 type: "string",
347347Type / Values description: "Launcher command for an MCP stdio server.",
348348 },
349349`boolean` {
350350 key: "mcp_servers.<id>.args",
351351Details type: "array<string>",
352352 description: "Arguments passed to the MCP stdio server command.",
353353Expose the freeform `apply_patch` tool (experimental). },
354354 {
355355Key key: "mcp_servers.<id>.env",
356356 type: "map<string,string>",
357357`features.apps` description: "Environment variables forwarded to the MCP stdio server.",
358358 },
359359Type / Values {
360360 key: "mcp_servers.<id>.env_vars",
361361`boolean` type: 'array<string | { name = string, source = "local" | "remote" }>',
362362 description:
363363Details '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.',
364364 },
365365Enable ChatGPT Apps/connectors support (experimental). {
366366 key: "mcp_servers.<id>.cwd",
367367Key type: "string",
368368 description: "Working directory for the MCP stdio server process.",
369369`features.apps_mcp_gateway` },
370370 {
371371Type / Values key: "mcp_servers.<id>.url",
372372 type: "string",
373373`boolean` description: "Endpoint for an MCP streamable HTTP server.",
374374 },
375375Details {
376376 key: "mcp_servers.<id>.bearer_token_env_var",
377377Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental). type: "string",
378378 description:
379379Key "Environment variable sourcing the bearer token for an MCP HTTP server.",
380380 },
381381`features.child_agents_md` {
382382 key: "mcp_servers.<id>.http_headers",
383383Type / Values type: "map<string,string>",
384384 description: "Static HTTP headers included with each MCP HTTP request.",
385385`boolean` },
386386 {
387387Details key: "mcp_servers.<id>.env_http_headers",
388388 type: "map<string,string>",
389389Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). description:
390390 "HTTP headers populated from environment variables for an MCP HTTP server.",
391391Key },
392392 {
393393`features.collaboration_modes` key: "mcp_servers.<id>.enabled",
394394 type: "boolean",
395395Type / Values description: "Disable an MCP server without removing its configuration.",
396396 },
397397`boolean` {
398398 key: "mcp_servers.<id>.required",
399399Details type: "boolean",
400400 description:
401401Enable collaboration modes such as plan mode (stable; on by default). "When true, fail startup/resume if this enabled MCP server cannot initialize.",
402402 },
403403Key {
404404 key: "mcp_servers.<id>.startup_timeout_sec",
405405`features.elevated_windows_sandbox` type: "number",
406406 description:
407407Type / Values "Override the default 10s startup timeout for an MCP server.",
408408 },
409409`boolean` {
410410 key: "mcp_servers.<id>.startup_timeout_ms",
411411Details type: "number",
412412 description: "Alias for `startup_timeout_sec` in milliseconds.",
413413Enable the elevated Windows sandbox pipeline (experimental). },
414414 {
415415Key key: "mcp_servers.<id>.tool_timeout_sec",
416416 type: "number",
417417`features.experimental_windows_sandbox` description:
418418 "Override the default 60s per-tool timeout for an MCP server.",
419419Type / Values },
420420 {
421421`boolean` key: "mcp_servers.<id>.enabled_tools",
422422 type: "array<string>",
423423Details description: "Allow list of tool names exposed by the MCP server.",
424424 },
425425Run the Windows restricted-token sandbox (experimental). {
426426 key: "mcp_servers.<id>.disabled_tools",
427427Key type: "array<string>",
428428 description:
429429`features.multi_agent` "Deny list applied after `enabled_tools` for the MCP server.",
430430 },
431431Type / Values {
432432 key: "mcp_servers.<id>.scopes",
433433`boolean` type: "array<string>",
434434 description:
435435Details "OAuth scopes to request when authenticating to that MCP server.",
436436 },
437437Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). {
438438 key: "mcp_servers.<id>.oauth_resource",
439439Key type: "string",
440440 description:
441441`features.personality` "Optional RFC 8707 OAuth resource parameter to include during MCP login.",
442442 },
443443Type / Values {
444444 key: "mcp_servers.<id>.experimental_environment",
445445`boolean` type: "local | remote",
446446 description:
447447Details "Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.",
448448 },
449449Enable personality selection controls (stable; on by default). {
450450 key: "agents.max_threads",
451451Key type: "number",
452452 description:
453453`features.powershell_utf8` "Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.",
454454 },
455455Type / Values {
456456 key: "agents.max_depth",
457457`boolean` type: "number",
458458 description:
459459Details "Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).",
460460 },
461461Force PowerShell UTF-8 output (defaults to true). {
462462 key: "agents.job_max_runtime_seconds",
463463Key type: "number",
464464 description:
465465`features.remote_models` "Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.",
466466 },
467467Type / Values {
468468 key: "agents.<name>.description",
469469`boolean` type: "string",
470470 description:
471471Details "Role guidance shown to Codex when choosing and spawning that agent type.",
472472 },
473473Refresh remote model list before showing readiness (experimental). {
474474 key: "agents.<name>.config_file",
475475Key type: "string (path)",
476476 description:
477477`features.request_rule` "Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role.",
478478 },
479479Type / Values {
480480 key: "agents.<name>.nickname_candidates",
481481`boolean` type: "array<string>",
482482 description:
483483Details "Optional pool of display nicknames for spawned agents in that role.",
484484 },
485485Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). {
486486 key: "memories.generate_memories",
487487Key type: "boolean",
488488 description:
489489`features.runtime_metrics` "When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.",
490490 },
491491Type / Values {
492492 key: "memories.use_memories",
493493`boolean` type: "boolean",
494494 description:
495495Details "When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.",
496496 },
497497Show runtime metrics summary in TUI turn separators (experimental). {
498498 key: "memories.disable_on_external_context",
499499Key type: "boolean",
500500 description:
501501`features.search_tool` "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`.",
502502 },
503503Type / Values {
504504 key: "memories.max_raw_memories_for_consolidation",
505505`boolean` type: "number",
506506 description:
507507Details "Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.",
508508 },
509509Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). {
510510 key: "memories.max_unused_days",
511511Key type: "number",
512512 description:
513513`features.shell_snapshot` "Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`.",
514514 },
515515Type / Values {
516516 key: "memories.max_rollout_age_days",
517517`boolean` type: "number",
518518 description:
519519Details "Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.",
520520 },
521521Snapshot shell environment to speed up repeated commands (beta). {
522522 key: "memories.max_rollouts_per_startup",
523523Key type: "number",
524524 description:
525525`features.shell_tool` "Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.",
526526 },
527527Type / Values {
528528 key: "memories.min_rollout_idle_hours",
529529`boolean` type: "number",
530530 description:
531531Details "Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.",
532532 },
533533Enable the default `shell` tool for running commands (stable; on by default). {
534534 key: "memories.min_rate_limit_remaining_percent",
535535Key type: "number",
536536 description:
537537`features.unified_exec` "Minimum remaining percentage required in Codex rate-limit windows before memory generation starts. Defaults to `25` and is clamped to `0`-`100`.",
538538 },
539539Type / Values {
540540 key: "memories.extract_model",
541541`boolean` type: "string",
542542 description: "Optional model override for per-thread memory extraction.",
543543Details },
544544 {
545545Use the unified PTY-backed exec tool (beta). key: "memories.consolidation_model",
546546 type: "string",
547547Key description: "Optional model override for global memory consolidation.",
548548 },
549549`features.use_linux_sandbox_bwrap` {
550550 key: "features.unified_exec",
551551Type / Values type: "boolean",
552552 description:
553553`boolean` "Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).",
554554 },
555555Details {
556556 key: "features.shell_snapshot",
557557Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). type: "boolean",
558558 description:
559559Key "Snapshot shell environment to speed up repeated commands (stable; on by default).",
560560 },
561561`features.web_search` {
562562 key: "features.undo",
563563Type / Values type: "boolean",
564564 description: "Enable undo support (stable; off by default).",
565565`boolean` },
566566 {
567567Details key: "features.multi_agent",
568568 type: "boolean",
569569Deprecated legacy toggle; prefer the top-level `web_search` setting. description:
570570 "Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).",
571571Key },
572572 {
573573`features.web_search_cached` key: "features.personality",
574574 type: "boolean",
575575Type / Values description:
576576 "Enable personality selection controls (stable; on by default).",
577577`boolean` },
578578 {
579579Details key: "features.web_search",
580580 type: "boolean",
581581Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. description:
582582 "Deprecated legacy toggle; prefer the top-level `web_search` setting.",
583583Key },
584584 {
585585`features.web_search_request` key: "features.web_search_cached",
586586 type: "boolean",
587587Type / Values description:
588588 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.',
589589`boolean` },
590590 {
591591Details key: "features.web_search_request",
592592 type: "boolean",
593593Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. description:
594594 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.',
595595Key },
596596 {
597597`feedback.enabled` key: "features.shell_tool",
598598 type: "boolean",
599599Type / Values description:
600600 "Enable the default `shell` tool for running commands (stable; on by default).",
601601`boolean` },
602602 {
603603Details key: "features.enable_request_compression",
604604 type: "boolean",
605605Enable feedback submission via `/feedback` across Codex surfaces (default: true). description:
606606 "Compress streaming request bodies with zstd when supported (stable; on by default).",
607607Key },
608608 {
609609`file_opener` key: "features.skill_mcp_dependency_install",
610610 type: "boolean",
611611Type / Values description:
612612 "Allow prompting and installing missing MCP dependencies for skills (stable; on by default).",
613613`vscode | vscode-insiders | windsurf | cursor | none` },
614614 {
615615Details key: "features.fast_mode",
616616 type: "boolean",
617617URI scheme used to open citations from Codex output (default: `vscode`). description:
618618 'Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).',
619619Key },
620620 {
621621`forced_chatgpt_workspace_id` key: "features.prevent_idle_sleep",
622622 type: "boolean",
623623Type / Values description:
624624 "Prevent the machine from sleeping while a turn is actively running (experimental; off by default).",
625625`string (uuid)` },
626626 {
627627Details key: "suppress_unstable_features_warning",
628628 type: "boolean",
629629Limit ChatGPT logins to a specific workspace identifier. description:
630630 "Suppress the warning that appears when under-development feature flags are enabled.",
631631Key },
632632 {
633633`forced_login_method` key: "model_providers.<id>",
634634 type: "table",
635635Type / Values description:
636636 "Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.",
637637`chatgpt | api` },
638638 {
639639Details key: "model_providers.<id>.name",
640640 type: "string",
641641Restrict Codex to a specific authentication method. description: "Display name for a custom model provider.",
642642 },
643643Key {
644644 key: "model_providers.<id>.base_url",
645645`hide_agent_reasoning` type: "string",
646646 description: "API base URL for the model provider.",
647647Type / Values },
648648 {
649649`boolean` key: "model_providers.<id>.env_key",
650650 type: "string",
651651Details description: "Environment variable supplying the provider API key.",
652652 },
653653Suppress reasoning events in both the TUI and `codex exec` output. {
654654 key: "model_providers.<id>.env_key_instructions",
655655Key type: "string",
656656 description: "Optional setup guidance for the provider API key.",
657657`history.max_bytes` },
658658 {
659659Type / Values key: "model_providers.<id>.experimental_bearer_token",
660660 type: "string",
661661`number` description:
662662 "Direct bearer token for the provider (discouraged; use `env_key`).",
663663Details },
664664 {
665665If set, caps the history file size in bytes by dropping oldest entries. key: "model_providers.<id>.requires_openai_auth",
666666 type: "boolean",
667667Key description:
668668 "The provider uses OpenAI authentication (defaults to false).",
669669`history.persistence` },
670670 {
671671Type / Values key: "model_providers.<id>.wire_api",
672672 type: "responses",
673673`save-all | none` description:
674674 "Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.",
675675Details },
676676 {
677677Control whether Codex saves session transcripts to history.jsonl. key: "model_providers.<id>.query_params",
678678 type: "map<string,string>",
679679Key description: "Extra query parameters appended to provider requests.",
680680 },
681681`include_apply_patch_tool` {
682682 key: "model_providers.<id>.http_headers",
683683Type / Values type: "map<string,string>",
684684 description: "Static HTTP headers added to provider requests.",
685685`boolean` },
686686 {
687687Details key: "model_providers.<id>.env_http_headers",
688688 type: "map<string,string>",
689689Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. description:
690690 "HTTP headers populated from environment variables when present.",
691691Key },
692692 {
693693`instructions` key: "model_providers.<id>.request_max_retries",
694694 type: "number",
695695Type / Values description:
696696 "Retry count for HTTP requests to the provider (default: 4).",
697697`string` },
698698 {
699699Details key: "model_providers.<id>.stream_max_retries",
700700 type: "number",
701701Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. description: "Retry count for SSE streaming interruptions (default: 5).",
702702 },
703703Key {
704704 key: "model_providers.<id>.stream_idle_timeout_ms",
705705`log_dir` type: "number",
706706 description:
707707Type / Values "Idle timeout for SSE streams in milliseconds (default: 300000).",
708708 },
709709`string (path)` {
710710 key: "model_providers.<id>.supports_websockets",
711711Details type: "boolean",
712712 description:
713713Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. "Whether that provider supports the Responses API WebSocket transport.",
714714 },
715715Key {
716716 key: "model_providers.<id>.auth",
717717`mcp_oauth_callback_port` type: "table",
718718 description:
719719Type / Values "Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.",
720720 },
721721`integer` {
722722 key: "model_providers.<id>.auth.command",
723723Details type: "string",
724724 description:
725725Optional 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. "Command to run when Codex needs a bearer token. The command must print the token to stdout.",
726726 },
727727Key {
728728 key: "model_providers.<id>.auth.args",
729729`mcp_oauth_credentials_store` type: "array<string>",
730730 description: "Arguments passed to the token command.",
731731Type / Values },
732732 {
733733`auto | file | keyring` key: "model_providers.<id>.auth.timeout_ms",
734734 type: "number",
735735Details description:
736736 "Maximum token command runtime in milliseconds (default: 5000).",
737737Preferred store for MCP OAuth credentials. },
738738 {
739739Key key: "model_providers.<id>.auth.refresh_interval_ms",
740740 type: "number",
741741`mcp_servers.<id>.args` description:
742742 "How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.",
743743Type / Values },
744744 {
745745`array<string>` key: "model_providers.<id>.auth.cwd",
746746 type: "string (path)",
747747Details description: "Working directory for the token command.",
748748 },
749749Arguments passed to the MCP stdio server command. {
750750 key: "model_providers.amazon-bedrock.aws.profile",
751751Key type: "string",
752752 description:
753753`mcp_servers.<id>.bearer_token_env_var` "AWS profile name used by the built-in `amazon-bedrock` provider.",
754754 },
755755Type / Values {
756756 key: "model_providers.amazon-bedrock.aws.region",
757757`string` type: "string",
758758 description: "AWS region used by the built-in `amazon-bedrock` provider.",
759759Details },
760760 {
761761Environment variable sourcing the bearer token for an MCP HTTP server. key: "model_reasoning_effort",
762762 type: "minimal | low | medium | high | xhigh",
763763Key description:
764764 "Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).",
765765`mcp_servers.<id>.command` },
766766 {
767767Type / Values key: "plan_mode_reasoning_effort",
768768 type: "none | minimal | low | medium | high | xhigh",
769769`string` description:
770770 "Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.",
771771Details },
772772 {
773773Launcher command for an MCP stdio server. key: "model_reasoning_summary",
774774 type: "auto | concise | detailed | none",
775775Key description:
776776 "Select reasoning summary detail or disable summaries entirely.",
777777`mcp_servers.<id>.cwd` },
778778 {
779779Type / Values key: "model_verbosity",
780780 type: "low | medium | high",
781781`string` description:
782782 "Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.",
783783Details },
784784 {
785785Working directory for the MCP stdio server process. key: "model_supports_reasoning_summaries",
786786 type: "boolean",
787787Key description: "Force Codex to send or not send reasoning metadata.",
788788 },
789789`mcp_servers.<id>.disabled_tools` {
790790 key: "shell_environment_policy.inherit",
791791Type / Values type: "all | core | none",
792792 description:
793793`array<string>` "Baseline environment inheritance when spawning subprocesses.",
794794 },
795795Details {
796796 key: "shell_environment_policy.ignore_default_excludes",
797797Deny list applied after `enabled_tools` for the MCP server. type: "boolean",
798798 description:
799799Key "Keep variables containing KEY/SECRET/TOKEN before other filters run.",
800800 },
801801`mcp_servers.<id>.enabled` {
802802 key: "shell_environment_policy.exclude",
803803Type / Values type: "array<string>",
804804 description:
805805`boolean` "Glob patterns for removing environment variables after the defaults.",
806806 },
807807Details {
808808 key: "shell_environment_policy.include_only",
809809Disable an MCP server without removing its configuration. type: "array<string>",
810810 description:
811811Key "Whitelist of patterns; when set only matching variables are kept.",
812812 },
813813`mcp_servers.<id>.enabled_tools` {
814814 key: "shell_environment_policy.set",
815815Type / Values type: "map<string,string>",
816816 description:
817817`array<string>` "Explicit environment overrides injected into every subprocess.",
818818 },
819819Details {
820820 key: "shell_environment_policy.experimental_use_profile",
821821Allow list of tool names exposed by the MCP server. type: "boolean",
822822 description: "Use the user shell profile when spawning subprocesses.",
823823Key },
824824 {
825825`mcp_servers.<id>.env` key: "project_root_markers",
826826 type: "array<string>",
827827Type / Values description:
828828 "List of project root marker filenames; used when searching parent directories for the project root.",
829829`map<string,string>` },
830830 {
831831Details key: "project_doc_max_bytes",
832832 type: "number",
833833Environment variables forwarded to the MCP stdio server. description:
834834 "Maximum bytes read from `AGENTS.md` when building project instructions.",
835835Key },
836836 {
837837`mcp_servers.<id>.env_http_headers` key: "project_doc_fallback_filenames",
838838 type: "array<string>",
839839Type / Values description: "Additional filenames to try when `AGENTS.md` is missing.",
840840 },
841841`map<string,string>` {
842842 key: "profile",
843843Details type: "string",
844844 description:
845845HTTP headers populated from environment variables for an MCP HTTP server. "Default profile applied at startup (equivalent to `--profile`).",
846846 },
847847Key {
848848 key: "profiles.<name>.*",
849849`mcp_servers.<id>.env_vars` type: "various",
850850 description:
851851Type / Values "Profile-scoped overrides for any of the supported configuration keys.",
852852 },
853853`array<string>` {
854854 key: "profiles.<name>.service_tier",
855855Details type: "flex | fast",
856856 description: "Profile-scoped service tier preference for new turns.",
857857Additional environment variables to whitelist for an MCP stdio server. },
858858 {
859859Key key: "profiles.<name>.plan_mode_reasoning_effort",
860860 type: "none | minimal | low | medium | high | xhigh",
861861`mcp_servers.<id>.http_headers` description: "Profile-scoped Plan-mode reasoning override.",
862862 },
863863Type / Values {
864864 key: "profiles.<name>.web_search",
865865`map<string,string>` type: "disabled | cached | live",
866866 description:
867867Details 'Profile-scoped web search mode override (default: `"cached"`).',
868868 },
869869Static HTTP headers included with each MCP HTTP request. {
870870 key: "profiles.<name>.personality",
871871Key type: "none | friendly | pragmatic",
872872 description:
873873`mcp_servers.<id>.required` "Profile-scoped communication style override for supported models.",
874874 },
875875Type / Values {
876876 key: "profiles.<name>.model_catalog_json",
877877`boolean` type: "string (path)",
878878 description:
879879Details "Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).",
880880 },
881881When true, fail startup/resume if this enabled MCP server cannot initialize. {
882882 key: "profiles.<name>.model_instructions_file",
883883Key type: "string (path)",
884884 description:
885885`mcp_servers.<id>.startup_timeout_ms` "Profile-scoped replacement for the built-in instruction file.",
886886 },
887887Type / Values {
888888 key: "profiles.<name>.experimental_use_unified_exec_tool",
889889`number` type: "boolean",
890890 description:
891891Details "Legacy name for enabling unified exec; prefer `[features].unified_exec`.",
892892 },
893893Alias for `startup_timeout_sec` in milliseconds. {
894894 key: "profiles.<name>.oss_provider",
895895Key type: "lmstudio | ollama",
896896 description: "Profile-scoped OSS provider for `--oss` sessions.",
897897`mcp_servers.<id>.startup_timeout_sec` },
898898 {
899899Type / Values key: "profiles.<name>.tools_view_image",
900900 type: "boolean",
901901`number` description: "Enable or disable the `view_image` tool in that profile.",
902902 },
903903Details {
904904 key: "profiles.<name>.analytics.enabled",
905905Override the default 10s startup timeout for an MCP server. type: "boolean",
906906 description: "Profile-scoped analytics enablement override.",
907907Key },
908908 {
909909`mcp_servers.<id>.tool_timeout_sec` key: "profiles.<name>.windows.sandbox",
910910 type: "unelevated | elevated",
911911Type / Values description: "Profile-scoped Windows sandbox mode override.",
912912 },
913913`number` {
914914 key: "history.persistence",
915915Details type: "save-all | none",
916916 description:
917917Override the default 60s per-tool timeout for an MCP server. "Control whether Codex saves session transcripts to history.jsonl.",
918918 },
919919Key {
920920 key: "tool_output_token_limit",
921921`mcp_servers.<id>.url` type: "number",
922922 description:
923923Type / Values "Token budget for storing individual tool/function outputs in history.",
924924 },
925925`string` {
926926 key: "background_terminal_max_timeout",
927927Details type: "number",
928928 description:
929929Endpoint for an MCP streamable HTTP server. "Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.",
930930 },
931931Key {
932932 key: "history.max_bytes",
933933`model` type: "number",
934934 description:
935935Type / Values "If set, caps the history file size in bytes by dropping oldest entries.",
936936 },
937937`string` {
938938 key: "file_opener",
939939Details type: "vscode | vscode-insiders | windsurf | cursor | none",
940940 description:
941941Model to use (e.g., `gpt-5-codex`). "URI scheme used to open citations from Codex output (default: `vscode`).",
942942 },
943943Key {
944944 key: "otel.environment",
945945`model_auto_compact_token_limit` type: "string",
946946 description:
947947Type / Values "Environment tag applied to emitted OpenTelemetry events (default: `dev`).",
948948 },
949949`number` {
950950 key: "otel.exporter",
951951Details type: "none | otlp-http | otlp-grpc",
952952 description:
953953Token threshold that triggers automatic history compaction (unset uses model defaults). "Select the OpenTelemetry exporter and provide any endpoint metadata.",
954954 },
955955Key {
956956 key: "otel.trace_exporter",
957957`model_context_window` type: "none | otlp-http | otlp-grpc",
958958 description:
959959Type / Values "Select the OpenTelemetry trace exporter and provide any endpoint metadata.",
960960 },
961961`number` {
962962 key: "otel.metrics_exporter",
963963Details type: "none | statsig | otlp-http | otlp-grpc",
964964 description:
965965Context window tokens available to the active model. "Select the OpenTelemetry metrics exporter (defaults to `statsig`).",
966966 },
967967Key {
968968 key: "otel.log_user_prompt",
969969`model_instructions_file` type: "boolean",
970970 description:
971971Type / Values "Opt in to exporting raw user prompts with OpenTelemetry logs.",
972972 },
973973`string (path)` {
974974 key: "otel.exporter.<id>.endpoint",
975975Details type: "string",
976976 description: "Exporter endpoint for OTEL logs.",
977977Replacement for built-in instructions instead of `AGENTS.md`. },
978978 {
979979Key key: "otel.exporter.<id>.protocol",
980980 type: "binary | json",
981981`model_provider` description: "Protocol used by the OTLP/HTTP exporter.",
982982 },
983983Type / Values {
984984 key: "otel.exporter.<id>.headers",
985985`string` type: "map<string,string>",
986986 description: "Static headers included with OTEL exporter requests.",
987987Details },
988988 {
989989Provider id from `model_providers` (default: `openai`). key: "otel.trace_exporter.<id>.endpoint",
990990 type: "string",
991991Key description: "Trace exporter endpoint for OTEL logs.",
992992 },
993993`model_providers.<id>.base_url` {
994994 key: "otel.trace_exporter.<id>.protocol",
995995Type / Values type: "binary | json",
996996 description: "Protocol used by the OTLP/HTTP trace exporter.",
997997`string` },
998998 {
999999Details key: "otel.trace_exporter.<id>.headers",
10001000 type: "map<string,string>",
10011001API base URL for the model provider. description: "Static headers included with OTEL trace exporter requests.",
10021002 },
10031003Key {
10041004 key: "otel.exporter.<id>.tls.ca-certificate",
10051005`model_providers.<id>.env_http_headers` type: "string",
10061006 description: "CA certificate path for OTEL exporter TLS.",
10071007Type / Values },
10081008 {
10091009`map<string,string>` key: "otel.exporter.<id>.tls.client-certificate",
10101010 type: "string",
10111011Details description: "Client certificate path for OTEL exporter TLS.",
10121012 },
10131013HTTP headers populated from environment variables when present. {
10141014 key: "otel.exporter.<id>.tls.client-private-key",
10151015Key type: "string",
10161016 description: "Client private key path for OTEL exporter TLS.",
10171017`model_providers.<id>.env_key` },
10181018 {
10191019Type / Values key: "otel.trace_exporter.<id>.tls.ca-certificate",
10201020 type: "string",
10211021`string` description: "CA certificate path for OTEL trace exporter TLS.",
10221022 },
10231023Details {
10241024 key: "otel.trace_exporter.<id>.tls.client-certificate",
10251025Environment variable supplying the provider API key. type: "string",
10261026 description: "Client certificate path for OTEL trace exporter TLS.",
10271027Key },
10281028 {
10291029`model_providers.<id>.env_key_instructions` key: "otel.trace_exporter.<id>.tls.client-private-key",
10301030 type: "string",
10311031Type / Values description: "Client private key path for OTEL trace exporter TLS.",
10321032 },
10331033`string` {
10341034 key: "tui",
10351035Details type: "table",
10361036 description:
10371037Optional setup guidance for the provider API key. "TUI-specific options such as enabling inline desktop notifications.",
10381038 },
10391039Key {
10401040 key: "tui.notifications",
10411041`model_providers.<id>.experimental_bearer_token` type: "boolean | array<string>",
10421042 description:
10431043Type / Values "Enable TUI notifications; optionally restrict to specific event types.",
10441044 },
10451045`string` {
10461046 key: "tui.notification_method",
10471047Details type: "auto | osc9 | bel",
10481048 description:
10491049Direct bearer token for the provider (discouraged; use `env_key`). "Notification method for terminal notifications (default: auto).",
10501050 },
10511051Key {
10521052 key: "tui.notification_condition",
10531053`model_providers.<id>.http_headers` type: "unfocused | always",
10541054 description:
10551055Type / Values "Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.",
10561056 },
10571057`map<string,string>` {
10581058 key: "tui.animations",
10591059Details type: "boolean",
10601060 description:
10611061Static HTTP headers added to provider requests. "Enable terminal animations (welcome screen, shimmer, spinner) (default: true).",
10621062 },
10631063Key {
10641064 key: "tui.alternate_screen",
10651065`model_providers.<id>.name` type: "auto | always | never",
10661066 description:
10671067Type / Values "Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).",
10681068 },
10691069`string` {
10701070 key: "tui.show_tooltips",
10711071Details type: "boolean",
10721072 description:
10731073Display name for a custom model provider. "Show onboarding tooltips in the TUI welcome screen (default: true).",
10741074 },
10751075Key {
10761076 key: "tui.status_line",
10771077`model_providers.<id>.query_params` type: "array<string> | null",
10781078 description:
10791079Type / Values "Ordered list of TUI footer status-line item identifiers. `null` disables the status line.",
10801080 },
10811081`map<string,string>` {
10821082 key: "tui.terminal_title",
10831083Details type: "array<string> | null",
10841084 description:
10851085Extra query parameters appended to provider requests. 'Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.',
10861086 },
10871087Key {
10881088 key: "tui.theme",
10891089`model_providers.<id>.request_max_retries` type: "string",
10901090 description:
10911091Type / Values "Syntax-highlighting theme override (kebab-case theme name).",
10921092 },
10931093`number` {
10941094 key: "tui.keymap.<context>.<action>",
10951095Details type: "string | array<string>",
10961096 description:
10971097Retry count for HTTP requests to the provider (default: 4). "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`.",
10981098 },
10991099Key {
11001100 key: "tui.keymap.<context>.<action> = []",
11011101`model_providers.<id>.requires_openai_auth` type: "empty array",
11021102 description:
11031103Type / Values "Unbind the action in that keymap context. Key names use normalized strings such as `ctrl-a`, `shift-enter`, or `page-down`.",
11041104 },
11051105`boolean` {
11061106 key: "tui.model_availability_nux.<model>",
11071107Details type: "integer",
11081108 description: "Internal startup-tooltip state keyed by model slug.",
11091109The provider uses OpenAI authentication (defaults to false). },
11101110 {
11111111Key key: "hide_agent_reasoning",
11121112 type: "boolean",
11131113`model_providers.<id>.stream_idle_timeout_ms` description:
11141114 "Suppress reasoning events in both the TUI and `codex exec` output.",
11151115Type / Values },
11161116 {
11171117`number` key: "show_raw_agent_reasoning",
11181118 type: "boolean",
11191119Details description:
11201120 "Surface raw reasoning content when the active model emits it.",
11211121Idle timeout for SSE streams in milliseconds (default: 300000). },
11221122 {
11231123Key key: "disable_paste_burst",
11241124 type: "boolean",
11251125`model_providers.<id>.stream_max_retries` description: "Disable burst-paste detection in the TUI.",
11261126 },
11271127Type / Values {
11281128 key: "windows_wsl_setup_acknowledged",
11291129`number` type: "boolean",
11301130 description: "Track Windows onboarding acknowledgement (Windows only).",
11311131Details },
11321132 {
11331133Retry count for SSE streaming interruptions (default: 5). key: "chatgpt_base_url",
11341134 type: "string",
11351135Key description: "Override the base URL used during the ChatGPT login flow.",
11361136 },
11371137`model_providers.<id>.wire_api` {
11381138 key: "cli_auth_credentials_store",
11391139Type / Values type: "file | keyring | auto",
11401140 description:
11411141`chat | responses` "Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).",
11421142 },
11431143Details {
11441144 key: "mcp_oauth_credentials_store",
11451145Protocol used by the provider (defaults to `chat` if omitted). type: "auto | file | keyring",
11461146 description: "Preferred store for MCP OAuth credentials.",
11471147Key },
11481148 {
11491149`model_reasoning_effort` key: "mcp_oauth_callback_port",
11501150 type: "integer",
11511151Type / Values description:
11521152 "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.",
11531153`minimal | low | medium | high | xhigh` },
11541154 {
11551155Details key: "mcp_oauth_callback_url",
11561156 type: "string",
11571157Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). description:
11581158 "Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.",
11591159Key },
11601160 {
11611161`model_reasoning_summary` key: "experimental_use_unified_exec_tool",
11621162 type: "boolean",
11631163Type / Values description:
11641164 "Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.",
11651165`auto | concise | detailed | none` },
11661166 {
11671167Details key: "tools.web_search",
11681168 type: 'boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }',
11691169Select reasoning summary detail or disable summaries entirely. description:
11701170 "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.",
11711171Key },
11721172 {
11731173`model_supports_reasoning_summaries` key: "tools.view_image",
11741174 type: "boolean",
11751175Type / Values description: "Enable the local-image attachment tool `view_image`.",
11761176 },
11771177`boolean` {
11781178 key: "web_search",
11791179Details type: "disabled | cached | live",
11801180 description:
11811181Force Codex to send or not send reasoning metadata. '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.',
11821182 },
11831183Key {
11841184 key: "default_permissions",
11851185`model_verbosity` type: "string",
11861186 description:
11871187Type / Values "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.",
11881188 },
11891189`low | medium | high` {
11901190 key: "permissions.<name>.filesystem",
11911191Details type: "table",
11921192 description:
11931193Control GPT-5 Responses API verbosity (defaults to `medium`). "Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.",
11941194 },
11951195Key {
11961196 key: "permissions.<name>.filesystem.glob_scan_max_depth",
11971197`notice.hide_full_access_warning` type: "number",
11981198 description:
11991199Type / Values "Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.",
12001200 },
12011201`boolean` {
12021202 key: "permissions.<name>.filesystem.<path-or-glob>",
12031203Details type: '"read" | "write" | "none" | table',
12041204 description:
12051205Track acknowledgement of the full access warning prompt. '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.',
12061206 },
12071207Key {
12081208 key: 'permissions.<name>.filesystem.":project_roots".<subpath-or-glob>',
12091209`notice.hide_gpt-5.1-codex-max_migration_prompt` type: '"read" | "write" | "none"',
12101210 description:
12111211Type / Values 'Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.',
12121212 },
12131213`boolean` {
12141214 key: "permissions.<name>.network.enabled",
12151215Details type: "boolean",
12161216 description: "Enable network access for this named permissions profile.",
12171217Track acknowledgement of the gpt-5.1-codex-max migration prompt. },
12181218 {
12191219Key key: "permissions.<name>.network.proxy_url",
12201220 type: "string",
12211221`notice.hide_gpt5_1_migration_prompt` description:
12221222 "HTTP proxy endpoint used when this permissions profile enables the managed network proxy.",
12231223Type / Values },
12241224 {
12251225`boolean` key: "permissions.<name>.network.enable_socks5",
12261226 type: "boolean",
12271227Details description:
12281228 "Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.",
12291229Track acknowledgement of the GPT-5.1 migration prompt. },
12301230 {
12311231Key key: "permissions.<name>.network.socks_url",
12321232 type: "string",
12331233`notice.hide_rate_limit_model_nudge` description: "SOCKS5 proxy endpoint used by this permissions profile.",
12341234 },
12351235Type / Values {
12361236 key: "permissions.<name>.network.enable_socks5_udp",
12371237`boolean` type: "boolean",
12381238 description: "Allow UDP over the SOCKS5 listener when enabled.",
12391239Details },
12401240 {
12411241Track opt-out of the rate limit model switch reminder. key: "permissions.<name>.network.allow_upstream_proxy",
12421242 type: "boolean",
12431243Key description:
12441244 "Allow the managed proxy to chain to another upstream proxy.",
12451245`notice.hide_world_writable_warning` },
12461246 {
12471247Type / Values key: "permissions.<name>.network.dangerously_allow_non_loopback_proxy",
12481248 type: "boolean",
12491249`boolean` description:
12501250 "Permit non-loopback bind addresses for the managed proxy listener.",
12511251Details },
12521252 {
12531253Track acknowledgement of the Windows world-writable directories warning. key: "permissions.<name>.network.dangerously_allow_all_unix_sockets",
12541254 type: "boolean",
12551255Key description:
12561256 "Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.",
12571257`notice.model_migrations` },
12581258 {
12591259Type / Values key: "permissions.<name>.network.mode",
12601260 type: "limited | full",
12611261`map<string,string>` description: "Network proxy mode used for subprocess traffic.",
12621262 },
12631263Details {
12641264 key: "permissions.<name>.network.domains",
12651265Track acknowledged model migrations as old->new mappings. type: "map<string, allow | deny>",
12661266 description:
12671267Key "Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.",
12681268 },
12691269`notify` {
12701270 key: "permissions.<name>.network.unix_sockets",
12711271Type / Values type: "map<string, allow | none>",
12721272 description:
12731273`array<string>` "Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.",
12741274 },
12751275Details {
12761276 key: "permissions.<name>.network.allow_local_binding",
12771277Command invoked for notifications; receives a JSON payload from Codex. type: "boolean",
12781278 description:
12791279Key "Permit local bind/listen operations through the managed proxy.",
12801280 },
12811281`oss_provider` {
12821282 key: "projects.<path>.trust_level",
12831283Type / Values type: "string",
12841284 description:
12851285`lmstudio | ollama` '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.',
12861286 },
12871287Details {
12881288 key: "notice.hide_full_access_warning",
12891289Default local provider used when running with `--oss` (defaults to prompting if unset). type: "boolean",
12901290 description: "Track acknowledgement of the full access warning prompt.",
12911291Key },
12921292 {
12931293`otel.environment` key: "notice.hide_world_writable_warning",
12941294 type: "boolean",
12951295Type / Values description:
12961296 "Track acknowledgement of the Windows world-writable directories warning.",
12971297`string` },
12981298 {
12991299Details key: "notice.hide_rate_limit_model_nudge",
13001300 type: "boolean",
13011301Environment tag applied to emitted OpenTelemetry events (default: `dev`). description: "Track opt-out of the rate limit model switch reminder.",
13021302 },
13031303Key {
13041304 key: "notice.hide_gpt5_1_migration_prompt",
13051305`otel.exporter` type: "boolean",
13061306 description: "Track acknowledgement of the GPT-5.1 migration prompt.",
13071307Type / Values },
13081308 {
13091309`none | otlp-http | otlp-grpc` key: "notice.hide_gpt-5.1-codex-max_migration_prompt",
13101310 type: "boolean",
13111311Details description:
13121312 "Track acknowledgement of the gpt-5.1-codex-max migration prompt.",
13131313Select the OpenTelemetry exporter and provide any endpoint metadata. },
13141314 {
13151315Key key: "notice.model_migrations",
13161316 type: "map<string,string>",
13171317`otel.exporter.<id>.endpoint` description: "Track acknowledged model migrations as old->new mappings.",
13181318 },
13191319Type / Values {
13201320 key: "forced_login_method",
13211321`string` type: "chatgpt | api",
13221322 description: "Restrict Codex to a specific authentication method.",
13231323Details },
13241324 {
13251325Exporter endpoint for OTEL logs. key: "forced_chatgpt_workspace_id",
13261326 type: "string (uuid)",
13271327Key description: "Limit ChatGPT logins to a specific workspace identifier.",
13281328 },
13291329`otel.exporter.<id>.headers` ]}
13301330 client:load
13311331Type / Values/>
1332
1333`map<string,string>`
1334
1335Details
1336
1337Static headers included with OTEL exporter requests.
1338
1339Key
1340
1341`otel.exporter.<id>.protocol`
1342
1343Type / Values
1344
1345`binary | json`
1346
1347Details
1348
1349Protocol used by the OTLP/HTTP exporter.
1350
1351Key
1352
1353`otel.exporter.<id>.tls.ca-certificate`
1354
1355Type / Values
1356
1357`string`
1358
1359Details
1360
1361CA certificate path for OTEL exporter TLS.
1362
1363Key
1364
1365`otel.exporter.<id>.tls.client-certificate`
1366
1367Type / Values
1368
1369`string`
1370
1371Details
1372
1373Client certificate path for OTEL exporter TLS.
1374
1375Key
1376
1377`otel.exporter.<id>.tls.client-private-key`
1378
1379Type / Values
1380
1381`string`
1382
1383Details
1384
1385Client private key path for OTEL exporter TLS.
1386
1387Key
1388
1389`otel.log_user_prompt`
1390
1391Type / Values
1392
1393`boolean`
1394
1395Details
1396
1397Opt in to exporting raw user prompts with OpenTelemetry logs.
1398
1399Key
1400
1401`otel.trace_exporter`
1402
1403Type / Values
1404
1405`none | otlp-http | otlp-grpc`
1406
1407Details
1408
1409Select the OpenTelemetry trace exporter and provide any endpoint metadata.
1410
1411Key
1412
1413`otel.trace_exporter.<id>.endpoint`
1414
1415Type / Values
1416
1417`string`
1418
1419Details
1420
1421Trace exporter endpoint for OTEL logs.
1422
1423Key
1424
1425`otel.trace_exporter.<id>.headers`
1426
1427Type / Values
1428
1429`map<string,string>`
1430
1431Details
1432
1433Static headers included with OTEL trace exporter requests.
1434
1435Key
1436
1437`otel.trace_exporter.<id>.protocol`
1438
1439Type / Values
1440
1441`binary | json`
1442
1443Details
1444
1445Protocol used by the OTLP/HTTP trace exporter.
1446
1447Key
1448
1449`otel.trace_exporter.<id>.tls.ca-certificate`
1450
1451Type / Values
1452
1453`string`
1454
1455Details
1456
1457CA certificate path for OTEL trace exporter TLS.
1458
1459Key
1460
1461`otel.trace_exporter.<id>.tls.client-certificate`
1462
1463Type / Values
1464
1465`string`
1466
1467Details
1468
1469Client certificate path for OTEL trace exporter TLS.
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 1332
1977You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).1333You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).
1978 1334
1986 1342
1987## `requirements.toml`1343## `requirements.toml`
1988 1344
19891345`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can’t override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/security#admin-enforced-requirements-requirementstoml).`requirements.toml` is an admin-enforced configuration file that constrains security-sensitive settings users can't override. For details, locations, and examples, see [Admin-enforced requirements](https://developers.openai.com/codex/enterprise/managed-configuration#admin-enforced-requirements-requirementstoml).
1990 1346
1991For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched1347For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched
1992requirements. See the security page for precedence details.1348requirements. See the security page for precedence details.
1993 1349
19941350| Key | Type / Values | Details |Use `[features]` in `requirements.toml` to pin feature flags by the same
19951351| --- | --- | --- |canonical keys that `config.toml` uses. Omitted keys remain unconstrained.
19961352| `allowed_approval_policies` | `array<string>` | Allowed values for `approval\_policy`. |
19971353| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |<ConfigTable
19981354| `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`. | options={[
19991355| `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. | {
20001356| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). | key: "allowed_approval_policies",
20011357| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. | type: "array<string>",
20021358| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. | description:
20031359| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. | "Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).",
20041360| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. | },
20051361| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). | {
20061362| `rules.prefix_rules[].justification` | `string` | Optional non-empty rationale surfaced in approval prompts or rejection messages. | key: "allowed_approvals_reviewers",
20071363| `rules.prefix_rules[].pattern` | `array<table>` | Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`. | type: "array<string>",
20081364| `rules.prefix_rules[].pattern[].any_of` | `array<string>` | A list of allowed alternative tokens at this position. | description:
20091365| `rules.prefix_rules[].pattern[].token` | `string` | A single literal token at this position. | "Allowed values for `approvals_reviewer`, such as `user` and `auto_review`.",
20101366 },
20111367Key {
20121368 key: "guardian_policy_config",
20131369`allowed_approval_policies` type: "string",
20141370 description:
20151371Type / Values "Managed Markdown policy instructions for automatic review. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",
20161372 },
20171373`array<string>` {
20181374 key: "allowed_sandbox_modes",
20191375Details type: "array<string>",
20201376 description: "Allowed values for `sandbox_mode`.",
20211377Allowed values for `approval\_policy`. },
20221378 {
20231379Key key: "remote_sandbox_config",
20241380 type: "array<table>",
20251381`allowed_sandbox_modes` description:
20261382 "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.",
20271383Type / Values },
20281384 {
20291385`array<string>` key: "remote_sandbox_config[].hostname_patterns",
20301386 type: "array<string>",
20311387Details description:
20321388 "Case-insensitive host name patterns. Supports `*` for any sequence of characters and `?` for one character.",
20331389Allowed values for `sandbox_mode`. },
20341390 {
20351391Key key: "remote_sandbox_config[].allowed_sandbox_modes",
20361392 type: "array<string>",
20371393`allowed_web_search_modes` description:
20381394 "Allowed sandbox modes to apply when this host-specific entry matches.",
20391395Type / Values },
20401396 {
20411397`array<string>` key: "allowed_web_search_modes",
20421398 type: "array<string>",
20431399Details description:
20441400 "Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.",
20451401Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`. },
20461402 {
20471403Key key: "features",
20481404 type: "table",
20491405`mcp_servers` description:
20501406 "Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.",
20511407Type / Values },
20521408 {
20531409`table` key: "features.<name>",
20541410 type: "boolean",
20551411Details description:
20561412 "Require a specific canonical feature key to stay enabled or disabled.",
20571413Allowlist 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. },
20581414 {
20591415Key key: "features.in_app_browser",
20601416 type: "boolean",
20611417`mcp_servers.<id>.identity` description:
20621418 "Set to `false` in `requirements.toml` to disable the in-app browser pane.",
20631419Type / Values },
20641420 {
20651421`table` key: "features.browser_use",
20661422 type: "boolean",
20671423Details description:
20681424 "Set to `false` in `requirements.toml` to disable Browser Use and Browser Agent availability.",
20691425Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). },
20701426 {
20711427Key key: "features.computer_use",
20721428 type: "boolean",
20731429`mcp_servers.<id>.identity.command` description:
20741430 "Set to `false` in `requirements.toml` to disable Computer Use availability and related install or enablement flows.",
20751431Type / Values },
20761432 {
20771433`string` key: "hooks",
20781434 type: "table",
20791435Details description:
20801436 "Admin-enforced managed lifecycle hooks. Requires a managed hook directory and uses the same event schema as inline `[hooks]` in `config.toml`.",
20811437Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. },
20821438 {
20831439Key key: "hooks.managed_dir",
20841440 type: "string (absolute path)",
20851441`mcp_servers.<id>.identity.url` description:
20861442 "Directory containing managed hook scripts on macOS and Linux. Codex validates that it is absolute and exists before loading managed hooks.",
20871443Type / Values },
20881444 {
20891445`string` key: "hooks.windows_managed_dir",
20901446 type: "string (absolute path)",
20911447Details description:
20921448 "Directory containing managed hook scripts on Windows. Codex validates that it is absolute and exists before loading managed hooks.",
20931449Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. },
20941450 {
20951451Key key: "hooks.<Event>",
20961452 type: "array<table>",
20971453`rules` description:
20981454 "Matcher groups for a hook event such as `PreToolUse`, `PostToolUse`, `PermissionRequest`, `SessionStart`, `UserPromptSubmit`, or `Stop`.",
20991455Type / Values },
21001456 {
21011457`table` key: "hooks.<Event>[].hooks",
21021458 type: "array<table>",
21031459Details description:
21041460 "Hook handlers for a matcher group. Command hooks are currently supported; prompt and agent hook handlers are parsed but skipped.",
21051461Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. },
21061462 {
21071463Key key: "permissions.filesystem.deny_read",
21081464 type: "array<string>",
21091465`rules.prefix_rules` description:
21101466 "Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config.",
21111467Type / Values },
21121468 {
21131469`array<table>` key: "mcp_servers",
21141470 type: "table",
21151471Details description:
21161472 "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.",
21171473List of enforced prefix rules. Each rule must include `pattern` and `decision`. },
21181474 {
21191475Key key: "mcp_servers.<id>.identity",
21201476 type: "table",
21211477`rules.prefix_rules[].decision` description:
21221478 "Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).",
21231479Type / Values },
21241480 {
21251481`prompt | forbidden` key: "mcp_servers.<id>.identity.command",
21261482 type: "string",
21271483Details description:
21281484 "Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.",
21291485Required. Requirements rules can only prompt or forbid (not allow). },
21301486 {
21311487Key key: "mcp_servers.<id>.identity.url",
21321488 type: "string",
21331489`rules.prefix_rules[].justification` description:
21341490 "Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.",
21351491Type / Values },
21361492 {
21371493`string` key: "rules",
21381494 type: "table",
21391495Details description:
21401496 "Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive.",
21411497Optional non-empty rationale surfaced in approval prompts or rejection messages. },
21421498 {
21431499Key key: "rules.prefix_rules",
21441500 type: "array<table>",
21451501`rules.prefix_rules[].pattern` description:
21461502 "List of enforced prefix rules. Each rule must include `pattern` and `decision`.",
21471503Type / Values },
21481504 {
21491505`array<table>` key: "rules.prefix_rules[].pattern",
21501506 type: "array<table>",
21511507Details description:
21521508 "Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`.",
21531509Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`. },
21541510 {
21551511Key key: "rules.prefix_rules[].pattern[].token",
21561512 type: "string",
21571513`rules.prefix_rules[].pattern[].any_of` description: "A single literal token at this position.",
21581514 },
21591515Type / Values {
21601516 key: "rules.prefix_rules[].pattern[].any_of",
21611517`array<string>` type: "array<string>",
21621518 description: "A list of allowed alternative tokens at this position.",
21631519Details },
21641520 {
21651521A list of allowed alternative tokens at this position. key: "rules.prefix_rules[].decision",
21661522 type: "prompt | forbidden",
21671523Key description:
21681524 "Required. Requirements rules can only prompt or forbid (not allow).",
21691525`rules.prefix_rules[].pattern[].token` },
21701526 {
21711527Type / Values key: "rules.prefix_rules[].justification",
21721528 type: "string",
21731529`string` description:
21741530 "Optional non-empty rationale surfaced in approval prompts or rejection messages.",
21751531Details },
21761532 ]}
21771533A single literal token at this position. client:load
21781534 />
2179Expand to view all