# Claude Code 2.1.266

By Steven Van · 2026-09-08

A 2.1.265 regression broke Claude Code for LLM-gateway and proxy setups using API keys; 2.1.266 fixes it with no config changes required.

Claude Code **2.1.266** fixes a regression from 2.1.265 that broke LLM-gateway and proxy setups. The undocumented CLAUDE\_CODE\_USE\_GATEWAY variable, previously ignored unless ANTHROPIC\_BASE\_URL and ANTHROPIC\_AUTH\_TOKEN were both set, had started forcing Cloud gateway sign-in on its own, 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 is ignored again when set on its own. No configuration change is needed.

[![](<https://opengraph.githubassets.com/a01731b8d10147ce832d175b410a8dbad70f69cfed7ab4f2ff12f9ec46ec7377/anthropics/claude-code>)](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21266>)

![Claude Code](<https://claude.com/images/icon-512x512.png>)

Claude Code

Anthropic's agentic coding tool — Claude in your terminal, IDE, desktop app and browser, reading and editing your codebase, running commands, opening pull requests and working on tasks in the cloud.

[View Claude Code →](<https://creatorstoolbox.com/tools/claude-code>)

[Original source](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21266>)

[Read Claude Code 2.1.266 on Creators Toolbox](<https://creatorstoolbox.com/blog/claude-code-claude-code-2-1-266>)

---
Canonical source: https://creatorstoolbox.com/blog/claude-code-claude-code-2-1-266
