config-sample.md +62 −17
49# model_context_window = 128000 # tokens; default: auto for model49# model_context_window = 128000 # tokens; default: auto for model
50# model_auto_compact_token_limit = 0 # tokens; unset uses model defaults50# model_auto_compact_token_limit = 0 # tokens; unset uses model defaults
51# tool_output_token_limit = 10000 # tokens stored per tool output; default: 10000 for gpt-5.2-codex51# tool_output_token_limit = 10000 # tokens stored per tool output; default: 10000 for gpt-5.2-codex
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)
52# 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"
53 55
54################################################################################56################################################################################
107# - untrusted: only known-safe read-only commands auto-run; others prompt109# - untrusted: only known-safe read-only commands auto-run; others prompt
108# - on-request: model decides when to ask (default)110# - on-request: model decides when to ask (default)
109# - never: never prompt (risky)111# - never: never prompt (risky)
112# - { reject = { ... } }: auto-reject selected prompt categories
110approval_policy = "on-request"113approval_policy = "on-request"
114# Example granular auto-reject policy:
115# approval_policy = { reject = { sandbox_approval = true, rules = false, mcp_elicitations = false } }
116
117# Allow login-shell semantics for shell-based tools when they request `login = true`.
118# Default: true. Set false to force non-login shells and reject explicit login-shell requests.
119allow_login_shell = true
111 120
112# Filesystem/network sandbox policy for tool calls:121# Filesystem/network sandbox policy for tool calls:
113# - read-only (default)122# - read-only (default)
138# Optional fixed port for MCP OAuth callback: 1-65535. Default: unset.147# Optional fixed port for MCP OAuth callback: 1-65535. Default: unset.
139# mcp_oauth_callback_port = 4321148# mcp_oauth_callback_port = 4321
140 149
150# Optional redirect URI override for MCP OAuth login (for example, remote devbox ingress).
151# Custom callback paths are supported. `mcp_oauth_callback_port` still controls the listener port.
152# mcp_oauth_callback_url = "https://devbox.example.internal/callback"
153
141################################################################################154################################################################################
142# Project Documentation Controls155# Project Documentation Controls
143################################################################################156################################################################################
194# Active profile name. When unset, no profile is applied.207# Active profile name. When unset, no profile is applied.
195# profile = "default"208# profile = "default"
196 209
210################################################################################
211# Agents (multi-agent roles and limits)
212################################################################################
213
214# [agents]
215# Maximum concurrently open agent threads. Default: 6
216# max_threads = 6
217# Maximum nested spawn depth. Root session starts at depth 0. Default: 1
218# max_depth = 1
219
220# [agents.reviewer]
221# description = "Find security, correctness, and test risks in code."
222# config_file = "./agents/reviewer.toml" # relative to the config.toml that defines it
223
197################################################################################224################################################################################
198# Skills (per-skill overrides)225# Skills (per-skill overrides)
199################################################################################226################################################################################
276# Control alternate screen usage (auto skips it in Zellij to preserve scrollback).303# Control alternate screen usage (auto skips it in Zellij to preserve scrollback).
277# alternate_screen = "auto"304# alternate_screen = "auto"
278 305
279306# Ordered list of footer status-line item IDs. Default: null (disabled).# Ordered list of footer status-line item IDs. When unset, Codex uses:
307# ["model-with-reasoning", "context-remaining", "current-dir"].
308# Set to [] to hide the footer.
280# status_line = ["model", "context-remaining", "git-branch"]309# status_line = ["model", "context-remaining", "git-branch"]
281 310
311# Syntax-highlighting theme (kebab-case). Use /theme in the TUI to preview and save.
312# You can also add custom .tmTheme files under $CODEX_HOME/themes.
313# theme = "catppuccin-mocha"
314
282# Control whether users can submit feedback from `/feedback`. Default: true315# Control whether users can submit feedback from `/feedback`. Default: true
283[feedback]316[feedback]
284enabled = true317enabled = true
301 334
302[features]335[features]
303# Leave this table empty to accept defaults. Set explicit booleans to opt in/out.336# Leave this table empty to accept defaults. Set explicit booleans to opt in/out.
304337shell_tool = true# shell_tool = true
305# apps = false338# apps = false
306# apps_mcp_gateway = false339# apps_mcp_gateway = false
307# Deprecated legacy toggles; prefer the top-level `web_search` setting.
308# web_search = false
309# web_search_cached = false340# web_search_cached = false
310# web_search_request = false341# web_search_request = false
311342unified_exec = false# unified_exec = false
312343shell_snapshot = false# shell_snapshot = false
313344apply_patch_freeform = false# apply_patch_freeform = false
345# multi_agent = false
314# search_tool = false346# search_tool = false
315# personality = true347# personality = true
316348request_rule = true# request_rule = true
317349collaboration_modes = true# collaboration_modes = true
318350use_linux_sandbox_bwrap = false# use_linux_sandbox_bwrap = false
319351experimental_windows_sandbox = false# experimental_windows_sandbox = false
320352elevated_windows_sandbox = false# elevated_windows_sandbox = false
321353remote_models = false# remote_models = false
322354runtime_metrics = false# runtime_metrics = false
323355powershell_utf8 = true# powershell_utf8 = true
324356child_agents_md = false# child_agents_md = false
325 357
326################################################################################358################################################################################
327# Define MCP servers under this table. Leave empty to disable.359# Define MCP servers under this table. Leave empty to disable.
411# model_verbosity = "medium"443# model_verbosity = "medium"
412# personality = "friendly" # or "pragmatic" or "none"444# personality = "friendly" # or "pragmatic" or "none"
413# chatgpt_base_url = "https://chatgpt.com/backend-api/"445# chatgpt_base_url = "https://chatgpt.com/backend-api/"
446# model_catalog_json = "./models.json"
414# experimental_compact_prompt_file = "./compact_prompt.txt"447# experimental_compact_prompt_file = "./compact_prompt.txt"
415# include_apply_patch_tool = false448# include_apply_patch_tool = false
416# experimental_use_unified_exec_tool = false449# experimental_use_unified_exec_tool = false
424 457
425# Optional per-app controls.458# Optional per-app controls.
426[apps]459[apps]
460# [_default] applies to all apps unless overridden per app.
461# [apps._default]
462# enabled = true
463# destructive_enabled = true
464# open_world_enabled = true
465#
427# [apps.google_drive]466# [apps.google_drive]
428# enabled = false467# enabled = false
429468# disabled_reason = "user" # or "unknown"# destructive_enabled = false # block destructive-hint tools for this app
469# default_tools_enabled = true
470# default_tools_approval_mode = "prompt" # auto | prompt | approve
471#
472# [apps.google_drive.tools."files/delete"]
473# enabled = false
474# approval_mode = "approve"
430 475
431################################################################################476################################################################################
432# Projects (trust levels)477# Projects (trust levels)