Anthropic Claude-code v2.1.266 Fixes LLM Gateway Regression
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
https://github.com/anthropics/claude-code/releases/tag/v2.1.266
Related releases
- Anthropic Releases Claude Code v2.1.265 with Bug Fixes and Improvements Claude Code Releases ·
- Anthropic Claude Code v2.1.263 Delivers Bug Fixes and Reliability Claude Code Releases ·
- Anthropic Python SDK v1.4.0 Adds Usage Reporting Details and Compliance Settings Anthropic Python SDK Releases ·
- Claude Code v2.1.261 Enhances Diagnostics, Output Limits, and Fixes Bugs Claude Code Releases ·
- ant CLI v1.30.0 adds `apply` command for managing Claude resources as code Claude Platform Release Notes ·
- Anthropic Claude Code v2.1.260 Introduces Diff Panel and Numerous Fixes Claude Code Releases ·