Codex Provider
Access OpenAI Codex models through browser-based OAuth authentication. CCS defaults to the current Codex-recommended models and repairs known paid-only or preview-only defaults when the active account cannot use them.Overview
The Codex provider enables Claude Code to use OpenAI’s Codex models through OAuth authentication - no API keys required. Simply authenticate once and CCS handles token management automatically. Provider Identifier:codex
Command: ccs codex
Supported Models:
- GPT-5.6 Sol - latest frontier agentic coding model
- GPT-5.6 Terra - balanced agentic coding model for everyday work
- GPT-5.6 Luna - fast, affordable agentic coding model
- GPT-5.4 - recommended default for most Codex tasks
- GPT-5.4 Mini - fast, lower-cost option for lighter tasks and subagents
- GPT-5.2 and GPT-5.3 Codex as older alternatives
- GPT-5.3 Codex Spark in research preview for ChatGPT Pro subscribers
- Interactive model picker via
--config
Plan-Aware Defaults
Available since v7.54.0
- If the active account is on the free Codex plan, CCS keeps your saved settings but sends runtime requests through
gpt-5.4orgpt-5.4-miniwhen the configured model is restricted - If CCS cannot verify the plan, it keeps your current model and prints a targeted warning with the safe fallback
- The runtime fallback only touches known restricted Codex defaults (
gpt-5.5,gpt-5.3-codex, andgpt-5.3-codex-spark); it does not rewrite unrelated provider settings
Authentication
First-Time Setup
- Authorization Code flow via browser callback
- Callback server spawns on provider-specific port
- Token cached locally with auto-refresh
- Proactive token refresh prevents mid-request failures
Manual Authentication
Logout
Multi-Account Support
Manage multiple OpenAI accounts for different projects:Add Account
List Accounts
Switch Account
Reauthenticate Account
Use Dashboard → CLIProxy → Codex → account menu → Reauthenticate to refresh one imported or existing account without creating a duplicate account record.Rename Account
~/.ccs/cliproxy/accounts.json
Auto-Nicknames: Generated from email prefix (e.g., john@gmail.com → john)
Real-Time Quota Display
CCS displays real-time quota information for Codex accounts via Dashboard and CLI.Weekly Reset Schedule
Since v7.44.0, the dashboard exposes the weekly reset schedule for Codex
accounts, showing exactly when your weekly quota resets.
Dashboard Display
Location: Dashboard → CLIProxy → Codex provider view Displays:- Core 5-hour usage window (e.g., “45/50 messages”)
- Core weekly usage window (e.g., “210/500 messages”)
- 5-hour limit reset time
- Weekly limit reset time (with schedule)
- Additional feature windows such as Codex Spark in tooltip/detail views when the upstream exposes them
- Quota data cached for 2 minutes to reduce API load
- Automatic re-authentication if token expired
- Dashboard shows cached timestamp
CLI Quota Check
- Displays all authenticated Codex accounts
- Shows cached timestamp (2-minute cache)
- Indicates if re-authentication needed
- Keeps preview or feature-specific windows separate from the core 5-hour and weekly summary so extra limits do not replace the main account view
Cache Location: In-memory (not persisted to disk)
Model Information
Available Models:Catalog Context Windows
In the current development CLI source, programmatic catalog output includescontextWindow when CCS knows an authoritative token limit:
CLAUDE_CODE_AUTO_COMPACT_WINDOW automatically. An exact
uppercase environment key already present wins by presence, including an empty
value. Unknown or custom models remain unchanged because CCS does not guess a
window.
This automatic environment injection is specific to Claude-target launch
construction; it does not describe behavior for non-Claude targets.
Model Suffixes: Append effort level directly: gpt-5.5-minimal, gpt-5.5-low, gpt-5.3-codex-medium, gpt-5.3-codex-high, gpt-5.3-codex-xhigh.
GPT-5.6 Sol, Terra, and Luna support low, medium, high, and xhigh suffixes. CCS does not advertise minimal, max, or ultra for those models.
Fast Service Tier: Append -fast to supported GPT model IDs. Combine it
with an effort suffix when both should be pinned:
gpt-5.4-high-fast becomes upstream model gpt-5.4 with
reasoning.effort: "high" and service_tier: "priority", which is the Codex
request value for fast mode.
The same pattern also works for a structured Codex fast alias in CCS config.
For example, a cliproxy.oauth_model_alias.codex entry like
gpt-5.6-sol-fast can map to upstream gpt-5.6-sol, while a matching
cliproxy.payload.override rule keeps service_tier: priority attached to that
alias through regeneration.
Configure Fast Mode
Use a CLIProxy variant when you want Claude Code or compatible clients to use a specific Codex GPT speed/effort combination:ccs config, go to CLIProxy, and create or edit a
Codex variant. Select a supported Codex model, then use the Fast switch
beside Effort. The switch adds or removes -fast without changing the
selected effort or a routing prefix. It also remains available for a custom
value that already ends in -fast. The raw environment form is also valid:
Reasoning Effort
CCS automatically injects OpenAI’sreasoning.effort parameter. The configured slot requests a default effort, then CCS caps it to the selected model’s supported maximum.
Dashboard Effort And Fast Controls
Inccs config, each Codex tier in the CLIProxy model mapping includes an
Effort dropdown. Auto removes any explicit effort suffix; the other
choices match the selected model’s supported effort levels. Changing effort
preserves an existing -fast service-tier suffix, such as changing
gpt-5.4-high-fast to gpt-5.4-low-fast. For supported models, the separate
Fast switch controls that suffix without changing the effort selection.
Effort Levels
Automatic Effort Mapping
How It Works
When you use Codex, CCS derives the effort from your configuration and then applies model-specific caps:Cost Implications
Higher reasoning effort increases token consumption:xhigh: Maximum tokens, deepest analysishigh: Moderate token increasemedium: Standard token usagelow/minimal: Lower usage for lightweight tasks
Reasoning effort is injected transparently. You don’t need to configure
anything unless you want to override it. Unsupported higher efforts are capped
to the model’s max level automatically.
Trace Logging
Enable verbose mode to see reasoning effort in request logs:Runtime Targets
Available since v7.62.0
Native Codex Runtime
Useccs-codex, ccsx, or ccsxp to run the Codex provider on the native Codex CLI:
-c overrides and CCS_CODEX_API_KEY env injection. ccsxp is the managed exception: it repairs the native Codex [model_providers.cliproxy] entry if missing or incomplete, then injects the managed token into that provider’s configured env_key for the spawned Codex process. No API key is written to ~/.codex/config.toml.
ccsxp keeps Codex history in native ~/.codex by default, even if the parent shell has another CODEX_HOME set. Use CCSXP_CODEX_HOME only when you intentionally want separate ccsxp history.
Pooling and round-robin behavior are controlled by CLIProxy routing, not by the Codex config file:
See Codex Adapter for full details on
supported profile types, alias configuration, and the dashboard control
center.
Droid Runtime
Use Codex with theccs-droid target for automated agent workflows:
Commands
Basic Usage
Authentication Flags
Account Management Flags
Storage Locations
Requirements
- OpenAI account with Codex OAuth access
- Browser for OAuth (or
--headlessfor servers) - Network access to OpenAI authentication servers
Token Management
Storage Format:Troubleshooting
Browser Won’t Open
Multi-Account Issues
Token Expiry
Tokens refresh automatically. If refresh fails:Cost Information
Plan Access: Usegpt-5.4 for the default Codex path and gpt-5.4-mini for the fast path. gpt-5.5 and older models such as gpt-5.3-codex require paid Codex access, while gpt-5.3-codex-spark is a research preview model for ChatGPT Pro subscribers.
Usage Limits: Subject to OpenAI’s rate limits and fair use policy
Next Steps
Multi-Account Setup
Manage multiple Codex accounts
Dashboard Config
Configure via web interface
