How do I set Claude Code's overloaded retry delay with `CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS`?
Claude Code 2.1.292 adds CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS for longer 529 retry backoff: default 500 ms, range 500 to 32000. 529 ≠ 429.
From Claude Code 2.1.292, you can set a longer base delay for the backoff when retrying an overloaded (529) request with CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS. As of 2026-10-22, the official env-vars page lists it: the default starting delay is 500 ms, and it accepts whole milliseconds from 500 to 32000. This is not the same knob as plan 429 / usage rate limits (see How do I manage Claude Code rate limits?).
TL;DR: Env
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS· purpose = longer base delay for 529 overloaded retry backoff · floor 2.1.292 · default 500 ms, range 500 to 32000, plain digits · ignored whenCLAUDE_CODE_RETRY_WATCHDOG=1· 529 ≠ 429. Checked 2026-10-22.
What 2.1.292 added
Use this when Claude Code is retrying after an overloaded (529) response and you want a longer base backoff delay than the built-in default of 500 ms. The CHANGELOG only says you can set a longer base delay; the default comes from the env-vars page.
The Claude Code CHANGELOG entry for 2.1.292 includes this bullet (verbatim):
Added
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MSenvironment variable to set a longer base delay for the backoff when retrying an overloaded (529) request
Facts that bullet supports, and no more:
- Exact env name:
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS - Purpose: set a longer base delay for backoff when retrying an overloaded (529) request
- Shipped in 2.1.292
The CHANGELOG does not give a numeric default, range or calendar ship date. The env-vars row does: it is the "starting delay in milliseconds, in place of the default 500", and you "give whole milliseconds from 500 to 32000 in plain digits; Claude Code treats any other value as unset". It has no effect when CLAUDE_CODE_RETRY_WATCHDOG is 1, or for a request sent in fast mode.
How to set CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS
Shell, before launching claude:
export CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS=2000 # example: whole ms, 500 to 32000, default 500
claude
Settings file, using the generic env key documented for any variable on the env-vars page:
{
"env": {
"CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS": "2000"
}
}
Use ~/.claude/settings.json for yourself, or managed settings for org-wide. Anthropic's docs don't say whether project .claude/settings.json may set this env, so prefer shell, user, or managed settings until they do.
Relaunch. Shell exports always need a new claude process. Settings env often reapplies on save, but the docs don't say whether this one is startup-only, so relaunch to be sure.
Check claude --version. You need 2.1.292 or later.
The Claude moves worth stealing, by email
Workflows tested on real jobs, sent only when they are worth it. Free.
What the docs say now
Rechecked 2026-10-22:
| Source | What it says |
|---|---|
| CHANGELOG 2.1.292 | Adds CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS for longer base delay on overloaded (529) retry backoff |
| env-vars | Base delay: default 500 ms, 500 to 32000, v2.1.292+. Max delay: default 32000 ms, 32000 to 64000, v2.1.296+. Both plain digits, both ignored when CLAUDE_CODE_RETRY_WATCHDOG is 1 |
Other retry wording on the same docs page, such as CLAUDE_CODE_MAX_RETRIES or CLAUDE_CODE_RETRY_WATCHDOG, is not this variable. It controls how many retries happen or how long they keep going, not the delay between them. That watchdog got its own max-wait cap in the Claude Code 2.1.295 release.
If the env-vars row changes, follow the live docs over this page.
2.1.296: cap the maximum delay too
Claude Code 2.1.296 adds a sibling variable. The CHANGELOG bullet (verbatim):
Added
CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MSenvironment variable to set a longer maximum delay for the backoff when retrying an overloaded (529) request
So the base env (2.1.292) lengthens where the 529 backoff starts, and CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS (2.1.296) lets the backoff grow to a longer ceiling. Set both the same way:
{
"env": {
"CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS": "2000",
"CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS": "64000"
}
}
The env-vars page gives the built-in maximum as 32000 ms and accepts whole milliseconds from 32000 to 64000. Since the base range tops out where the max range starts, a valid base can't exceed a valid max. You need 2.1.296 or later for the max-delay variable.
529 ≠ 429: a different guide covers rate limits
- 529 overloaded = capacity/overloaded response; this env lengthens the retry base delay for that backoff.
- 429 / plan usage limits = shared five-hour and weekly bars (and related ceilings). Manage those with
/usageand the habits in How do I manage Claude Code rate limits?. Optional context: Claude usage limits. - Other env guides cover different knobs: WebSearch refill · turn off WebFetch.
Setting this env does not raise plan usage limits or change 429 handling.
If you are hitting plan ceilings and seeing usage-limit messages rather than overloaded retries, fix the usage side first (/usage, wait for reset, or the habits in the rate-limits guide). Lengthening 529 backoff only helps when the failure mode is overloaded capacity retries.
Pitfalls
- Going out of range. A base under 500 or over 32000, or anything that isn't plain digits, reads as unset, so you silently get the 500 ms default.
- Setting it on a build older than 2.1.292. CHANGELOG first names it there.
- Expecting it to work with the watchdog. It has no effect when
CLAUDE_CODE_RETRY_WATCHDOGis set to1. - Treating the rate-limits guide as this knob. That page is 429 / plan usage; this page is 529 retry base delay.
- Looking for a slash command. None found in the 2.1.292 bullet.
FAQ
What's the exact variable name?
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS (CHANGELOG 2.1.292).
Is there a max-delay setting?
Yes, from 2.1.296: CLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MS sets a longer maximum delay for the same 529 backoff. Its default is 32000 ms, and it accepts 32000 to 64000.
What's the default value?
500 milliseconds, per the env-vars page. You can set whole milliseconds from 500 to 32000; any other value is treated as unset.
Is this for 429 rate limits?
No. It targets overloaded (529) retry backoff. For plan/rate-limit management, see the rate-limits guide.
Is it in the env-vars docs now?
Yes. As of 2026-10-22 the env-vars page has a row for it, with the 500 ms default and the 500 to 32000 range.
Sources (checked 2026-10-22)
- Claude Code CHANGELOG, entries 2.1.292 (base delay) and 2.1.296 (max delay)
- Environment variables,
CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MSandCLAUDE_CODE_OVERLOADED_RETRY_MAX_DELAY_MSrows
Related: Manage rate limits (429) · Usage limits · Managed settings · WebSearch refill · Turn off WebFetch
