SpyBara
Go Premium Account
2026
19 Feb 2026, 20:53
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
18 Mar 2026, 12:23
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
Tue 3 00:35 Tue 3 18:20 Wed 4 06:20 Wed 4 18:18 Thu 5 00:34 Thu 5 06:22 Thu 5 18:41 Fri 6 00:38 Sat 7 00:33 Sat 7 06:14 Sat 7 18:10 Sun 8 00:35 Sun 8 18:10 Mon 9 00:34 Wed 11 00:31 Fri 13 00:34 Fri 13 18:15 Sat 14 00:32 Mon 16 12:23 Mon 16 18:25 Tue 17 00:33 Tue 17 18:24 Wed 18 00:36 Wed 18 12:23 Fri 20 00:35 Mon 23 18:22 Wed 25 18:24 Thu 26 18:27 Fri 27 00:39 Fri 27 18:23 Sat 28 00:36 Sat 28 06:26 Tue 31 00:39 Tue 31 06:35

config-sample.md +186 −108

Details

1# Sample Configuration1# Sample Configuration

2 2 

3Use this example configuration as a starting point. It includes most keys Codex reads from `config.toml`, along with defaults and short notes.3Use this example configuration as a starting point. It includes most keys Codex reads from `config.toml`, along with default behaviors, recommended values where helpful, and short notes.

4 4 

5For explanations and guidance, see:5For explanations and guidance, see:

6 6 

