Configure options below — the preview updates in real time.
Configure the default AI model, provider, reasoning effort, and web search behavior.
The default AI model to use for the agent.
The backend provider serving the model.
Default local provider when using OSS mode (e.g. ollama, lmstudio).
Preferred service tier for new turns (flex for cost savings, fast for lower latency).
Default communication style for supported models.
Controls how deeply the model thinks about a task (supported by GPT-5/o3 families).
Reasoning effort used specifically during planning steps.
Controls Responses API text output length and verbosity for GPT-5 models.
Controls whether to show, hide, or compress the model's step-by-step reasoning summary.
Override the context window size in tokens for the selected model.
Token threshold at which Codex automatically compacts conversation context.
Maximum tokens allowed in a single tool output.
Optional absolute path to a custom JSON model catalog.
The default profile to load automatically on startup if not passed via CLI flag.
Controls the live web search capability for the agent.
Custom developer-level instructions prepended to the system prompt.
Path to a text file containing custom instructions for the model.
External command to run for desktop notifications (array of command and args).
Control when the agent pauses for approval and what it can access.
Controls when Codex pauses for human approval before executing actions.
OS-enforced technical boundaries for what the agent can touch or access.
Configure credential storage, ChatGPT backend, and MCP OAuth settings.
Where credentials (auth.json) are stored (OS Keychain vs. file system).
Advanced override for the ChatGPT backend API URL.
Where MCP OAuth credentials are stored.
Port for the MCP OAuth callback listener.
Custom OAuth redirect URI for MCP authentication.
Terminal UI, notifications, editor integration, and telemetry settings.
Controls the alternate screen mode for the Terminal UI.
Color theme for the terminal UI.
Editor to open when clicking citation links.
Max timeout in milliseconds for background terminal polling.
Configure AGENTS.md and project documentation settings.
Maximum bytes to read from AGENTS.md or similar project documentation files.
Fallback filenames to search for project guidance when AGENTS.md is not found.
Directory markers used to detect the project root.
Configure session transcript persistence.
Controls how session history is saved.
Maximum file size cap for history files.
Fine-grained controls for the workspace-write sandbox mode.
Extra directories (outside the active workspace) the agent is allowed to write to.
Control which host shell environment variables Codex inherits.
Controls which host shell environment variables Codex inherits.
Specific environment variables to explicitly allow (e.g., PATH, HOME).
Environment variable patterns to exclude (array of globs).
Configure alternative or open-source model endpoints.
The display name for the custom provider.
The API base URL for the custom provider.
API protocol to use when communicating with the provider.
The environment variable containing the provider's API key.
Optional setup guidance displayed to users if the key is missing.
Max network retries for standard API requests.
Max network retries for streaming endpoints.
Timeout for idle streams in milliseconds.
Model Context Protocol (MCP) server integrations.
Launcher command for an MCP stdio server (e.g., "npx").
Arguments for the launcher command.
Additional environment variables set for the stdio server.
Environment variable names to allow/forward to the stdio server.
Custom working directory for the MCP stdio server process.
Server address for a streamable HTTP MCP server.
Env var sourcing the bearer token for an MCP HTTP server.
Static header name-value pairs for the MCP HTTP server.
Header names mapped to environment variables for the MCP HTTP server.
Timeout in seconds for the MCP server to start up.
Timeout in seconds for individual tool executions.
Allowlist of tool names the MCP server is permitted to expose.
Denylist applied after enabled_tools to block specific tools.
Explicit opt-in/opt-out toggles for experimental features.
Multi-agent roles and concurrency limits.
Maximum concurrent agent threads.
Maximum nesting depth for agent spawning.
Maximum runtime in seconds for a worker agent job.
Configure OpenTelemetry log and trace export.
Environment tag for OpenTelemetry exports.
OpenTelemetry log exporter target.
OpenTelemetry trace exporter target.
Windows-specific sandbox and compatibility settings.
Sandbox mode for Windows environments.
1