SpyBara
Go Premium Account
2026
3 Mar 2026, 00:35
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
14 May 2026, 07:00
14 May 2026, 21:00 14 May 2026, 07:00 13 May 2026, 00:57 12 May 2026, 01:59 11 May 2026, 18:00 7 May 2026, 20:02 7 May 2026, 17:08 5 May 2026, 23:00 2 May 2026, 06:45 2 May 2026, 00:48 1 May 2026, 18:29 30 Apr 2026, 18:36 29 Apr 2026, 12:40 29 Apr 2026, 00:50 25 Apr 2026, 06:37 25 Apr 2026, 00:42 24 Apr 2026, 18:20 24 Apr 2026, 12:28 23 Apr 2026, 18:31 23 Apr 2026, 12:28 23 Apr 2026, 00:46 22 Apr 2026, 18:29 22 Apr 2026, 00:42 21 Apr 2026, 18:29 21 Apr 2026, 12:30 21 Apr 2026, 06:45 20 Apr 2026, 18:26 20 Apr 2026, 06:53 18 Apr 2026, 18:18 17 Apr 2026, 00:44 16 Apr 2026, 18:31 16 Apr 2026, 00:46 15 Apr 2026, 18:31 15 Apr 2026, 06:44 14 Apr 2026, 18:31 14 Apr 2026, 12:29 13 Apr 2026, 18:37 13 Apr 2026, 00:44 12 Apr 2026, 06:38 10 Apr 2026, 18:23 9 Apr 2026, 00:33 8 Apr 2026, 18:32 8 Apr 2026, 00:40 7 Apr 2026, 00:40 2 Apr 2026, 18:23 31 Mar 2026, 06:35 31 Mar 2026, 00:39 28 Mar 2026, 06:26 28 Mar 2026, 00:36 27 Mar 2026, 18:23 27 Mar 2026, 00:39 26 Mar 2026, 18:27 25 Mar 2026, 18:24 23 Mar 2026, 18:22 20 Mar 2026, 00:35 18 Mar 2026, 12:23 18 Mar 2026, 00:36 17 Mar 2026, 18:24 17 Mar 2026, 00:33 16 Mar 2026, 18:25 16 Mar 2026, 12:23 14 Mar 2026, 00:32 13 Mar 2026, 18:15 13 Mar 2026, 00:34 11 Mar 2026, 00:31 9 Mar 2026, 00:34 8 Mar 2026, 18:10 8 Mar 2026, 00:35 7 Mar 2026, 18:10 7 Mar 2026, 06:14 7 Mar 2026, 00:33 6 Mar 2026, 00:38 5 Mar 2026, 18:41 5 Mar 2026, 06:22 5 Mar 2026, 00:34 4 Mar 2026, 18:18 4 Mar 2026, 06:20 3 Mar 2026, 18:20 3 Mar 2026, 00:35 27 Feb 2026, 18:15 24 Feb 2026, 06:27 24 Feb 2026, 00:33 23 Feb 2026, 18:27 21 Feb 2026, 00:33 20 Feb 2026, 12:16 19 Feb 2026, 20:53 19 Feb 2026, 20:37
Fri 1 18:29 Sat 2 00:48 Sat 2 06:45 Tue 5 23:00 Thu 7 17:08 Thu 7 20:02 Mon 11 18:00 Tue 12 01:59 Wed 13 00:57 Thu 14 07:00 Thu 14 21:00

After 2026-05-02 06:45 UTC, this monitor no longer uses markdownified HTML/MDX. Comparisons across that boundary can therefore show more extensive diffs.

config-reference.md +1514 −2363

Details

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 

9For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/security#network-access).9For sandbox and approval keys (`approval_policy`, `sandbox_mode`, and `sandbox_workspace_write.*`), pair this reference with [Sandbox and approvals](https://developers.openai.com/codex/agent-approvals-security#sandbox-and-approvals), [Protected paths in writable roots](https://developers.openai.com/codex/agent-approvals-security#protected-paths-in-writable-roots), and [Network access](https://developers.openai.com/codex/agent-approvals-security#network-access).

10 10 

11| Key | Type / Values | Details |11<ConfigTable

12| --- | --- | --- |12 options={[

13| `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. |13 {

14| `agents.<name>.description` | `string` | Role guidance shown to Codex when choosing and spawning that agent type. |14 key: "model",

15| `agents.max_depth` | `number` | Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1). |15 type: "string",

16| `agents.max_threads` | `number` | Maximum number of agent threads that can be open concurrently. |16 description: "Model to use (e.g., `gpt-5.5`).",

17| `allow_login_shell` | `boolean` | Allow shell-based tools to use login-shell semantics. Defaults to `true`; when `false`, `login = true` requests are rejected and omitted `login` defaults to non-login shells. |17 },

18| `approval_policy` | `untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }` | Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs. |18 {

19| `approval_policy.reject.mcp_elicitations` | `boolean` | When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user. |19 key: "review_model",

20| `approval_policy.reject.rules` | `boolean` | When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected. |20 type: "string",

21| `approval_policy.reject.sandbox_approval` | `boolean` | When `true`, sandbox escalation approval prompts are auto-rejected. |21 description:

22| `apps._default.destructive_enabled` | `boolean` | Default allow/deny for app tools with `destructive_hint = true`. |22 "Optional model override used by `/review` (defaults to the current session model).",

23| `apps._default.enabled` | `boolean` | Default app enabled state for all apps unless overridden per app. |23 },

24| `apps._default.open_world_enabled` | `boolean` | Default allow/deny for app tools with `open_world_hint = true`. |24 {

25| `apps.<id>.default_tools_approval_mode` | `auto | prompt | approve` | Default approval behavior for tools in this app unless a per-tool override exists. |25 key: "model_provider",

26| `apps.<id>.default_tools_enabled` | `boolean` | Default enabled state for tools in this app unless a per-tool override exists. |26 type: "string",

27| `apps.<id>.destructive_enabled` | `boolean` | Allow or block tools in this app that advertise `destructive_hint = true`. |27 description: "Provider id from `model_providers` (default: `openai`).",

28| `apps.<id>.enabled` | `boolean` | Enable or disable a specific app/connector by id (default: true). |28 },

29| `apps.<id>.open_world_enabled` | `boolean` | Allow or block tools in this app that advertise `open_world_hint = true`. |29 {

30| `apps.<id>.tools.<tool>.approval_mode` | `auto | prompt | approve` | Per-tool approval behavior override for a single app tool. |30 key: "openai_base_url",

31| `apps.<id>.tools.<tool>.enabled` | `boolean` | Per-tool enabled override for an app tool (for example `repos/list`). |31 type: "string",

32| `background_terminal_max_timeout` | `number` | Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key. |32 description:

33| `chatgpt_base_url` | `string` | Override the base URL used during the ChatGPT login flow. |33 "Base URL override for the built-in `openai` model provider.",

34| `check_for_update_on_startup` | `boolean` | Check for Codex updates on startup (set to false only when updates are centrally managed). |34 },

35| `cli_auth_credentials_store` | `file | keyring | auto` | Control where the CLI stores cached credentials (file-based auth.json vs OS keychain). |35 {

36| `compact_prompt` | `string` | Inline override for the history compaction prompt. |36 key: "model_context_window",

37| `developer_instructions` | `string` | Additional developer instructions injected into the session (optional). |37 type: "number",

38| `disable_paste_burst` | `boolean` | Disable burst-paste detection in the TUI. |38 description: "Context window tokens available to the active model.",

39| `experimental_compact_prompt_file` | `string (path)` | Load the compaction prompt override from a file (experimental). |39 },

40| `experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`. |40 {

41| `experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`. |41 key: "model_auto_compact_token_limit",

42| `features.apply_patch_freeform` | `boolean` | Expose the freeform `apply_patch` tool (experimental). |42 type: "number",

43| `features.apps` | `boolean` | Enable ChatGPT Apps/connectors support (experimental). |43 description:

44| `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). |44 "Token threshold that triggers automatic history compaction (unset uses model defaults).",

45| `features.child_agents_md` | `boolean` | Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental). |45 },

46| `features.collaboration_modes` | `boolean` | Enable collaboration modes such as plan mode (stable; on by default). |46 {

47| `features.multi_agent` | `boolean` | Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default). |47 key: "model_catalog_json",

48| `features.personality` | `boolean` | Enable personality selection controls (stable; on by default). |48 type: "string (path)",

49| `features.powershell_utf8` | `boolean` | Force PowerShell UTF-8 output (defaults to true). |49 description:

50| `features.remote_models` | `boolean` | Refresh remote model list before showing readiness (experimental). |50 "Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.",

51| `features.request_rule` | `boolean` | Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default). |51 },

52| `features.runtime_metrics` | `boolean` | Show runtime metrics summary in TUI turn separators (experimental). |52 {

53| `features.search_tool` | `boolean` | Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental). |53 key: "oss_provider",

54| `features.shell_snapshot` | `boolean` | Snapshot shell environment to speed up repeated commands (beta). |54 type: "lmstudio | ollama",

55| `features.shell_tool` | `boolean` | Enable the default `shell` tool for running commands (stable; on by default). |55 description:

56| `features.unified_exec` | `boolean` | Use the unified PTY-backed exec tool (beta). |56 "Default local provider used when running with `--oss` (defaults to prompting if unset).",

57| `features.use_linux_sandbox_bwrap` | `boolean` | Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default). |57 },

58| `features.web_search` | `boolean` | Deprecated legacy toggle; prefer the top-level `web_search` setting. |58 {

59| `features.web_search_cached` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`. |59 key: "approval_policy",

60| `features.web_search_request` | `boolean` | Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`. |60 type: "untrusted | on-request | never | { granular = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool, request_permissions = bool, skill_approval = bool } }",

61| `feedback.enabled` | `boolean` | Enable feedback submission via `/feedback` across Codex surfaces (default: true). |61 description:

62| `file_opener` | `vscode | vscode-insiders | windsurf | cursor | none` | URI scheme used to open citations from Codex output (default: `vscode`). |62 "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.",

63| `forced_chatgpt_workspace_id` | `string (uuid)` | Limit ChatGPT logins to a specific workspace identifier. |63 },

64| `forced_login_method` | `chatgpt | api` | Restrict Codex to a specific authentication method. |64 {

65| `hide_agent_reasoning` | `boolean` | Suppress reasoning events in both the TUI and `codex exec` output. |65 key: "approval_policy.granular.sandbox_approval",

66| `history.max_bytes` | `number` | If set, caps the history file size in bytes by dropping oldest entries. |66 type: "boolean",

67| `history.persistence` | `save-all | none` | Control whether Codex saves session transcripts to history.jsonl. |67 description:

68| `include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |68 "When `true`, sandbox escalation approval prompts are allowed to surface.",

69| `instructions` | `string` | Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`. |69 },

70| `log_dir` | `string (path)` | Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`. |70 {

71| `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. |71 key: "approval_policy.granular.rules",

72| `mcp_oauth_callback_url` | `string` | Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port. |72 type: "boolean",

73| `mcp_oauth_credentials_store` | `auto | file | keyring` | Preferred store for MCP OAuth credentials. |73 description:

74| `mcp_servers.<id>.args` | `array<string>` | Arguments passed to the MCP stdio server command. |74 "When `true`, approvals triggered by execpolicy `prompt` rules are allowed to surface.",

75| `mcp_servers.<id>.bearer_token_env_var` | `string` | Environment variable sourcing the bearer token for an MCP HTTP server. |75 },

76| `mcp_servers.<id>.command` | `string` | Launcher command for an MCP stdio server. |76 {

77| `mcp_servers.<id>.cwd` | `string` | Working directory for the MCP stdio server process. |77 key: "approval_policy.granular.mcp_elicitations",

78| `mcp_servers.<id>.disabled_tools` | `array<string>` | Deny list applied after `enabled_tools` for the MCP server. |78 type: "boolean",

79| `mcp_servers.<id>.enabled` | `boolean` | Disable an MCP server without removing its configuration. |79 description:

80| `mcp_servers.<id>.enabled_tools` | `array<string>` | Allow list of tool names exposed by the MCP server. |80 "When `true`, MCP elicitation prompts are allowed to surface instead of being auto-rejected.",

81| `mcp_servers.<id>.env` | `map<string,string>` | Environment variables forwarded to the MCP stdio server. |81 },