7- [Config basics](https://developers.openai.com/codex/config-basic)7- [Config basics](https://developers.openai.com/codex/config-basic)

8- [Advanced Config](https://developers.openai.com/codex/config-advanced)8- [Advanced Config](https://developers.openai.com/codex/config-advanced)

9- [Config Reference](https://developers.openai.com/codex/config-reference)9- [Config Reference](https://developers.openai.com/codex/config-reference)

10- [Sandbox and approvals](https://developers.openai.com/codex/agent-approvals-security#sandbox-and-approvals)

11- [Managed configuration](https://developers.openai.com/codex/enterprise/managed-configuration)

10 12 

11Use the snippet below as a reference. Copy only the keys and sections you need into `~/.codex/config.toml` (or into a project-scoped `.codex/config.toml`), then adjust values for your setup.13Use the snippet below as a reference. Copy only the keys and sections you need into `~/.codex/config.toml` (or into a project-scoped `.codex/config.toml`), then adjust values for your setup.

12 14 

13```toml15```toml

14# Codex example configuration (config.toml)16# Codex example configuration (config.toml)

15#17#

16# This file lists all keys Codex reads from config.toml, their default values,18# This file lists the main keys Codex reads from config.toml, along with default

17# and concise explanations. Values here mirror the effective defaults compiled19# behaviors, recommended examples, and concise explanations. Adjust as needed.

18# into the CLI. Adjust as needed.

19#20#

20# Notes21# Notes

21# - Root keys must appear before tables in TOML.22# - Root keys must appear before tables in TOML.


26# Core Model Selection27# Core Model Selection

27################################################################################28################################################################################

28 29 

29# Primary model used by Codex. Default: "gpt-5.2-codex" on all platforms.30# Primary model used by Codex. Recommended example for most users: "gpt-5.4".

30model = "gpt-5.2-codex"31model = "gpt-5.4"

31 32 

32# Default communication style for supported models. Default: "friendly".33# Communication style for supported models. Allowed values: none | friendly | pragmatic

33# Allowed values: none | friendly | pragmatic34# personality = "pragmatic"

34# personality = "friendly"

35 35 

36# Optional model override for /review. Default: unset (uses current session model).36# Optional model override for /review. Default: unset (uses current session model).

37# review_model = "gpt-5.2-codex"37# review_model = "gpt-5.4"

38 38 

39# Provider id selected from [model_providers]. Default: "openai".39# Provider id selected from [model_providers]. Default: "openai".

40model_provider = "openai"40model_provider = "openai"


42# Default OSS provider for --oss sessions. When unset, Codex prompts. Default: unset.42# Default OSS provider for --oss sessions. When unset, Codex prompts. Default: unset.

43# oss_provider = "ollama"43# oss_provider = "ollama"

44 44 

45# Optional manual model metadata. When unset, Codex auto-detects from model.45# Preferred service tier. `fast` is honored only when enabled in [features].

46# Uncomment to force values.46# service_tier = "flex" # fast | flex

47 

48# Optional manual model metadata. When unset, Codex uses model or preset defaults.

47# model_context_window = 128000 # tokens; default: auto for model49# model_context_window = 128000 # tokens; default: auto for model

48# model_auto_compact_token_limit = 0 # tokens; unset uses model defaults50# model_auto_compact_token_limit = 64000 # tokens; unset uses model defaults

49# tool_output_token_limit = 10000 # tokens stored per tool output; default: 10000 for gpt-5.2-codex51# tool_output_token_limit = 12000 # tokens stored per tool output

52# model_catalog_json = "/absolute/path/to/models.json" # optional startup-only model catalog override

53# background_terminal_max_timeout = 300000 # ms; max empty write_stdin poll window (default 5m)

50# log_dir = "/absolute/path/to/codex-logs" # directory for Codex logs; default: "$CODEX_HOME/log"54# log_dir = "/absolute/path/to/codex-logs" # directory for Codex logs; default: "$CODEX_HOME/log"

55# sqlite_home = "/absolute/path/to/codex-state" # optional SQLite-backed runtime state directory

51 56 

52################################################################################57################################################################################

53# Reasoning & Verbosity (Responses API capable models)58# Reasoning & Verbosity (Responses API capable models)

54################################################################################59################################################################################

55 60 

56# Reasoning effort: minimal | low | medium | high | xhigh (default: medium; xhigh on gpt-5.2-codex and gpt-5.2)61# Reasoning effort: minimal | low | medium | high | xhigh

57model_reasoning_effort = "medium"62# model_reasoning_effort = "medium"

63 

64# Optional override used when Codex runs in plan mode: none | minimal | low | medium | high | xhigh

65# plan_mode_reasoning_effort = "high"

58 66 

59# Reasoning summary: auto | concise | detailed | none (default: auto)67# Reasoning summary: auto | concise | detailed | none

60# model_reasoning_summary = "auto"68# model_reasoning_summary = "auto"

61 69 

62# Text verbosity for GPT-5 family (Responses API): low | medium | high (default: medium)70# Text verbosity for GPT-5 family (Responses API): low | medium | high

63# model_verbosity = "medium"71# model_verbosity = "medium"

64 72 

65# Force enable or disable reasoning summaries for current model73# Force enable or disable reasoning summaries for current model.

66# model_supports_reasoning_summaries = true74# model_supports_reasoning_summaries = true

67 75 

68################################################################################76################################################################################


72# Additional user instructions are injected before AGENTS.md. Default: unset.80# Additional user instructions are injected before AGENTS.md. Default: unset.

73# developer_instructions = ""81# developer_instructions = ""

74 82 

75# (Ignored) Optional legacy base instructions override (prefer AGENTS.md). Default: unset.

76# instructions = ""

77 

78# Inline override for the history compaction prompt. Default: unset.83# Inline override for the history compaction prompt. Default: unset.

79# compact_prompt = ""84# compact_prompt = ""

80 85 

86# Override the default commit co-author trailer. Set to "" to disable it.

87# commit_attribution = "Jane Doe <jane@example.com>"

88 

81# Override built-in base instructions with a file path. Default: unset.89# Override built-in base instructions with a file path. Default: unset.

82# model_instructions_file = "/absolute/or/relative/path/to/instructions.txt"90# model_instructions_file = "/absolute/or/relative/path/to/instructions.txt"

83 91 

84# Migration note: experimental_instructions_file was renamed to model_instructions_file (deprecated).

85 

86# Load the compact prompt override from a file. Default: unset.92# Load the compact prompt override from a file. Default: unset.

87# experimental_compact_prompt_file = "/absolute/or/relative/path/to/compact_prompt.txt"93# experimental_compact_prompt_file = "/absolute/or/relative/path/to/compact_prompt.txt"

88 94 

89# Legacy name for apply_patch_freeform. Default: false

90include_apply_patch_tool = false

91 

92################################################################################95################################################################################

93# Notifications96# Notifications

94################################################################################97################################################################################

95 98 

96# External notifier program (argv array). When unset: disabled.99# External notifier program (argv array). When unset: disabled.

97# Example: notify = ["notify-send", "Codex"]100# notify = ["notify-send", "Codex"]

98notify = [ ]

99 101 

100################################################################################102################################################################################

101# Approval & Sandbox103# Approval & Sandbox


105# - untrusted: only known-safe read-only commands auto-run; others prompt107# - untrusted: only known-safe read-only commands auto-run; others prompt

106# - on-request: model decides when to ask (default)108# - on-request: model decides when to ask (default)

107# - never: never prompt (risky)109# - never: never prompt (risky)

110# - { granular = { ... } }: allow or auto-reject selected prompt categories

108approval_policy = "on-request"111approval_policy = "on-request"

112# Example granular policy:

113# approval_policy = { granular = {

114# sandbox_approval = true,

115# rules = true,

116# mcp_elicitations = true,

117# request_permissions = false,

118# skill_approval = false

119# } }

120 

121# Allow login-shell semantics for shell-based tools when they request `login = true`.

122# Default: true. Set false to force non-login shells and reject explicit login-shell requests.

123allow_login_shell = true

109 124 

110# Filesystem/network sandbox policy for tool calls:125# Filesystem/network sandbox policy for tool calls:

111# - read-only (default)126# - read-only (default)


120# Where to persist CLI login credentials: file (default) | keyring | auto135# Where to persist CLI login credentials: file (default) | keyring | auto

121cli_auth_credentials_store = "file"136cli_auth_credentials_store = "file"

122 137 

123# Base URL for ChatGPT auth flow (not OpenAI API). Default:138# Base URL for ChatGPT auth flow (not OpenAI API).

124chatgpt_base_url = "https://chatgpt.com/backend-api/"139chatgpt_base_url = "https://chatgpt.com/backend-api/"

125 140 

141# Optional base URL override for the built-in OpenAI provider.

142# openai_base_url = "https://us.api.openai.com/v1"

143 

126# Restrict ChatGPT login to a specific workspace id. Default: unset.144# Restrict ChatGPT login to a specific workspace id. Default: unset.

127# forced_chatgpt_workspace_id = ""145# forced_chatgpt_workspace_id = "00000000-0000-0000-0000-000000000000"

128 146 

129# Force login mechanism when Codex would normally auto-select. Default: unset.147# Force login mechanism when Codex would normally auto-select. Default: unset.

130# Allowed values: chatgpt | api148# Allowed values: chatgpt | api


132 150 

133# Preferred store for MCP OAuth credentials: auto (default) | file | keyring151# Preferred store for MCP OAuth credentials: auto (default) | file | keyring

134mcp_oauth_credentials_store = "auto"152mcp_oauth_credentials_store = "auto"

135 

136# Optional fixed port for MCP OAuth callback: 1-65535. Default: unset.153# Optional fixed port for MCP OAuth callback: 1-65535. Default: unset.

137# mcp_oauth_callback_port = 4321154# mcp_oauth_callback_port = 4321

155# Optional redirect URI override for MCP OAuth login (for example, remote devbox ingress).

156# Custom callback paths are supported. `mcp_oauth_callback_port` still controls the listener port.

157# mcp_oauth_callback_url = "https://devbox.example.internal/callback"

138 158 

139################################################################################159################################################################################

140# Project Documentation Controls160# Project Documentation Controls


185# If you use --yolo or another full access sandbox setting, web search defaults to live.205# If you use --yolo or another full access sandbox setting, web search defaults to live.

186web_search = "cached"206web_search = "cached"

187 207 

208# Active profile name. When unset, no profile is applied.

209# profile = "default"

210 

211# Suppress the warning shown when under-development feature flags are enabled.

212# suppress_unstable_features_warning = true

213 

188################################################################################214################################################################################

189# Profiles (named presets)215# Agents (multi-agent roles and limits)

190################################################################################216################################################################################

191 217 

192# Active profile name. When unset, no profile is applied.218[agents]

193# profile = "default"219# Maximum concurrently open agent threads. Default: 6

220# max_threads = 6

221# Maximum nested spawn depth. Root session starts at depth 0. Default: 1

222# max_depth = 1

223# Default timeout per worker for spawn_agents_on_csv jobs. When unset, the tool defaults to 1800 seconds.

224# job_max_runtime_seconds = 1800

225 

226# [agents.reviewer]

227# description = "Find correctness, security, and test risks in code."

228# config_file = "./agents/reviewer.toml" # relative to the config.toml that defines it

229# nickname_candidates = ["Athena", "Ada"]

194 230 

195################################################################################231################################################################################

196# Skills (per-skill overrides)232# Skills (per-skill overrides)


198 234 

199# Disable or re-enable a specific skill without deleting it.235# Disable or re-enable a specific skill without deleting it.

200[[skills.config]]236[[skills.config]]

201# path = "/path/to/skill"237# path = "/path/to/skill/SKILL.md"

202# enabled = false238# enabled = false

203 239 

204################################################################################

205# Experimental toggles (legacy; prefer [features])

206################################################################################

207 

208experimental_use_unified_exec_tool = false

209 

210# Include apply_patch via freeform editing path (affects default tool set). Default: false

211experimental_use_freeform_apply_patch = false

212 

213################################################################################240################################################################################

214# Sandbox settings (tables)241# Sandbox settings (tables)

215################################################################################242################################################################################


232[shell_environment_policy]259[shell_environment_policy]

233# inherit: all (default) | core | none260# inherit: all (default) | core | none

234inherit = "all"261inherit = "all"

235# Skip default excludes for names containing KEY/SECRET/TOKEN (case-insensitive). Default: true262# Skip default excludes for names containing KEY/SECRET/TOKEN (case-insensitive). Default: false

236ignore_default_excludes = true263ignore_default_excludes = false

237# Case-insensitive glob patterns to remove (e.g., "AWS_*", "AZURE_*"). Default: []264# Case-insensitive glob patterns to remove (e.g., "AWS_*", "AZURE_*"). Default: []

238exclude = []265exclude = []

239# Explicit key/value overrides (always win). Default: {}266# Explicit key/value overrides (always win). Default: {}


243# Experimental: run via user shell profile. Default: false270# Experimental: run via user shell profile. Default: false

244experimental_use_profile = false271experimental_use_profile = false

245 272 

273################################################################################

274# Managed network proxy settings

275################################################################################

276 

277[permissions.network]

278# enabled = true

279# proxy_url = "http://127.0.0.1:43128"

280# admin_url = "http://127.0.0.1:43129"

281# enable_socks5 = false

282# socks_url = "http://127.0.0.1:43130"

283# enable_socks5_udp = false

284# allow_upstream_proxy = false

285# dangerously_allow_non_loopback_proxy = false

286# dangerously_allow_non_loopback_admin = false

287# dangerously_allow_all_unix_sockets = false

288# mode = "limited" # limited | full

289# allowed_domains = ["api.openai.com"]

290# denied_domains = ["example.com"]

291# allow_unix_sockets = ["/var/run/docker.sock"]

292# allow_local_binding = false

293 

246################################################################################294################################################################################

247# History (table)295# History (table)

248################################################################################296################################################################################


251# save-all (default) | none299# save-all (default) | none

252persistence = "save-all"300persistence = "save-all"

253# Maximum bytes for history file; oldest entries are trimmed when exceeded. Example: 5242880301# Maximum bytes for history file; oldest entries are trimmed when exceeded. Example: 5242880

254# max_bytes = 0302# max_bytes = 5242880

255 303 

256################################################################################304################################################################################

257# UI, Notifications, and Misc (tables)305# UI, Notifications, and Misc (tables)


274# Control alternate screen usage (auto skips it in Zellij to preserve scrollback).322# Control alternate screen usage (auto skips it in Zellij to preserve scrollback).

275# alternate_screen = "auto"323# alternate_screen = "auto"

276 324 

277# Ordered list of footer status-line item IDs. Default: null (disabled).325# Ordered list of footer status-line item IDs. When unset, Codex uses:

326# ["model-with-reasoning", "context-remaining", "current-dir"].

327# Set to [] to hide the footer.

278# status_line = ["model", "context-remaining", "git-branch"]328# status_line = ["model", "context-remaining", "git-branch"]

279 329 

330# Syntax-highlighting theme (kebab-case). Use /theme in the TUI to preview and save.

331# You can also add custom .tmTheme files under $CODEX_HOME/themes.

332# theme = "catppuccin-mocha"

333 

334# Internal tooltip state keyed by model slug. Usually managed by Codex.

335# [tui.model_availability_nux]

336# "gpt-5.4" = 1

337 

338# Enable or disable analytics for this machine. When unset, Codex uses its default behavior.

339[analytics]

340enabled = true

341 

280# Control whether users can submit feedback from `/feedback`. Default: true342# Control whether users can submit feedback from `/feedback`. Default: true

281[feedback]343[feedback]

282enabled = true344enabled = true


290# "hide_gpt-5.1-codex-max_migration_prompt" = true352# "hide_gpt-5.1-codex-max_migration_prompt" = true

291# model_migrations = { "gpt-4.1" = "gpt-5.1" }353# model_migrations = { "gpt-4.1" = "gpt-5.1" }

292 354 

293# Suppress the warning shown when under-development feature flags are enabled.

294# suppress_unstable_features_warning = true

295 

296################################################################################355################################################################################

297# Centralized Feature Flags (preferred)356# Centralized Feature Flags (preferred)

298################################################################################357################################################################################

299 358 

300[features]359[features]

301# Leave this table empty to accept defaults. Set explicit booleans to opt in/out.360# Leave this table empty to accept defaults. Set explicit booleans to opt in/out.

302shell_tool = true361# shell_tool = true

303# apps = false362# apps = false

304# apps_mcp_gateway = false363# unified_exec = true

305# Deprecated legacy toggles; prefer the top-level `web_search` setting.364# shell_snapshot = true

306# web_search = false365# multi_agent = true

307# web_search_cached = false

308# web_search_request = false

309unified_exec = false

310shell_snapshot = false

311apply_patch_freeform = false

312# search_tool = false

313# personality = true366# personality = true

314request_rule = true367# fast_mode = true

315collaboration_modes = true368# smart_approvals = false

316use_linux_sandbox_bwrap = false369# enable_request_compression = true

317experimental_windows_sandbox = false370# skill_mcp_dependency_install = true

318elevated_windows_sandbox = false371# prevent_idle_sleep = false

319remote_models = false

320runtime_metrics = false

321powershell_utf8 = true

322child_agents_md = false

323 372 

324################################################################################373################################################################################

325# Define MCP servers under this table. Leave empty to disable.374# Define MCP servers under this table. Leave empty to disable.


341# tool_timeout_sec = 60.0 # optional; default 60.0 seconds390# tool_timeout_sec = 60.0 # optional; default 60.0 seconds

342# enabled_tools = ["search", "summarize"] # optional allow-list391# enabled_tools = ["search", "summarize"] # optional allow-list

343# disabled_tools = ["slow-tool"] # optional deny-list (applied after allow-list)392# disabled_tools = ["slow-tool"] # optional deny-list (applied after allow-list)

393# scopes = ["read:docs"] # optional OAuth scopes

394# oauth_resource = "https://docs.example.com/" # optional OAuth resource

344 395 

345# --- Example: Streamable HTTP transport ---396# --- Example: Streamable HTTP transport ---

346# [mcp_servers.github]397# [mcp_servers.github]


353# startup_timeout_sec = 10.0 # optional404# startup_timeout_sec = 10.0 # optional

354# tool_timeout_sec = 60.0 # optional405# tool_timeout_sec = 60.0 # optional

355# enabled_tools = ["list_issues"] # optional allow-list406# enabled_tools = ["list_issues"] # optional allow-list

407# disabled_tools = ["delete_issue"] # optional deny-list

408# scopes = ["repo"] # optional OAuth scopes

356 409 

357################################################################################410################################################################################

358# Model Providers411# Model Providers

359################################################################################412################################################################################

360 413 

361# Built-ins include:414# Built-ins include:

362# - openai (Responses API; requires login or OPENAI_API_KEY via auth flow)415# - openai

363# - oss (Chat Completions API; defaults to http://localhost:11434/v1)416# - ollama

417# - lmstudio

364 418 

365[model_providers]419[model_providers]

366 420 


368# [model_providers.openaidr]422# [model_providers.openaidr]

369# name = "OpenAI Data Residency"423# name = "OpenAI Data Residency"

370# base_url = "https://us.api.openai.com/v1" # example with 'us' domain prefix424# base_url = "https://us.api.openai.com/v1" # example with 'us' domain prefix

371# wire_api = "responses" # "responses" | "chat" (default varies)425# wire_api = "responses" # only supported value

372# # requires_openai_auth = true # built-in OpenAI defaults to true426# # requires_openai_auth = true # built-in OpenAI defaults to true

373# # request_max_retries = 4 # default 4; max 100427# # request_max_retries = 4 # default 4; max 100

374# # stream_max_retries = 5 # default 5; max 100428# # stream_max_retries = 5 # default 5; max 100

375# # stream_idle_timeout_ms = 300000 # default 300_000 (5m)429# # stream_idle_timeout_ms = 300000 # default 300_000 (5m)

430# # supports_websockets = true # optional

376# # experimental_bearer_token = "sk-example" # optional dev-only direct bearer token431# # experimental_bearer_token = "sk-example" # optional dev-only direct bearer token

377# # http_headers = { "X-Example" = "value" }432# # http_headers = { "X-Example" = "value" }

378# # env_http_headers = { "OpenAI-Organization" = "OPENAI_ORGANIZATION", "OpenAI-Project" = "OPENAI_PROJECT" }433# # env_http_headers = { "OpenAI-Organization" = "OPENAI_ORGANIZATION", "OpenAI-Project" = "OPENAI_PROJECT" }

379 434 

380# --- Example: Azure (Chat/Responses depending on endpoint) ---435# --- Example: Azure/OpenAI-compatible provider ---

381# [model_providers.azure]436# [model_providers.azure]

382# name = "Azure"437# name = "Azure"

383# base_url = "https://YOUR_PROJECT_NAME.openai.azure.com/openai"438# base_url = "https://YOUR_PROJECT_NAME.openai.azure.com/openai"

384# wire_api = "responses" # or "chat" per endpoint439# wire_api = "responses"

385# query_params = { api-version = "2025-04-01-preview" }440# query_params = { api-version = "2025-04-01-preview" }

386# env_key = "AZURE_OPENAI_API_KEY"441# env_key = "AZURE_OPENAI_API_KEY"

387# # env_key_instructions = "Set AZURE_OPENAI_API_KEY in your environment"442# env_key_instructions = "Set AZURE_OPENAI_API_KEY in your environment"

443# # supports_websockets = false

388 444 

389# --- Example: Local OSS (e.g., Ollama-compatible) ---445# --- Example: Local OSS (e.g., Ollama-compatible) ---

390# [model_providers.ollama]446# [model_providers.ollama]

391# name = "Ollama"447# name = "Ollama"

392# base_url = "http://localhost:11434/v1"448# base_url = "http://localhost:11434/v1"

393# wire_api = "chat"449# wire_api = "responses"

450 

451################################################################################

452# Apps / Connectors

453################################################################################

454 

455# Optional per-app controls.

456[apps]

457# [_default] applies to all apps unless overridden per app.

458# [apps._default]

459# enabled = true

460# destructive_enabled = true

461# open_world_enabled = true

462#

463# [apps.google_drive]

464# enabled = false

465# destructive_enabled = false # block destructive-hint tools for this app

466# default_tools_enabled = true

467# default_tools_approval_mode = "prompt" # auto | prompt | approve

468#

469# [apps.google_drive.tools."files/delete"]

470# enabled = false

471# approval_mode = "approve"

394 472 

395################################################################################473################################################################################

396# Profiles (named presets)474# Profiles (named presets)


399[profiles]477[profiles]

400 478 

401# [profiles.default]479# [profiles.default]

402# model = "gpt-5.2-codex"480# model = "gpt-5.4"

403# model_provider = "openai"481# model_provider = "openai"

404# approval_policy = "on-request"482# approval_policy = "on-request"

405# sandbox_mode = "read-only"483# sandbox_mode = "read-only"

484# service_tier = "flex"

406# oss_provider = "ollama"485# oss_provider = "ollama"

407# model_reasoning_effort = "medium"486# model_reasoning_effort = "medium"

487# plan_mode_reasoning_effort = "high"

408# model_reasoning_summary = "auto"488# model_reasoning_summary = "auto"

409# model_verbosity = "medium"489# model_verbosity = "medium"

410# personality = "friendly" # or "pragmatic" or "none"490# personality = "pragmatic" # or "friendly" or "none"

411# chatgpt_base_url = "https://chatgpt.com/backend-api/"491# chatgpt_base_url = "https://chatgpt.com/backend-api/"

492# model_catalog_json = "./models.json"

493# model_instructions_file = "/absolute/or/relative/path/to/instructions.txt"

412# experimental_compact_prompt_file = "./compact_prompt.txt"494# experimental_compact_prompt_file = "./compact_prompt.txt"

413# include_apply_patch_tool = false495# tools_view_image = true

414# experimental_use_unified_exec_tool = false

415# experimental_use_freeform_apply_patch = false

416# tools.web_search = false # deprecated legacy alias; prefer top-level `web_search`

417# features = { unified_exec = false }496# features = { unified_exec = false }

418 497 

419################################################################################

420# Apps / Connectors

421################################################################################

422 

423# Optional per-app controls.

424[apps]

425# [apps.google_drive]

426# enabled = false

427# disabled_reason = "user" # or "unknown"

428 

429################################################################################498################################################################################

430# Projects (trust levels)499# Projects (trust levels)

431################################################################################500################################################################################

432 501 

433# Mark specific worktrees as trusted or untrusted.

434[projects]502[projects]

503# Mark specific worktrees as trusted or untrusted.

435# [projects."/absolute/path/to/project"]504# [projects."/absolute/path/to/project"]

436# trust_level = "trusted" # or "untrusted"505# trust_level = "trusted" # or "untrusted"

437 506 

507################################################################################

508# Tools

509################################################################################

510 

511[tools]

512# view_image = true

513 

438################################################################################514################################################################################

439# OpenTelemetry (OTEL) - disabled by default515# OpenTelemetry (OTEL) - disabled by default

440################################################################################516################################################################################


448exporter = "none"524exporter = "none"

449# Trace exporter: none (default) | otlp-http | otlp-grpc525# Trace exporter: none (default) | otlp-http | otlp-grpc

450trace_exporter = "none"526trace_exporter = "none"

527# Metrics exporter: none | statsig | otlp-http | otlp-grpc

528metrics_exporter = "statsig"

451 529 

452# Example OTLP/HTTP exporter configuration530# Example OTLP/HTTP exporter configuration

453# [otel.exporter."otlp-http"]531# [otel.exporter."otlp-http"]


457# [otel.exporter."otlp-http".headers]535# [otel.exporter."otlp-http".headers]

458# "x-otlp-api-key" = "${OTLP_TOKEN}"536# "x-otlp-api-key" = "${OTLP_TOKEN}"

459 537 

460# Example OTLP/gRPC exporter configuration

461# [otel.exporter."otlp-grpc"]

462# endpoint = "https://otel.example.com:4317",

463# headers = { "x-otlp-meta" = "abc123" }

464 

465# Example OTLP exporter with mutual TLS

466# [otel.exporter."otlp-http"]

467# endpoint = "https://otel.example.com/v1/logs"

468# protocol = "binary"

469 

470# [otel.exporter."otlp-http".headers]

471# "x-otlp-api-key" = "${OTLP_TOKEN}"

472 

473# [otel.exporter."otlp-http".tls]538# [otel.exporter."otlp-http".tls]

474# ca-certificate = "certs/otel-ca.pem"539# ca-certificate = "certs/otel-ca.pem"

475# client-certificate = "/etc/codex/certs/client.pem"540# client-certificate = "/etc/codex/certs/client.pem"

476# client-private-key = "/etc/codex/certs/client-key.pem"541# client-private-key = "/etc/codex/certs/client-key.pem"

542 

543# Example OTLP/gRPC trace exporter configuration

544# [otel.trace_exporter."otlp-grpc"]

545# endpoint = "https://otel.example.com:4317"

546# headers = { "x-otlp-meta" = "abc123" }

547 

548################################################################################

549# Windows

550################################################################################

551 

552[windows]

553# Native Windows sandbox mode (Windows only): unelevated | elevated

554sandbox = "unelevated"

477```555```