The Claude API returned 529 Overloaded. Retry capacity, not your spend cap
Requests fail with HTTP 529 overloaded_error when the API is temporarily at capacity across users, which is not the same as a 429 rate or spend limit. Short answer: 5 steps. 1) Confirm it is overloaded_error, not a 429; 2) Retry with backoff and honor Retry-After; 3) Check status, then switch model if one is hot; 4) Spread load; do not spike from zero; 5) In unattended Claude Code jobs, tune overloaded retries deliberately.
Last updated: · This page is the decision checklist; the tools list for “Handle a Claude API 529” is a separate URL.
How do I fix this: The Claude API returned 529 Overloaded?
Confirm it is overloaded_error, not a 429
A 529 with error type overloaded_error means the Claude API is temporarily overloaded for everyone. A 429 rate_limit_error is your org's request/token limit or a spend cap. Treat them differently: capacity clears with time; a spend-cap 429 keeps failing until access resumes. Docs: https://platform.claude.com/docs/en/api/errors
Retry with backoff and honor Retry-After
Official Anthropic SDKs retry transient failures (connection errors, rate limits, and 5xx including overloaded) with exponential backoff, twice by default, and honor retry-after when present. Raise max_retries / maxRetries only if you need more attempts; do not wrap the SDK in a second aggressive loop that multiplies traffic.
Check status, then switch model if one is hot
Open https://status.claude.com for capacity notices. If Claude Code shows Repeated 529 Overloaded errors, wait a few minutes or run /model and pick another model; capacity is tracked per model and Claude Code may prompt you to switch when one model is under high load. https://code.claude.com/docs/en/errors
Spread load; do not spike from zero
Anthropic notes that a sharp increase in your organization's usage can also surface as 429 acceleration limits. Ramp traffic gradually and keep a steadier request pattern instead of bursting many parallel calls the moment capacity returns.
In unattended Claude Code jobs, tune overloaded retries deliberately
Claude Code already retries 529s before surfacing the error. On recent versions you can lengthen the backoff with CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS and CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS, or set CLAUDE_CODE_RETRY_WATCHDOG=1 for long CI waits on capacity errors. Prefer those knobs over a custom hammer loop. https://code.claude.com/docs/en/errors
Which tools are best to handle a Claude API 529?
Claude API errors
Defines 529 overloaded_error and how official SDKs retry transient failures.
Claude Code errors
Repeated 529 Overloaded errors, model switching, and overloaded retry env vars.
Claude status
Live capacity and incident notices before you keep hammering retries.
Claude API rate limits
Use this when the status is 429 instead of 529.
Open: 1 spot per week
One labeled sponsor for this topic each week; this week's spot is open. See open weeks →
All tools for “Handle a Claude API 529” →
Related fixes
- Stop a Cursor agent loopHow to fix a Cursor agent loop (same edit, or work after Stop)Fix →
- Claude Code vs Codex vs Cursor ~$20 plansClaude Code vs Codex vs Cursor $20 plan limits: how to pick without burning the weekFix →
- Scan a vibe-coded app for leaked API keysCheck a vibe-coded app for leaked API keys before you share itFix →
- Add an MCP server to Claude Code, Cursor, or CodexHow to add an MCP server to Claude Code, Cursor, or CodexFix →
See also AI tools launched today on the daily board.
NewAIToolsToday Daily
Top 3 AI launches, one model or news item that matters, and one simple fix. A 5-minute read, every weekday.