Back to UsageCut

Claude Code vs Codex: whose usage limit runs out first?

8 min read

On this page

Claude Code and Codex both meter usage on the same base unit - a 5-hour rolling window - according to each vendor's own current docs. What sits on top of that window is where they genuinely diverge: Claude Code layers a weekly cap with Opus tracked on its own separate clock, while Codex layers a weekly cap that scales by plan tier, or drops it entirely on flexible-credit Enterprise pricing. Neither structure decides which one you hit first on a given day, though - that comes down to how much of your session is real work versus re-sent context your own setup is generating.

TL;DR: Claude Code: 5-hour rolling session limit, plus a weekly cap with Opus metered on its own separate clock from every other model, all shared across claude.ai, Claude Code, and Claude Desktop (support.claude.com). Codex: the same 5-hour rolling window per OpenAI's current pricing docs, but denominated in per-model message counts with a weekly layer on top for Plus/Business, scaled up on Pro's 5x/20x tiers, and dropped entirely on flexible-credit Enterprise/Edu plans. On this project's own 1,037 measured Claude Code sessions, cache-read and cache-write - context getting re-sent or re-written, not anything either vendor's plan tier controls - are 82% of the real bill. That's the lever that actually decides which ceiling you hit first.

How Claude Code and Codex actually meter usage

| | Claude Code | Codex | | --- | --- | --- | | Base window | 5-hour rolling session | 5-hour rolling window (same base unit) | | What's counted | An abstracted usage budget, not a raw message count | Messages per model, priced from token/reasoning cost | | Extra ceiling | Weekly cap; Opus tracked on its own clock, separate from every other model | Weekly cap on Plus/Business, scaled 5x/20x on Pro tiers | | Shared across | claude.ai, Claude Code, Claude Desktop - one pool | Local Codex CLI and cloud/web Codex - one pool per plan | | No fixed ceiling | API-key billing: pay-as-you-go, no hard stop | Enterprise/Edu on flexible pricing: credit-based, no fixed rate limit |

Both rows come from each vendor's own current documentation, not a benchmark or a forum estimate: Anthropic's help center for Claude Code's session and weekly mechanics, and OpenAI's Codex pricing docs for the message-tier and credit structure. Page one for this query is mostly a Reddit thread and a handful of comparison blogs working from screenshots and personal experience - neither vendor's actual metering unit shows up spelled out the way it is here.

The one mechanic both tools quietly share

Same base window, two different things stacked on it
5-hour rolling windowThe base unit both vendors' own current docs describe

Claude Code

+ a weekly cap on top

Opus is metered on its own separate weekly clock; every other model shares a second weekly clock. Both draw from one pool shared with claude.ai and Claude Desktop.

Codex

+ a weekly cap, scaled by tier

Plus and Business get a fixed weekly layer on top of the 5-hour window; Pro's 5x/20x tiers scale the same layer up. Enterprise/Edu on flexible pricing skips it entirely - credits, no fixed cap.

That shared 5-hour window is easy to miss because the two products talk about what happens inside it so differently. Claude Code's help center describes a single abstracted "usage" budget - the exact token-to-usage conversion isn't published, so you can watch your remaining budget drop in Settings without knowing precisely what drove it. Codex's pricing docs are more literal: usage is priced per model, in messages, with ranges that vary by model and reasoning effort - one model's docs cite a range as tight as 10 to 100 messages, another as wide as 250 to 2,000, inside that same 5-hour window.

Neither company frames it this way in their own marketing, which is probably why comparison posts built from screenshots and support tickets rarely connect the two: from the outside, "usage limit reached" and "you've used your Codex messages for this period" read like unrelated systems. Structurally, per both vendors' current docs, they're the same base clock with different accounting layered on top.

Which one runs out first, in practice

Which ceiling bites first, by usage shape

One long, unbroken session on Opus

Claude Code's weekly Opus clock, first

Opus draws its own separate weekly budget - a light week on every other model doesn't refill it.

Frequent short restarts (CI, scripted runs)

Codex's weekly layer, first

Each fresh 5-hour window still counts against the same weekly cap on Plus/Business tiers - restarting doesn't reset that.

Heavy reasoning-effort tasks

Whichever ties reasoning cost to the tighter tier

Codex's own docs list per-model message ranges as wide as 10-100 to 250-2,000 - high reasoning effort burns the low end fast.

Enterprise or team seat, flexible pricing

Neither has a fixed ceiling

Codex Enterprise/Edu on flexible credits and Claude's API-key billing both drop the hard stop - the ceiling becomes budget, not a clock.

The pattern that matters most here is the third one: Codex's own docs cite per-model message ranges that can differ by more than 20x depending on which model and how much reasoning effort a task uses. A task that would burn through the tight end of that range in an hour looks nothing like the same task run against the generous end - "Codex's limit" isn't one number, it's a range that depends on what you asked it to do, in a way Claude Code's single abstracted usage budget doesn't expose as directly.

The setup habits that burn the ceiling before you've done real work

Why the ceiling arrives early, on this project's own sessions

1,037 measured Claude Code sessions - the mechanic is vendor-agnostic

What a real bill is made of

Cache-read (re-sent context)44.0%
measured
Cache-write (new context entering)37.8%
measured
Output15.9%
measured
Fresh input actually typed2.3%
measured

What actually shrinks it

