Skip to content
InnovateTechie
Claude Code

Rate Limit Reached: Claude Code Fixes That Work

InnovateTechieBy InnovateTechie11 min read
Share
Rate Limit Reached: Claude Code Fixes That Work

Part ofWhat Is Claude Code? The Complete Guide

Rate limit reached claude code error? Plan windows and API meters throw the same message — identify yours, then wait, switch models or upgrade.

The rate limit reached Claude Code error means you exhausted one of two different budgets: your subscription's usage allowance (a rolling 5-hour session window plus a weekly cap) or the API's per-minute limits on requests and tokens. Check which one fired with /usage or the 429 response, then wait for the reset, switch to a lighter model, or trim context.

We hit this message regularly while running this site with Claude Code, and the frustrating part is that it's really five different limits wearing one costume. The fix that works for a capped session does nothing for a per-minute token limit, and vice versa. Below: how to tell which limit you actually hit, and the fixes ordered from cheapest to most expensive.

What the rate limit reached Claude Code error actually means

Claude Code sits on top of two separate billing systems, and each brings its own metering. Sign in with a Claude Pro or Max subscription and Anthropic measures your usage in rolling 5-hour session windows plus a weekly cap. Authenticate with an API key instead and the Claude API counts requests per minute (RPM), input tokens per minute (ITPM), and output tokens per minute (OTPM) — exceed any one and you get a 429. Same red error text in your terminal, entirely different machinery underneath. If you're still deciding how to run the tool at all, our pillar guide, What Is Claude Code?, covers both auth paths.

This ambiguity is why "limit reached despite barely using my quota" keeps filling Anthropic's issue tracker. Issue #29579 reports the error on a Max subscription showing just 16% usage, and issues #41212 and #41125 echo the same complaint. The dashboard those users checked tracks one meter; the 429 they received came from another. Most rate limit reached Claude Code threads go in circles precisely because nobody establishes which limit fired before proposing fixes.

Rate limit reached in Claude Code — plan usage windows versus API per-minute limits behind one error message

Which limit fired? Read the signal first

Run /usage inside Claude Code before anything else. On a subscription it shows your current session percentage, your weekly percentage, and both reset times. On API billing, check the Limits page in the Claude Console and the anthropic-ratelimit-* response headers instead. Then match what you see to a row:

Limit typeThe signalThe fix
5-hour session window (Pro/Max)Reset time a few hours away; /usage session bar at 100%Wait for the window, switch to a lighter model, /compact
Weekly cap (Pro/Max)Reset time days away; /usage weekly bar fullWait for the 7-day rollover, route work to Sonnet/Haiku, upgrade
API requests per minute429 naming RPM; you're firing many small callsSlow the request rate; honor retry-after
API tokens per minute429 naming input or output tokensTrim context, use prompt caching, wait about a minute
API monthly spend capUsage pauses and won't resume with waitingRaise the spend limit in the Console, or wait for the new month

The diagnostic shortcut we lean on: read the reset time in the error itself. Minutes away means a per-minute API limit. A few hours means your session window. Days away means the weekly cap — and no amount of waiting out sessions will restore that one early.

Plan limits: the 5-hour window and the weekly caps

The Claude Code usage limit on subscriptions is a rolling window, not a midnight reset. Your first message starts a 5-hour clock; everything you burn inside that window counts against the session allowance, and the whole thing clears when the clock runs out. Send your first prompt at 9 AM and that session's usage ages out at 2 PM — your next message after that starts a fresh window with a fresh timer.

Stacked on top sits a weekly cap that resets on a 7-day cycle, and on Max plans a second, separate weekly cap for Opus alone. This is the pair people conflate: waiting five hours restores your session, never your week. Once the weekly meter is spent, only the rollover brings it back.

PlanPriceClaude Code usage
Free$0No Claude Code access — it requires a paid plan or API credits
Pro$20/monthBase session allowance per 5-hour window, plus a weekly cap
Max 5x$100/monthRoughly 5x Pro's allowance; separate weekly Opus cap
Max 20x$200/monthRoughly 20x Pro; the ceiling before API billing makes sense

Where you sit in that table changes how often you'll see the error. On Pro, a single heavy refactor with a bloated context can exhaust a session in under an hour; we've done it. The Claude Pro plan works for an hour or two of focused daily coding, while Claude Max exists precisely for people who hit the Pro wall twice a day.

API limits: RPM, ITPM, OTPM — and the 429 that names its limit

API billing swaps usage windows for per-minute metering. Anthropic documents the whole scheme in its rate limits reference: every model carries separate RPM, ITPM, and OTPM ceilings per usage tier, exceeding any of them returns a 429 that names the limit it hit, and a retry-after header tells you exactly how long to wait. The limits use a token bucket, so capacity refills continuously rather than resetting on a fixed clock — a per-minute limit usually clears in about a minute.

For Claude Code users on API keys, input tokens per minute is the usual culprit. The agent re-sends your conversation context with every request, so a long session multiplies input volume fast. Two details soften this: cached input tokens don't count toward ITPM on current models, and each model has its own limit pool, so switching models mid-block gives you a fresh budget.

