5 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`](/docs/e…
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`](/docs…
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
…The `attempt` attribute on the event records the number of attempts. `CLAUDE_CODE_MAX_RETRIES` defaults to 10 and is capped at 15; with [`CLAUDE_CODE_RETRY_WATCHDOG`](/docs/en/env-vars) set, the defau…