Search the documentation
4 pages for claude_code_api_key_helper_ttl_ms.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Authentication
Claude Code CLI · in the page
authentication
…apiKeyHelper` is called after 5 minutes or on HTTP 401 response. Set `CLAUDE_CODE_API_KEY_HELPER_TTL_MS` environment variable for custom refresh intervals. * **Slow helper notice**: if `apiKeyHelper`…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_CODE_API_KEY_HELPER_TTL_MS` | Interval in milliseconds at which credentials should be refreshed (when u…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…t when a request returns HTTP 401. To change the cache lifetime, set `CLAUDE_CODE_API_KEY_HELPER_TTL_MS` in milliseconds, for example `CLAUDE_CODE_API_KEY_HELPER_TTL_MS=900000` for 15 minutes. The he…
Claude Code settings
Claude Code CLI · in the page
settings
…: Bearer` headers for model requests. Set the refresh interval with [`CLAUDE_CODE_API_KEY_HELPER_TTL_MS`](/docs/en/env-vars)…