Follow Discord
Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.266 ·

CLAUDE_CODE_USE_GATEWAY no longer selects gateway auth mode directly

Setting CLAUDE_CODE_USE_GATEWAY alone no longer switches Claude Code into gateway auth mode

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal3worth watching, 1 to 5
AreaCloud Gatewaywhat it touches
KindRemovedin v2.1.266,
You'll notice

Setting CLAUDE_CODE_USE_GATEWAY alone no longer switches Claude Code into gateway auth mode

What

Claude Code picks an authentication provider internally, such as bedrock, vertex, mantle, firstParty or gateway. Previously, if none of the other provider settings matched, having the CLAUDE_CODE_USE_GATEWAY environment variable set was enough on its own to fall back to gateway mode. That fallback branch has been removed.

Why

Setting CLAUDE_CODE_USE_GATEWAY by itself will no longer cause Claude Code to use the Cloud gateway; anyone relying on that variable alone to select gateway mode should check what else is now required.

Read from
Names in the bundleCLAUDE_CODE_USE_GATEWAY
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtthe finding doesn't say what, if anything, now determines gateway mode instead, or whether another condition must accompany this variable
Anthropic's release notes agreeFixed a 2.1.265 regression affecting LLM-gateway and proxy setups: the undocumented CLAUDE_CODE_USE_GATEWAY environment variable, previously…

See this entry in the whole of v2.1.266 →

Feedback