Claude Code 2.1.266 Fixes a Regression That Broke Gateways and Proxies
CONFIRMED. Anthropic released Claude Code 2.1.266 to undo a regression introduced in the previous version: CLAUDE_CODE_USE_GATEWAY is ignored again when used on its own, preventing configurations with an API key, apiKeyHelper, or custom headers from being forced into Cloud gateway sign-in.
Por Redação MaxAssistant · September 8, 2026
[{"p":"CONFIRMED. Anthropic released Claude Code 2.1.266 on September 8, 2026, to fix a regression that made gateway and proxy configurations fail after the upgrade to version 2.1.265. This is not a new model or a flashy feature release. It is an operational fix, the kind that looks small until every request from a team starts failing."},{"h":"What broke and was undone","p":"In version 2.1.265, the undocumented environment variable CLAUDE_CODE_USE_GATEWAY began forcing Cloud gateway sign-in when it appeared on its own. That affected environments using an API key, an apiKeyHelper, or custom authentication headers. The result was a Not signed in to the Cloud gateway error on every request, even when the configuration was not meant to use that sign-in flow."},{"p":"Version 2.1.266 restores the previous behavior: the variable is ignored again when used alone. Anthropic’s official guidance says no configuration change is needed. The package is also published as version 2.1.266 in the npm registry, an independent signal that the distributed artifact matches the announced release."},{"h":"Why this matters in real work","p":"For companies running Claude Code behind an internal gateway, a corporate proxy, or a cost-control layer, this kind of regression is not a minor detail. It interrupts automations, blocks sessions, and can look like a credential, network, or identity problem. The larger cost is operational: teams spend hours changing variables that worked until the previous update."},{"p":"For Brazilian small and midsize companies, the benefit is less dramatic and more useful: the workflow can be recovered without redesigning the architecture. Teams that upgraded to 2.1.265 and saw this error should test 2.1.266 with the previous configuration instead of removing the variable blindly or switching providers. The release does not promise to fix every gateway incompatibility, only this specific regression."},{"h":"My read","p":"Update quickly if you use a gateway, proxy, or authentication outside Anthropic’s standard login. If you run Claude Code directly, the practical impact is close to zero. The counterpoint is that a one-fix release does not prove broad tool maturity. It shows something narrower but important: Anthropic identified a break introduced in its own release cycle and restored the expected behavior without requiring a configuration workaround."},{"h":"Sources","p":"Official GitHub release: https://github.com/anthropics/claude-code/releases/tag/v2.1.266. Official metadata and publication date: https://api.github.com/repos/anthropics/claude-code/releases/tags/v2.1.266. Independent registry record for the distributed package: https://registry.npmjs.org/@anthropic-ai%2fclaude-code/2.1.266. Gateway and authentication documentation: https://code.claude.com/docs/en/llm-gateway-connect."}]