CLAUDE_CODE_RETRY_WATCHDOG_END_AT_ADMIN_LIMIT
Updated by Alex Sorokoletov
CLAUDE_CODE_RETRY_WATCHDOG_END_AT_ADMIN_LIMIT is a Claude Code environment variable. Added in v2.1.334 and still present in v2.1.336. It is not in the official reference.
| Status | Present in v2.1.336 |
|---|---|
| Added | Added in v2.1.334 |
| Category | Network and proxy |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_RETRY_WATCHDOG_END_AT_ADMIN_LIMIT=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_RETRY_WATCHDOG_END_AT_ADMIN_LIMIT": "<value>"
}
}Related variables
CLAUDE_CODE_RETRY_WATCHDOG_MAX_SUBAGENT_MODEL_LIMIT_WAIT_MS: Caps how long a subagent waits at some usage limits so unattended retry mode can end the wait instead of sleeping until the limit resets.[1].CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS: Bounds how long unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) waits for a usage-limit reset.CLAUDE_CODE_RETRY_WATCHDOG_USAGE_LIMIT_RECHECK_MS: Governs how unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) rechecks a usage limit that was lifted before its reset, so a headless run can resume once the limit clears.CLAUDE_CODE_RETRY_WATCHDOG: Tunes the retry watchdog that detects API calls silently looping without progress.CLAUDE_CODE_RETRY_WATCHDOG_MAX_WAIT_MS: Caps the total time unattended retry mode (CLAUDE_CODE_RETRY_WATCHDOG) waits through 429 and 529 responses.CLAUDE_CODE_RETRY_WATCHDOG_SCOPE: Read alongside CLAUDE_CODE_RETRY_WATCHDOG.CLAUDE_CODE_DISABLE_REFUSAL_RETRY: Turns off the automatic retry Claude Code attempts after a flag.CLAUDE_CODE_OVERLOADED_RETRY_BASE_DELAY_MS: Sets the base delay, in milliseconds, for the backoff when a request comes back overloaded (HTTP 529).
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_RETRY_WATCHDOG_END_AT_ADMIN_LIMIT?
Added in v2.1.334 and still present in v2.1.336.
How do I set CLAUDE_CODE_RETRY_WATCHDOG_END_AT_ADMIN_LIMIT?
Export it before starting Claude Code (export CLAUDE_CODE_RETRY_WATCHDOG_END_AT_ADMIN_LIMIT=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.