Versus · AI tools

Codex vs Claude Code limits

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • OpenAI Codex if you want to see numbers and stretch them by switching to a lighter model; ChatGPT Pro from $100 a month currently has no five-hour limit.
  • Claude Code if you prefer Anthropic's models and can live with an unpublished meter, then step up to Max when the wall becomes a habit.

Compared here

  • 01Claude Code
  • 02OpenAI Codex

Short answer

Both meter you in five-hour windows plus weekly caps on the $20 plans, but they count differently. Codex publishes ranges per model: on Plus, 15 to 160 local messages per five hours with GPT-6.1 Sol, up to 350 to 3,000 with the light GPT-6 Luna. Claude Code publishes no message counts at all; Pro is the baseline, Max ($100) is 5x Pro per five hours and per week, and verified Ultra ($200) accounts have no five-hour limit. Claude Code also shares one allowance with your Claude chats.

Pick Codex if you want to see numbers and stretch them by switching to a lighter model; ChatGPT Pro from $100 a month currently has no five-hour limit. Pick Claude Code if you prefer Anthropic's models and can live with an unpublished meter, then step up to Max when the wall becomes a habit. Both let you keep going after a limit by buying credits or using an API key at API prices.

Try Claude ProTry ChatGPT Plus

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

Quoted from learn.chatgpt.com/docs/pricing, claude.com/pricing and Anthropic's Claude Code and Max support articles, read 4 December 2026. US dollars as shown; Anthropic's pricing page shows $ without a currency code.
Claude CodeOpenAI Codex
Entry planClaude Pro $20 a month ($17 billed yearly)ChatGPT Plus $20 a month
Published counts on the entry planNone; Pro is the 1x baselinePer model, e.g. 15 to 160 local messages per 5 hours (GPT-6.1 Sol)
Five-hour windowYes on Pro and MaxYes on Plus and Business
Weekly capYes on all plansMay also apply
Shared with chat?Yes, Claude Code and claude.ai share one limitLocal messages and cloud tasks share one allowance
Bigger planMax $100: 5x Pro; Ultra $200: no five-hour limit for verified accountsPro from $100: no five-hour limit currently
Stretch it byLighter models, shorter sessionsLighter models: GPT-6 Luna allows the most messages
After the limitUsage credits, or API credits via ConsoleBuy credits (Plus, Pro), or use an API key
Check usage/status in Claude Code; Settings, Usage in the appNot described on the pricing page

Money first. Both buttons are /go/ links, to Claude and to ChatGPT, and we may earn from either. We could not verify a working affiliate program for either company, and the verdict sends heavy users to whichever $100 plan fits their model preference, not to one company. We did not run the same project on both tools with a counter. We read OpenAI's Codex pricing page, Anthropic's pricing page and its Claude Code and Max support articles on 4 December 2026.

Bar version. You are halfway through a refactor, the agent is on a roll, and then: usage limit reached. Everyone who codes with these tools has had that moment. The question is not which tool has "no limits", because neither does at $20. It is which meter you can read, and which one you can stretch.

How Codex counts

OpenAI publishes ranges. On Plus and standard Business seats, local messages per five-hour period, by model:

ModelLocal messages per 5 hours
GPT-6.2 Astra6 to 50
GPT-6.2 Sol17 to 180
GPT-6 Astra5 to 45
GPT-6.1 Sol15 to 160
GPT-6.1 Terra35 to 285
GPT-6 Sol15 to 150
GPT-6 Luna350 to 3,000

The ranges are wide because a "message" that touches one file costs less than one that reads your whole repo. Other rules from the page:

  • Weekly limits may also apply.
  • Local messages and cloud tasks share one allowance, and cloud tasks may use more.
  • Speed costs extra. Fast mode uses about 2x to 2.5x the included usage of Standard. Ultrafast uses about 6x to 8x and is limited to eligible Pro, Enterprise and Edu plans.
  • Code review limits apply only to reviews run through GitHub; local reviews count toward general usage.
  • Free and Go have Codex with no numbers published; Free includes GPT-6 Luna in the desktop app, subject to rollout.

Prices on the same page: Free $0, Go $8, Plus $20, Pro from $100 (tiers at $100, $200 and $500), Business $20 per user a month billed yearly or $25 monthly.

How Claude Code counts

Anthropic does not publish message counts. What its pages do say:

  • Pro and Max have a five-hour session limit and a weekly limit.
  • Max gives "five times the Pro plan's usage every five hours and every week," at $100 a month, billed monthly only.
  • Ultra ($200) has a weekly limit, and "verified Ultra accounts don't have a five-hour session limit."
  • Fable has its own separate weekly limit on Max and Ultra.
  • Shared meter: Claude Code and claude.ai chat share limits; "all activity in both tools counts against the same limits."
  • Weekly reset happens at a fixed day and time per account, shown in Settings, Usage.
  • Anthropic may apply other caps at its discretion and does not guarantee uninterrupted service.

Pro itself is $20 a month, or $17 a month billed yearly ($200 up front), per claude.com/pricing.

