Claude Code troubleshooting

Claude Code 529 overload and 429 rate limit fixes

A 529 means the API is at capacity. Let retries finish, then try again in a few minutes. The error does not count against your quota. For a 429 rate limit, run /status to identify your API key or cloud project. If Claude Code names a session or weekly limit, wait for the reset time it shows.

Last updated · Published

By CWYN · Published · Checked against docs, not run · Claude Code error reference and Anthropic API errors (as of )

1. Identify your error message

Terminal messageWhat it meansFirst fix
API Error: Repeated 529 Overloaded errors. The API is at capacity — this is usually temporary. Try again in a moment. If it persists, check https://status.claude.com.
Anthropic's API is temporarily overloaded. Check service status and try again in a few minutes.
API Error: Request rejected (429) · this may be a temporary capacity issue. If it persists, check https://status.claude.com.
The active API key or cloud project hit a provider limit. Run /status to see which credential to check.
API Error: Server is temporarily limiting requests (not your usage limit)
The server is briefly throttling requests. Give the automatic retries time to finish.
You've hit your session limit · resets 3:45pm
Your plan's session allowance is used up. Wait for the time in your message.
You've hit your weekly limit · resets Mon 12:00am
Your plan's weekly allowance is used up. Wait for your weekly reset.
You've hit your Opus limit
You've reached a limit for one model family. Use /model to choose another family.

The reset times above are examples. Claude Code messages and reset times (as of ).

2. Fix a 529 overloaded error

  1. Let the retry countdown finish. The spinner reads Retrying in Ns · attempt x/y. Claude Code retries server errors, overloads and timeouts that occur before a response streams. It also retries temporary 429 throttles. By the time it shows the final error, it has already retried up to 10 times with exponential backoff.
  2. Check the status site named below the countdown. For the Anthropic API, that's status.claude.com (as of ). Try again in a few minutes.
  3. If you want to keep working, run /model and choose a different model. Capacity is tracked per model, so Sonnet may be available while Opus is overloaded.

Claude Code retries and model switching and Anthropic's overloaded_error definition (as of ).

3. Fix a 429 rate limit

  1. Run /status to identify the active credential. If you expected your Max subscription but see an API key, look for ANTHROPIC_API_KEY in your environment. If it points to an unintended key, remove the variable from the environment where you start Claude Code.
  2. Check the provider console for limits on your Anthropic API key, Amazon Bedrock project or Google Cloud project. For a rate limit, run fewer subagents in parallel. For high-volume scripts, try a smaller model and increase traffic gradually. A sudden spike can trigger a 429 even below your usual limit.
  3. If the error names a spend limit, check the organization's monthly tier cap or the Claude Code workspace spend limit. A 429 from the tier's monthly spend cap has no retry-after header and will keep failing until access resumes.

If parallel code reviews hit the rate limit, try one review at a time. The repository reviewer in the Claude Code Complete Setup Pack gives you a subagent definition you can reuse for each review.

Claude Code credential checks, Anthropic API rate limits and 429 errors and spend caps (as of ).

4. When the server is temporarily limiting requests

  1. Wait briefly. This throttle is separate from your plan quota. Claude Code v2.1.199 and later retries it automatically with backoff.
  2. If it persists, check Anthropic service status and the temporary throttle reference (as of ).

To check your local setup, run /doctor in Claude Code. If Claude Code won't start, run claude doctor from your shell. Claude Code troubleshooting (as of ).

5. When you've hit a plan limit

  1. Read the limit name and reset time. For a session or weekly limit, wait for that reset. All models share those allowances, so switching models still uses the same limit.
  2. If the message names Opus or Sonnet, only that family has reached its limit. Run /model and select another family to keep working, or wait for the reset to use the same family again.

Session, weekly and model-family limits (as of ).

6. Configure retries for unattended and CI runs

  • CLAUDE_CODE_RETRY_WATCHDOG=1 keeps an unattended session such as a CI job retrying 429 and 529 capacity errors indefinitely. A 429 that reports a spend limit or exhausted usage credits still fails immediately.
  • CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS sets the initial wait between 529 attempts in v2.1.292 and later. The default is 500 ms and the maximum is 32000 ms.
  • CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS caps the wait between 529 attempts in v2.1.296 and later. The default is 32000 ms and the maximum is 300000 ms.

Retry environment variables, defaults and supported versions (as of ).

If you keep retry settings in a Claude Code settings file, check which settings file takes precedence before changing a shared value.

7. Claude Code error FAQ

Does a 529 use my quota?

No. A 529 does not count against your quota. It means the API is temporarily overloaded. How Claude Code handles a 529 (as of ).

Why do I get a 429 on a Max plan?

A stray ANTHROPIC_API_KEY can route your requests through a low-tier API key even when you have a Max subscription. Run /status to see which credential is active. How to identify the active credential (as of ).

Will switching models help?

For a 529, another model may have capacity. For a session or weekly limit, every model shares the allowance and you need to wait. For an Opus or Sonnet family limit, use /model to switch to another family. When switching models works (as of ).

Where can I check Claude Code status?

For a 529, look below the retry countdown for your provider's status site. On the Anthropic API, use status.claude.com. Claude Code overload status guidance (as of ).

Next steps

Estimate your API costs

Use the free AI cost calculator

Set up your Claude Code project

The Claude Code Complete Setup Pack ($12.95) includes editable project instructions, permission presets and hooks.