Home › Rules › Claude Code usage limits

Claude Code usage limits and rate limits: what each message means, when it resets, and how to keep working

From Anthropic's Claude Code docs (error reference, costs, interactive mode, status line, authentication, settings, commands), the Claude API rate limits page and the Claude Help Center, checked Nov 24, 2026. Sources below.

Short answer: there are two kinds of ceiling. If you sign in with a Claude subscription, you have a 5-hour window and a weekly window, and the stop message names the time it lifts. If you use an API key or a cloud provider, there are no windows: you're billed per request and can hit a per-minute rate limit, which shows up as a 429. Run /usage to see where you stand, /status to see which credential you're on, and /rate-limit-options when you're stopped. Since v2.1.234, a subscriber's open session can wait out the limit and continue the task on its own.

For plan prices, what Max and Ultra include, and how usage credits work, see Claude Pro vs Max vs Ultra. This one is about the moment you get stopped: reading the message, the reset times, waiting it out, watching the meter, and the API side.

Which limit stopped you

Anthropic's error reference lists each of these. The exact words tell you which ceiling it is:

Message (start of it)What it isWhat helps
You've hit your session limit · resets 3:45pmYour plan's 5-hour window ran out. Since v2.1.312 the messages call it the "5-hour limit"Wait for the time shown, add usage credits, or upgrade. Switching models doesn't help
You've hit your weekly limit · resets Mon 12:00amYour plan's weekly window, shared by every modelSame as above. The reset can be days away
You've hit your Opus limit / Sonnet limitA limit on one model family only/model to a model outside that family keeps you working
You've used 85% of your session limitAn early warning, not a stopFinish or save your work; check /usage
API Error: Server is temporarily limiting requests (not your usage limit)A short throttle on Anthropic's side, unrelated to your planRetried for you since v2.1.199. If it keeps coming back, check status.claude.com
API Error: Request rejected (429)The per-minute rate limit on your API key, Bedrock project or Google Cloud projectCheck /status for a stray key, lower concurrency, or ask for a higher tier
You've hit your monthly spend limitYour usage credits reached the spend cap you (or your admin) setRaise it in Settings > Usage or with /usage-credits, or wait for the plan reset if the message names one
Credit balance is too lowA Console (API) organization with no prepaid credit leftIf you meant to use your plan, an API key is probably set. Otherwise add credit in the Console
Usage credits required for 1M contextNot a used-up limit: your plan only gets the 1M-token context through usage credits/model and pick the version without [1m]
Agent terminated early due to an API errorA subagent's request failed for good, for example on a usage limitRead the detail after the colon, clear that limit, then have Claude retry the task or resume the subagent
spend limit reached · resets Dec 1 (lowercase)A cap set by whoever runs your company's Claude apps gatewayWait for the date, or ask the gateway operator

