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:Default reasoning effort for reasoning models.Options:
"none", "minimal", "low", "medium", "high", "xhigh"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: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: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: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:Which environment variables to inherit.Options:
"core"- Only essential variables (HOME, PATH, USER, etc.)"all"- Inherit full parent environment"none"- Start with empty environment
Regex patterns for variables to exclude (applied after inherit)
If set, only inherit variables matching these patterns
Explicitly set environment variables
Agent Configuration
Configure multi-agent and hierarchical agent settings:Maximum concurrent agent threads. When unset, no limit is enforced.
Maximum nesting depth for spawned agents. Root sessions start at depth 0.
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:Enable the
view_image tool for attaching local imagesEnable web search capabilities
Web Search Mode
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:Enable network proxy functionality
Network access mode.Options:
"limited"- Restricted to allowed domains"full"- Full network access
List of allowed domain patterns
List of explicitly denied domains
Memories Configuration
Configure Codex’s memory system:Inject memory usage instructions into developer prompts
Enable automatic memory generation from threads
Maximum age of threads used for memory generation
Minimum idle time before creating memories from a thread (hours)
Ghost Snapshots (Undo)
Configure ghost snapshots for the undo feature:Exclude untracked files larger than this many bytes
Ignore untracked directories with this many files or more
OpenTelemetry Configuration
Configure observability and tracing:Environment tag for traces (dev, staging, prod, test)
Include user prompts in trace logs
JavaScript REPL Configuration
Configure the JavaScript REPL feature:Absolute path to Node.js runtime for js_repl
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
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