Search the documentation
4 pages for api_timeout_ms.
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
…ClaudeAgentOptions options = ClaudeAgentOptions( env={ "API_TIMEOUT_MS": "120000", "CLAUDE_CODE_MAX_RETRIES": "2", "CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS": "120000", },…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…alyze this code", options: { env: { ...process.env, API_TIMEOUT_MS: "120000", CLAUDE_CODE_MAX_RETRIES: "2", CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS: "120000", }, }, });…
Environment variables
Claude Code CLI · in the page
env-vars
…<Tab title="macOS, Linux, WSL"> ```bash theme={null} export API_TIMEOUT_MS="1200000" claude ``` To set it for every session, add the `export` line to `~/.bashrc`, `~/.zshrc`, or…
Error reference
Claude Code CLI · in the page
errors
…`CLAUDE_CODE_MAX_RETRIES` if you set that variable explicitly. | | [`API_TIMEOUT_MS`](/docs/en/env-vars) | 600000 | Per-request timeout in milliseconds. Raise it for slow networks or pro…