{"name":"API_FORCE_IDLE_TIMEOUT","slug":"api-force-idle-timeout","family":"env","title":"Environment variables","noun":"environment variable","description":"Override the 5-minute body idle timeout that aborts a streaming model response when no bytes arrive. Set to `0` to turn the timeout off, for example when a slow [gateway](\/docs\/en\/llm-gateway) or local model pauses longer than 5 minutes between chunks, or `1` to keep it on for every provider. When unset, the timeout is active on providers other than the direct Anthropic API and [Claude Platform on AWS](\/docs\/en\/claude-platform-on-aws). The [stream watchdogs](\/docs\/en\/network-config#streaming-idle-watchdogs) run independently of it and abort a long silent pause even when you set `0` here","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":{"version":"2.1.295","released_at":"2026-10-08 18:22:58","spans":1}},"aliases":[],"entries":[{"version":"2.1.295","anchor":"http-idle-timeout-can-be-set-by-a-new-bodyidletimeout-option","heading":"API_FORCE_IDLE_TIMEOUT now overrides a new option for the stalled-response timeout","line":"If set, `API_FORCE_IDLE_TIMEOUT` decides whether stalled model responses time out; otherwise a new option called `bodyIdleTimeout` decides","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text, named in this entry"}],"entries_total":1,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true},{"source":"claude-code","path":"network-config","title":"Enterprise network configuration","documented":false},{"source":"claude-code","path":"server-managed-settings","title":"Configure server-managed settings","documented":false}],"docs_total":3,"gates":[],"related":[{"name":"API_MAX_INPUT_TOKENS","slug":"api-max-input-tokens","description":null},{"name":"API_TARGET_INPUT_TOKENS","slug":"api-target-input-tokens","description":null},{"name":"API_TIMEOUT_MS","slug":"api-timeout-ms","description":"Timeout for API requests in milliseconds (default: 600000, or 10 minutes; maximum: 2147483647). Increase this when requests time out on slow networks or when routing through a proxy. Values above the maximum overflow the underlying timer and cause requests to fail immediately"},{"name":"API_TOKEN","slug":"api-token","description":null}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/api-force-idle-timeout","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}