CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT
Updated by Alex Sorokoletov
CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT is a Claude Code environment variable. Added in v2.1.314 and still present in v2.1.332. It is not in the official reference.
| Status | Present in v2.1.332 |
|---|---|
| Added | Added in v2.1.314 |
| Category | Network and proxy |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT": "<value>"
}
}Related variables
CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTIONAPI_FORCE_IDLE_TIMEOUTCLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MSCLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUTCLAUDE_CODE_DISABLE_MEMORY_STREAM_LIST: Turns off the incremental metadata-streaming path inside multi-store memory sync.CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK: Disables the fallback path that retries failed streaming requests as non-streaming calls.CLAUDE_CODE_DISABLE_PROXY_SCHEME_REPAIRCLAUDE_CODE_DISABLE_REFUSAL_RETRY: When set, disables the automatic retry of a response that stopped with a refusal.
Frequently asked questions
Which Claude Code version has CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT?
Added in v2.1.314 and still present in v2.1.332.
How do I set CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT?
Export it before starting Claude Code (export CLAUDE_CODE_DISABLE_POOLED_CONNECTION_IDLE_LIMIT=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.