Usage tierMonthly spend capClaude Sonnet 5 limits (RPM / ITPM / OTPM)
Start$5001,000 / 2M / 400K
Build$1,0005,000 / 5M / 1M
Scale$200,00010,000 / 10M / 2M
CustomNo capNegotiated with your account team

Tiers advance automatically as your usage history grows, and you can request increases from the Console's Limits page. Full per-token costs live in our Anthropic Claude API pricing breakdown.

The fixes, cheapest first

When a rate limit reached Claude Code error lands mid-task, work this list top to bottom. The first three cost nothing.

Fix flow for the Claude Code rate limit error — wait for the reset, switch models, compact context, upgrade or batch

1. Wait for the reset — but only when it's short. Per-minute API limits refill in about a minute; honor the retry-after value and you lose almost nothing. A session window a few hours from reset is a coffee break or a task-switch. A weekly cap days out is not worth waiting for — move to the fixes below instead.

2. Switch to a lighter model. Type /model and drop down a class. On Max plans the Opus cap is separate, so Sonnet keeps working after Opus locks; on the API, each model's limit pool is independent. We keep Claude Opus 4.8 ($5/$25 per million tokens, and the SWE-bench Pro leader at 69.2%) for architecture and gnarly refactors, then route everything routine to cheaper models. Our Claude models guide maps which tier fits which task.

ModelInput / output per million tokensWhere we use it
Claude Opus 4.8$5 / $25Hard refactors, architecture decisions
Claude Sonnet 5$2 / $10 intro until Aug 31, then $3 / $15Daily-driver coding
Claude Sonnet 4.6$3 / $15Stable fallback
Claude Haiku 4.5$1 / $5Tests, formatting, small edits

3. Reduce context. This is the highest-leverage fix nobody does. Run /compact before the context bar gets scary, /clear between unrelated tasks, and point Claude at specific files instead of letting it scan the whole repo. Anthropic's own cost management guide pushes the same habits, because every extra token in context is re-sent — and re-billed against your limits — on every single turn.

4. Upgrade the plan or tier. If you hit the wall daily, arithmetic takes over: Pro to Max 5x quintuples your allowance for $100/month, and API users can request higher limits or simply let their tier advance. A Claude rate limit error that arrives once a month is noise; one that arrives every afternoon is a sizing problem.

5. Batch and schedule the work. Split big jobs into two or three sessions a day so no single window absorbs everything. On the API, the Message Batches API processes asynchronous jobs at half price under its own separate limits — ideal for bulk refactors, test generation, or anything that doesn't need you watching.

One caution: make sure you're actually fixing a 429. A 500 is a server-side fault with a completely different playbook — our Claude Code API error 500 guide covers that one.

The quick checklist:

  • Identify which limit fired: plan window or API meter
  • Wait out the reset (5-hour windows are the usual)
  • Switch to Sonnet or Haiku to stretch quota
  • Compact context - or upgrade if it keeps happening

Claude pricing at a glance

PlanPrice
Free$0
Pro$20 / month
Maxfrom $100 / month
APIPay per token

For the full breakdown of every plan, see our how much Claude costs guide.

Frequently Asked Questions

It means one of several budgets ran out — not a single limit. On Pro or Max plans it's usually the rolling 5-hour session window or the weekly cap; on API billing it's a per-minute request or token limit (RPM, ITPM, OTPM), or your tier's monthly spend cap. Run /usage to see which.

Because the dashboard shows one limit while others fire independently. GitHub issue 29579 documents this on a Max subscription at 16% usage: per-minute token limits and a context-bloated session can trigger 429s regardless of your weekly meter. Compact your session and retry — the quota you're watching usually isn't the one that fired.

The session window resets five hours after your first message in that window — start at 9 AM and it clears at 2 PM. The weekly cap resets on a rolling 7-day cycle. API per-minute limits replenish continuously, usually within about a minute. The error message or /usage shows your exact reset time.

No. The 5-hour window and the weekly cap run on separate clocks. Waiting out a session restores session usage only; once a weekly cap is exhausted, nothing restores it except the 7-day rollover. Max plans also carry a separate weekly Opus cap, so Opus can stay locked while Sonnet still works.

Often, yes. On Max plans the Opus cap is separate, so /model sonnet keeps you working after a rate limit reached Claude Code message tied to Opus. On the API, every model has its own limit pool, and cheaper models drain budgets slower — Claude Haiku 4.5 costs $1/$5 per million tokens versus Opus 4.8's $5/$25.

No plan removes them. Max 5x ($100/month) and Max 20x ($200/month) multiply Pro's usage roughly 5 and 20 times, but the 5-hour windows and weekly caps still apply. For higher ceilings you'd add API billing, where you pay per token and limits grow with your tier — our [Claude Max](/claude-max) breakdown runs the numbers.

Mostly. Pro and Max plans carry one overall weekly cap covering all models, and Max plans add a second, separate weekly cap just for Opus. That's why heavy Opus use can lock you out of Opus while Sonnet and Haiku keep responding — and why routing routine work to lighter models stretches the week.
InnovateTechie

Written by

InnovateTechie

Writing about Claude and the Anthropic toolkit — models, Claude Code, pricing, features, and fixes, in clear, practical, hands-on guides tested by daily use.

View all posts →