anthropic Claude Code Releases · · 2.1.266

Anthropic Claude-code v2.1.266 Fixes LLM Gateway Regression

sdkaiengineer
patch

Anthropic has released Claude-code v2.1.266 to resolve a regression introduced in version 2.1.265. The patch addresses an issue where the undocumented `CLAUDE_CODE_USE_GATEWAY` environment variable incorrectly forced Cloud-gateway sign-in. This prevented users with LLM-gateway and proxy setups that combined this variable with an API key or custom authentication headers from successfully making requests. The variable now correctly defaults to being ignored when set alone, requiring no configuration changes from affected users.

Fixes (1)
  • 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

Read the original announcement →

https://github.com/anthropics/claude-code/releases/tag/v2.1.266

Related releases