82| `mcp_servers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables for an MCP HTTP server. |82 {

83| `mcp_servers.<id>.env_vars` | `array<string>` | Additional environment variables to whitelist for an MCP stdio server. |83 key: "approval_policy.granular.request_permissions",

84| `mcp_servers.<id>.http_headers` | `map<string,string>` | Static HTTP headers included with each MCP HTTP request. |84 type: "boolean",

85| `mcp_servers.<id>.required` | `boolean` | When true, fail startup/resume if this enabled MCP server cannot initialize. |85 description:

86| `mcp_servers.<id>.startup_timeout_ms` | `number` | Alias for `startup_timeout_sec` in milliseconds. |86 "When `true`, prompts from the `request_permissions` tool are allowed to surface.",

87| `mcp_servers.<id>.startup_timeout_sec` | `number` | Override the default 10s startup timeout for an MCP server. |87 },

88| `mcp_servers.<id>.tool_timeout_sec` | `number` | Override the default 60s per-tool timeout for an MCP server. |88 {

89| `mcp_servers.<id>.url` | `string` | Endpoint for an MCP streamable HTTP server. |89 key: "approval_policy.granular.skill_approval",

90| `model` | `string` | Model to use (e.g., `gpt-5-codex`). |90 type: "boolean",

91| `model_auto_compact_token_limit` | `number` | Token threshold that triggers automatic history compaction (unset uses model defaults). |91 description:

92| `model_catalog_json` | `string (path)` | Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile. |92 "When `true`, skill-script approval prompts are allowed to surface.",

93| `model_context_window` | `number` | Context window tokens available to the active model. |93 },

94| `model_instructions_file` | `string (path)` | Replacement for built-in instructions instead of `AGENTS.md`. |94 {

95| `model_provider` | `string` | Provider id from `model_providers` (default: `openai`). |95 key: "approvals_reviewer",

96| `model_providers.<id>.base_url` | `string` | API base URL for the model provider. |96 type: "user | auto_review",

97| `model_providers.<id>.env_http_headers` | `map<string,string>` | HTTP headers populated from environment variables when present. |97 description:

98| `model_providers.<id>.env_key` | `string` | Environment variable supplying the provider API key. |98 "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.",

99| `model_providers.<id>.env_key_instructions` | `string` | Optional setup guidance for the provider API key. |99 },

100| `model_providers.<id>.experimental_bearer_token` | `string` | Direct bearer token for the provider (discouraged; use `env_key`). |100 {

101| `model_providers.<id>.http_headers` | `map<string,string>` | Static HTTP headers added to provider requests. |101 key: "auto_review.policy",

102| `model_providers.<id>.name` | `string` | Display name for a custom model provider. |102 type: "string",

103| `model_providers.<id>.query_params` | `map<string,string>` | Extra query parameters appended to provider requests. |103 description:

104| `model_providers.<id>.request_max_retries` | `number` | Retry count for HTTP requests to the provider (default: 4). |104 "Local Markdown policy instructions for automatic review. Managed `guardian_policy_config` takes precedence. Blank values are ignored.",

105| `model_providers.<id>.requires_openai_auth` | `boolean` | The provider uses OpenAI authentication (defaults to false). |105 },

106| `model_providers.<id>.stream_idle_timeout_ms` | `number` | Idle timeout for SSE streams in milliseconds (default: 300000). |106 {

107| `model_providers.<id>.stream_max_retries` | `number` | Retry count for SSE streaming interruptions (default: 5). |107 key: "allow_login_shell",

108| `model_providers.<id>.wire_api` | `chat | responses` | Protocol used by the provider (defaults to `chat` if omitted). |108 type: "boolean",

109| `model_reasoning_effort` | `minimal | low | medium | high | xhigh` | Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent). |109 description:

110| `model_reasoning_summary` | `auto | concise | detailed | none` | Select reasoning summary detail or disable summaries entirely. |110 "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.",

111| `model_supports_reasoning_summaries` | `boolean` | Force Codex to send or not send reasoning metadata. |111 },

112| `model_verbosity` | `low | medium | high` | Control GPT-5 Responses API verbosity (defaults to `medium`). |112 {

113| `notice.hide_full_access_warning` | `boolean` | Track acknowledgement of the full access warning prompt. |113 key: "sandbox_mode",

114| `notice.hide_gpt-5.1-codex-max_migration_prompt` | `boolean` | Track acknowledgement of the gpt-5.1-codex-max migration prompt. |114 type: "read-only | workspace-write | danger-full-access",

115| `notice.hide_gpt5_1_migration_prompt` | `boolean` | Track acknowledgement of the GPT-5.1 migration prompt. |115 description:

116| `notice.hide_rate_limit_model_nudge` | `boolean` | Track opt-out of the rate limit model switch reminder. |116 "Sandbox policy for filesystem and network access during command execution.",

117| `notice.hide_world_writable_warning` | `boolean` | Track acknowledgement of the Windows world-writable directories warning. |117 },

118| `notice.model_migrations` | `map<string,string>` | Track acknowledged model migrations as old->new mappings. |118 {

119| `notify` | `array<string>` | Command invoked for notifications; receives a JSON payload from Codex. |119 key: "sandbox_workspace_write.writable_roots",

120| `oss_provider` | `lmstudio | ollama` | Default local provider used when running with `--oss` (defaults to prompting if unset). |120 type: "array<string>",

121| `otel.environment` | `string` | Environment tag applied to emitted OpenTelemetry events (default: `dev`). |121 description:

122| `otel.exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry exporter and provide any endpoint metadata. |122 'Additional writable roots when `sandbox_mode = "workspace-write"`.',

123| `otel.exporter.<id>.endpoint` | `string` | Exporter endpoint for OTEL logs. |123 },

124| `otel.exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL exporter requests. |124 {

125| `otel.exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP exporter. |125 key: "sandbox_workspace_write.network_access",

126| `otel.exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL exporter TLS. |126 type: "boolean",

127| `otel.exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL exporter TLS. |127 description:

128| `otel.exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL exporter TLS. |128 "Allow outbound network access inside the workspace-write sandbox.",

129| `otel.log_user_prompt` | `boolean` | Opt in to exporting raw user prompts with OpenTelemetry logs. |129 },

130| `otel.trace_exporter` | `none | otlp-http | otlp-grpc` | Select the OpenTelemetry trace exporter and provide any endpoint metadata. |130 {

131| `otel.trace_exporter.<id>.endpoint` | `string` | Trace exporter endpoint for OTEL logs. |131 key: "sandbox_workspace_write.exclude_tmpdir_env_var",

132| `otel.trace_exporter.<id>.headers` | `map<string,string>` | Static headers included with OTEL trace exporter requests. |132 type: "boolean",

133| `otel.trace_exporter.<id>.protocol` | `binary | json` | Protocol used by the OTLP/HTTP trace exporter. |133 description:

134| `otel.trace_exporter.<id>.tls.ca-certificate` | `string` | CA certificate path for OTEL trace exporter TLS. |134 "Exclude `$TMPDIR` from writable roots in workspace-write mode.",

135| `otel.trace_exporter.<id>.tls.client-certificate` | `string` | Client certificate path for OTEL trace exporter TLS. |135 },

136| `otel.trace_exporter.<id>.tls.client-private-key` | `string` | Client private key path for OTEL trace exporter TLS. |136 {

137| `personality` | `none | friendly | pragmatic` | Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`. |137 key: "sandbox_workspace_write.exclude_slash_tmp",

138| `profile` | `string` | Default profile applied at startup (equivalent to `--profile`). |138 type: "boolean",

139| `profiles.<name>.*` | `various` | Profile-scoped overrides for any of the supported configuration keys. |139 description:

140| `profiles.<name>.experimental_use_freeform_apply_patch` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |140 "Exclude `/tmp` from writable roots in workspace-write mode.",

141| `profiles.<name>.experimental_use_unified_exec_tool` | `boolean` | Legacy name for enabling unified exec; prefer `[features].unified_exec`. |141 },

142| `profiles.<name>.include_apply_patch_tool` | `boolean` | Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`. |142 {

143| `profiles.<name>.model_catalog_json` | `string (path)` | Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile). |143 key: "windows.sandbox",

144| `profiles.<name>.oss_provider` | `lmstudio | ollama` | Profile-scoped OSS provider for `--oss` sessions. |144 type: "unelevated | elevated",

145| `profiles.<name>.personality` | `none | friendly | pragmatic` | Profile-scoped communication style override for supported models. |145 description:

146| `profiles.<name>.web_search` | `disabled | cached | live` | Profile-scoped web search mode override (default: `"cached"`). |146 "Windows-only native sandbox mode when running Codex natively on Windows.",

147| `project_doc_fallback_filenames` | `array<string>` | Additional filenames to try when `AGENTS.md` is missing. |147 },

148| `project_doc_max_bytes` | `number` | Maximum bytes read from `AGENTS.md` when building project instructions. |148 {

149| `project_root_markers` | `array<string>` | List of project root marker filenames; used when searching parent directories for the project root. |149 key: "windows.sandbox_private_desktop",

150| `projects.<path>.trust_level` | `string` | Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers. |150 type: "boolean",

151| `review_model` | `string` | Optional model override used by `/review` (defaults to the current session model). |151 description:

152| `sandbox_mode` | `read-only | workspace-write | danger-full-access` | Sandbox policy for filesystem and network access during command execution. |152 "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.",

153| `sandbox_workspace_write.exclude_slash_tmp` | `boolean` | Exclude `/tmp` from writable roots in workspace-write mode. |153 },

154| `sandbox_workspace_write.exclude_tmpdir_env_var` | `boolean` | Exclude `$TMPDIR` from writable roots in workspace-write mode. |154 {

155| `sandbox_workspace_write.network_access` | `boolean` | Allow outbound network access inside the workspace-write sandbox. |155 key: "notify",

156| `sandbox_workspace_write.writable_roots` | `array<string>` | Additional writable roots when `sandbox_mode = "workspace-write"`. |156 type: "array<string>",

157| `shell_environment_policy.exclude` | `array<string>` | Glob patterns for removing environment variables after the defaults. |157 description:

158| `shell_environment_policy.experimental_use_profile` | `boolean` | Use the user shell profile when spawning subprocesses. |158 "Command invoked for notifications; receives a JSON payload from Codex.",

159| `shell_environment_policy.ignore_default_excludes` | `boolean` | Keep variables containing KEY/SECRET/TOKEN before other filters run. |159 },

160| `shell_environment_policy.include_only` | `array<string>` | Whitelist of patterns; when set only matching variables are kept. |160 {

161| `shell_environment_policy.inherit` | `all | core | none` | Baseline environment inheritance when spawning subprocesses. |161 key: "check_for_update_on_startup",

162| `shell_environment_policy.set` | `map<string,string>` | Explicit environment overrides injected into every subprocess. |162 type: "boolean",

163| `show_raw_agent_reasoning` | `boolean` | Surface raw reasoning content when the active model emits it. |163 description:

164| `skills.config` | `array<object>` | Per-skill enablement overrides stored in config.toml. |164 "Check for Codex updates on startup (set to false only when updates are centrally managed).",

165| `skills.config.<index>.enabled` | `boolean` | Enable or disable the referenced skill. |165 },

166| `skills.config.<index>.path` | `string (path)` | Path to a skill folder containing `SKILL.md`. |166 {

167| `suppress_unstable_features_warning` | `boolean` | Suppress the warning that appears when under-development feature flags are enabled. |167 key: "feedback.enabled",

168| `tool_output_token_limit` | `number` | Token budget for storing individual tool/function outputs in history. |168 type: "boolean",

169| `tools.web_search` | `boolean` | Deprecated legacy toggle for web search; prefer the top-level `web_search` setting. |169 description:

170| `tui` | `table` | TUI-specific options such as enabling inline desktop notifications. |170 "Enable feedback submission via `/feedback` across Codex surfaces (default: true).",

171| `tui.alternate_screen` | `auto | always | never` | Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback). |171 },

172| `tui.animations` | `boolean` | Enable terminal animations (welcome screen, shimmer, spinner) (default: true). |172 {

173| `tui.notification_method` | `auto | osc9 | bel` | Notification method for unfocused terminal notifications (default: auto). |173 key: "analytics.enabled",

174| `tui.notifications` | `boolean | array<string>` | Enable TUI notifications; optionally restrict to specific event types. |174 type: "boolean",

175| `tui.show_tooltips` | `boolean` | Show onboarding tooltips in the TUI welcome screen (default: true). |175 description:

176| `tui.status_line` | `array<string> | null` | Ordered list of TUI footer status-line item identifiers. `null` disables the status line. |176 "Enable or disable analytics for this machine/profile. When unset, the client default applies.",

177| `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. |177 },

178| `windows_wsl_setup_acknowledged` | `boolean` | Track Windows onboarding acknowledgement (Windows only). |178 {

179| `windows.sandbox` | `unelevated | elevated` | Windows-only native sandbox mode when running Codex natively on Windows. |179 key: "instructions",

180 180 type: "string",

181Key181 description:

182 182 "Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.",

183`agents.<name>.config_file`183 },

184 184 {

185Type / Values185 key: "developer_instructions",

186 186 type: "string",

187`string (path)`187 description:

188 188 "Additional developer instructions injected into the session (optional).",

189Details189 },

190 190 {

191Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role.191 key: "log_dir",

192 192 type: "string (path)",

193Key193 description:

194 194 "Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.",

195`agents.<name>.description`195 },

196 196 {

197Type / Values197 key: "sqlite_home",

198 198 type: "string (path)",

199`string`199 description:

200 200 "Directory where Codex stores the SQLite-backed state DB used by agent jobs and other resumable runtime state.",

201Details201 },

202 202 {

203Role guidance shown to Codex when choosing and spawning that agent type.203 key: "compact_prompt",

204 204 type: "string",

205Key205 description: "Inline override for the history compaction prompt.",

206 206 },

207`agents.max_depth`207 {

208 208 key: "commit_attribution",

209Type / Values209 type: "string",

210 210 description:

211`number`211 'Commit co-author trailer used when `[features].codex_git_commit` is enabled. Defaults to `Codex <noreply@openai.com>`; set `""` to disable.',

212 212 },