The honest comparison

What Codex does better: you can see the meter. If you know GPT-6.1 Sol gives you somewhere between 15 and 160 messages, you can plan. And you can stretch it: dropping to GPT-6 Luna for simple edits raises the ceiling enormously. That is a real lever.

What Claude Code does better: the bigger plans are simple. Max is 5x, full stop, and verified Ultra removes the five-hour window. If you live in Claude's models, the upgrade path is clear.

What trips people up on Claude: the shared meter. A heavy afternoon of chatting with Claude about a design doc eats the same allowance your evening coding session needs. OpenAI's page describes the Codex allowance as shared between local messages and cloud tasks; it does not say whether ordinary ChatGPT chats draw from it.

What trips people up on Codex: the hidden cost of speed. Fast mode burns 2x to 2.5x, Ultrafast 6x to 8x. Turn it on by accident and your five hours feel like one.

When you hit the wall

Claude Code, per Anthropic:

  • Mid-response, it may finish the current step with "Usage limit reached ยท wrapping up," and that counts toward your weekly limit.
  • Turn on usage credits on Pro, Max or Ultra to keep working.
  • Or use a Claude Console account with API credits at standard API rates. Note: the monthly API credits included with Max or Ultra cannot be used in Claude Code or the Claude apps.
  • Check what you have left with /status.

Codex, per OpenAI:

  • The agent can finish the current turn, "subject to fair use limits."
  • Plus and Pro users can buy extra credits. As an example, OpenAI says a typical task with GPT-6.2 Sol may use 2 to 15 credits.
  • Flexible-pricing Business, Edu and Enterprise workspaces buy workspace credits.
  • Anyone can run extra local chats with an API key at standard API rates.

How to make either last longer

  1. Use the lighter model for light work. On Codex this is documented and dramatic. On Claude, a lighter model for quick questions saves your heavy model for hard tasks.
  2. Start fresh sessions. Long sessions drag your whole history along. A clean start for a new task costs less.
  3. Keep chat and code apart on Claude. If you burn through Pro, move brainstorming to another tool so Claude Code keeps its share.
  4. Turn off fast modes on Codex unless you need them.
  5. Upgrade when it is a habit. Both companies basically say the same: if you hit limits most days, the $100 tier pays for itself in lost time. Our Claude Pro vs Max page does that maths for Claude.

Who should pick which

Pick Codex if: you want a readable meter, you are happy switching models to stretch it, or you already pay for ChatGPT Plus.

Pick Claude Code if: you prefer Claude's models for code, you do not chat much in claude.ai, or you are ready for Max or Ultra and want a simple multiplier.

Comparing more than limits? Codex vs Claude Code vs Gemini CLI covers features and prices, and ChatGPT vs Claude usage limits covers the chat side. More on the AI tools hub.

How we checked

Read on 4 December 2026: OpenAI's Codex pricing and limits page, Claude pricing, and Anthropic's articles on Claude Code with Pro or Max and the Max plan. We did not count messages or run identical tasks on both. Both companies change limits often, sometimes weekly; if their pages disagree with ours, theirs win. Method on how we pick.

Questions people ask

Does Codex or Claude Code have higher limits?

On the $20 plans it depends on the model you use, and only Codex publishes numbers. Codex on Plus allows 15 to 160 local messages per five hours with GPT-6.1 Sol and 350 to 3,000 with GPT-6 Luna. Anthropic gives no message count for Claude Pro. Heavy users on either side end up on a $100 plan.

Do Claude Code and Claude chat share the same limit?

Yes. Anthropic's support article says Claude Code and claude.ai chat share limits, and all activity in both tools counts against the same limits. A long research chat in the afternoon leaves less room for coding in the evening. Codex shares one allowance between local messages and cloud tasks, and cloud tasks may use more.

What happens when I hit the Claude Code limit?

If you hit the five-hour limit mid-response, Claude Code may finish the current step and shows 'Usage limit reached, wrapping up'; that allowance counts toward your weekly limit. Then you wait for the reset, turn on usage credits, or switch to a Claude Console account with API credits at standard API rates.

What happens when I hit the Codex limit?

OpenAI's page says the agent can finish the turn it is on, subject to fair use limits. Plus and Pro users can then buy extra credits, flexible-pricing Business, Edu and Enterprise workspaces can buy workspace credits, and anyone can run extra local chats with an API key at standard API rates.

Is Claude Max or ChatGPT Pro better for heavy coding?

Both cost $100 a month at the entry level. Claude Max gives 5x Pro's usage per five hours and per week, with a separate weekly limit for Fable. ChatGPT Pro, which comes in $100, $200 and $500 tiers, currently has no five-hour limit for Codex, though weekly limits are not stated on the pricing page.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. OpenAI: Codex pricing and limits, checked 4 Dec 2026
  2. Claude pricing, checked 4 Dec 2026
  3. Anthropic support: Using Claude Code with your Pro or Max plan, checked 4 Dec 2026
  4. Anthropic support: What is the Max plan?, checked 4 Dec 2026