Search the documentation
6 pages for claude_code_max_retries.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…eAgentOptions( env={ "API_TIMEOUT_MS": "120000", "CLAUDE_CODE_MAX_RETRIES": "2", "CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS": "120000", }, ) ``` * `API_TIMEOUT_MS`: per-requ…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…env: { ...process.env, API_TIMEOUT_MS: "120000", CLAUDE_CODE_MAX_RETRIES: "2", CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS: "120000", }, }, }); ``` * `API_TIMEOUT_MS`: per-re…
Claude Code changelog
Claude Code CLI · in the page
changelog
…for non-capacity transient errors to 300 and lifts the cap of 15 on `CLAUDE_CODE_MAX_RETRIES` * `claude agents` session rows now show pull-request links as bare `#N` without the redundant "PR" labe…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_CODE_MAX_RETRIES` | Override the number of times to retry failed API requests (default: 10).…
Error reference
Claude Code CLI · in the page
errors
…specific reason from the third attempt, or on the final attempt when `CLAUDE_CODE_MAX_RETRIES` allows fewer than three; earlier versions switch only on the final attempt. As of v2.1.198, the usual sp…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…ttempt` attribute on the event records the total number of attempts. `CLAUDE_CODE_MAX_RETRIES` defaults to 10 and is capped at 15; as of v2.1.199, `CLAUDE_CODE_RETRY_WATCHDOG` raises the default and r…