Configure options below — the preview updates in real time.

Core & Model Settings

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.

Model Supports Reasoning SummariesForce-enable reasoning summary capability for the current model.

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).

Sandbox, Security & Approvals

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.

Allow Login ShellAllows shell-based tools to use login-shell semantics.

Authentication & Login

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.

Application & TUI Settings

Terminal UI, notifications, editor integration, and telemetry settings.

Controls the alternate screen mode for the Terminal UI.

TUI NotificationsEnable or disable terminal UI notifications.
TUI AnimationsEnable or disable ASCII animations in the terminal UI.
Show TooltipsDisplay onboarding tooltips in the terminal UI.

Color theme for the terminal UI.

Editor to open when clicking citation links.

Show Raw Agent ReasoningSurfaces raw chain-of-thought events in the terminal/logs when available.
Hide Agent ReasoningSuppress reasoning output from the agent entirely.
Disable Paste BurstDisable paste-burst detection in the terminal input.
AnalyticsEnable or disable telemetry/analytics.
FeedbackAllow /feedback submissions from the CLI.
Check for UpdatesChecks for Codex updates on startup via npm/brew.

Max timeout in milliseconds for background terminal polling.

Project Documentation Controls

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.

.git

History

Configure session transcript persistence.

Controls how session history is saved.

Maximum file size cap for history files.

Sandbox Writable Roots

Fine-grained controls for the workspace-write sandbox mode.

Network AccessAllows the agent network access to run API calls or package installers.

Extra directories (outside the active workspace) the agent is allowed to write to.

Exclude TMPDIR Env VarExcludes the user's $TMPDIR environment variable from writable roots.
Exclude /tmpExcludes the system /tmp folder from writable roots.

Shell Environment Policy

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).

Ignore Default ExcludesDisables the default exclusion filter for KEY/SECRET/TOKEN variables.
Use Profile Script (Experimental)Forces shell commands to be executed through a user profile script.

Model Provider Configuration

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.

Requires OpenAI AuthWhether this provider uses OpenAI authentication (for data-residency endpoints).
Supports WebSocketsWhether the provider supports WebSocket connections.

Max network retries for standard API requests.

Max network retries for streaming endpoints.

Timeout for idle streams in milliseconds.

MCP Servers

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.

EnabledEnable or disable the MCP server.
RequiredFail Codex startup if this MCP server is unavailable.

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.

Feature Flags

Explicit opt-in/opt-out toggles for experimental features.

Multi-AgentEnable multi-agent tools (experimental).
Unified ExecUse PTY-backed exec tool.
UndoEnable undo support.
Shell ToolEnable the shell tool.
Personality FeatureEnable the personality system for supported models.
Fast ModeEnable fast mode for quicker responses.
SQLiteEnable SQLite-backed state storage.
Image GenerationEnable image generation capabilities.

Agents

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.

OpenTelemetry

Configure OpenTelemetry log and trace export.

Log User PromptInclude user prompts in OpenTelemetry logs.

Environment tag for OpenTelemetry exports.

OpenTelemetry log exporter target.

OpenTelemetry trace exporter target.

Windows

Windows-specific sandbox and compatibility settings.

Sandbox mode for Windows environments.

WSL Setup AcknowledgedSuppress the WSL setup prompt on Windows.