213Details213 {

214 214 key: "model_instructions_file",

215Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).215 type: "string (path)",

216 216 description:

217Key217 "Replacement for built-in instructions instead of `AGENTS.md`.",

218 218 },

219`agents.max_threads`219 {

220 220 key: "personality",

221Type / Values221 type: "none | friendly | pragmatic",

222 222 description:

223`number`223 "Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.",

224 224 },

225Details225 {

226 226 key: "service_tier",

227Maximum number of agent threads that can be open concurrently.227 type: "flex | fast",

228 228 description: "Preferred service tier for new turns.",

229Key229 },

230 230 {

231`allow_login_shell`231 key: "experimental_compact_prompt_file",

232 232 type: "string (path)",

233Type / Values233 description:

234 234 "Load the compaction prompt override from a file (experimental).",

235`boolean`235 },

236 236 {

237Details237 key: "skills.config",

238 238 type: "array<object>",

239Allow 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.239 description: "Per-skill enablement overrides stored in config.toml.",

240 240 },

241Key241 {

242 242 key: "skills.config.<index>.path",

243`approval_policy`243 type: "string (path)",

244 244 description: "Path to a skill folder containing `SKILL.md`.",

245Type / Values245 },

246 246 {

247`untrusted | on-request | never | { reject = { sandbox_approval = bool, rules = bool, mcp_elicitations = bool } }`247 key: "skills.config.<index>.enabled",

248 248 type: "boolean",

249Details249 description: "Enable or disable the referenced skill.",

250 250 },

251Controls when Codex pauses for approval before executing commands. You can also use `approval_policy = { reject = { ... } }` to auto-reject specific prompt categories while keeping other prompts interactive. `on-failure` is deprecated; use `on-request` for interactive runs or `never` for non-interactive runs.251 {

252 252 key: "apps.<id>.enabled",

253Key253 type: "boolean",

254 254 description:

255`approval_policy.reject.mcp_elicitations`255 "Enable or disable a specific app/connector by id (default: true).",

256 256 },

257Type / Values257 {

258 258 key: "apps._default.enabled",

259`boolean`259 type: "boolean",

260 260 description:

261Details261 "Default app enabled state for all apps unless overridden per app.",

262 262 },

263When `true`, MCP elicitation prompts are auto-rejected instead of shown to the user.263 {

264 264 key: "apps._default.destructive_enabled",

265Key265 type: "boolean",

266 266 description:

267`approval_policy.reject.rules`267 "Default allow/deny for app tools with `destructive_hint = true`.",

268 268 },

269Type / Values269 {

270 270 key: "apps._default.open_world_enabled",

271`boolean`271 type: "boolean",

272 272 description:

273Details273 "Default allow/deny for app tools with `open_world_hint = true`.",

274 274 },

275When `true`, approvals triggered by execpolicy `prompt` rules are auto-rejected.275 {

276 276 key: "apps.<id>.destructive_enabled",

277Key277 type: "boolean",

278 278 description:

279`approval_policy.reject.sandbox_approval`279 "Allow or block tools in this app that advertise `destructive_hint = true`.",

280 280 },

281Type / Values281 {

282 282 key: "apps.<id>.open_world_enabled",

283`boolean`283 type: "boolean",

284 284 description:

285Details285 "Allow or block tools in this app that advertise `open_world_hint = true`.",

286 286 },

287When `true`, sandbox escalation approval prompts are auto-rejected.287 {

288 288 key: "apps.<id>.default_tools_enabled",

289Key289 type: "boolean",

290 290 description:

291`apps._default.destructive_enabled`291 "Default enabled state for tools in this app unless a per-tool override exists.",

292 292 },

293Type / Values293 {

294 294 key: "apps.<id>.default_tools_approval_mode",

295`boolean`295 type: "auto | prompt | approve",

296 296 description:

297Details297 "Default approval behavior for tools in this app unless a per-tool override exists.",

298 298 },

299Default allow/deny for app tools with `destructive_hint = true`.299 {

300 300 key: "apps.<id>.tools.<tool>.enabled",

301Key301 type: "boolean",

302 302 description:

303`apps._default.enabled`303 "Per-tool enabled override for an app tool (for example `repos/list`).",

304 304 },

305Type / Values305 {

306 306 key: "apps.<id>.tools.<tool>.approval_mode",

307`boolean`307 type: "auto | prompt | approve",

308 308 description: "Per-tool approval behavior override for a single app tool.",

309Details309 },

310 310 {

311Default app enabled state for all apps unless overridden per app.311 key: "tool_suggest.discoverables",

312 312 type: "array<table>",

313Key313 description:

314 314 'Allow tool suggestions for additional discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',

315`apps._default.open_world_enabled`315 },

316 316 {

317Type / Values317 key: "tool_suggest.disabled_tools",

318 318 type: "array<table>",

319`boolean`319 description:

320 320 'Disable suggestions for specific discoverable connectors or plugins. Each entry uses `type = "connector"` or `"plugin"` and an `id`.',

321Details321 },

322 322 {

323Default allow/deny for app tools with `open_world_hint = true`.323 key: "features.apps",

324 324 type: "boolean",

325Key325 description: "Enable ChatGPT Apps/connectors support (experimental).",

326 326 },

327`apps.<id>.default_tools_approval_mode`327 {

328 328 key: "features.codex_hooks",

329Type / Values329 type: "boolean",

330 330 description:

331`auto | prompt | approve`331 "Enable lifecycle hooks loaded from `hooks.json` or inline `[hooks]` config.",

332 332 },

333Details333 {

334 334 key: "features.codex_git_commit",

335Default approval behavior for tools in this app unless a per-tool override exists.335 type: "boolean",

336 336 description:

337Key337 "Enable Codex-generated git commits. When enabled, Codex uses `commit_attribution` to append a `Co-authored-by:` trailer to generated commit messages.",

338 338 },

339`apps.<id>.default_tools_enabled`339 {

340 340 key: "hooks",

341Type / Values341 type: "table",

342 342 description:

343`boolean`343 "Lifecycle hooks configured inline in `config.toml`. Uses the same event schema as `hooks.json`; see the Hooks guide for examples and supported events.",

344 344 },

345Details345 {

346 346 key: "features.memories",

347Default enabled state for tools in this app unless a per-tool override exists.347 type: "boolean",

348 348 description: "Enable [Memories](https://developers.openai.com/codex/memories) (off by default).",

349Key349 },

350 350 {

351`apps.<id>.destructive_enabled`351 key: "mcp_servers.<id>.command",

352 352 type: "string",

353Type / Values353 description: "Launcher command for an MCP stdio server.",

354 354 },

355`boolean`355 {

356 356 key: "mcp_servers.<id>.args",

357Details357 type: "array<string>",

358 358 description: "Arguments passed to the MCP stdio server command.",

359Allow or block tools in this app that advertise `destructive_hint = true`.359 },

360 360 {

361Key361 key: "mcp_servers.<id>.env",

362 362 type: "map<string,string>",

363`apps.<id>.enabled`363 description: "Environment variables forwarded to the MCP stdio server.",

364 364 },

365Type / Values365 {

366 366 key: "mcp_servers.<id>.env_vars",

367`boolean`367 type: 'array<string | { name = string, source = "local" | "remote" }>',

368 368 description:

369Details369 '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.',

370 370 },

371Enable or disable a specific app/connector by id (default: true).371 {

372 372 key: "mcp_servers.<id>.cwd",

373Key373 type: "string",

374 374 description: "Working directory for the MCP stdio server process.",

375`apps.<id>.open_world_enabled`375 },

376 376 {

377Type / Values377 key: "mcp_servers.<id>.url",

378 378 type: "string",

379`boolean`379 description: "Endpoint for an MCP streamable HTTP server.",

380 380 },

381Details381 {

382 382 key: "mcp_servers.<id>.bearer_token_env_var",

383Allow or block tools in this app that advertise `open_world_hint = true`.383 type: "string",

384 384 description:

385Key385 "Environment variable sourcing the bearer token for an MCP HTTP server.",

386 386 },

387`apps.<id>.tools.<tool>.approval_mode`387 {

388 388 key: "mcp_servers.<id>.http_headers",

389Type / Values389 type: "map<string,string>",

390 390 description: "Static HTTP headers included with each MCP HTTP request.",

391`auto | prompt | approve`391 },

392 392 {

393Details393 key: "mcp_servers.<id>.env_http_headers",

394 394 type: "map<string,string>",

395Per-tool approval behavior override for a single app tool.395 description:

396 396 "HTTP headers populated from environment variables for an MCP HTTP server.",

397Key397 },

398 398 {

399`apps.<id>.tools.<tool>.enabled`399 key: "mcp_servers.<id>.enabled",

400 400 type: "boolean",

401Type / Values401 description: "Disable an MCP server without removing its configuration.",

402 402 },

403`boolean`403 {

404 404 key: "mcp_servers.<id>.required",

405Details405 type: "boolean",

406 406 description:

407Per-tool enabled override for an app tool (for example `repos/list`).407 "When true, fail startup/resume if this enabled MCP server cannot initialize.",

408 408 },

409Key409 {

410 410 key: "mcp_servers.<id>.startup_timeout_sec",

411`background_terminal_max_timeout`411 type: "number",

412 412 description:

413Type / Values413 "Override the default 10s startup timeout for an MCP server.",

414 414 },

415`number`415 {

416 416 key: "mcp_servers.<id>.startup_timeout_ms",

417Details417 type: "number",

418 418 description: "Alias for `startup_timeout_sec` in milliseconds.",

419Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.419 },

420 420 {

421Key421 key: "mcp_servers.<id>.tool_timeout_sec",

422 422 type: "number",

423`chatgpt_base_url`423 description:

424 424 "Override the default 60s per-tool timeout for an MCP server.",

425Type / Values425 },

426 426 {

427`string`427 key: "mcp_servers.<id>.enabled_tools",

428 428 type: "array<string>",

429Details429 description: "Allow list of tool names exposed by the MCP server.",

430 430 },

431Override the base URL used during the ChatGPT login flow.431 {

432 432 key: "mcp_servers.<id>.disabled_tools",

433Key433 type: "array<string>",

434 434 description:

435`check_for_update_on_startup`435 "Deny list applied after `enabled_tools` for the MCP server.",

436 436 },

437Type / Values437 {

438 438 key: "mcp_servers.<id>.scopes",

439`boolean`439 type: "array<string>",

440 440 description:

441Details441 "OAuth scopes to request when authenticating to that MCP server.",

442 442 },

443Check for Codex updates on startup (set to false only when updates are centrally managed).443 {

444 444 key: "mcp_servers.<id>.oauth_resource",

445Key445 type: "string",

446 446 description:

447`cli_auth_credentials_store`447 "Optional RFC 8707 OAuth resource parameter to include during MCP login.",

448 448 },

449Type / Values449 {

450 450 key: "mcp_servers.<id>.experimental_environment",

451`file | keyring | auto`451 type: "local | remote",

452 452 description:

453Details453 "Experimental placement for an MCP server. `remote` starts stdio servers through a remote executor environment; streamable HTTP remote placement is not implemented.",

454 454 },

455Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).455 {

456 456 key: "agents.max_threads",

457Key457 type: "number",

458 458 description:

459`compact_prompt`459 "Maximum number of agent threads that can be open concurrently. Defaults to `6` when unset.",

460 460 },

461Type / Values461 {

462 462 key: "agents.max_depth",

463`string`463 type: "number",

464 464 description:

465Details465 "Maximum nesting depth allowed for spawned agent threads (root sessions start at depth 0; default: 1).",

466 466 },

467Inline override for the history compaction prompt.467 {

468 468 key: "agents.job_max_runtime_seconds",

469Key469 type: "number",

470 470 description:

471`developer_instructions`471 "Default per-worker timeout for `spawn_agents_on_csv` jobs. When unset, the tool falls back to 1800 seconds per worker.",

472 472 },

473Type / Values473 {

474 474 key: "agents.<name>.description",

475`string`475 type: "string",

476 476 description:

477Details477 "Role guidance shown to Codex when choosing and spawning that agent type.",

478 478 },

479Additional developer instructions injected into the session (optional).479 {

480 480 key: "agents.<name>.config_file",

481Key481 type: "string (path)",

482 482 description:

483`disable_paste_burst`483 "Path to a TOML config layer for that role; relative paths resolve from the config file that declares the role.",

484 484 },

485Type / Values485 {

486 486 key: "agents.<name>.nickname_candidates",

487`boolean`487 type: "array<string>",

488 488 description:

489Details489 "Optional pool of display nicknames for spawned agents in that role.",

490 490 },

491Disable burst-paste detection in the TUI.491 {

492 492 key: "memories.generate_memories",

493Key493 type: "boolean",

494 494 description:

495`experimental_compact_prompt_file`495 "When `false`, newly created threads are not stored as memory-generation inputs. Defaults to `true`.",

496 496 },

497Type / Values497 {

498 498 key: "memories.use_memories",

499`string (path)`499 type: "boolean",

500 500 description:

501Details501 "When `false`, Codex skips injecting existing memories into future sessions. Defaults to `true`.",

502 502 },

