Codex setup guide
Add a provider block to ~/.codex/config.toml so CLI, IDE and desktop share one setup.
Plus and Business Standard enforce both a 5-hour rolling window and a weekly cap, while Pro drops the 5-hour wall. Here is how the two clocks work, where to check exact countdowns, and how to switch providers when capped.
Hitting a Codex usage wall mid-refactor leaves you asking two things: when the limit clears, and what burned through it so fast. OpenAI does not reset Codex on a flat daily schedule. Instead, subscription plans run on up to two independent clocks, and Codex shares that token pool with ChatGPT itself.
Core reset rules: ChatGPT Plus and Business Standard enforce two separate clocks — a 5-hour rolling window and a weekly cap — and you need headroom in both to send requests. Pro tiers ($100 / $200 / $500) and Business Premium remove the 5-hour window and track only the weekly allowance. To check live remaining quota and exact reset countdowns, run /status in Codex CLI or open chatgpt.com/codex/settings/usage.
Codex meters usage in tokens (input, cached input and output), not raw message counts. When signed in with a ChatGPT account, token usage across Codex CLI, IDE extensions, the desktop app, Codex Cloud and heavy ChatGPT reasoning tasks draws from one unified pool. Standard instant chat queries generally do not eat into it.
The two windows run independently:
When you hit either cap, the agent turn already in flight usually finishes before subsequent turns are blocked.
How your limits behave depends on whether you authenticate with a ChatGPT plan, an OpenAI API key or a third-party provider. Checked November 2026:
| Plan / billing track | 5-hour window | Weekly cap | Options when capped |
|---|---|---|---|
| ChatGPT Plus ($20/mo) | Yes, 5 hours rolling from first request | Yes, 7-day cycle shared with ChatGPT | Wait for reset, buy instant reset, use credits, or switch to an API key |
| ChatGPT Pro ($100 / $200 / $500/mo) | None — supports sustained burst sessions | Yes, larger weekly pool; top tiers add Ultrafast mode | Wait for weekly reset, buy instant reset, use credits, or switch to an API key |
| Business / Enterprise | Business Standard has a 5-hour window; Premium and credit-based Enterprise follow workspace rules | Standard has a weekly cap; Enterprise typically deducts from a shared credit pool | Workspace shared credits kick in automatically under admin spend guardrails |
| OpenAI API key | No 5-hour subscription window | No weekly subscription cap; subject to API RPM / TPM rate limits (429) | Pay-as-you-go per token with no subscription wall; excludes Codex Cloud and GitHub auto-reviews |
| CodingPass (Go $10 / Plus $30) | Go $10 across all models, metered at official API prices | Go $30, monthly allowance $60 across 25 models | HTTP 429 with exact reset time; buy a reset card or upgrade, no surprise charges |
For full dollar caps per CodingPass tier and how HTTP 429 reset headers work, see usage limits.
Two developers on the same Plus plan can see wildly different mileage. Four factors drive burn rate:
@codex review) deduct from your shared pool.Codex runs across four surfaces, and one of them has a common UI gotcha.
| Surface | How to check | What it shows | Watch out for |
|---|---|---|---|
| Codex CLI | Run /status or /usage inside a session | Active model, 5-hour and weekly percentages, reset timestamps, cumulative token stats | Fastest check without leaving the terminal; reflects your active provider |
| Web dashboard | Open chatgpt.com/codex/settings/usage | Exact 5-hour and weekly countdowns, shared pool status, credit balance, instant reset | Source of truth across devices; cloud analytics live at chatgpt.com/codex/cloud/settings/analytics |
| Desktop app | Open Settings → Usage | Same window meters, reset timers, credit balance and instant reset controls | Main place for Plus and Pro users to trigger a paid instant reset |
| IDE extension (VS Code, etc.) | Check web dashboard, run /status in terminal, or use a companion status-bar extension | The built-in percentage near the prompt box tracks context window fill, not your rate limit | Do not mistake context compaction percentage for your 5-hour cap |
In the terminal, two built-in slash commands cover both real-time caps and cumulative spend:
# Inside an active Codex CLI session/status # Cumulative daily or weekly token activity/usageWorkspace users can also invoke @personal-analytics in chat to break down recent turns, reasoning effort and token consumption over the past week.
You do not always need to sit idle for five hours or jump straight to a $100+ Pro plan. Match the fix to the situation:
| Limit scenario | Practical move | Cost or trade-off |
|---|---|---|
| Hit the 5-hour cap on Plus, weekly pool still has room | Switch routine edits to GPT-6.2 Sol or wait for the rolling window to clear | $0 extra; heavy refactors wait for the next window |
| Hit the weekly cap right before a release deadline | Buy a one-off instant reset in desktop Usage settings or draw from pre-purchased credits | Extra charge, and your next automatic weekly reset shifts 7 days forward |
| Full-day agent sessions where 5-hour cutoffs break flow | Upgrade to ChatGPT Pro, or point local Codex at CodingPass with predictable dollar caps | Pro starts at $100/mo; CodingPass Go is $10 / Plus $30, metered at API rates with no surprise charges |
Headless scripts or CI using codex exec | Authenticate with an OpenAI API key or custom provider outside your personal pool | Per-token API billing with spend caps you set; no Codex Cloud features |
Codex CLI, the IDE extension and the ChatGPT desktop app all read ~/.codex/config.toml. When your ChatGPT allowance hits a wall, you can redirect local runs without reinstalling anything by setting model_provider.
To route Codex through CodingPass (full walkthrough in the Codex setup guide), add this block to ~/.codex/config.toml:
model = "gpt-6.2-sol"model_provider = "codingpass" [model_providers.codingpass]name = "codingpass"base_url = "https://codingpass.ai/v1"env_key = "CODINGPASS_API_KEY"wire_api = "responses"Export your key and launch codex:
export CODINGPASS_API_KEY="cp-live-..."codexOn Go ($10), set model = "gpt-6.1-terra"; Plus ($30) and Pro can use gpt-6.2-sol directly. Once your ChatGPT window resets, comment out model_provider to return to your subscription login. If you prefer direct OpenAI billing, sign in with an API key or set OPENAI_API_KEY instead.
No. The 5-hour rolling window and the weekly cap run on independent clocks. If your weekly cap refreshes while you are locked out by the 5-hour window, you still need to wait for the 5-hour timer to expire.
On Plus, Pro and Business plans, Codex shares one unified allowance with ChatGPT. Heavy reasoning or deep-research sessions in ChatGPT draw from the same token pool.
No. ~/.codex/config.toml applies only to local Codex CLI, IDE extensions and the desktop app. Codex Cloud tasks and automated GitHub PR reviews require a ChatGPT subscription login.
CodingPass Go is