# Claude 529 Overloaded Error: Causes and Fixes

> Claude 529 overloaded error means the model is at capacity, not your key. See how Claude Code retries, how to switch models, and when you're charged.

Source: https://goiapi.com/en/blog/claude-529-overloaded-error
Updated: 2026-12-05

Author: GoiAPI, December 5, 2026

A Claude 529 overloaded error means the model you called is temporarily at capacity because of traffic from all users. It is not caused by your API key, your prompt, or your account, and it does not count against your usage limits. By the time Claude Code prints `API Error: Repeated 529 Overloaded errors`, it has already retried for you, so the fastest fixes are to wait a few minutes, check the status page, or switch to a different model with `/model`.

Disclosure: GoiAPI sells API access to the models mentioned in this article.

## What does the 529 overloaded error mean?

Anthropic's [API error reference](https://platform.claude.com/docs/en/api/errors) (checked on December 5, 2026) defines `529 overloaded_error` as "The API is temporarily overloaded" and notes that it can happen when the API sees high traffic across all users. The response body follows the usual Claude API error shape, with `"type": "error"` at the top and an `error` object whose `type` is `overloaded_error`.

In Claude Code, the full message reads:

```text
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.
```

The [Claude Code error reference](https://code.claude.com/docs/en/errors) (checked on December 5, 2026) adds two points that matter in practice:

- A 529 "is not your usage limit and doesn't count against your quota."
- Capacity is tracked per model. Switching to a different model usually lets you keep working right away. When one model is under particularly heavy load, Claude Code says so directly, for example `Opus is experiencing high load, please use /model to switch to Sonnet`.

## 529 vs 429: overloaded or rate limited?

The two codes look similar in a log, but they have opposite causes. A 429 is about you; a 529 is about everyone.

| | 429 Rate limit | 529 Overloaded |
|---|---|---|
| Anthropic `error.type` | `rate_limit_error` | `overloaded_error` |
| Cause | Your organization or key hit a rate limit or spend cap, or usage ramped up too sharply | The model is at capacity for all users |
| Claude Code message | `API Error: Request rejected (429) · this may be a temporary capacity issue...` | `API Error: Repeated 529 Overloaded errors. The API is at capacity...` |
| Counts against your quota? | Yes, it is your limit | No |
| What helps | Fewer parallel requests or subagents, a higher tier, or checking which credential is active | Waiting, checking status, switching models |

Sources: [Claude API errors](https://platform.claude.com/docs/en/api/errors) and [Claude Code errors](https://code.claude.com/docs/en/errors), both checked on December 5, 2026. For 401, 402, 404, timeout, and network errors, see the companion guide to [Claude Code API error codes](https://goiapi.com/en/blog/claude-code-api-error).

## Is Claude down right now? Check the status page

Before changing anything, find out whether the problem is widespread:

- **Anthropic API or a Claude plan (Pro, Max):** check [status.claude.com](https://status.claude.com). Claude Code points to this page in both its 529 and 5xx messages. On Amazon Bedrock, Google Cloud, or a custom base URL, the message names that service or host instead.
- **Through GoiAPI:** check the [GoiAPI status page](https://goiapi.com/en/status). It shows uptime for each model over 24 hours, 30 days, and 90 days, plus time to first byte, all measured from real customer requests. The "Current" column covers roughly the last two hours. Because overload is per model, look at the row for the exact model you are calling.

If the status page shows an incident, retrying harder will not help. Switch models or wait it out.

## How to fix the 529 overloaded error in Claude Code

### 1. Let the automatic retries finish

Claude Code retries transient failures up to 10 times with exponential backoff before it shows you an error. Server errors, overloaded responses, timeouts, and temporary 429 throttles are all retried when they arrive before any of the response has streamed. While it waits, the spinner shows a `Retrying in Ns · attempt x/y` countdown, and once the reason is identified as a 529, the line underneath names where to check service status ([Claude Code errors](https://code.claude.com/docs/en/errors), checked on December 5, 2026).

For 529s specifically, Claude Code can give up sooner than the full 10 attempts. The [environment variables reference](https://code.claude.com/docs/en/env-vars) (checked on December 5, 2026) gives an example: with an API key on an Opus model, it stops at the third 529 and shows the "Repeated 529 Overloaded errors" message. If you have configured a fallback model, it switches to that model instead of showing the error.

So when the error appears, the retries have already happened. Hammering Enter is unlikely to work in the next few seconds.

### 2. Switch to another model with /model

Because capacity is tracked per model, switching is usually the quickest way to keep working. In an open session:

- Type `/model <name>` to switch immediately, or `/model` on its own to open the picker.
- Typing `/model <name>` **also saves that model as your default** for new sessions. To switch for the current session only, open the picker with `/model` and press `s` on the model's row. Pressing `Enter` in the picker switches and saves.
- If you launched Claude Code with `ANTHROPIC_MODEL` set, the next launch goes back to that variable's model.

These details come from Claude Code's [model configuration docs](https://code.claude.com/docs/en/model-config), checked on December 5, 2026.

### 3. Set a fallback model chain

The `--fallback-model` flag tells Claude Code to switch automatically when the primary model is overloaded or unavailable. It takes a comma-separated list that is tried in order. The example from the [CLI reference](https://code.claude.com/docs/en/cli-reference) (checked on December 5, 2026):

```bash
claude --fallback-model sonnet,haiku
```

How fallback chains behave, per the [model configuration docs](https://code.claude.com/docs/en/model-config) (checked on December 5, 2026):

- A switch happens only when the primary model is overloaded, unavailable, or returns another non-retryable server error. Authentication, billing, **rate-limit**, request-size, and transport errors never trigger a switch.
- The switch lasts for the current turn only. Your next message tries the primary model first again.
- Chains are capped at three models. To keep a chain across sessions, set `fallbackModel` as an array in your settings file. The `--fallback-model` flag overrides that setting.
- Claude Code does not confirm the chain at startup, and `/status` does not show it. The notice shown when a switch happens is the first sign it is configured.

The aliases `sonnet` and `haiku` resolve to Anthropic model names. If you use Claude Code through a gateway, use the model names that gateway lists. On GoiAPI, for example, that means names from the [pricing page](https://goiapi.com/en/pricing) such as `claude-haiku-5-5`. Also note that GoiAPI reports an overloaded model as a `429` with type `rate_limit_error` (more on that below), and rate-limit errors never trigger a fallback, so switching with `/model` is the more dependable route there.

### 4. Tune retries with environment variables

These variables control how Claude Code retries. Defaults and limits are from the [Claude Code errors page](https://code.claude.com/docs/en/errors), checked on December 5, 2026:

| Variable | Default | What it does |
|---|---|---|
| `CLAUDE_CODE_MAX_RETRIES` | 10 | Number of retry attempts, capped at 15. Lower it so scripts fail faster. With `CLAUDE_CODE_RETRY_WATCHDOG` set (v2.1.199 or later), the cap no longer applies. |
| `CLAUDE_CODE_RETRY_WATCHDOG` | unset | Set to `1` for unattended sessions such as CI jobs, so Claude Code keeps retrying `429` and `529` capacity errors past `CLAUDE_CODE_MAX_RETRIES`. |
| `CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS` | unset | With the watchdog on, the longest each request waits out `429` and `529` errors. Unset means no limit. Requires v2.1.295 or later. |
| `CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS` | 500 | Starting backoff delay (ms) between retries of a 529, up to 32000. No effect when the watchdog is on. Requires v2.1.292 or later. |
| `CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS` | 32000 | Maximum backoff delay (ms) between retries of a 529, up to 300000 (values above 64000 need v2.1.323 or later). No effect when the watchdog is on. Requires v2.1.296 or later. |

Set them in your shell for a single session:

```bash
# macOS / Linux
export CLAUDE_CODE_RETRY_WATCHDOG=1
export CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS=600000
claude -p "run the test suite and summarize failures"
```

```powershell
# Windows PowerShell
$env:CLAUDE_CODE_MAX_RETRIES = "5"
claude
```

To apply them no matter how `claude` is launched, add them under the `env` key in `~/.claude/settings.json`. Claude Code reads that file directly, and when a variable is set in both your shell and the settings file, the settings file usually wins ([environment variables reference](https://code.claude.com/docs/en/env-vars), checked on December 5, 2026):

```json
{
  "env": {
    "CLAUDE_CODE_MAX_RETRIES": "5"
  }
}
```

A practical rule: if you are at the keyboard, switching models is usually faster than waiting through longer retries. Reserve the watchdog for jobs nobody is watching.

### 5. When the error arrives mid-response

Sometimes the overload hits after Claude has already completed a block of text or a tool call. Claude Code does not re-run the request in that case, because doing so could execute the same tool calls twice. It keeps what was completed, runs any finished tool calls, continues the turn from their results, and shows:

```text
API Error: Server error mid-response. The response above may be incomplete.
```

This variant requires Claude Code v2.1.199 or later; older versions discarded the partial output ([Claude Code errors](https://code.claude.com/docs/en/errors), checked on December 5, 2026). Send another message such as "continue" once the model is responding again, or switch models first.

## What overload looks like through GoiAPI

GoiAPI never returns HTTP `529`. According to the [GoiAPI error codes](https://goiapi.com/en/docs/error-codes) and [streaming](https://goiapi.com/en/docs/streaming) docs (checked on December 5, 2026), how an overload reaches you depends on whether the request streams.

**Non-streaming requests** get a status code and message right away:

| Situation | HTTP | Anthropic-format `error.type` | Message |
|---|---|---|---|
| The model is overloaded | `429` | `rate_limit_error` | `The model is overloaded. Please try again in a few minutes.` |
| The model is temporarily not responding | `503` | `overloaded_error` | `The model is temporarily not responding. Please try again later. Support ID: {requestId}` |

The overload `429` includes a `Retry-After` header with the number of seconds to wait. The support ID in the `503` message matches the `x-request-id` response header; send it to [support](https://goiapi.com/en/contact) if you need a request looked up.

**Streaming requests** behave differently, and this is the case Claude Code users run into, because Claude Code streams its responses. With `"stream": true`, the `200` headers are sent right away, before the model starts answering. An overload that happens after that arrives as an `error` event inside the stream rather than as a 429 or 503 status, and there is no `Retry-After` header. In the Anthropic format it looks like this:

```text
event: error
data: {"type":"error","error":{"type":"overloaded_error","message":"…"}}
```

In the OpenAI format, a mid-stream error arrives as a data chunk carrying an `error` object instead. Per the GoiAPI docs, Claude Code and Anthropic's SDKs retry both the `429` and the `503` automatically.

## Does a 529 error cost money?

**On a Claude plan (Pro, Max):** no. A 529 does not count against your quota ([Claude Code errors](https://code.claude.com/docs/en/errors), checked on December 5, 2026).

**On GoiAPI:** a failed request that returns no content is not charged, except a request you cancel yourself. One exception applies to streaming: if part of the answer was already delivered when the request stopped, you pay for the tokens used up to that point (input plus the output generated so far), subject to the minimum charge per request. These rules are in the [error codes docs](https://goiapi.com/en/docs/error-codes) and the [billing policy](https://goiapi.com/en/refund-policy), checked on December 5, 2026. The **Request history** page in the dashboard shows the token count and cost of every request, so you can check exactly what an interrupted call used.

## Handling overloaded errors in your own code

If you call Claude from your own code with the Anthropic SDK, the [Claude API errors page](https://platform.claude.com/docs/en/api/errors) (checked on December 5, 2026) gives the rules:

- By default the SDK retries a failed request up to two times (three attempts in all). Change it with `max_retries` in Python (`maxRetries` in TypeScript); `0` turns retries off.
- Without an `x-should-retry` header, the SDK retries connection errors, timeouts, and statuses 408, 409, 429, and 500 and above. If the response has a `retry-after` header, it waits that long; otherwise it backs off exponentially from 0.5 to 8 seconds.
- The SDK does not retry an error that arrives inside a stream. You have to catch it yourself.
- SDK exception classes follow the HTTP status, not `error.type`. In the docs' words, "A 503 with `overloaded_error` counts as a 5xx, not as a 529." To handle overloads by type, check the error's `type` field.

Here is a minimal Python pattern that treats overloads the same way across the 529, 503, 429, and mid-stream cases, and switches to a second model when the first one stays busy. It uses GoiAPI's Anthropic-format base URL, `https://api.goiapi.com` (no `/v1`), as described in the [Anthropic SDK integration guide](https://goiapi.com/en/docs/integrations/anthropic-sdk):

```python
import anthropic

client = anthropic.Anthropic(
    api_key="sk-...",
    base_url="https://api.goiapi.com",
    max_retries=2,
)

OVERLOAD_TYPES = {"overloaded_error", "rate_limit_error"}

def ask(prompt, models=("claude-opus-5-5", "claude-haiku-5-5")):
    last_error = None
    for model in models:
        try:
            with client.messages.stream(
                model=model,
                max_tokens=1024,
                messages=[{"role": "user", "content": prompt}],
            ) as stream:
                return stream.get_final_message()
        except anthropic.APIStatusError as e:
            body = e.body if isinstance(e.body, dict) else {}
            err_type = (body.get("error") or {}).get("type")
            if e.status_code in (429, 503, 529) or err_type in OVERLOAD_TYPES:
                last_error = e
                continue  # this model is busy, try the next one
            raise
    raise last_error
```

A note on `rate_limit_error`: on GoiAPI it can mean an overloaded model, but it can also mean your key's per-minute limit or a spending limit you set. Read the message, and respect `x-should-retry: false`, which GoiAPI sends on spending-limit errors because retrying right away will not help ([error codes](https://goiapi.com/en/docs/error-codes), checked on December 5, 2026).

## Which model to switch to when Claude is overloaded

With one GoiAPI key, you can move to a different model by changing the model name only. Prices below are per 1M tokens, from the [GoiAPI pricing page](https://goiapi.com/en/pricing), checked on December 5, 2026:

| Model | Model name | Input | Output | Ran in Claude Code? |
|---|---|---|---|---|
| Claude Haiku 5.5 | `claude-haiku-5-5` | $0.0221 | $0.1105 | Yes, December 3, 2026 |
| DeepSeek V4 Pro | `deepseek-v4-pro-0813` | $0.144144 | $0.432432 | Yes, December 3, 2026 |
| GLM 5.3 | `glm-5.3` | $0.144144 | $0.432432 | Yes, December 3, 2026 |
| Claude Opus 5.5 (for reference) | `claude-opus-5-5` | $0.442 | $2.21 | |

On December 3, 2026 we ran Claude Code against each of the first three models by setting `ANTHROPIC_MODEL` and sending one short prompt in `-p` mode; all three answered. That was a short smoke test, not a long editing session.

- **[Claude Haiku 5.5](https://goiapi.com/en/models/claude-haiku-5-5)** is still Claude, which makes it the natural stand-in for small jobs: editing a few lines, explaining code, writing a commit message.
- **[DeepSeek V4 Pro](https://goiapi.com/en/models/deepseek-v4-pro-0813)** and **[GLM 5.3](https://goiapi.com/en/models/glm-5.3)** can take on bigger tasks. Anthropic states in its [LLM gateway docs](https://code.claude.com/docs/en/llm-gateway) (checked on December 5, 2026) that it doesn't support using Claude Code with non-Claude models through any gateway, so treat this as a workaround you choose at your own discretion. The setup and the warnings you may see are covered in [Claude Code Router: Use GPT, DeepSeek and GLM Models](https://goiapi.com/en/blog/claude-code-router).

To estimate what a switch would cost for your workload, plug your token counts into the [API cost calculator](https://goiapi.com/en/tools/cost-calculator). For a full breakdown of Claude prices, see [Claude API pricing](https://goiapi.com/en/blog/claude-api-pricing).

## Should you stay on a Claude plan or use an API key?

An API key does not make overloads disappear. When a model is at capacity, you still get an error and still have to wait or switch models, wherever you call it from. If you already have a Pro or Max plan with quota left, signing in with your claude.ai account is enough, since 529s do not count against that quota.

A pay-per-token key fits when you want to pay only for the tokens you use and move between models from several makers with the same key. If that is your situation, compare the two options in [Claude Code Max vs API](https://goiapi.com/en/blog/claude-code-max-vs-api-cost).

## FAQ

### What is the difference between a 529 and a 429 error in Claude?

A 429 (`rate_limit_error`) means your own organization or key hit a limit. A 529 (`overloaded_error`) means the model is at capacity for all users. Through GoiAPI there is no 529: non-streaming requests get a `429` with "The model is overloaded" or a `503` with `overloaded_error`, and streaming requests such as Claude Code's get an `error` event inside the stream.

### How long does the Claude 529 overloaded error last?

There is no fixed duration. Anthropic describes it as temporary and Claude Code suggests trying again in a few minutes. If status.claude.com shows an active incident, it can last longer, so switching models is usually the quicker way to keep working.

### Does a 529 error count against my Claude usage limit?

No. Claude Code's error reference says a 529 is not your usage limit and doesn't count against your quota.

### Can I make Claude Code retry more times?

Yes. Set `CLAUDE_CODE_MAX_RETRIES` (default 10, capped at 15), or set `CLAUDE_CODE_RETRY_WATCHDOG=1` for unattended runs, which keeps retrying 429 and 529 capacity errors past that limit. You can cap the watchdog's wait with `CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS`.

### Will --fallback-model catch every overload?

It catches overloaded, unavailable, and non-retryable server errors, but never rate-limit errors. The switch also lasts only for the current turn. If your gateway reports overloads as 429 `rate_limit_error`, as GoiAPI does, switch manually with `/model`.

### Am I charged for a failed overloaded request?

On a Claude plan, a 529 does not use your quota. On GoiAPI, a failed request that returns no content is not charged unless you cancel it yourself; if part of a streamed answer was delivered before it stopped, the tokens used up to that point are charged.

### Why does Claude Code say "Opus is experiencing high load"?

Capacity is tracked per model, and Claude Code shows that prompt when one model is under particularly heavy load. Run `/model` and pick another model to continue.

## Get started with GoiAPI

1. [Create an account](https://goiapi.com/en/signup) and generate an API key in the dashboard.
2. Top up with USDT (TRC20 or BEP20) or Binance Pay. No credit card and no monthly fee. Top-ups are final and non-refundable, so only add what you plan to use.
3. Point Claude Code at GoiAPI by setting `ANTHROPIC_BASE_URL` to `https://api.goiapi.com` and `ANTHROPIC_AUTH_TOKEN` to your key, as shown in the [Claude Code setup guide](https://goiapi.com/en/docs/integrations/claude-code). For OpenAI-format tools, use `https://api.goiapi.com/v1` instead. The [quickstart](https://goiapi.com/en/docs/quickstart) covers your first request.

When a model is overloaded, check its row on the [status page](https://goiapi.com/en/status) and switch to another model name on the same key.
