Codex usage limits explained, and what to do when you run out
Tyler J. CagleUpdated 13 min read
To make Codex's limits last, use Auto, the Mac app for all your coding agents: it picks the model for each Codex turn so the ChatGPT plan goes to the work that needs it, and Auto Pro keeps turns going from its included usage when the plan runs out. As of October 2026, OpenAI estimates that ChatGPT Plus and standard Business seats get 5 to 45 local Codex messages per five-hour window on GPT-6 Astra, 15 to 160 on GPT-6.1 Sol and 350 to 3,000 on GPT-6 Luna, and says weekly limits may also apply (OpenAI). ChatGPT Pro, at $100, $200 or $500 a month, currently has no five-hour limit and no published message counts. At the limit, Codex finishes the turn it is working on; then you can wait, buy ChatGPT credits, upgrade, or sign in with an API key and pay API rates.
This guide covers Codex on ChatGPT plans in detail. When do Claude Code, Codex and Cursor usage limits reset? puts Codex's limits beside the other coding agents'.
Why does my ChatGPT plan run out so fast when I code every day?
Your ChatGPT subscription and credits run out fast because Codex usage is metered in tokens, not in prompts, so a day of full-time coding spends a five-hour window in far fewer messages than a plan's headline range suggests. OpenAI says model choice, context, reasoning, tool use, retrieval and caching all affect usage, and that larger projects, long-running tasks and extended sessions use significantly more per message (OpenAI, November 2026). Local messages, cloud chats and ChatGPT Work draw on one allowance, and OpenAI says that starting in December 2026 the allowance on Plus, Pro and Business is shared across ChatGPT and Codex (OpenAI).
Credits drain the same way. They are charged per million tokens at a rate set by the model, and the gap between models is large. As of November 2026, GPT-6 Astra costs 250 credits per million input tokens and 1,250 per million output tokens, while GPT-6 Luna costs 2.5 and 12.5, one hundredth as much (OpenAI). OpenAI's pricing page lists no purchase price per credit, and says a typical GPT-5.6 Sol task may use 2 to 15 credits. The last column below is Auto's arithmetic for one large task that reads 200,000 uncached input tokens and writes 20,000 output tokens; cached input is billed at a lower rate, so real tasks often cost less.
| Model (November 2026) | Credits per 1M input tokens | Credits per 1M cached input tokens | Credits per 1M output tokens | Credits for the example task |
|---|---|---|---|---|
| GPT-6 Astra | 250 | 25 | 1,250 | 75 |
| GPT-6.2 Astra | 200 | 10 | 1,000 | 60 |
| GPT-6.1 Sol | 50 | 2.5 | 250 | 15 |
| GPT-6.2 Sol | 50 | 2.5 | 250 | 15 |
| GPT-6.1 Terra | 25 | 1.25 | 125 | 7.5 |
| GPT-6 Luna | 2.5 | 0.25 | 12.5 | 0.75 |
The credit rates are from OpenAI's Codex pricing page, Standard speed. Model choice is only one of the things that spend a window quickly:
| What drains the allowance | Effect (November 2026) | Source |
|---|---|---|
| A top model | Plus gets 5 to 45 GPT-6 Astra messages per five hours, against 350 to 3,000 on GPT-6 Luna. | OpenAI pricing |
| Fast mode | Uses included usage at 2.5 times the Standard rate on GPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna. | OpenAI pricing |
| Ultrafast, on Pro plans that include it | Uses included usage at 8 times the Standard rate on GPT-6 Astra and GPT-6.1 Sol. | OpenAI Pro tiers |
| Long tasks and large context | Larger projects, long-running tasks and extended sessions use significantly more per message. | OpenAI pricing |
| MCP servers | Each server adds context to your messages and uses more of your limit. | OpenAI pricing |
| Image generation | Uses included limits 3 to 5 times faster on average than similar requests without it. | OpenAI pricing |
If you code on the plan every day, the fix is to stop spending the top model on every request and to have a second account ready. Auto, the Mac app for all your coding agents, works in Codex (the app and the CLI), sends quick work to a cheaper model so the plan goes to hard work, and switches to another connected account when one hits its limit (how it works). Auto publishes this blog. For what each plan costs, see Codex pricing.
What are the Codex usage limits on each ChatGPT plan?
Codex limits depend on your ChatGPT plan and the model you pick, and OpenAI publishes them as estimated ranges of local messages per five-hour window. Its pricing page says usage also depends on the size of the task and whether it runs locally or in the cloud. Local messages, cloud chats and ChatGPT Work all draw on one allowance.
| Plan (November 2026) | Price | Codex limits | After the limit |
|---|---|---|---|
| Plus | $20 a month | Per five hours: GPT-6 Astra 5 to 45, GPT-6.2 Astra 6 to 50, GPT-6.1 Sol 15 to 160, GPT-6.2 Sol 17 to 180, GPT-6 Sol 15 to 150, GPT-6 Luna 350 to 3,000 local messages. Weekly limits may also apply. | Buy credits without changing plan |
| Pro 100, Pro 200, Pro 500 | $100, $200 or $500 a month | No five-hour limit. Per-model allowances by tier, with no published counts. Pro 100 and Pro 500 now include twice their previous Work and Codex allowance. | Buy credits without changing plan |
| Business | $20 per user a month billed annually (2+ users), $25 billed monthly | A standard seat gets the same ranges as Plus. | Use the workspace's shared credits, if the owner bought them |
| Enterprise and Edu | Contact sales | With flexible pricing, no fixed rate limits. Without it, Plus's per-seat limits for most features. | Owners enable overages or buy more credits |
OpenAI's Pro tiers article says Pro 200 includes more usage than Pro 100 and Pro 500 the most, and that Pro 100 and Pro 500 now include twice their previous Work and Codex allowance. OpenAI cancelled the Pro 200 reduction announced in its September 29 email, so Pro 200 is open to new subscribers again at $200 a month, and existing Pro 200 subscribers with the lower allowance have it doubled to match. OpenAI notes that a larger allowance does not guarantee twice as many completed tasks (checked November 23, 2026). ChatGPT Free and Go ($8 a month) plans also include Codex, with no published ranges.
How do Codex usage limits reset?
Codex usage counts against a five-hour window, and weekly limits may also apply. Your reset times are in the usage dashboard or, in an active Codex CLI session, /status (OpenAI). OpenAI doesn't say whether the five-hour window starts with your first message or runs on a fixed clock, so take the reset time from the dashboard. On ChatGPT Pro, a model can still become unavailable until its own allowance resets; OpenAI says to use another available model meanwhile (OpenAI).
What happens when you hit the Codex usage limit?
Codex finishes the turn it is working on, subject to fair-use limits, and the limit banner then shows your plan's options: add credits, apply an available reset, upgrade, or wait (OpenAI). By plan:
- On ChatGPT Plus and Pro, you can buy credits and keep working without upgrading. Included usage is spent first, then credits (OpenAI).
- On Business, the feature is blocked when your included usage runs out and the workspace has no credits, until an owner adds more (OpenAI).
- On Enterprise and Edu, advanced features pause when the shared credit pool is empty unless owners enable overages or buy more. On agreements billed in US dollars, ask your admin about the workspace budget.
What are your options when Codex runs out?
Use Auto Pro to keep Codex going until the ChatGPT plan resets, or wait, buy more usage from OpenAI, move to a bigger plan, or move the session to API billing. Auto publishes this blog, and its option is the first row.
| Option | Cost (October 2026) | Good to know |
|---|---|---|
| Auto Pro | See pricing | Keeps turns going from included usage until the ChatGPT plan resets. |
| Wait for the reset | Nothing | The reset time is in the usage dashboard and /status. |
| Buy ChatGPT credits | Set by plan or agreement; OpenAI's pricing page lists no purchase price | GPT-6.1 Sol uses 50 credits per million input tokens and 250 per million output. Credits last 12 months. |
| Use a banked reset | Comes with some Plus and Pro referral offers | Refreshes the five-hour and weekly windows (OpenAI). |
| Upgrade to ChatGPT Pro | From $100 a month | No five-hour limit; per-model allowances still apply. |
| Sign in with an API key | API rates, such as GPT-6.1 Sol at $2 per million input and $10 per million output tokens (OpenAI) | Local sessions only; no cloud features such as GitHub code review or Slack. |
With an API key, Codex bills standard API pricing to your OpenAI Platform account in place of your plan's included usage (OpenAI). To switch the Codex CLI to a key and back:
# Sign in with an API key (billed at API rates)
printenv OPENAI_API_KEY | codex login --with-api-key
# Check which sign-in is active
codex login status
# Return to your ChatGPT plan through the browser sign-in
codex logout
codex login
How do you make Codex usage limits last longer?
The model matters most: on OpenAI's own estimates, a Plus window holds about 20 times as many GPT-6 Luna messages as GPT-6.1 Sol messages, and Luna's credit rates are exactly a twentieth of GPT-6.1 Sol's for input and output (OpenAI). OpenAI recommends GPT-6.1 Sol for complex coding and Luna for focused, repeatable tasks. Which model to use for which coding task maps each kind of coding work to a model tier. Switch with /model in the CLI or the model control under the composer. How to cut Claude Code and Codex costs covers the other levers, in Codex and Claude Code.
Here is the arithmetic for one Plus window, assuming equal-size messages. Move a quarter of your messages, such as commit messages and renames, from GPT-6.1 Sol to Luna, and the window stretches about 1.3 times (0.75 + 0.25 ÷ 20 = 0.76 of the usage). Move half and it stretches about 1.9 times (0.5 + 0.5 ÷ 20 = 0.53). OpenAI warns that similar-looking tasks can use different amounts, so treat these as estimates. Which tasks hold up on cheaper models covers where the line falls.
Fast mode uses included limits at 2.5 times the Standard rate, so GPT-6.1 Sol's 15 to 160 messages become about 6 to 64; /fast toggles it (OpenAI). OpenAI's other tips:
- Keep prompts precise and give Codex only the relevant files.
- Keep AGENTS.md small, and nest AGENTS.md files in large repositories to control how much context each task loads.
- Disable MCP servers you aren't using, since each one adds context to every message.
- Start with the default reasoning effort and raise it only when a task needs deeper planning (OpenAI).
Can a router make the ChatGPT plan last longer in Codex?
Yes. Auto, the Mac app for all your coding agents, works out how hard each Codex turn is and sends it to a model that fits, so hard work gets the best model and quick work doesn't burn the plan. In Codex, OpenAI models run on your ChatGPT plan. Hard work goes to the most capable model your plans cover; everything else goes to the model that costs you least, which is often your plan or a low-cost open model. In the landing page's illustrations, a test that only fails on CI goes to GPT-6 Astra on the ChatGPT plan, and a commit message goes to a low-cost open model so the plan isn't touched. The full order is in how AutoRouter picks a model.
When the ChatGPT plan hits its limit, Auto Pro keeps those turns going from the included usage until the plan resets, and asks you to top up if that runs out too. Paid models bill at the provider's price plus 10%, included usage resets monthly without rolling over, and Auto credits you buy never expire. Every turn shows its model, what it cost and why. AutoRouter routes only while it is the model selected, and it sometimes misjudges how hard a task is; you can rate the pick when it does. It runs on macOS 14 or later with the Codex app and CLI, and is in beta.
Auto also works across accounts. You connect plans in Auto (Claude, ChatGPT, Grok or Gemini), and when one account reaches its limit, Auto moves on to the account with the most room left before it spends any credit. Free connects two subscriptions and Pro connects any number. If you have only one plan connected, there is no second account to move to, and Pro's included usage covers the gap. The Codex setup page shows how to turn it on for the Codex app and CLI.
For a closer look at tracking plan limits in the menu bar, see CodexBar vs Auto.
Questions
Does starting a new Codex chat reset the limit?
No. OpenAI says a new chat does not reset your usage limits, and Support can't reset ChatGPT or Codex limits either (OpenAI).
Do ChatGPT credits expire?
Yes. Personal-plan credits are valid for 12 months from purchase (OpenAI). Business credits also last 12 months, and Enterprise and Edu terms are set in the Order Form (OpenAI). They are separate from OpenAI API credits.
Does ChatGPT Work count against Codex limits?
Yes. OpenAI says ChatGPT Work and Codex share pricing, credits and usage limits, and on Plus and Pro, ChatGPT for Excel draws on that allowance too (OpenAI). ChatGPT's file upload, image and voice limits are separate and don't apply to Codex (OpenAI).
Does Claude Code have the same kind of limits?
Claude Code has a similar structure with its own limits, set by Anthropic: a rolling five-hour session window on every Claude plan, plus weekly limits on paid plans (Anthropic). How Claude Code usage limits work covers them. For the two agents side by side, see Codex vs Claude Code: which should you use, or both?
Why do my ChatGPT credits run out so fast when I'm coding every day?
Credits are charged per token at a rate set by the model, and a coding session sends a lot of tokens. As of November 2026, GPT-6.1 Sol costs 50 credits per million input tokens and 250 per million output, and GPT-6 Astra costs 250 and 1,250 (OpenAI). One large task of 200,000 input and 20,000 output tokens, with no caching, is about 15 credits on GPT-6.1 Sol and 75 on GPT-6 Astra. Moving routine work to GPT-6 Luna, at 2.5 and 12.5 credits, cuts the same task to under 1 credit.
Does Auto switch accounts when Codex hits its limit?
Yes, if you have connected more than one account. Auto, the Mac app for all your coding agents, works in the Codex app and CLI, and when one connected account reaches its limit it moves on to the account with the most room left before it spends any credit. It runs on macOS 14 or later and is in beta (Codex setup).
Sources
- OpenAI: Codex pricing, Codex models, Codex speed modes, Codex authentication and API pricing, checked October 22, 2026
- OpenAI Help Center, updated October 2026: About ChatGPT Pro tiers, Using Codex with your ChatGPT plan, Using credits for flexible usage (personal plans) and Flexible pricing for Enterprise, Edu and Business
- Anthropic: Claude pricing, checked October 22, 2026
- OpenAI, checked November 23, 2026: Codex pricing (GPT-6.2 ranges, credit rates and what drives usage), About ChatGPT Pro tiers and Understanding ChatGPT and Codex usage limits
- Auto: Auto for Codex, updated November 20, 2026