Claude Code 2.1.266: how one undocumented env var broke every gateway request
ClaudeCodeLog · x · 2026-09-09
The full changelog for Claude Code CLI 2.1.266 contains one fix: in 2.1.265, the undocumented CLAUDECODEUSEGATEWAY env var—previously only honored when both ANTHROPICBASEURL and ANTHROPICAUTHTOKEN were set—began forcing Cloud-gateway sign-in on its own. Setups pairing it with an API key, apiKeyHelper, or custom auth headers failed every request with "Not signed in to the Cloud gateway". 2.1.266 restores the old behavior; no configuration change needed.
Related event: Claude Code 2.1.266 Fixes Gateway Configuration Regression(3 posts)→
More from coding & agent
- Dev training a guard model to block prompt injection, tool and memory poisoning — gnukeith · 2026-10-27
- SF 'Code Engineering' event picks up where 1,000-person harness engineering meetup left off — LangChain · 2026-10-27
- Prompt turns Claude Code into an iPhone backup forensics tool exposing 30-day 'deleted' photo copies — alex_verem · 2026-10-27
- Prompt turns Claude Code into a forensics tool finding deleted iPhone photos in backups — alex_verem · 2026-10-27
- Phones won't be mobile IDEs but control planes for agent fleets, argues Yuchen Jin — Yuchenj_UW · 2026-10-27
- FrontierCS 2 launches on Kaggle: 48 tasks make agents beat published CS papers — MeganRisdal · 2026-10-27