503Load the compaction prompt override from a file (experimental).503 {

504 504 key: "memories.disable_on_external_context",

505Key505 type: "boolean",

506 506 description:

507`experimental_use_freeform_apply_patch`507 "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`.",

508 508 },

509Type / Values509 {

510 510 key: "memories.max_raw_memories_for_consolidation",

511`boolean`511 type: "number",

512 512 description:

513Details513 "Maximum recent raw memories retained for global consolidation. Defaults to `256` and is capped at `4096`.",

514 514 },

515Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform` or `codex --enable apply_patch_freeform`.515 {

516 516 key: "memories.max_unused_days",

517Key517 type: "number",

518 518 description:

519`experimental_use_unified_exec_tool`519 "Maximum days since a memory was last used before it becomes ineligible for consolidation. Defaults to `30` and is clamped to `0`-`365`.",

520 520 },

521Type / Values521 {

522 522 key: "memories.max_rollout_age_days",

523`boolean`523 type: "number",

524 524 description:

525Details525 "Maximum age of threads considered for memory generation. Defaults to `30` and is clamped to `0`-`90`.",

526 526 },

527Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.527 {

528 528 key: "memories.max_rollouts_per_startup",

529Key529 type: "number",

530 530 description:

531`features.apply_patch_freeform`531 "Maximum rollout candidates processed per startup pass. Defaults to `16` and is capped at `128`.",

532 532 },

533Type / Values533 {

534 534 key: "memories.min_rollout_idle_hours",

535`boolean`535 type: "number",

536 536 description:

537Details537 "Minimum idle time before a thread is considered for memory generation. Defaults to `6` and is clamped to `1`-`48`.",

538 538 },

539Expose the freeform `apply_patch` tool (experimental).539 {

540 540 key: "memories.min_rate_limit_remaining_percent",

541Key541 type: "number",

542 542 description:

543`features.apps`543 "Minimum remaining percentage required in Codex rate-limit windows before memory generation starts. Defaults to `25` and is clamped to `0`-`100`.",

544 544 },

545Type / Values545 {

546 546 key: "memories.extract_model",

547`boolean`547 type: "string",

548 548 description: "Optional model override for per-thread memory extraction.",

549Details549 },

550 550 {

551Enable ChatGPT Apps/connectors support (experimental).551 key: "memories.consolidation_model",

552 552 type: "string",

553Key553 description: "Optional model override for global memory consolidation.",

554 554 },

555`features.apps_mcp_gateway`555 {

556 556 key: "features.unified_exec",

557Type / Values557 type: "boolean",

558 558 description:

559`boolean`559 "Use the unified PTY-backed exec tool (stable; enabled by default except on Windows).",

560 560 },

561Details561 {

562 562 key: "features.shell_snapshot",

563Route Apps MCP calls through the OpenAI connectors MCP gateway (`https://api.openai.com/v1/connectors/mcp/`) instead of legacy routing (experimental).563 type: "boolean",

564 564 description:

565Key565 "Snapshot shell environment to speed up repeated commands (stable; on by default).",

566 566 },

567`features.child_agents_md`567 {

568 568 key: "features.undo",

569Type / Values569 type: "boolean",

570 570 description: "Enable undo support (stable; off by default).",

571`boolean`571 },

572 572 {

573Details573 key: "features.multi_agent",

574 574 type: "boolean",

575Append AGENTS.md scope/precedence guidance even when no AGENTS.md is present (experimental).575 description:

576 576 "Enable multi-agent collaboration tools (`spawn_agent`, `send_input`, `resume_agent`, `wait_agent`, and `close_agent`) (stable; on by default).",

577Key577 },

578 578 {

579`features.collaboration_modes`579 key: "features.personality",

580 580 type: "boolean",

581Type / Values581 description:

582 582 "Enable personality selection controls (stable; on by default).",

583`boolean`583 },

584 584 {

585Details585 key: "features.web_search",

586 586 type: "boolean",

587Enable collaboration modes such as plan mode (stable; on by default).587 description:

588 588 "Deprecated legacy toggle; prefer the top-level `web_search` setting.",

589Key589 },

590 590 {

591`features.multi_agent`591 key: "features.web_search_cached",

592 592 type: "boolean",

593Type / Values593 description:

594 594 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.',

595`boolean`595 },

596 596 {

597Details597 key: "features.web_search_request",

598 598 type: "boolean",

599Enable multi-agent collaboration tools (`spawn\_agent`, `send\_input`, `resume\_agent`, `wait`, and `close\_agent`) (experimental; off by default).599 description:

600 600 'Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.',

601Key601 },

602 602 {

603`features.personality`603 key: "features.shell_tool",

604 604 type: "boolean",

605Type / Values605 description:

606 606 "Enable the default `shell` tool for running commands (stable; on by default).",

607`boolean`607 },

608 608 {

609Details609 key: "features.enable_request_compression",

610 610 type: "boolean",

611Enable personality selection controls (stable; on by default).611 description:

612 612 "Compress streaming request bodies with zstd when supported (stable; on by default).",

613Key613 },

614 614 {

615`features.powershell_utf8`615 key: "features.skill_mcp_dependency_install",

616 616 type: "boolean",

617Type / Values617 description:

618 618 "Allow prompting and installing missing MCP dependencies for skills (stable; on by default).",

619`boolean`619 },

620 620 {

621Details621 key: "features.fast_mode",

622 622 type: "boolean",

623Force PowerShell UTF-8 output (defaults to true).623 description:

624 624 'Enable Fast mode selection and the `service_tier = "fast"` path (stable; on by default).',

625Key625 },

626 626 {

627`features.remote_models`627 key: "features.prevent_idle_sleep",

628 628 type: "boolean",

629Type / Values629 description:

630 630 "Prevent the machine from sleeping while a turn is actively running (experimental; off by default).",

631`boolean`631 },

632 632 {

633Details633 key: "suppress_unstable_features_warning",

634 634 type: "boolean",

635Refresh remote model list before showing readiness (experimental).635 description:

636 636 "Suppress the warning that appears when under-development feature flags are enabled.",

637Key637 },

638 638 {

639`features.request_rule`639 key: "model_providers.<id>",

640 640 type: "table",

641Type / Values641 description:

642 642 "Custom provider definition. Built-in provider IDs (`openai`, `ollama`, and `lmstudio`) are reserved and cannot be overridden.",

643`boolean`643 },

644 644 {

645Details645 key: "model_providers.<id>.name",

646 646 type: "string",

647Enable Smart approvals (`prefix_rule` suggestions on escalation requests; stable; on by default).647 description: "Display name for a custom model provider.",

648 648 },

649Key649 {

650 650 key: "model_providers.<id>.base_url",

651`features.runtime_metrics`651 type: "string",

652 652 description: "API base URL for the model provider.",

653Type / Values653 },

654 654 {

655`boolean`655 key: "model_providers.<id>.env_key",

656 656 type: "string",

657Details657 description: "Environment variable supplying the provider API key.",

658 658 },

659Show runtime metrics summary in TUI turn separators (experimental).659 {

660 660 key: "model_providers.<id>.env_key_instructions",

661Key661 type: "string",

662 662 description: "Optional setup guidance for the provider API key.",

663`features.search_tool`663 },

664 664 {

665Type / Values665 key: "model_providers.<id>.experimental_bearer_token",

666 666 type: "string",

667`boolean`667 description:

668 668 "Direct bearer token for the provider (discouraged; use `env_key`).",

669Details669 },

670 670 {

671Enable `search_tool_bm25` for Apps tool discovery before invoking app MCP tools (experimental).671 key: "model_providers.<id>.requires_openai_auth",

672 672 type: "boolean",

673Key673 description:

674 674 "The provider uses OpenAI authentication (defaults to false).",

675`features.shell_snapshot`675 },

676 676 {

677Type / Values677 key: "model_providers.<id>.wire_api",

678 678 type: "responses",

679`boolean`679 description:

680 680 "Protocol used by the provider. `responses` is the only supported value, and it is the default when omitted.",

681Details681 },

682 682 {

683Snapshot shell environment to speed up repeated commands (beta).683 key: "model_providers.<id>.query_params",

684 684 type: "map<string,string>",

685Key685 description: "Extra query parameters appended to provider requests.",

686 686 },

687`features.shell_tool`687 {

688 688 key: "model_providers.<id>.http_headers",

689Type / Values689 type: "map<string,string>",

690 690 description: "Static HTTP headers added to provider requests.",

691`boolean`691 },

692 692 {

693Details693 key: "model_providers.<id>.env_http_headers",

694 694 type: "map<string,string>",

695Enable the default `shell` tool for running commands (stable; on by default).695 description:

696 696 "HTTP headers populated from environment variables when present.",

697Key697 },

698 698 {

699`features.unified_exec`699 key: "model_providers.<id>.request_max_retries",

700 700 type: "number",

701Type / Values701 description:

702 702 "Retry count for HTTP requests to the provider (default: 4).",

703`boolean`703 },

704 704 {

705Details705 key: "model_providers.<id>.stream_max_retries",

706 706 type: "number",

707Use the unified PTY-backed exec tool (beta).707 description: "Retry count for SSE streaming interruptions (default: 5).",

708 708 },

709Key709 {

710 710 key: "model_providers.<id>.stream_idle_timeout_ms",

711`features.use_linux_sandbox_bwrap`711 type: "number",

712 712 description:

713Type / Values713 "Idle timeout for SSE streams in milliseconds (default: 300000).",

714 714 },

715`boolean`715 {

716 716 key: "model_providers.<id>.supports_websockets",

717Details717 type: "boolean",

718 718 description:

719Use the bubblewrap-based Linux sandbox pipeline (experimental; off by default).719 "Whether that provider supports the Responses API WebSocket transport.",

720 720 },

721Key721 {

722 722 key: "model_providers.<id>.auth",

723`features.web_search`723 type: "table",

724 724 description:

725Type / Values725 "Command-backed bearer token configuration for a custom provider. Do not combine with `env_key`, `experimental_bearer_token`, or `requires_openai_auth`.",

726 726 },

727`boolean`727 {

728 728 key: "model_providers.<id>.auth.command",

729Details729 type: "string",

730 730 description:

731Deprecated legacy toggle; prefer the top-level `web_search` setting.731 "Command to run when Codex needs a bearer token. The command must print the token to stdout.",

732 732 },

733Key733 {

734 734 key: "model_providers.<id>.auth.args",

735`features.web_search_cached`735 type: "array<string>",

736 736 description: "Arguments passed to the token command.",

737Type / Values737 },

