Configuration Profiles
Profiles let you define multiple configuration presets and switch between them:CLI flags always override profile settings. Profile settings override global config.
Reasoning Effort
Control how much computational effort reasoning models spend on tasks:string
Default reasoning effort for reasoning models.Options:
"none", "minimal", "low", "medium", "high", "xhigh"string
Reasoning effort override for Plan mode specifically.When unset, Plan mode uses its built-in default (currently
"medium"). When explicitly set (including "none"), it overrides the Plan preset.Reasoning Effort Guide
none - No reasoning overhead
none - No reasoning overhead
Fastest responses with no extended reasoning process. Use for simple queries or when speed is critical.
minimal - Very light reasoning
minimal - Very light reasoning
Minimal reasoning overhead for straightforward tasks.
low - Light reasoning
low - Light reasoning
Light reasoning for tasks with moderate complexity.
medium - Balanced (Default)
medium - Balanced (Default)
Balanced reasoning effort suitable for most tasks.
high - Deep reasoning
high - Deep reasoning
Extended reasoning for complex problems requiring careful analysis.
xhigh - Maximum reasoning
xhigh - Maximum reasoning
Maximum reasoning effort for the most challenging problems.
Reasoning Summaries
Configure how reasoning summaries are presented:string
default:"auto"
Controls reasoning summary detail level.Options:
"auto"- Let the model decide"concise"- Brief summaries"detailed"- Comprehensive summaries"none"- Disable reasoning summaries
Model Verbosity
Control output length for GPT-5 models:string
Controls output detail for GPT-5 models via Responses API.Options:
"low", "medium", "high"SQLite State Database
Codex stores thread state, memories, and other persistent data in a SQLite database:string
Directory for SQLite state database.Default behavior:
- If
CODEX_SQLITE_HOMEenv var is set, use that - For workspace-write sandbox, default to temp directory
- Otherwise, default to
$CODEX_HOME
The SQLite database contains thread history, memories, and state. Back it up regularly if important.
Custom Developer Instructions
Provide model-specific instructions that appear as developer role messages:Shell Environment Policy
Control which environment variables are inherited when running shell commands:string
Which environment variables to inherit.Options:
"core"- Only essential variables (HOME, PATH, USER, etc.)"all"- Inherit full parent environment"none"- Start with empty environment
array
Regex patterns for variables to exclude (applied after inherit)
array
If set, only inherit variables matching these patterns
object
Explicitly set environment variables
Agent Configuration
Configure multi-agent and hierarchical agent settings:integer
Maximum concurrent agent threads. When unset, no limit is enforced.
integer
Maximum nesting depth for spawned agents. Root sessions start at depth 0.
integer
Default maximum runtime in seconds for agent job workers.
Agent Roles
Define custom agent roles with specific configurations:Tool Configuration
Enable or disable specific tools:boolean
Enable the
view_image tool for attaching local imagesboolean
Enable web search capabilities
Web Search Mode
string
default:"disabled"
Controls web search tool behavior.Options:
"disabled"- No web search"cached"- Use cached search results"live"- Perform live web searches
Network Permissions
Configure network proxy and access controls:boolean
Enable network proxy functionality
string
Network access mode.Options:
"limited"- Restricted to allowed domains"full"- Full network access
array
List of allowed domain patterns
array
List of explicitly denied domains
Memories Configuration
Configure Codex’s memory system:boolean
Inject memory usage instructions into developer prompts
boolean
Enable automatic memory generation from threads
integer
Maximum age of threads used for memory generation
integer
Minimum idle time before creating memories from a thread (hours)
Ghost Snapshots (Undo)
Configure ghost snapshots for the undo feature:integer
Exclude untracked files larger than this many bytes
integer
Ignore untracked directories with this many files or more
OpenTelemetry Configuration
Configure observability and tracing:string
default:"dev"
Environment tag for traces (dev, staging, prod, test)
boolean
default:"false"
Include user prompts in trace logs
JavaScript REPL Configuration
Configure the JavaScript REPL feature:string
Absolute path to Node.js runtime for js_repl
array
Ordered list of directories to search for Node modules
Feature Flags
Enable experimental features:Feature flags control access to experimental or unstable features. Check the release notes for details on specific flags.
Windows-Specific Settings
string
Windows sandbox mode.Options:
"elevated"- Run with elevated permissions"unelevated"- Run without elevation
Example Advanced Configuration
Next Steps
Custom Providers
Configure alternative AI providers
MCP Servers
Integrate Model Context Protocol servers
Configuration Reference
Complete reference of all options