Skip to content
AI Dev Toolkit.
Esc
  • Loading…

Claude Code · Server and limits

API Error: Request rejected (429)

Fix “Request rejected (429)” in Claude Code: find which key or plan hit the rate limit, tell it apart from a server throttle, and cut concurrency.

Message

The exact error

Claude Code
API Error: Request rejected (429) · this may be a temporary capacity issue. If it persists, check https://status.claude.com.

Also appears as:

A short-lived server throttle (not your plan limit)
API Error: Server is temporarily limiting requests (not your usage limit)
A proxy or gateway’s own 429 page
API Error: Request rejected (429) · Too Many Requests
A Claude apps gateway spend cap
spend limit reached (daily; resets 2026-08-09 00:00 UTC)

Meaning

What does Request rejected (429) mean?

A 429 means too many requests or tokens in a short time for the credential in use: your API key, Amazon Bedrock project or Google Cloud project. On the Anthropic API, rate limits are set per Console organization by its usage tier. A common surprise is that Claude Code is using an ANTHROPIC_API_KEY from your environment, with its low limits, instead of your subscription. Claude Code retries temporary 429 throttles with backoff before showing the error, so seeing it means the limit kept being hit.

Causes

Why am I being rate limited?

  • Your API key’s tier limits (requests or tokens per minute)
  • A stray ANTHROPIC_API_KEY in your environment taking priority over your subscription
  • Many parallel subagents or tool calls at once
  • With ANTHROPIC_BASE_URL set, your gateway’s own rate limit or spend cap

Fix

How do I fix a 429 in Claude Code?

  1. Check which credential is in use

    Run /status. If it shows an API key you didn’t intend, unset ANTHROPIC_API_KEY and run /login to use your subscription. Our guide to getting a Claude API key explains how keys and organizations relate.

  2. Check or raise your limits

    See your limits in the provider console; for Anthropic keys, the Console’s Rate limits page shows your organization’s tier. The rate limits reference explains how tiers rise with usage history and how to set per-workspace caps.

  3. Reduce concurrency

    Run fewer subagents in parallel, lower CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY, or switch to a smaller model with /model for high-volume scripted runs.

  4. If the message names a gateway

    Ask the gateway operator to raise its limit. A spend limit reached message is the operator’s spend cap, which Claude Code doesn’t retry: wait for the reset time it names.

Explained

Is it my usage limit or a server throttle?

Three messages look alike. You’ve hit your session limit · resets … (or weekly, Opus or Sonnet limit) is your subscription allowance: see usage limit reached. Request rejected (429) is a short-term rate limit on the key or cloud project in use. Server is temporarily limiting requests (not your usage limit) is a brief server-side throttle; Claude Code tells it apart by the missing quota headers that a real limit response carries, and since v2.1.199 retries it automatically whichever way you sign in.

None of these is the 529 Overloaded error, which means Anthropic’s capacity is stretched for everyone. If the key works but its organization has run out of prepaid credit, you see Credit balance is too low instead.

Explained

What if my gateway returns 429?

If ANTHROPIC_BASE_URL points at an LLM gateway or proxy, the 429 may come from its own limits rather than Anthropic’s. The text after the · is then that page’s title, such as Too Many Requests (before v2.1.281 the whole page’s markup was printed), and the trailing sentence names the gateway host. A Claude apps gateway that blocks you over its operator’s spend cap says spend limit reached with the period and reset time; it marks those responses not to be retried, so Claude Code shows the message straight away.

FAQ

Questions people ask

Is a 429 the same as hitting my Claude usage limit?

Not quite. On a subscription, running out of your plan’s allowance shows “You’ve hit your session limit” or “weekly limit” with a reset time. “Request rejected (429)” is a short-term rate limit on the credential in use, and “Server is temporarily limiting requests (not your usage limit)” is a brief server-side throttle that Claude Code retries automatically.

Does Claude Code retry 429 errors?

Yes, temporary 429 throttles are retried automatically with backoff, so if you still see the error the limit kept being hit. A gateway’s spend-limit 429 isn’t a throttle and isn’t retried. In unattended runs, CLAUDE_CODE_RETRY_WATCHDOG=1 keeps retrying 429 and 529 capacity errors, but fails at once on a 429 that reports a spend limit or exhausted usage credits.

How do rate limit tiers work for Anthropic API keys?

Limits are set per Console organization by its usage tier, which sets requests and tokens per minute per model. Organizations are placed on a tier automatically from their usage history and account standing, and move up over time. The Console’s Rate limits page shows your tier, and you can set lower limits per workspace so one project can’t starve another.

Related

Search all Claude Code errors

Keep exploring