Executor offload (exploration reads to a cheap subagent)22.0%
estimated
Header slim (trigger-gated CLAUDE.md content)10.8%
estimated
Dead MCP servers0.5%
measured

This is the part neither vendor's pricing page or plan tier touches, and it's vendor-agnostic: whether a re-sent chunk of context counts against Claude Code's usage budget or Codex's per-model message count, it's still the same context getting billed again. On this project's own 1,037 measured Claude Code sessions, cache-read (context already in the conversation, re-sent on the next turn) and cache-write (new content entering the cache) together are 82% of the real dollar cost - fresh input, the part you actually typed, is 2.3%. The two biggest fixable levers underneath that, from the same measured dataset: offloading exploratory reads that never lead to an edit to a cheap subagent (~22% of context footprint, estimated) and trimming a CLAUDE.md down to what's actually always-on instead of trigger-gated (~10.8%, estimated). Dead MCP servers are a measured but small floor at 0.5%.

None of those numbers change if you switch products. A session that re-sends the same 40,000 tokens of unmanaged context ten times over hits Claude Code's weekly Opus clock and Codex's per-model message cap at roughly the same rate, because the mechanic that's draining either one is identical: what's still sitting in context, getting rebilled turn after turn. How Claude Code's usage limit actually works covers the session-limit mechanic in more depth if that's the one you're hitting; reducing what stays in context is the fuller list of levers behind the two shown here.

Check your own waste before blaming either vendor

Before deciding a vendor's limit is too small, check what your own setup is actually spending inside it:

  1. Look at how much of a recent session was pasted files or old, unrelated context that never got cleared - that's the cache-write and cache-read weight from the section above, showing up as real turns against your budget.
  2. Check whether exploratory reads - files opened, greps run, that never led to an edit - stayed in the main thread instead of getting offloaded to a subagent.
  3. Open your CLAUDE.md or AGENTS.md and separate what's genuinely always-on from what only applies sometimes; the latter belongs in a path-scoped rule or a skill, not a file that loads every session regardless of task.
  4. If you're comparing an actual dollar number rather than a plan tier, the cost calculator turns a usage pattern into a real estimate instead of a guess from a plan's marketing page.

If those checks come back clean and you're still hitting the wall on real, necessary work, that's the honest case for a bigger plan or the other vendor - but it's worth ruling out first, since it's usually cheaper to fix.

Honest limits

Neither vendor publishes the exact formula that converts tokens into Claude Code's abstracted "usage" or into Codex's per-model message count, so a precise unit-for-unit capacity comparison isn't something either company's public docs actually support - anyone claiming an exact number is estimating, same as the SERP for this query mostly does. Both companies have also adjusted their limits and pricing structure more than once through 2026 per their own community forums, so treat the specific figures here as an August 2026 snapshot, not a permanent spec. This piece also doesn't attempt a feature-by-feature verdict on code quality, speed, or which model reasons better - that's a different question with a different answer, and existing page-1 posts already take a swing at it.

FAQ

  • Does Claude Code or Codex have a bigger usage limit? Neither vendor publishes a number that converts directly to the other's units, so there's no honest single answer. Claude Code doses out an abstracted usage budget; Codex doses out per-model messages with a wide range depending on reasoning effort. Which one runs out first depends on your usage pattern, not a published ceiling.
  • Do Claude Code and Codex really use the same 5-hour window? Yes, per each vendor's own current docs - Claude Code's session limit and Codex's usage-limit window for local and cloud messages are both described as a 5-hour rolling window. What each layers on top of that shared base (a weekly cap structured very differently) is where they diverge.
  • Why do I burn through Codex's limit faster on some tasks than others? OpenAI's own pricing docs cite per-model message ranges that can span more than 20x depending on the model and how much reasoning effort a task needs - a high-effort task on a tightly-ranged model looks nothing like a light task on a generously-ranged one, inside the same window.
  • Is Opus metered differently than other models on Claude Code? Yes. Per Claude's help center, Opus draws from its own separate weekly clock, distinct from the weekly clock every other model shares - a light week on Sonnet doesn't refill an exhausted Opus budget.
  • Will upgrading to Codex Pro or Claude Max fix hitting the ceiling early? Only if the cause is genuine usage rather than setup waste. On this project's own measured sessions, re-sent context (cache-read plus cache-write) is 82% of a real bill - check that first, since a bigger plan just buys more room for the same waste to fill.
  • Is there a fixed usage limit on either vendor's enterprise plan? Not necessarily. Codex Enterprise and Edu on flexible pricing use credits with no fixed rate limit, and Claude's API-key billing is pay-as-you-go with no hard stop either - on both, the practical ceiling becomes your own budget, not a vendor-set clock.

Which ceiling you actually hit first is mostly a question neither vendor's pricing page answers, because it depends on what your own sessions are carrying. The free scan reads your real Claude Code session history and shows exactly how much of it is necessary work versus re-sent waste, before you spend money moving to a bigger plan or a different tool to fix a problem that setup usually causes.

See your own numbers

These are aggregates from real sessions. Your setup is different - run the free scan and get the breakdown for your own Claude Code history. It runs locally; nothing about your code or prompts leaves your machine.

npx usagecutRun a free scan →

NeoMade by Neo

UsageCut by ClockedCode - not affiliated with Anthropic. The figures on this page are measured on real Claude Code sessions and labeled measured or estimated where it matters.