Two details from the docs that trip people up. First, usage counts against the 5-hour and weekly windows at once, so one heavy burst (Anthropic's example is a big workflow fan-out) can use up the weekly window before the 5-hour one even comes back. Second, a message in /usage like rate limited until 3:14am only means Claude Code can't refresh the usage numbers until then. It isn't a limit on your work.

When the 5-hour and weekly windows reset

Is there a command to reset the limit early? Not in Claude Code. The help center's "limit reset" article covers one-time resets Anthropic sometimes gives eligible plans, and says the "Reset for free" button isn't in Claude Code in the terminal or IDE yet. You use it in Settings > Usage on the web, Desktop or mobile, and because limits are shared across your account, it frees up Claude Code too. A reset doesn't move your weekly reset day.

Stopped mid-task: wait, continue automatically, or pay

On v2.1.234 or later, when a claude.ai limit stops Claude partway through a task in an interactive session, Claude Code waits in that session by default. The bottom of the screen shows two lines:

Leave the session open. At the reset, Claude Code tells Claude to carry on where it stopped (it doesn't resend your last message). If your computer slept for more than about 30 minutes and the reset happened during that time, press Enter to continue. Permission prompts still appear as usual, so an unattended task can stall on one. After three automatic continues in a row it stops and points you to /rate-limit-options.

/rate-limit-options is the menu for this. It offers waiting and continuing automatically, adding usage credits, or upgrading. Claude Code opens it for you once per reset window, at your own terminal, when it won't start the wait itself:

No wait is offered at all in background sessions, -p runs, with API keys or cloud providers, or behind an LLM gateway without a saved claude.ai login. To cancel a wait, press Esc at an empty prompt or Ctrl+C, or pick Don't continue automatically in the menu. To stop it starting on its own, turn off Continue automatically at usage limit in /config or set autoContinueAtUsageLimit to false in your user settings (example below). In the Desktop app's Code tab, the session-limit card has its own Auto-continue when limits reset checkbox, separate from the CLI setting.

Your other options when stopped, from the help center: turn on usage credits (/usage-credits) so work goes on at API rates, move up a plan, wait for the reset, or switch to a Claude Console account and pay API rates for a heavy stretch. For a Fable limit, the details are on the plans page.

Seeing how much is left

Here's a status line that puts both windows and their countdowns on screen all the time. It uses only the fields Anthropic documents and needs jq. Save it as ~/.claude/​statusline.​sh and make it executable with chmod +x:

Our example (VibeKits): ~/.claude/statusline.sh
#!/bin/bash
# Shows how much of the 5-hour and weekly windows you've used,
# and how many minutes until each one resets.
input=$(cat)
now=$(date +%s)
out=""
for w in five_hour seven_day; do
  pct=$(echo "$input" | jq -r ".rate_limits.$w.used_percentage // empty")
  at=$(echo "$input" | jq -r ".rate_limits.$w.resets_at // empty")
  [ -z "$pct" ] && continue
  label=$([ "$w" = five_hour ] && echo "5h" || echo "week")
  mins=$(( (${at%.*} - now) / 60 ))
  out="${out:+$out | }$label $(printf '%.0f' "$pct")% (resets in ${mins}m)"
done
# rate_limits is missing on API keys and until the first reply
echo "${out:- no plan limits shown}"

Then point your user settings at it. refreshInterval re-runs the script every 60 seconds so the countdown keeps moving while the session is idle. The last line turns the automatic wait off; leave it out if you want the wait.

Our example (VibeKits): ~/.claude/settings.json
{
  "statusLine": {
    "type": "command",
    "command": "~/.claude/statusline.sh",
    "refreshInterval": 60
  },
  "autoContinueAtUsageLimit": false
}

Subscription vs API key: two different limits

How you sign inWhat limits youWhat you seeResets
Pro, Max, Ultra (/login)5-hour and weekly windows shared with Claude chat; usage credits past them if on"You've hit your … limit · resets …"At the time in the message
Team, Enterprise seatPer-seat 5-hour and weekly windows; admin spend limits on usage creditsSame messages, plus spend-limit onesWindows reset; spend limits monthly
Console API keyYour organization's tier: requests, input tokens and output tokens per minute, plus a monthly spend capRequest rejected (429), Credit balance is too lowRefills continuously; a tier's spend cap at 00:00 UTC on the 1st
Bedrock, Google Cloud, FoundryYour cloud project's quotas and budgetsRequest rejected (429) naming that providerSet by your cloud provider

Which one is Claude Code using? When several credentials are present, the authentication docs give this order: cloud provider variables (CLAUDE_​CODE_​USE_​BEDROCK and friends), then ANTHROPIC_​AUTH_​TOKEN, then ANTHROPIC_​API_​KEY, then an apiKeyHelper script, then CLAUDE_​CODE_​OAUTH_​TOKEN, then Anthropic profiles, and only then your /login subscription. So an approved ANTHROPIC_​API_​KEY wins over your plan, and in -p mode it's used without asking. The error reference warns that a stray key "can route requests through a low-tier key instead of your subscription", which is a common reason a paying subscriber sees 429s. Since v2.1.326, /login and /status name an API key that's still in use. Cloud sessions on claude.ai always use your subscription, even with a key set there.

API tiers, briefly. Anthropic places API organizations on a tier by usage history; new ones can start on a lower Evaluation tier. Rate limits are per organization and per model class, and short bursts can trip them even under the per-minute number. Tokens read from the prompt cache don't count toward the input-token limit. When a 429 carries a retry-after header, wait that many seconds. Monthly spend caps: Start $500, Build $1,000, Scale $200,000 (Custom has none). Your tier and limits are on the Console's Rate limits page, with a Request tier increase button. When Claude Code first creates an API key for a Console member, a "Claude Code" workspace appears in the organization, and you can give that workspace its own lower rate limit so it can't crowd out other apps.

For teams on the API, Anthropic's cost docs suggest per-user rate limits by team size. The limits apply to the whole organization, so one person can use more while others are idle:

Team sizeTokens per minute, per userRequests per minute, per user
1-5200k-300k5-7
5-20100k-150k2.5-3.5
20-5050k-75k1.25-1.75
50-10025k-35k0.62-0.87
100-50015k-20k0.37-0.47
500+10k-15k0.25-0.35

Fast mode is separate again: it has its own rate limits, and on subscription plans it's paid only from usage credits. When fast mode hits its limit, Claude Code drops to standard speed, the ↯ icon goes gray, and fast mode comes back after the cooldown.

Scripts and CI: retries and long waits

Before showing you an error, Claude Code already retries passing failures up to 10 times with growing gaps, including short 429 throttles (but not a gateway's spend-limit 429). While it retries, the spinner shows Retrying in Ns · attempt x/​y. For unattended jobs you can change that with environment variables from the error reference:

VariableWhat it does
CLAUDE_​CODE_​MAX_​RETRIESNumber of retries, default 10. Lower it so a script fails sooner
CLAUDE_​CODE_​RETRY_​WATCHDOGSet to 1 to keep retrying 429 and 529 capacity errors with no end. It still fails at once on a spend-limit or out-of-credits 429
CLAUDE_​CODE_​RETRY_​WATCHDOG_​MAX_​WAIT_​MSWith the watchdog on, the longest one request waits out 429s and 529s (v2.1.295+)
CLAUDE_​CODE_​RETRY_​WATCHDOG_​MAX_​USAGE_​LIMIT_​WAIT_​MSWith the watchdog on, the longest one request waits for a 5-hour or weekly reset; a later reset fails right away (v2.1.301+)
CLAUDE_​CODE_​RETRY_​WATCHDOG_​USAGE_​LIMIT_​RECHECK_​MSHow often to check whether a plan limit was lifted early, 60000 to 10800000 ms (v2.1.305+)
Our example (VibeKits): CI job with limits in mind
# 1. Which credential is this machine using?
echo "${ANTHROPIC_API_KEY:+API key is set: requests bill to that key}"
unset ANTHROPIC_API_KEY   # then sign in with CLAUDE_CODE_OAUTH_TOKEN
                          # (from claude setup-token, kept as a CI secret)

# 2. Unattended runs: keep retrying 429 and 529 capacity errors
export CLAUDE_CODE_RETRY_WATCHDOG=1
# ...but give up on one request after 30 minutes of 429/529 waiting
export CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS=1800000
# ...and don't sit waiting for a plan limit that resets more than 2 hours out
export CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS=7200000

# 3. Or fail fast in a quick script instead of retrying
# export CLAUDE_CODE_MAX_RETRIES=2

claude -p "run the test suite and summarize failures"

For CI, the authentication docs offer an API key or a long-lived token from claude setup-token (that one needs a subscription and goes in CLAUDE_​CODE_​OAUTH_​TOKEN). The automatic wait-and-continue isn't offered in -p runs, so there the watchdog variables are the documented way to wait out a limit.

Matching kit: MVP Spec-to-Build Pack ($7)

The free rules set the boundaries. The MVP pack gives you the build order: a 1-page spec to fill in first, then 7 prompts in sequence (skeleton, review, login, database, security, one feature at a time, polish), plus a "did I leak user data?" checklist.

See the MVP Spec-to-Build Pack ($7) →

Instant download. 7-day refund, no questions asked.

Weekly limit promotion and resets: what's current

Searches for "claude code weekly limits promotion" and "50% higher" point back to one help center article. What it says now:

As of Nov 24, 2026, the help center has no newer weekly-limit promotion. Separate from that, Anthropic sometimes hands out one-time limit resets (5-hour, weekly or Fable). If you have one, it's listed with its expiry date in Settings > Usage.

What Anthropic's docs don't say

Why the meter moves faster than you expect

The cost docs list what makes a long session use more than it seems to:

Since v2.1.304, Pro and Max users get a warning before resuming an old conversation would take a noticeable share of the 5-hour window, with the choice to start fresh instead. Habits that stretch your limits are on the plans page, and the model and effort side is in Claude Code models and effort levels. If you use the advisor, each call reads the whole conversation and counts toward your limits too.

How the limit tools changed

From the Claude Code changelog. Run claude --version if your screen doesn't match.

DateVersionChange
Sep 29, 20252.0.0/usage command to see plan limits
Jan 13, 20262.1.6Limit warning only shows from 70% used
Jul 2, 20262.1.199Short server throttles retried for subscribers too
Aug 17, 20262.1.234Continue automatically after a usage limit resets
Sep 14, 20262.1.271Dynamic workflows pause at the limit and continue after the reset
Sep 28, 20262.1.284/rate-limit-options listed in /help
Oct 15, 20262.1.301Watchdog cap on waiting for a plan reset
Oct 19, 20262.1.304Warning before an expensive resume; /usage says when its own data limit ends
Oct 20, 20262.1.305Press f in /usage to apply its suggested fixes
Oct 27, 20262.1.312Messages say "5-hour limit" instead of "session limit"
Nov 16, 20262.1.326A login change during a wait stops it; /login and /status name an unused or still-active API key
Nov 19, 20262.1.329/usage no longer says usage credits are off when they ran out or hit the monthly cap

Fixes for common limit problems

  1. 429s on a paid plan. Run /status. If an API key is active, unset ANTHROPIC_​API_​KEY, remove it from your shell profile, relaunch claude, and /login if needed.
  2. "Credit balance is too low" on Pro or Max. Same cause: requests are going to a Console key. Check the API key row in /status.
  3. Switching models didn't help. The 5-hour and weekly windows cover every model. Only the Opus and Sonnet limits can be dodged with /model.
  4. No automatic continue. Update to v2.1.234 or later, check /config, and keep the session open. A reset more than 24 hours out never starts on its own; use /rate-limit-options.
  5. It continued three times, then stopped. That's the built-in cap. Send a prompt or pick a wait from /rate-limit-options to reset the count.
  6. /usage shows old numbers or "rate limited until". The usage lookup itself is throttled. Press r after the time shown.
  7. No rate_​limits in your status line. It needs a Pro, Max or Ultra login and appears after the session's first reply; handle the empty case like the script above does.
  8. A subagent died with "Agent terminated early". A usage limit or used-up retries stopped it. Once you have room again, ask Claude to retry, or resume that subagent.
  9. You hit a spend limit with credits left. On Pro, Max and Ultra, Claude Code offers to raise or remove the limit right there. If that fails, change it in Settings > Usage in a browser.
  10. A CI job hangs on a limit. Set CLAUDE_​CODE_​RETRY_​WATCHDOG_​MAX_​USAGE_​LIMIT_​WAIT_​MS, or lower CLAUDE_​CODE_​MAX_​RETRIES so it fails fast.

Where Anthropic's pages disagree

FAQ

When does the Claude Code usage limit reset?

The limit message tells you the exact time, for example resets 3:45pm. The 5-hour window starts with your first message and refills completely five hours later. The weekly window resets on a fixed day and time Anthropic assigns to your account, which doesn't change with when you subscribed or started working. Settings > Usage on claude.ai and /usage in Claude Code both show the next reset.

What does "rate limit reached" mean in Claude Code?

It depends on how you sign in. With a Pro, Max or Ultra login you'll see a plan message such as You've hit your weekly limit, with a reset time. With an Anthropic API key or a cloud provider you get API Error: Request rejected (429), which means the requests-per-minute or tokens-per-minute limit on that key or project. A third message, Server is temporarily limiting requests (not your usage limit), is a short throttle on Anthropic's side that has nothing to do with your plan.

How do I check my Claude Code usage?

Run /usage (the aliases /cost and /stats open the same screen). Subscribers see bars for each limit and when it resets. For a constant readout, add the rate_limits.five_hour and rate_limits.seven_day fields to a custom status line. In the Desktop app, click the usage ring under the prompt box. /status shows which account and credential are active, which is how you spot a stray API key.

Can Claude Code keep going by itself after the limit resets?

Yes, on version 2.1.234 or later with a claude.ai subscription. In an interactive session it waits and then tells Claude to pick the task up again, up to three times in a row. Turn it off in /config (Continue automatically at usage limit) or with "autoContinueAtUsageLimit": false. It isn't offered for API keys, cloud providers, background sessions or -p runs.

Is there a Claude Code weekly limit promotion right now?

Not on Anthropic's help center as of Nov 24, 2026. The 50% boost to Claude Code weekly limits ran from May 13 through September 13, 2026. Since September 14, weekly limits in Claude Code have been 25% higher than before that promotion. The 5-hour limit wasn't part of either change.

Does an API key use my Pro or Max limits?

No. If ANTHROPIC_API_KEY is set and you approved it, Claude Code sends requests with that key and bills them at API rates, with the key's own per-minute rate limits instead of your plan's windows. Run unset ANTHROPIC_API_KEY, relaunch claude, and check /status to get back on your subscription.

Related setups

Limits are one part of running Claude Code day to day. Prices and plans: Claude Pro vs Max vs Ultra. Picking a cheaper model or effort: Claude Code models and effort levels. Many agents at once use limits faster, so see Claude Code multi-agent setup before you fan out. Comparing tools by cost: Cursor vs Claude Code vs Codex, and Google's side in Antigravity limits.

Next step for Claude Code: Agent Skills

Skills are folders your AI coding agent loads only when the job comes up, and Claude Code, Cursor and OpenAI Codex all read the same SKILL.md format. The Vibe Coder Skills Pack ($9) is 6 ready-to-copy SKILL.md skills (fix-one-bug, stop-the-loop, leak-check, ship-check, explain-project, builder-handoff) for Claude Code, Cursor and OpenAI Codex. Also included in the 6-kit bundle.

Get the Skills Pack for $9 on Gumroad → See what's inside

One .zip of skill folders plus one markdown file. 7-day refund, no questions asked.

Best value

All 6 kits for $29 — or $20.30 with code WELCOME30 (through Nov 30)

A limit hurts most when it lands halfway through a do-over. The kits give your AI the plan for the whole project, step by step: a small game, a Discord bot, an email-triage agent, an MVP, or a cleanup of messy code.

Get all 6 kits for $29 → See what's in each kit

$29 instead of $48 for the six kits bought separately; WELCOME30 takes 30% off that at checkout ($20.30). Instant download from Gumroad. 7-day refund, no questions asked.

Related

Sources

Every command, setting, message, version number and date here was checked Nov 24, 2026 on Anthropic's own Claude Code docs, its API rate limits page and the Claude Help Center. Anthropic changes limit wording and menus often, so check the linked pages if a message on your screen reads differently.

Free rules starter pack for Cursor, Claude Code, Codex and Antigravity

One shared AGENTS.md that works across Cursor, Claude Code, Codex, Copilot and Antigravity, plus database and test rules in each tool's format. Unzip it into your project and fill in two sections. I'll email you the link.

After that, an occasional email when I publish a new guide or rules file.

Free. No spam. Unsubscribe anytime. See our privacy note.