← Claude Code changelog
Claude Code 2.1.266
A critical regression fix for users leveraging LLM-gateway and proxy setups. This update resolves an issue where the CLAUDE_CODE_USE_GATEWAY environment variable, when present on its own, mistakenly forced Cloud-gateway sign-in. This behavior previously caused authentication failures, displaying 'Not signed in to the Cloud gateway' for configurations using API keys or custom auth headers. The fix restores the variable's intended behavior, ignoring it without explicit Cloud-gateway credentials and requiring no user configuration changes.
Fixed
- Fixed a 2.1.265 regression affecting LLM-gateway and proxy setups: the undocumented `CLAUDE_CODE_USE_GATEWAY` environment variable, previously ignored unless `ANTHROPIC_BASE_URL` and `ANTHROPIC_AUTH_TOKEN` were both set, began forcing Cloud-gateway sign-in on its own in 2.1.265, so configurations that set it alongside an API key, `apiKeyHelper`, or custom auth headers failed every request with "Not signed in to the Cloud gateway". The variable on its own is ignored again; no configuration change is needed