738 738 {

739`boolean`739 key: "model_providers.<id>.auth.timeout_ms",

740 740 type: "number",

741Details741 description:

742 742 "Maximum token command runtime in milliseconds (default: 5000).",

743Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "cached"`.743 },

744 744 {

745Key745 key: "model_providers.<id>.auth.refresh_interval_ms",

746 746 type: "number",

747`features.web_search_request`747 description:

748 748 "How often Codex proactively refreshes the token in milliseconds (default: 300000). Set to `0` to refresh only after an authentication retry.",

749Type / Values749 },

750 750 {

751`boolean`751 key: "model_providers.<id>.auth.cwd",

752 752 type: "string (path)",

753Details753 description: "Working directory for the token command.",

754 754 },

755Deprecated legacy toggle. When `web_search` is unset, true maps to `web_search = "live"`.755 {

756 756 key: "model_providers.amazon-bedrock.aws.profile",

757Key757 type: "string",

758 758 description:

759`feedback.enabled`759 "AWS profile name used by the built-in `amazon-bedrock` provider.",

760 760 },

761Type / Values761 {

762 762 key: "model_providers.amazon-bedrock.aws.region",

763`boolean`763 type: "string",

764 764 description: "AWS region used by the built-in `amazon-bedrock` provider.",

765Details765 },

766 766 {

767Enable feedback submission via `/feedback` across Codex surfaces (default: true).767 key: "model_reasoning_effort",

768 768 type: "minimal | low | medium | high | xhigh",

769Key769 description:

770 770 "Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).",

771`file_opener`771 },

772 772 {

773Type / Values773 key: "plan_mode_reasoning_effort",

774 774 type: "none | minimal | low | medium | high | xhigh",

775`vscode | vscode-insiders | windsurf | cursor | none`775 description:

776 776 "Plan-mode-specific reasoning override. When unset, Plan mode uses its built-in preset default.",

777Details777 },

778 778 {

779URI scheme used to open citations from Codex output (default: `vscode`).779 key: "model_reasoning_summary",

780 780 type: "auto | concise | detailed | none",

781Key781 description:

782 782 "Select reasoning summary detail or disable summaries entirely.",

783`forced_chatgpt_workspace_id`783 },

784 784 {

785Type / Values785 key: "model_verbosity",

786 786 type: "low | medium | high",

787`string (uuid)`787 description:

788 788 "Optional GPT-5 Responses API verbosity override; when unset, the selected model/preset default is used.",

789Details789 },

790 790 {

791Limit ChatGPT logins to a specific workspace identifier.791 key: "model_supports_reasoning_summaries",

792 792 type: "boolean",

793Key793 description: "Force Codex to send or not send reasoning metadata.",

794 794 },

795`forced_login_method`795 {

796 796 key: "shell_environment_policy.inherit",

797Type / Values797 type: "all | core | none",

798 798 description:

799`chatgpt | api`799 "Baseline environment inheritance when spawning subprocesses.",

800 800 },

801Details801 {

802 802 key: "shell_environment_policy.ignore_default_excludes",

803Restrict Codex to a specific authentication method.803 type: "boolean",

804 804 description:

805Key805 "Keep variables containing KEY/SECRET/TOKEN before other filters run.",

806 806 },

807`hide_agent_reasoning`807 {

808 808 key: "shell_environment_policy.exclude",

809Type / Values809 type: "array<string>",

810 810 description:

811`boolean`811 "Glob patterns for removing environment variables after the defaults.",

812 812 },

813Details813 {

814 814 key: "shell_environment_policy.include_only",

815Suppress reasoning events in both the TUI and `codex exec` output.815 type: "array<string>",

816 816 description:

817Key817 "Whitelist of patterns; when set only matching variables are kept.",

818 818 },

819`history.max_bytes`819 {

820 820 key: "shell_environment_policy.set",

821Type / Values821 type: "map<string,string>",

822 822 description:

823`number`823 "Explicit environment overrides injected into every subprocess.",

824 824 },

825Details825 {

826 826 key: "shell_environment_policy.experimental_use_profile",

827If set, caps the history file size in bytes by dropping oldest entries.827 type: "boolean",

828 828 description: "Use the user shell profile when spawning subprocesses.",

829Key829 },

830 830 {

831`history.persistence`831 key: "project_root_markers",

832 832 type: "array<string>",

833Type / Values833 description:

834 834 "List of project root marker filenames; used when searching parent directories for the project root.",

835`save-all | none`835 },

836 836 {

837Details837 key: "project_doc_max_bytes",

838 838 type: "number",

839Control whether Codex saves session transcripts to history.jsonl.839 description:

840 840 "Maximum bytes read from `AGENTS.md` when building project instructions.",

841Key841 },

842 842 {

843`include_apply_patch_tool`843 key: "project_doc_fallback_filenames",

844 844 type: "array<string>",

845Type / Values845 description: "Additional filenames to try when `AGENTS.md` is missing.",

846 846 },

847`boolean`847 {

848 848 key: "profile",

849Details849 type: "string",

850 850 description:

851Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.851 "Default profile applied at startup (equivalent to `--profile`).",

852 852 },

853Key853 {

854 854 key: "profiles.<name>.*",

855`instructions`855 type: "various",

856 856 description:

857Type / Values857 "Profile-scoped overrides for any of the supported configuration keys.",

858 858 },

859`string`859 {

860 860 key: "profiles.<name>.service_tier",

861Details861 type: "flex | fast",

862 862 description: "Profile-scoped service tier preference for new turns.",

863Reserved for future use; prefer `model_instructions_file` or `AGENTS.md`.863 },

864 864 {

865Key865 key: "profiles.<name>.plan_mode_reasoning_effort",

866 866 type: "none | minimal | low | medium | high | xhigh",

867`log_dir`867 description: "Profile-scoped Plan-mode reasoning override.",

868 868 },

869Type / Values869 {

870 870 key: "profiles.<name>.web_search",

871`string (path)`871 type: "disabled | cached | live",

872 872 description:

873Details873 'Profile-scoped web search mode override (default: `"cached"`).',

874 874 },

875Directory where Codex writes log files (for example `codex-tui.log`); defaults to `$CODEX_HOME/log`.875 {

876 876 key: "profiles.<name>.personality",

877Key877 type: "none | friendly | pragmatic",

878 878 description:

879`mcp_oauth_callback_port`879 "Profile-scoped communication style override for supported models.",

880 880 },

881Type / Values881 {

882 882 key: "profiles.<name>.model_catalog_json",

883`integer`883 type: "string (path)",

884 884 description:

885Details885 "Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).",

886 886 },

887Optional 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.887 {

888 888 key: "profiles.<name>.model_instructions_file",

889Key889 type: "string (path)",

890 890 description:

891`mcp_oauth_callback_url`891 "Profile-scoped replacement for the built-in instruction file.",

892 892 },

893Type / Values893 {

894 894 key: "profiles.<name>.experimental_use_unified_exec_tool",

895`string`895 type: "boolean",

896 896 description:

897Details897 "Legacy name for enabling unified exec; prefer `[features].unified_exec`.",

898 898 },

899Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.899 {

900 900 key: "profiles.<name>.oss_provider",

901Key901 type: "lmstudio | ollama",

902 902 description: "Profile-scoped OSS provider for `--oss` sessions.",

903`mcp_oauth_credentials_store`903 },

904 904 {

905Type / Values905 key: "profiles.<name>.tools_view_image",

906 906 type: "boolean",

907`auto | file | keyring`907 description: "Enable or disable the `view_image` tool in that profile.",

908 908 },

909Details909 {

910 910 key: "profiles.<name>.analytics.enabled",

911Preferred store for MCP OAuth credentials.911 type: "boolean",

912 912 description: "Profile-scoped analytics enablement override.",

913Key913 },

914 914 {

915`mcp_servers.<id>.args`915 key: "profiles.<name>.windows.sandbox",

916 916 type: "unelevated | elevated",

917Type / Values917 description: "Profile-scoped Windows sandbox mode override.",

918 918 },

919`array<string>`919 {

920 920 key: "history.persistence",

921Details921 type: "save-all | none",

922 922 description:

923Arguments passed to the MCP stdio server command.923 "Control whether Codex saves session transcripts to history.jsonl.",

924 924 },

925Key925 {

926 926 key: "tool_output_token_limit",

927`mcp_servers.<id>.bearer_token_env_var`927 type: "number",

928 928 description:

929Type / Values929 "Token budget for storing individual tool/function outputs in history.",

930 930 },

931`string`931 {

932 932 key: "background_terminal_max_timeout",

933Details933 type: "number",

934 934 description:

935Environment variable sourcing the bearer token for an MCP HTTP server.935 "Maximum poll window in milliseconds for empty `write_stdin` polls (background terminal polling). Default: `300000` (5 minutes). Replaces the older `background_terminal_timeout` key.",

936 936 },

937Key937 {

938 938 key: "history.max_bytes",

939`mcp_servers.<id>.command`939 type: "number",

940 940 description:

941Type / Values941 "If set, caps the history file size in bytes by dropping oldest entries.",

942 942 },

943`string`943 {

944 944 key: "file_opener",

945Details945 type: "vscode | vscode-insiders | windsurf | cursor | none",

946 946 description:

947Launcher command for an MCP stdio server.947 "URI scheme used to open citations from Codex output (default: `vscode`).",

948 948 },

949Key949 {

950 950 key: "otel.environment",

951`mcp_servers.<id>.cwd`951 type: "string",

952 952 description:

953Type / Values953 "Environment tag applied to emitted OpenTelemetry events (default: `dev`).",

954 954 },

955`string`955 {

956 956 key: "otel.exporter",

957Details957 type: "none | otlp-http | otlp-grpc",

958 958 description:

959Working directory for the MCP stdio server process.959 "Select the OpenTelemetry exporter and provide any endpoint metadata.",

960 960 },

961Key961 {

962 962 key: "otel.trace_exporter",

963`mcp_servers.<id>.disabled_tools`963 type: "none | otlp-http | otlp-grpc",

964 964 description:

965Type / Values965 "Select the OpenTelemetry trace exporter and provide any endpoint metadata.",

966 966 },

967`array<string>`967 {

968 968 key: "otel.metrics_exporter",

969Details969 type: "none | statsig | otlp-http | otlp-grpc",

970 970 description:

971Deny list applied after `enabled_tools` for the MCP server.971 "Select the OpenTelemetry metrics exporter (defaults to `statsig`).",

972 972 },

973Key973 {

974 974 key: "otel.log_user_prompt",

975`mcp_servers.<id>.enabled`975 type: "boolean",

976 976 description:

977Type / Values977 "Opt in to exporting raw user prompts with OpenTelemetry logs.",

978 978 },

979`boolean`979 {

980 980 key: "otel.exporter.<id>.endpoint",

981Details981 type: "string",

982 982 description: "Exporter endpoint for OTEL logs.",

983Disable an MCP server without removing its configuration.983 },

984 984 {

985Key985 key: "otel.exporter.<id>.protocol",

986 986 type: "binary | json",

987`mcp_servers.<id>.enabled_tools`987 description: "Protocol used by the OTLP/HTTP exporter.",

988 988 },

989Type / Values989 {

990 990 key: "otel.exporter.<id>.headers",

991`array<string>`991 type: "map<string,string>",

992 992 description: "Static headers included with OTEL exporter requests.",

993Details993 },

994 994 {

995Allow list of tool names exposed by the MCP server.995 key: "otel.trace_exporter.<id>.endpoint",

996 996 type: "string",

997Key997 description: "Trace exporter endpoint for OTEL logs.",

998 998 },

999`mcp_servers.<id>.env`999 {

1000 1000 key: "otel.trace_exporter.<id>.protocol",

1001Type / Values1001 type: "binary | json",

1002 1002 description: "Protocol used by the OTLP/HTTP trace exporter.",

1003`map<string,string>`1003 },

1004 1004 {

1005Details1005 key: "otel.trace_exporter.<id>.headers",

1006 1006 type: "map<string,string>",

1007Environment variables forwarded to the MCP stdio server.1007 description: "Static headers included with OTEL trace exporter requests.",

1008 1008 },

1009Key1009 {

1010 1010 key: "otel.exporter.<id>.tls.ca-certificate",

1011`mcp_servers.<id>.env_http_headers`1011 type: "string",

1012 1012 description: "CA certificate path for OTEL exporter TLS.",

1013Type / Values1013 },

1014 1014 {

1015`map<string,string>`1015 key: "otel.exporter.<id>.tls.client-certificate",

1016 1016 type: "string",

1017Details1017 description: "Client certificate path for OTEL exporter TLS.",

1018 1018 },

1019HTTP headers populated from environment variables for an MCP HTTP server.1019 {

1020 1020 key: "otel.exporter.<id>.tls.client-private-key",

1021Key1021 type: "string",

1022 1022 description: "Client private key path for OTEL exporter TLS.",

1023`mcp_servers.<id>.env_vars`1023 },

1024 1024 {

1025Type / Values1025 key: "otel.trace_exporter.<id>.tls.ca-certificate",

1026 1026 type: "string",

1027`array<string>`1027 description: "CA certificate path for OTEL trace exporter TLS.",

1028 1028 },

1029Details1029 {

1030 1030 key: "otel.trace_exporter.<id>.tls.client-certificate",

1031Additional environment variables to whitelist for an MCP stdio server.1031 type: "string",

1032 1032 description: "Client certificate path for OTEL trace exporter TLS.",

1033Key1033 },

1034 1034 {

1035`mcp_servers.<id>.http_headers`1035 key: "otel.trace_exporter.<id>.tls.client-private-key",

1036 1036 type: "string",

1037Type / Values1037 description: "Client private key path for OTEL trace exporter TLS.",

1038 1038 },

1039`map<string,string>`1039 {

1040 1040 key: "tui",

1041Details1041 type: "table",

1042 1042 description:

1043Static HTTP headers included with each MCP HTTP request.1043 "TUI-specific options such as enabling inline desktop notifications.",

1044 1044 },

1045Key1045 {

1046 1046 key: "tui.notifications",

1047`mcp_servers.<id>.required`1047 type: "boolean | array<string>",

1048 1048 description:

1049Type / Values1049 "Enable TUI notifications; optionally restrict to specific event types.",

1050 1050 },

1051`boolean`1051 {

1052 1052 key: "tui.notification_method",

1053Details1053 type: "auto | osc9 | bel",

1054 1054 description:

1055When true, fail startup/resume if this enabled MCP server cannot initialize.1055 "Notification method for terminal notifications (default: auto).",

1056 1056 },

1057Key1057 {

1058 1058 key: "tui.notification_condition",

1059`mcp_servers.<id>.startup_timeout_ms`1059 type: "unfocused | always",

1060 1060 description:

1061Type / Values1061 "Control whether TUI notifications fire only when the terminal is unfocused or regardless of focus. Defaults to `unfocused`.",

1062 1062 },

1063`number`1063 {

1064 1064 key: "tui.animations",

1065Details1065 type: "boolean",

1066 1066 description:

1067Alias for `startup_timeout_sec` in milliseconds.1067 "Enable terminal animations (welcome screen, shimmer, spinner) (default: true).",

1068 1068 },

1069Key1069 {

1070 1070 key: "tui.alternate_screen",

1071`mcp_servers.<id>.startup_timeout_sec`1071 type: "auto | always | never",

1072 1072 description:

1073Type / Values1073 "Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).",

1074 1074 },

1075`number`1075 {

1076 1076 key: "tui.show_tooltips",

1077Details1077 type: "boolean",

1078 1078 description:

1079Override the default 10s startup timeout for an MCP server.1079 "Show onboarding tooltips in the TUI welcome screen (default: true).",

1080 1080 },

1081Key1081 {

1082 1082 key: "tui.status_line",

1083`mcp_servers.<id>.tool_timeout_sec`1083 type: "array<string> | null",

1084 1084 description:

1085Type / Values1085 "Ordered list of TUI footer status-line item identifiers. `null` disables the status line.",

1086 1086 },

1087`number`1087 {

1088 1088 key: "tui.terminal_title",

1089Details1089 type: "array<string> | null",

1090 1090 description:

1091Override the default 60s per-tool timeout for an MCP server.1091 'Ordered list of terminal window/tab title item identifiers. Defaults to `["spinner", "project"]`; `null` disables title updates.',

1092 1092 },

1093Key1093 {

1094 1094 key: "tui.theme",

1095`mcp_servers.<id>.url`1095 type: "string",

1096 1096 description:

1097Type / Values1097 "Syntax-highlighting theme override (kebab-case theme name).",

1098 1098 },

1099`string`1099 {

1100 1100 key: "tui.keymap.<context>.<action>",

1101Details1101 type: "string | array<string>",

1102 1102 description:

1103Endpoint for an MCP streamable HTTP server.1103 "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`.",

1104 1104 },

