Codex Configuration & Customization
Codex can be customized globally, per project, per profile, and per task.
Configuration Layers
Configuration is layered from broad to specific:
- Organization or managed policy
- User config under
CODEX_HOME - Project instructions such as
AGENTS.md - Skills and plugin instructions
- The current prompt
Common config.toml Fields
Typical settings include model, reasoning effort, sandbox mode, approval policy, AGENTS discovery, web search behavior, feature flags, and MCP servers.
Temporary Overrides With -c
The CLI can override config values for a single run:
Profiles
Profiles let you keep separate presets for different workflows, such as safe local development, read-only planning, or CI automation.
CODEX_HOME
CODEX_HOME changes where Codex reads config, logs, skills, and state. Use it when you need isolated setups.
Feature Flags
Feature flags control experimental or staged capabilities. Keep them documented so teams know which behavior is expected.
Desktop App Settings
The Desktop App exposes many of the same concepts through UI: permissions, model selection, integrations, plugins, and appearance.
Logs And Diagnostics
Use logs when debugging unexpected behavior, missing instructions, or tool failures. CLI logs and app diagnostics can show which config and project instructions were loaded.
Next Steps
Read Permissions next.