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
The reset times above are examples. Claude Code messages and reset times (as of ).
2. Fix a 529 overloaded error
- 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. - 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.
- If you want to keep working, run
/modeland 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
- Run
/statusto identify the active credential. If you expected your Max subscription but see an API key, look forANTHROPIC_API_KEYin your environment. If it points to an unintended key, remove the variable from the environment where you start Claude Code. - 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.
- 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-afterheader 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
- Wait briefly. This throttle is separate from your plan quota. Claude Code v2.1.199 and later retries it automatically with backoff.
- 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
- 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.
- If the message names Opus or Sonnet, only that family has reached its limit. Run
/modeland 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=1keeps 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_MSsets 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_MScaps 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 ).