1105Key1105 {

1106 1106 key: "tui.keymap.<context>.<action> = []",

1107`model`1107 type: "empty array",

1108 1108 description:

1109Type / Values1109 "Unbind the action in that keymap context. Key names use normalized strings such as `ctrl-a`, `shift-enter`, or `page-down`.",

1110 1110 },

1111`string`1111 {

1112 1112 key: "tui.model_availability_nux.<model>",

1113Details1113 type: "integer",

1114 1114 description: "Internal startup-tooltip state keyed by model slug.",

1115Model to use (e.g., `gpt-5-codex`).1115 },

1116 1116 {

1117Key1117 key: "hide_agent_reasoning",

1118 1118 type: "boolean",

1119`model_auto_compact_token_limit`1119 description:

1120 1120 "Suppress reasoning events in both the TUI and `codex exec` output.",

1121Type / Values1121 },

1122 1122 {

1123`number`1123 key: "show_raw_agent_reasoning",

1124 1124 type: "boolean",

1125Details1125 description:

1126 1126 "Surface raw reasoning content when the active model emits it.",

1127Token threshold that triggers automatic history compaction (unset uses model defaults).1127 },

1128 1128 {

1129Key1129 key: "disable_paste_burst",

1130 1130 type: "boolean",

1131`model_catalog_json`1131 description: "Disable burst-paste detection in the TUI.",

1132 1132 },

1133Type / Values1133 {

1134 1134 key: "windows_wsl_setup_acknowledged",

1135`string (path)`1135 type: "boolean",

1136 1136 description: "Track Windows onboarding acknowledgement (Windows only).",

1137Details1137 },

1138 1138 {

1139Optional path to a JSON model catalog loaded on startup. Profile-level `profiles.<name>.model_catalog_json` can override this per profile.1139 key: "chatgpt_base_url",

1140 1140 type: "string",

1141Key1141 description: "Override the base URL used during the ChatGPT login flow.",

1142 1142 },

1143`model_context_window`1143 {

1144 1144 key: "cli_auth_credentials_store",

1145Type / Values1145 type: "file | keyring | auto",

1146 1146 description:

1147`number`1147 "Control where the CLI stores cached credentials (file-based auth.json vs OS keychain).",

1148 1148 },

1149Details1149 {

1150 1150 key: "mcp_oauth_credentials_store",

1151Context window tokens available to the active model.1151 type: "auto | file | keyring",

1152 1152 description: "Preferred store for MCP OAuth credentials.",

1153Key1153 },

1154 1154 {

1155`model_instructions_file`1155 key: "mcp_oauth_callback_port",

1156 1156 type: "integer",

1157Type / Values1157 description:

1158 1158 "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.",

1159`string (path)`1159 },

1160 1160 {

1161Details1161 key: "mcp_oauth_callback_url",

1162 1162 type: "string",

1163Replacement for built-in instructions instead of `AGENTS.md`.1163 description:

1164 1164 "Optional redirect URI override for MCP OAuth login (for example, a devbox ingress URL). `mcp_oauth_callback_port` still controls the callback listener port.",

1165Key1165 },

1166 1166 {

1167`model_provider`1167 key: "experimental_use_unified_exec_tool",

1168 1168 type: "boolean",

1169Type / Values1169 description:

1170 1170 "Legacy name for enabling unified exec; prefer `[features].unified_exec` or `codex --enable unified_exec`.",

1171`string`1171 },

1172 1172 {

1173Details1173 key: "tools.web_search",

1174 1174 type: 'boolean | { context_size = "low|medium|high", allowed_domains = [string], location = { country, region, city, timezone } }',

1175Provider id from `model_providers` (default: `openai`).1175 description:

1176 1176 "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.",

1177Key1177 },

1178 1178 {

1179`model_providers.<id>.base_url`1179 key: "tools.view_image",

1180 1180 type: "boolean",

1181Type / Values1181 description: "Enable the local-image attachment tool `view_image`.",

1182 1182 },

1183`string`1183 {

1184 1184 key: "web_search",

1185Details1185 type: "disabled | cached | live",

1186 1186 description:

1187API base URL for the model provider.1187 '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.',

1188 1188 },

1189Key1189 {

1190 1190 key: "default_permissions",

1191`model_providers.<id>.env_http_headers`1191 type: "string",

1192 1192 description:

1193Type / Values1193 "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.",

1194 1194 },

1195`map<string,string>`1195 {

1196 1196 key: "permissions.<name>.filesystem",

1197Details1197 type: "table",

1198 1198 description:

1199HTTP headers populated from environment variables when present.1199 "Named filesystem permission profile. Each key is an absolute path or special token such as `:minimal` or `:project_roots`.",

1200 1200 },

1201Key1201 {

1202 1202 key: "permissions.<name>.filesystem.glob_scan_max_depth",

1203`model_providers.<id>.env_key`1203 type: "number",

1204 1204 description:

1205Type / Values1205 "Maximum depth for expanding deny-read glob patterns on platforms that snapshot matches before sandbox startup. Must be at least `1` when set.",

1206 1206 },

1207`string`1207 {

1208 1208 key: "permissions.<name>.filesystem.<path-or-glob>",

1209Details1209 type: '"read" | "write" | "none" | table',

1210 1210 description:

1211Environment variable supplying the provider API key.1211 '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.',

1212 1212 },

1213Key1213 {

1214 1214 key: 'permissions.<name>.filesystem.":project_roots".<subpath-or-glob>',

1215`model_providers.<id>.env_key_instructions`1215 type: '"read" | "write" | "none"',

1216 1216 description:

1217Type / Values1217 'Scoped filesystem access relative to the detected project roots. Use `"."` for the root itself; glob subpaths such as `"**/*.env"` can deny reads with `"none"`.',

1218 1218 },

1219`string`1219 {

1220 1220 key: "permissions.<name>.network.enabled",

1221Details1221 type: "boolean",

1222 1222 description: "Enable network access for this named permissions profile.",

1223Optional setup guidance for the provider API key.1223 },

1224 1224 {

1225Key1225 key: "permissions.<name>.network.proxy_url",

1226 1226 type: "string",

1227`model_providers.<id>.experimental_bearer_token`1227 description:

1228 1228 "HTTP proxy endpoint used when this permissions profile enables the managed network proxy.",

1229Type / Values1229 },

1230 1230 {

1231`string`1231 key: "permissions.<name>.network.enable_socks5",

1232 1232 type: "boolean",

1233Details1233 description:

1234 1234 "Expose a SOCKS5 listener when this permissions profile enables the managed network proxy.",

1235Direct bearer token for the provider (discouraged; use `env_key`).1235 },

1236 1236 {

1237Key1237 key: "permissions.<name>.network.socks_url",

1238 1238 type: "string",

1239`model_providers.<id>.http_headers`1239 description: "SOCKS5 proxy endpoint used by this permissions profile.",

1240 1240 },

1241Type / Values1241 {

1242 1242 key: "permissions.<name>.network.enable_socks5_udp",

1243`map<string,string>`1243 type: "boolean",

1244 1244 description: "Allow UDP over the SOCKS5 listener when enabled.",

1245Details1245 },

1246 1246 {

1247Static HTTP headers added to provider requests.1247 key: "permissions.<name>.network.allow_upstream_proxy",

1248 1248 type: "boolean",

1249Key1249 description:

1250 1250 "Allow the managed proxy to chain to another upstream proxy.",

1251`model_providers.<id>.name`1251 },

1252 1252 {

1253Type / Values1253 key: "permissions.<name>.network.dangerously_allow_non_loopback_proxy",

1254 1254 type: "boolean",

1255`string`1255 description:

1256 1256 "Permit non-loopback bind addresses for the managed proxy listener.",

1257Details1257 },

1258 1258 {

1259Display name for a custom model provider.1259 key: "permissions.<name>.network.dangerously_allow_all_unix_sockets",

1260 1260 type: "boolean",

1261Key1261 description:

1262 1262 "Allow the proxy to use arbitrary Unix sockets instead of the default restricted set.",

1263`model_providers.<id>.query_params`1263 },

1264 1264 {

1265Type / Values1265 key: "permissions.<name>.network.mode",

1266 1266 type: "limited | full",

1267`map<string,string>`1267 description: "Network proxy mode used for subprocess traffic.",

1268 1268 },

1269Details1269 {

1270 1270 key: "permissions.<name>.network.domains",

1271Extra query parameters appended to provider requests.1271 type: "map<string, allow | deny>",

1272 1272 description:

1273Key1273 "Domain rules for the managed proxy. Use domain names or wildcard patterns as keys, with `allow` or `deny` values.",

1274 1274 },

1275`model_providers.<id>.request_max_retries`1275 {

1276 1276 key: "permissions.<name>.network.unix_sockets",

1277Type / Values1277 type: "map<string, allow | none>",

1278 1278 description:

1279`number`1279 "Unix socket rules for the managed proxy. Use socket paths as keys, with `allow` or `none` values.",

1280 1280 },

1281Details1281 {

1282 1282 key: "permissions.<name>.network.allow_local_binding",

1283Retry count for HTTP requests to the provider (default: 4).1283 type: "boolean",

1284 1284 description:

1285Key1285 "Permit local bind/listen operations through the managed proxy.",

1286 1286 },

1287`model_providers.<id>.requires_openai_auth`1287 {

1288 1288 key: "projects.<path>.trust_level",

1289Type / Values1289 type: "string",

1290 1290 description:

1291`boolean`1291 '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.',

1292 1292 },

1293Details1293 {

1294 1294 key: "notice.hide_full_access_warning",

1295The provider uses OpenAI authentication (defaults to false).1295 type: "boolean",

1296 1296 description: "Track acknowledgement of the full access warning prompt.",

1297Key1297 },

1298 1298 {

1299`model_providers.<id>.stream_idle_timeout_ms`1299 key: "notice.hide_world_writable_warning",

1300 1300 type: "boolean",

1301Type / Values1301 description:

1302 1302 "Track acknowledgement of the Windows world-writable directories warning.",

1303`number`1303 },

1304 1304 {

1305Details1305 key: "notice.hide_rate_limit_model_nudge",

1306 1306 type: "boolean",

1307Idle timeout for SSE streams in milliseconds (default: 300000).1307 description: "Track opt-out of the rate limit model switch reminder.",

1308 1308 },

1309Key1309 {

1310 1310 key: "notice.hide_gpt5_1_migration_prompt",

1311`model_providers.<id>.stream_max_retries`1311 type: "boolean",

1312 1312 description: "Track acknowledgement of the GPT-5.1 migration prompt.",

1313Type / Values1313 },

1314 1314 {

1315`number`1315 key: "notice.hide_gpt-5.1-codex-max_migration_prompt",

1316 1316 type: "boolean",

1317Details1317 description:

1318 1318 "Track acknowledgement of the gpt-5.1-codex-max migration prompt.",

1319Retry count for SSE streaming interruptions (default: 5).1319 },

1320 1320 {

1321Key1321 key: "notice.model_migrations",

1322 1322 type: "map<string,string>",

1323`model_providers.<id>.wire_api`1323 description: "Track acknowledged model migrations as old->new mappings.",

1324 1324 },

1325Type / Values1325 {

1326 1326 key: "forced_login_method",

1327`chat | responses`1327 type: "chatgpt | api",

1328 1328 description: "Restrict Codex to a specific authentication method.",

1329Details1329 },

1330 1330 {

1331Protocol used by the provider (defaults to `chat` if omitted).1331 key: "forced_chatgpt_workspace_id",

1332 1332 type: "string (uuid)",

1333Key1333 description: "Limit ChatGPT logins to a specific workspace identifier.",

1334 1334 },

1335`model_reasoning_effort`1335 ]}

1336 1336 client:load

1337Type / Values1337/>

1338 

1339`minimal | low | medium | high | xhigh`

1340 

1341Details

1342 

1343Adjust reasoning effort for supported models (Responses API only; `xhigh` is model-dependent).

1344 

1345Key

1346 

1347`model_reasoning_summary`

1348 

1349Type / Values

1350 

1351`auto | concise | detailed | none`

1352 

1353Details

1354 

1355Select reasoning summary detail or disable summaries entirely.

1356 

1357Key

1358 

