Claude Discovery

← All discoveries

Retro Apple computers with keyboards displayed in a Tokyo store window, showcasing early tech design.
Photo by Derek Xing on Pexels
tool

Claude Code 2.1.265 Broke Gateway Auth, 2.1.266 Fixes It the Next Day

2026-09-09 ยท source:

Claude Code 2.1.266 fixes a 2.1.265 regression where the undocumented CLAUDE_CODE_USE_GATEWAY variable forced Cloud-gateway sign-in and broke setups using an API key, apiKeyHelper, or custom auth headers.

What it is

A same-week follow-up patch release for Claude Code, addressing a bug introduced by the immediately prior version.

What it does

Restores the old behavior where CLAUDE_CODE_USE_GATEWAY on its own is ignored unless ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN are also set. In 2.1.265 that variable started forcing Cloud-gateway sign-in by itself, which broke any proxy or gateway setup using an API key, apiKeyHelper, or custom auth headers with a "Not signed in to the Cloud gateway" error on every request.

Why it matters

Teams running Claude Code through an LLM gateway got a hard outage for a day from an env var nobody documented, a reminder that undocumented flags can still be load-bearing in production.

How to use it

Update to 2.1.266 or later; no configuration change is needed since the fix restores prior behavior automatically.

Go to source →
claude-coderegressionchangelog