Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.308 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

7 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", }, }, });… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …s out of memory is killed and drops every stream it holds. ### Keep `API_TIMEOUT_MS` above the gateway's time to first byte If you lower [`API_TIMEOUT_MS`](/docs/en/network-config#streaming-idle-wat… Desktop application Claude Code CLI · in the page desktop …riables itself](#environment-variables-desktop-sets-itself), such as `API_TIMEOUT_MS`, and your sessions get its value for those instead of yours. > [!NOTE] > > If your environment selector is above… 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 …md#handle-rate-limits). Requires Claude Code v2.1.296 or later. | | [`API_TIMEOUT_MS`](/docs/en/env-vars) | 600000 | Time in milliseconds that each request attempt has to receive its response headers.… Enterprise network configuration Claude Code CLI · in the page network-config …t fires, unless you turned that timeout off. To end it sooner, lower `API_TIMEOUT_MS`. | Timer | Aborts when | Runs on | Default timeout | | :- | :- | :- | :- | | First-byte deadline | No response he…
Feedback