1359`model_supports_reasoning_summaries`

1360 

1361Type / Values

1362 

1363`boolean`

1364 

1365Details

1366 

1367Force Codex to send or not send reasoning metadata.

1368 

1369Key

1370 

1371`model_verbosity`

1372 

1373Type / Values

1374 

1375`low | medium | high`

1376 

1377Details

1378 

1379Control GPT-5 Responses API verbosity (defaults to `medium`).

1380 

1381Key

1382 

1383`notice.hide_full_access_warning`

1384 

1385Type / Values

1386 

1387`boolean`

1388 

1389Details

1390 

1391Track acknowledgement of the full access warning prompt.

1392 

1393Key

1394 

1395`notice.hide_gpt-5.1-codex-max_migration_prompt`

1396 

1397Type / Values

1398 

1399`boolean`

1400 

1401Details

1402 

1403Track acknowledgement of the gpt-5.1-codex-max migration prompt.

1404 

1405Key

1406 

1407`notice.hide_gpt5_1_migration_prompt`

1408 

1409Type / Values

1410 

1411`boolean`

1412 

1413Details

1414 

1415Track acknowledgement of the GPT-5.1 migration prompt.

1416 

1417Key

1418 

1419`notice.hide_rate_limit_model_nudge`

1420 

1421Type / Values

1422 

1423`boolean`

1424 

1425Details

1426 

1427Track opt-out of the rate limit model switch reminder.

1428 

1429Key

1430 

1431`notice.hide_world_writable_warning`

1432 

1433Type / Values

1434 

1435`boolean`

1436 

1437Details

1438 

1439Track acknowledgement of the Windows world-writable directories warning.

1440 

1441Key

1442 

1443`notice.model_migrations`

1444 

1445Type / Values

1446 

1447`map<string,string>`

1448 

1449Details

1450 

1451Track acknowledged model migrations as old->new mappings.

1452 

1453Key

1454 

1455`notify`

1456 

1457Type / Values

1458 

1459`array<string>`

1460 

1461Details

1462 

1463Command invoked for notifications; receives a JSON payload from Codex.

1464 

1465Key

1466 

1467`oss_provider`

1468 

1469Type / Values

1470 

1471`lmstudio | ollama`

1472 

1473Details

1474 

1475Default local provider used when running with `--oss` (defaults to prompting if unset).

1476 

1477Key

1478 

1479`otel.environment`

1480 

1481Type / Values

1482 

1483`string`

1484 

1485Details

1486 

1487Environment tag applied to emitted OpenTelemetry events (default: `dev`).

1488 

1489Key

1490 

1491`otel.exporter`

1492 

1493Type / Values

1494 

1495`none | otlp-http | otlp-grpc`

1496 

1497Details

1498 

1499Select the OpenTelemetry exporter and provide any endpoint metadata.

1500 

1501Key

1502 

1503`otel.exporter.<id>.endpoint`

1504 

1505Type / Values

1506 

1507`string`

1508 

1509Details

1510 

1511Exporter endpoint for OTEL logs.

1512 

1513Key

1514 

1515`otel.exporter.<id>.headers`

1516 

1517Type / Values

1518 

1519`map<string,string>`

1520 

1521Details

1522 

1523Static headers included with OTEL exporter requests.

1524 

1525Key

1526 

1527`otel.exporter.<id>.protocol`

1528 

1529Type / Values

1530 

1531`binary | json`

1532 

1533Details

1534 

1535Protocol used by the OTLP/HTTP exporter.

1536 

1537Key

1538 

1539`otel.exporter.<id>.tls.ca-certificate`

1540 

1541Type / Values

1542 

1543`string`

1544 

1545Details

1546 

1547CA certificate path for OTEL exporter TLS.

1548 

1549Key

1550 

1551`otel.exporter.<id>.tls.client-certificate`

1552 

1553Type / Values

1554 

1555`string`

1556 

1557Details

1558 

1559Client certificate path for OTEL exporter TLS.

1560 

1561Key

1562 

1563`otel.exporter.<id>.tls.client-private-key`

1564 

1565Type / Values

1566 

1567`string`

1568 

1569Details

1570 

1571Client private key path for OTEL exporter TLS.

1572 

1573Key

1574 

1575`otel.log_user_prompt`

1576 

1577Type / Values

1578 

1579`boolean`

1580 

1581Details

1582 

1583Opt in to exporting raw user prompts with OpenTelemetry logs.

1584 

1585Key

1586 

1587`otel.trace_exporter`

1588 

1589Type / Values

1590 

1591`none | otlp-http | otlp-grpc`

1592 

1593Details

1594 

1595Select the OpenTelemetry trace exporter and provide any endpoint metadata.

1596 

1597Key

1598 

1599`otel.trace_exporter.<id>.endpoint`

1600 

1601Type / Values

1602 

1603`string`

1604 

1605Details

1606 

1607Trace exporter endpoint for OTEL logs.

1608 

1609Key

1610 

1611`otel.trace_exporter.<id>.headers`

1612 

1613Type / Values

1614 

1615`map<string,string>`

1616 

1617Details

1618 

1619Static headers included with OTEL trace exporter requests.

1620 

1621Key

1622 

1623`otel.trace_exporter.<id>.protocol`

1624 

1625Type / Values

1626 

1627`binary | json`

1628 

1629Details

1630 

1631Protocol used by the OTLP/HTTP trace exporter.

1632 

1633Key

1634 

1635`otel.trace_exporter.<id>.tls.ca-certificate`

1636 

1637Type / Values

1638 

1639`string`

1640 

1641Details

1642 

1643CA certificate path for OTEL trace exporter TLS.

1644 

1645Key

1646 

1647`otel.trace_exporter.<id>.tls.client-certificate`

1648 

1649Type / Values

1650 

1651`string`

1652 

1653Details

1654 

1655Client certificate path for OTEL trace exporter TLS.

1656 

1657Key

1658 

1659`otel.trace_exporter.<id>.tls.client-private-key`

1660 

1661Type / Values

1662 

1663`string`

1664 

1665Details

1666 

1667Client private key path for OTEL trace exporter TLS.

1668 

1669Key

1670 

1671`personality`

1672 

1673Type / Values

1674 

1675`none | friendly | pragmatic`

1676 

1677Details

1678 

1679Default communication style for models that advertise `supportsPersonality`; can be overridden per thread/turn or via `/personality`.

1680 

1681Key

1682 

1683`profile`

1684 

1685Type / Values

1686 

1687`string`

1688 

1689Details

1690 

1691Default profile applied at startup (equivalent to `--profile`).

1692 

1693Key

1694 

1695`profiles.<name>.*`

1696 

1697Type / Values

1698 

1699`various`

1700 

1701Details

1702 

1703Profile-scoped overrides for any of the supported configuration keys.

1704 

1705Key

1706 

1707`profiles.<name>.experimental_use_freeform_apply_patch`

1708 

1709Type / Values

1710 

1711`boolean`

1712 

1713Details

1714 

1715Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.

1716 

1717Key

1718 

1719`profiles.<name>.experimental_use_unified_exec_tool`

1720 

1721Type / Values

1722 

1723`boolean`

1724 

1725Details

1726 

1727Legacy name for enabling unified exec; prefer `[features].unified_exec`.

1728 

1729Key

1730 

1731`profiles.<name>.include_apply_patch_tool`

1732 

1733Type / Values

1734 

1735`boolean`

1736 

1737Details

1738 

1739Legacy name for enabling freeform apply\_patch; prefer `[features].apply_patch_freeform`.

1740 

1741Key

1742 

1743`profiles.<name>.model_catalog_json`

1744 

1745Type / Values

1746 

1747`string (path)`

1748 

1749Details

1750 

1751Profile-scoped model catalog JSON path override (applied on startup only; overrides the top-level `model_catalog_json` for that profile).

1752 

1753Key

1754 

1755`profiles.<name>.oss_provider`

1756 

1757Type / Values

1758 

1759`lmstudio | ollama`

1760 

1761Details

1762 

1763Profile-scoped OSS provider for `--oss` sessions.

1764 

1765Key

1766 

1767`profiles.<name>.personality`

1768 

1769Type / Values

1770 

1771`none | friendly | pragmatic`

1772 

1773Details

1774 

1775Profile-scoped communication style override for supported models.

1776 

1777Key

1778 

1779`profiles.<name>.web_search`

1780 

1781Type / Values

1782 

1783`disabled | cached | live`

1784 

1785Details

1786 

1787Profile-scoped web search mode override (default: `"cached"`).

1788 

1789Key

1790 

1791`project_doc_fallback_filenames`

1792 

1793Type / Values

1794 

1795`array<string>`

1796 

1797Details

1798 

1799Additional filenames to try when `AGENTS.md` is missing.

1800 

1801Key

1802 

1803`project_doc_max_bytes`

1804 

1805Type / Values

1806 

1807`number`

1808 

1809Details

1810 

1811Maximum bytes read from `AGENTS.md` when building project instructions.

1812 

1813Key

1814 

1815`project_root_markers`

1816 

1817Type / Values

1818 

1819`array<string>`

1820 

1821Details

1822 

1823List of project root marker filenames; used when searching parent directories for the project root.

1824 

1825Key

1826 

1827`projects.<path>.trust_level`

1828 

1829Type / Values

1830 

1831`string`

1832 

1833Details

1834 

1835Mark a project or worktree as trusted or untrusted (`"trusted"` | `"untrusted"`). Untrusted projects skip project-scoped `.codex/` layers.

1836 

1837Key

1838 

1839`review_model`

1840 

1841Type / Values

1842 

1843`string`

1844 

1845Details

1846 

1847Optional model override used by `/review` (defaults to the current session model).

1848 

1849Key

1850 

1851`sandbox_mode`

1852 

1853Type / Values

1854 

1855`read-only | workspace-write | danger-full-access`

1856 

1857Details

1858 

1859Sandbox policy for filesystem and network access during command execution.

1860 

1861Key

1862 

1863`sandbox_workspace_write.exclude_slash_tmp`

1864 

1865Type / Values

1866 

1867`boolean`

1868 

1869Details

1870 

1871Exclude `/tmp` from writable roots in workspace-write mode.

1872 

1873Key

1874 

1875`sandbox_workspace_write.exclude_tmpdir_env_var`

1876 

1877Type / Values

1878 

1879`boolean`

1880 

1881Details

1882 

1883Exclude `$TMPDIR` from writable roots in workspace-write mode.

1884 

1885Key

1886 

1887`sandbox_workspace_write.network_access`

1888 

1889Type / Values

1890 

1891`boolean`

1892 

1893Details

1894 

1895Allow outbound network access inside the workspace-write sandbox.

1896 

1897Key

1898 

1899`sandbox_workspace_write.writable_roots`

1900 

1901Type / Values

1902 

1903`array<string>`

1904 

1905Details

1906 

1907Additional writable roots when `sandbox_mode = "workspace-write"`.

1908 

1909Key

1910 

1911`shell_environment_policy.exclude`

1912 

1913Type / Values

1914 

1915`array<string>`

1916 

1917Details

1918 

1919Glob patterns for removing environment variables after the defaults.

1920 

1921Key

1922 

1923`shell_environment_policy.experimental_use_profile`

1924 

1925Type / Values

1926 

1927`boolean`

1928 

1929Details

1930 

1931Use the user shell profile when spawning subprocesses.

1932 

1933Key

1934 

1935`shell_environment_policy.ignore_default_excludes`

1936 

1937Type / Values

1938 

1939`boolean`

1940 

1941Details

1942 

1943Keep variables containing KEY/SECRET/TOKEN before other filters run.

1944 

1945Key

1946 

1947`shell_environment_policy.include_only`

1948 

1949Type / Values

1950 

1951`array<string>`

1952 

1953Details

1954 

1955Whitelist of patterns; when set only matching variables are kept.

1956 

1957Key

1958 

1959`shell_environment_policy.inherit`

1960 

1961Type / Values

1962 

1963`all | core | none`

1964 

1965Details

1966 

1967Baseline environment inheritance when spawning subprocesses.

1968 

1969Key

1970 

1971`shell_environment_policy.set`

1972 

1973Type / Values

1974 

1975`map<string,string>`

1976 

1977Details

1978 

1979Explicit environment overrides injected into every subprocess.

1980 

1981Key

1982 

1983`show_raw_agent_reasoning`

1984 

1985Type / Values

1986 

1987`boolean`

1988 

1989Details

1990 

1991Surface raw reasoning content when the active model emits it.

1992 

1993Key

1994 

1995`skills.config`

1996 

1997Type / Values

1998 

1999`array<object>`

2000 

2001Details

2002 

2003Per-skill enablement overrides stored in config.toml.

2004 

2005Key

2006 

2007`skills.config.<index>.enabled`

2008 

2009Type / Values

2010 

2011`boolean`

2012 

2013Details

2014 

2015Enable or disable the referenced skill.

2016 

2017Key

2018 

2019`skills.config.<index>.path`

2020 

2021Type / Values

2022 

2023`string (path)`

2024 

2025Details

2026 

2027Path to a skill folder containing `SKILL.md`.

2028 

2029Key

2030 

2031`suppress_unstable_features_warning`

2032 

2033Type / Values

