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

91 pages for timeouts.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

bash-tool Claude Developer Platform · in the page agents-and-tools/tool-use/bash-tool …ted when a command hangs, then restarts the session. The [Use command timeouts](https://platform.claude.com/docs/en/agents-and-tools/tool-use/bash-tool#follow-implementation-best-practices) best pract… Process results programmatically Claude Developer Platform · in the page agents-and-tools/tool-use/programmatic-tool-calling …70s).", "return_code": 0, "content": [] } } ``` To prevent timeouts: * Monitor the `expires_at` field in responses. * Implement timeouts for your tool execution. * Consider breaking long o… errors Claude Developer Platform · in the page api/errors …live-HOWTO/programming.html) can reduce the impact of idle connection timeouts on some networks. The [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) validates that your… overview Claude Developer Platform · in the page api/overview …Built-in retry logic and error handling * Streaming support * Request timeouts and connection management For a list of client SDKs, see [SDKs, CLI, and libraries](https://platform.claude.com/docs/en/… extended-thinking Claude Developer Platform · in the page build-with-claude/extended-thinking …beyond 32k tokens produces long-running requests that can hit system timeouts and open-connection limits. To track what a budget actually costs you, monitor the `usage.output_tokens_details.thinking… mid-conversation-effort-example Claude Developer Platform · in the page build-with-claude/mid-conversation-effort-example …pose agent. Answer the user's request directly."; const int requestTimeoutSeconds = 600; const int bashTimeoutSeconds = 60; const int toolResultMaxChars = 8000; const int maxConcurrent = 10;… prompting-claude-fable-5 Claude Developer Platform · in the page build-with-claude/prompt-engineering/prompting-claude-fable-5 …hifts teams encounter when adjusting to Claude Fable 5. Adjust client timeouts, streaming, and user-facing progress indicators before migrating, and consider restructuring harnesses to check on runs a… streaming Claude Developer Platform · in the page build-with-claude/streaming …e `max_tokens` values, where the SDK requires streaming to avoid HTTP timeouts. <CodeGroup exclude="shell:cURL"> ```bash CLI # The ant CLI's --stream flag emits one event on each line and does no… thinking Claude Developer Platform · in the page build-with-claude/thinking …res streaming when `max_tokens` is greater than 21,333, to avoid HTTP timeouts on long-running requests. This is a client-side validation, not an API restriction. If you don't need to process events i… csharp Claude Developer Platform · in the page cli-sdks-libraries/sdks/csharp ….Messages.Create(parameters); Console.WriteLine(message); ``` ## Timeouts Requests time out after 10 minutes by default. To set a custom timeout, configure the client using the `Timeout` option… go Claude Developer Platform · in the page cli-sdks-libraries/sdks/go …ropic.ModelClaudeOpus5_5, }, option.WithMaxRetries(5), ) ``` ## Timeouts Non-streaming Messages requests time out after 10 minutes by default; other requests have no default timeout. Use contex… java Claude Developer Platform · in the page cli-sdks-libraries/sdks/java …hropicOkHttpClient.builder().fromEnv().maxRetries(4).build(); ``` ## Timeouts Requests time out after 10 minutes by default. However, for methods that accept `maxTokens`, if you specify a large `ma… php Claude Developer Platform · in the page cli-sdks-libraries/sdks/php …est Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, and timeouts are all retried by default. You can use the `maxRetries` option to configure or disable this: ```php use Anthropic\Requ… For Amazon Bedrock support Claude Developer Platform · in the page cli-sdks-libraries/sdks/python …"content": "Hello, Claude"}], model="claude-opus-5-5", ) ``` ## Timeouts By default requests time out after 10 minutes. You can configure this with a `timeout` option, which accepts a float or… Automatically handles tool execution loop Claude Developer Platform · in the page cli-sdks-libraries/sdks/ruby …est Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, and timeouts are all retried by default. You can use the `max_retries` option to configure or disable this: ```ruby # Configure the… typescript Claude Developer Platform · in the page cli-sdks-libraries/sdks/typescript …}], model: "claude-opus-5-5" }, { maxRetries: 5 } ); ``` ## Timeouts By default requests time out after 10 minutes. However, if you have specified a large `max_tokens` value and are *not* s… inference-hooks-endpoint Claude Developer Platform · in the page manage-claude/inference-hooks-endpoint …has responded, the exchange is never retried. ### Webhook failures Timeouts, non-200 statuses (redirects included), unparseable or oversized response bodies, and unreachable endpoints are all webho… api Claude Developer Platform · in the page manage-claude/opentelemetry/api …`408`, `429`, or `5xx` response. It doesn't retry other failures. * **Timeouts:** For each request, your endpoint must complete the TLS handshake within 5 seconds and send the response headers within… Configure your agent Claude Code CLI · in the page agent-sdk/configuration …ss reads, see [Environment variables](/docs/en/env-vars). To tune API timeouts and stall detection this way, follow the Handle slow or stalled API responses section in the [TypeScript reference](/docs… Intercept and control agent behavior with hooks Claude Code CLI · in the page agent-sdk/hooks …ssage stream saying the app driving the session didn't respond. Later timeouts don't repeat that message while your app stays unresponsive. If you interrupt the query while a callback is pending, Cla… Connect to external tools with MCP Claude Code CLI · in the page agent-sdk/mcp …rning, so none of that server's tools reached Claude. ### Connection timeouts MCP server connections time out after 30 seconds by default. To change how long a running tool call may take, set [`MCP_… Agent SDK reference - Python Claude Code CLI · in the page agent-sdk/python …e CLI subprocess reads several environment variables that control API timeouts and stall detection. Pass them through `ClaudeAgentOptions.env`: ```python theme={null} from claude_agent_sdk import Cla… Troubleshoot the Agent SDK Claude Code CLI · in the page agent-sdk/troubleshooting …s not being called, a tool missing from an SDK MCP server, connection timeouts, tool output that exceeds the maximum allowed tokens | [MCP troubleshooting](/docs/en/agent-sdk/mcp#troubleshooting) | |… Agent SDK reference - TypeScript Claude Code CLI · in the page agent-sdk/typescript …e CLI subprocess reads several environment variables that control API timeouts and stall detection. Pass them through the `env` option: ```typescript theme={null} import { query } from "@anthropic-ai… Claude Code changelog Claude Code CLI · in the page changelog …switch hooks when the provider is not Bedrock * Fixed sign-in refresh timeouts and unexpected sign-outs after a short command such as `claude auth status` or `claude plugin list` exited in the middle… Claude apps gateway configuration Claude Code CLI · in the page claude-apps-gateway-config …orwarding to your observability stack * [`access_control`, `limits`, `timeouts`, `rate_limits`](#http-tuning): IP allow/deny, request size caps, upstream time-to-first-byte, and per-IP sign-in limits… Claude apps gateway deployment and operations Claude Code CLI · in the page claude-apps-gateway-deploy …a `provider: anthropic` upstream, a request that waits longer than [`timeouts.upstream_ttfb_ms`](/docs/en/claude-apps-gateway-config#http-tuning) gives up on that upstream, and fails with a 502 when… Deploy Claude apps gateway on Google Cloud Claude Code CLI · in the page claude-apps-gateway-on-gcp …probe pointed at `GET /readyz` Attach a BackendConfig with a raised `timeoutSec` to the gateway Service: the load balancer backend service behind GKE Ingress defaults to a 30-second timeout, which cu… Use Claude Code in the cloud Claude Code CLI · in the page claude-code-on-the-web …me limits**: commands Claude runs and SessionStart hooks have default timeouts you can change, and a setup script is cached only when it finishes in roughly five minutes. See [Time limits](/docs/en/cl… Configure cloud environments Claude Code CLI · in the page cloud-environments …how to reopen a session whose VM was reclaimed. To raise the command timeouts for an environment's sessions, add [`BASH_DEFAULT_TIMEOUT_MS` and `BASH_MAX_TIMEOUT_MS`](/docs/en/env-vars#variables) to… Explore the context window Claude Code CLI · in the page context-window …en/sub-agents' }, { t: 0.825, kind: 'sub', label: 'Read timeouts.ts', tokens: 0, subTokens: 800, color: '#8A8880', vis: 'hidden', desc: "Another file read in the suba… Environment variables Claude Code CLI · in the page env-vars …files](#in-settings-files). ## Variables Numeric variables such as timeouts, token budgets, and retry counts accept scientific notation and digit-separator spellings in addition to plain digits, ex… Error reference Claude Code CLI · in the page errors …ork-config#streaming-idle-watchdogs), or [Long thinking ends in proxy timeouts](/docs/en/claude-apps-gateway-deploy#long-thinking-ends-in-proxy-timeouts) behind a Claude apps gateway | | `Server error… Claude Code GitHub Actions Claude Code CLI · in the page github-actions …-max-turns` in `claude_args` to limit iterations * Set workflow-level timeouts to avoid runaway jobs * Use GitHub's concurrency controls to limit parallel runs For usage tracking across your organiza… Hooks reference Claude Code CLI · in the page hooks …code. If your hook is meant to enforce a policy, use `exit 2`. #### Timeouts Apart from a command hook you run with [`async: true`](#run-hooks-in-the-background), Claude Code cancels a `command`, `… Automate actions with hooks Claude Code CLI · in the page hooks-guide …ext. HTTP hooks communicate through the response body instead. * Hook timeouts vary by type. Override per hook with the `timeout` field in seconds. * `command`, `http`, `mcp_tool`: 10 minutes. Claud… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …or. It doesn't retry authentication errors, 4xx responses, or request timeouts. #### Retry failed servers yourself To retry every server that failed or needs authentication, run `/mcp reconnect all`… Monitoring Claude Code CLI · in the page monitoring-usage …request with its response and remains available for failures such as timeouts that never produced a server `request_id`. Matches the same attribute on the `llm_request` trace span | To trace all act… Add components to a plugin Claude Code CLI · in the page plugins/components …ne in `.lsp.json`, the manifest server replaces it. For `transport`, timeouts, restarts, and the other fields, see [`lspServers`](/docs/en/plugins/manifest-reference#lspservers). Send log output to… Customize sessions in self-hosted environments Claude Code CLI · in the page self-hosted-environments-configuration …reads the child's activity signals from it to drive idle and startup timeouts. A plain `exec "$CLAUDE_RUNNER_CLAUDE_BIN" "$@"` preserves both automatically. If your wrapper backgrounds the child wit… Configure server-managed settings Claude Code CLI · in the page server-managed-settings …Terminal UI and accessibility options * Numeric limits, budgets, and timeouts Other delivered variables can require the user's approval before they take effect. For example, in interactive sessions… All settings Claude Code CLI · in the page settings-reference …* Variables Claude Code classifies as safe, such as model selection, timeouts and limits, and feature toggles: at startup from every settings file, apart from the [variables project and local setting… Week 18 · April 27 – May 1, 2026 Claude Code CLI · in the page whats-new/2026-w18 …irect to a local port doesn't work. The same release also fixes login timeouts on slow or proxied connections and in IPv6-only devcontainers. Sign in, then paste the code from the browser: ```bash t… Build your first MCP server for Claude Claude Documentation · in the page connectors/building/quickstart …'s client supports, including authentication, result size limits, and timeouts * [Test your connector](/docs/connectors/building/testing): add your hosted server to Claude as a custom connector and de… Changelog Claude Documentation · in the page cowork/changelog …and the PAC file wins when both are set. * Added `inferenceStreamIdleTimeoutSec`: how many extra seconds (300 to 1800, default 300) Chat, Cowork, and Code sessions wait for model output on a streamin… Available settings Claude Documentation · in the page government/config/settings …ngs > Config page settings in Claude for Government, such as session timeouts, network and folder access, tool approvals, connectors, plugins, telemetry, and updates. > **Who this is for:** Tenant a… Code in Claude Desktop on 3P Claude Documentation · in the page third-party/claude-desktop/code …tion; the Code session sees only the resulting tool list. | | `mcpToolTimeoutSec` | Applies your per-call MCP tool timeout to Code sessions as well, taking precedence over a user-set `MCP_TOOL_TIMEOUT… Configuration reference Claude Documentation · in the page third-party/claude-desktop/configuration …ts to `3600`. | | Credential helper timeout `inferenceCredentialHelperTimeoutSec` | `integer` | MDM + Bootstrap Added in 1.8089.0 | `60` | Maximum wait for the helper executable to finish. Raise this… Configuration changelog Claude Documentation · in the page third-party/claude-desktop/configuration-changelog …| MDM key | Type | Description | | - | - | - | | [`inferenceStreamIdleTimeoutSec`](/docs/third-party/claude-desktop/configuration#inferencestreamidletimeoutsec) | `integer` | Stream idle timeout | | [… Write a credential helper Claude Documentation · in the page third-party/claude-desktop/credential-helper …app was launched from the Dock or Finder rather than a terminal. ## Timeouts and caching The helper's output is cached for `inferenceCredentialHelperTtlSec` seconds (default 3600). Claude Desktop c…
Feedback