2034 

2035`boolean`

2036 

2037Details

2038 

2039Suppress the warning that appears when under-development feature flags are enabled.

2040 

2041Key

2042 

2043`tool_output_token_limit`

2044 

2045Type / Values

2046 

2047`number`

2048 

2049Details

2050 

2051Token budget for storing individual tool/function outputs in history.

2052 

2053Key

2054 

2055`tools.web_search`

2056 

2057Type / Values

2058 

2059`boolean`

2060 

2061Details

2062 

2063Deprecated legacy toggle for web search; prefer the top-level `web_search` setting.

2064 

2065Key

2066 

2067`tui`

2068 

2069Type / Values

2070 

2071`table`

2072 

2073Details

2074 

2075TUI-specific options such as enabling inline desktop notifications.

2076 

2077Key

2078 

2079`tui.alternate_screen`

2080 

2081Type / Values

2082 

2083`auto | always | never`

2084 

2085Details

2086 

2087Control alternate screen usage for the TUI (default: auto; auto skips it in Zellij to preserve scrollback).

2088 

2089Key

2090 

2091`tui.animations`

2092 

2093Type / Values

2094 

2095`boolean`

2096 

2097Details

2098 

2099Enable terminal animations (welcome screen, shimmer, spinner) (default: true).

2100 

2101Key

2102 

2103`tui.notification_method`

2104 

2105Type / Values

2106 

2107`auto | osc9 | bel`

2108 

2109Details

2110 

2111Notification method for unfocused terminal notifications (default: auto).

2112 

2113Key

2114 

2115`tui.notifications`

2116 

2117Type / Values

2118 

2119`boolean | array<string>`

2120 

2121Details

2122 

2123Enable TUI notifications; optionally restrict to specific event types.

2124 

2125Key

2126 

2127`tui.show_tooltips`

2128 

2129Type / Values

2130 

2131`boolean`

2132 

2133Details

2134 

2135Show onboarding tooltips in the TUI welcome screen (default: true).

2136 

2137Key

2138 

2139`tui.status_line`

2140 

2141Type / Values

2142 

2143`array<string> | null`

2144 

2145Details

2146 

2147Ordered list of TUI footer status-line item identifiers. `null` disables the status line.

2148 

2149Key

2150 

2151`web_search`

2152 

2153Type / Values

2154 

2155`disabled | cached | live`

2156 

2157Details

2158 

2159Web 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.

2160 

2161Key

2162 

2163`windows_wsl_setup_acknowledged`

2164 

2165Type / Values

2166 

2167`boolean`

2168 

2169Details

2170 

2171Track Windows onboarding acknowledgement (Windows only).

2172 

2173Key

2174 

2175`windows.sandbox`

2176 

2177Type / Values

2178 

2179`unelevated | elevated`

2180 

2181Details

2182 

2183Windows-only native sandbox mode when running Codex natively on Windows.

2184 

2185Expand to view all

2186 1338 

2187You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).1339You can find the latest JSON schema for `config.toml` [here](https://developers.openai.com/codex/config-schema.json).

2188 1340 


2201For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched1353For ChatGPT Business and Enterprise users, Codex can also apply cloud-fetched

2202requirements. See the security page for precedence details.1354requirements. See the security page for precedence details.

2203 1355 

2204| Key | Type / Values | Details |1356Use `[features]` in `requirements.toml` to pin feature flags by the same

2205| --- | --- | --- |1357canonical keys that `config.toml` uses. Omitted keys remain unconstrained.

2206| `allowed_approval_policies` | `array<string>` | Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`). |1358 

2207| `allowed_sandbox_modes` | `array<string>` | Allowed values for `sandbox_mode`. |1359<ConfigTable

2208| `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`. |1360 options={[

2209| `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. |1361 {

2210| `mcp_servers.<id>.identity` | `table` | Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP). |1362 key: "allowed_approval_policies",

2211| `mcp_servers.<id>.identity.command` | `string` | Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command. |1363 type: "array<string>",

2212| `mcp_servers.<id>.identity.url` | `string` | Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL. |1364 description:

2213| `rules` | `table` | Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive. |1365 "Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `granular`).",

2214| `rules.prefix_rules` | `array<table>` | List of enforced prefix rules. Each rule must include `pattern` and `decision`. |1366 },

2215| `rules.prefix_rules[].decision` | `prompt | forbidden` | Required. Requirements rules can only prompt or forbid (not allow). |1367 {

2216| `rules.prefix_rules[].justification` | `string` | Optional non-empty rationale surfaced in approval prompts or rejection messages. |1368 key: "allowed_approvals_reviewers",

2217| `rules.prefix_rules[].pattern` | `array<table>` | Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`. |1369 type: "array<string>",

2218| `rules.prefix_rules[].pattern[].any_of` | `array<string>` | A list of allowed alternative tokens at this position. |1370 description:

2219| `rules.prefix_rules[].pattern[].token` | `string` | A single literal token at this position. |1371 "Allowed values for `approvals_reviewer`, such as `user` and `auto_review`.",

2220 1372 },

2221Key1373 {

2222 1374 key: "guardian_policy_config",

2223`allowed_approval_policies`1375 type: "string",

2224 1376 description:

2225Type / Values1377 "Managed Markdown policy instructions for automatic review. This takes precedence over local `[auto_review].policy`. Blank values are ignored.",

2226 1378 },

2227`array<string>`1379 {

2228 1380 key: "allowed_sandbox_modes",

2229Details1381 type: "array<string>",

2230 1382 description: "Allowed values for `sandbox_mode`.",

2231Allowed values for `approval_policy` (for example `untrusted`, `on-request`, `never`, and `reject`).1383 },

2232 1384 {

2233Key1385 key: "remote_sandbox_config",

2234 1386 type: "array<table>",

2235`allowed_sandbox_modes`1387 description:

2236 1388 "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.",

2237Type / Values1389 },

2238 1390 {

2239`array<string>`1391 key: "remote_sandbox_config[].hostname_patterns",

2240 1392 type: "array<string>",

2241Details1393 description:

2242 1394 "Case-insensitive host name patterns. Supports `*` for any sequence of characters and `?` for one character.",

2243Allowed values for `sandbox_mode`.1395 },

2244 1396 {

2245Key1397 key: "remote_sandbox_config[].allowed_sandbox_modes",

2246 1398 type: "array<string>",

2247`allowed_web_search_modes`1399 description:

2248 1400 "Allowed sandbox modes to apply when this host-specific entry matches.",

2249Type / Values1401 },

2250 1402 {

2251`array<string>`1403 key: "allowed_web_search_modes",

2252 1404 type: "array<string>",

2253Details1405 description:

2254 1406 "Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.",

2255Allowed values for `web_search` (`disabled`, `cached`, `live`). `disabled` is always allowed; an empty list effectively allows only `disabled`.1407 },

2256 1408 {

2257Key1409 key: "features",

2258 1410 type: "table",

2259`mcp_servers`1411 description:

2260 1412 "Pinned feature values keyed by the canonical names from `config.toml`'s `[features]` table.",

2261Type / Values1413 },

2262 1414 {

2263`table`1415 key: "features.<name>",

2264 1416 type: "boolean",

2265Details1417 description:

2266 1418 "Require a specific canonical feature key to stay enabled or disabled.",

2267Allowlist 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.1419 },

2268 1420 {

2269Key1421 key: "features.in_app_browser",

2270 1422 type: "boolean",

2271`mcp_servers.<id>.identity`1423 description:

2272 1424 "Set to `false` in `requirements.toml` to disable the in-app browser pane.",

2273Type / Values1425 },

2274 1426 {

2275`table`1427 key: "features.browser_use",

2276 1428 type: "boolean",

2277Details1429 description:

2278 1430 "Set to `false` in `requirements.toml` to disable Browser Use and Browser Agent availability.",

2279Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).1431 },

2280 1432 {

2281Key1433 key: "features.computer_use",

2282 1434 type: "boolean",

2283`mcp_servers.<id>.identity.command`1435 description:

2284 1436 "Set to `false` in `requirements.toml` to disable Computer Use availability and related install or enablement flows.",

2285Type / Values1437 },

2286 1438 {

2287`string`1439 key: "hooks",

2288 1440 type: "table",

2289Details1441 description:

2290 1442 "Admin-enforced managed lifecycle hooks. Requires a managed hook directory and uses the same event schema as inline `[hooks]` in `config.toml`.",

2291Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.1443 },

2292 1444 {

2293Key1445 key: "hooks.managed_dir",

2294 1446 type: "string (absolute path)",

2295`mcp_servers.<id>.identity.url`1447 description:

2296 1448 "Directory containing managed hook scripts on macOS and Linux. Codex validates that it is absolute and exists before loading managed hooks.",

2297Type / Values1449 },

2298 1450 {

2299`string`1451 key: "hooks.windows_managed_dir",

2300 1452 type: "string (absolute path)",

2301Details1453 description:

2302 1454 "Directory containing managed hook scripts on Windows. Codex validates that it is absolute and exists before loading managed hooks.",

2303Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.1455 },

2304 1456 {

2305Key1457 key: "hooks.<Event>",

2306 1458 type: "array<table>",

2307`rules`1459 description:

2308 1460 "Matcher groups for a hook event such as `PreToolUse`, `PostToolUse`, `PermissionRequest`, `SessionStart`, `UserPromptSubmit`, or `Stop`.",

2309Type / Values1461 },

2310 1462 {

2311`table`1463 key: "hooks.<Event>[].hooks",

2312 1464 type: "array<table>",

2313Details1465 description:

2314 1466 "Hook handlers for a matcher group. Command hooks are currently supported; prompt and agent hook handlers are parsed but skipped.",

2315Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive.1467 },

2316 1468 {

2317Key1469 key: "permissions.filesystem.deny_read",

2318 1470 type: "array<string>",

2319`rules.prefix_rules`1471 description:

2320 1472 "Admin-enforced filesystem read denials. Entries can be paths or glob patterns, and users cannot weaken them with local config.",

2321Type / Values1473 },

2322 1474 {

2323`array<table>`1475 key: "mcp_servers",

2324 1476 type: "table",

2325Details1477 description:

2326 1478 "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.",

2327List of enforced prefix rules. Each rule must include `pattern` and `decision`.1479 },

2328 1480 {

2329Key1481 key: "mcp_servers.<id>.identity",

2330 1482 type: "table",

2331`rules.prefix_rules[].decision`1483 description:

2332 1484 "Identity rule for a single MCP server. Set either `command` (stdio) or `url` (streamable HTTP).",

2333Type / Values1485 },

2334 1486 {

2335`prompt | forbidden`1487 key: "mcp_servers.<id>.identity.command",

2336 1488 type: "string",

2337Details1489 description:

2338 1490 "Allow an MCP stdio server when its `mcp_servers.<id>.command` matches this command.",

2339Required. Requirements rules can only prompt or forbid (not allow).1491 },

2340 1492 {

2341Key1493 key: "mcp_servers.<id>.identity.url",

2342 1494 type: "string",

2343`rules.prefix_rules[].justification`1495 description:

2344 1496 "Allow an MCP streamable HTTP server when its `mcp_servers.<id>.url` matches this URL.",

2345Type / Values1497 },

2346 1498 {

2347`string`1499 key: "rules",

2348 1500 type: "table",

2349Details1501 description:

2350 1502 "Admin-enforced command rules merged with `.rules` files. Requirements rules must be restrictive.",

2351Optional non-empty rationale surfaced in approval prompts or rejection messages.1503 },

2352 1504 {

2353Key1505 key: "rules.prefix_rules",

2354 1506 type: "array<table>",

2355`rules.prefix_rules[].pattern`1507 description:

2356 1508 "List of enforced prefix rules. Each rule must include `pattern` and `decision`.",

2357Type / Values1509 },

2358 1510 {

2359`array<table>`1511 key: "rules.prefix_rules[].pattern",

2360 1512 type: "array<table>",

2361Details1513 description:

2362 1514 "Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`.",

2363Command prefix expressed as pattern tokens. Each token sets either `token` or `any_of`.1515 },

2364 1516 {

2365Key1517 key: "rules.prefix_rules[].pattern[].token",

2366 1518 type: "string",

2367`rules.prefix_rules[].pattern[].any_of`1519 description: "A single literal token at this position.",

2368 1520 },

2369Type / Values1521 {

2370 1522 key: "rules.prefix_rules[].pattern[].any_of",

2371`array<string>`1523 type: "array<string>",

2372 1524 description: "A list of allowed alternative tokens at this position.",

2373Details1525 },

2374 1526 {

2375A list of allowed alternative tokens at this position.1527 key: "rules.prefix_rules[].decision",

2376 1528 type: "prompt | forbidden",

2377Key1529 description:

2378 1530 "Required. Requirements rules can only prompt or forbid (not allow).",

2379`rules.prefix_rules[].pattern[].token`1531 },

2380 1532 {

2381Type / Values1533 key: "rules.prefix_rules[].justification",

2382 1534 type: "string",

2383`string`1535 description:

2384 1536 "Optional non-empty rationale surfaced in approval prompts or rejection messages.",

2385Details1537 },

2386 1538 ]}

2387A single literal token at this position.1539 client:load

2388 1540/>

2389Expand to view all