You'll notice
The gateway token can come from a stored descriptor or snapshot when ANTHROPIC_AUTH_TOKEN is unset, with a clearer warning.
The gateway auth check now also accepts a token from a stored gateway descriptor or snapshot when ANTHROPIC_AUTH_TOKEN isn't set. The resulting warning is also more specific, distinguishing a missing base URL from a missing token.
Names in the bundleANTHROPIC_AUTH_TOKEN
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added since
A small documentation edit on Authentication touched a line naming ANTHROPIC_AUTH_TOKEN after this was published.
[Cloud sessions](/docs/en/claude-code-on-the-web) always use your subscription credentials. If you set `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` in the cloud environment, it doesn't override your subscription credentials.authentication see the edit
Confirmed since
Anthropic's documentation has since written up ANTHROPIC_AUTH_TOKEN, on Connect Claude Code to an LLM gateway.
* **Amazon Bedrock, Google Cloud's Agent Platform, or Claude Platform on AWS**: add `ANTHROPIC_AUTH_TOKEN` after the block. Claude Code sends it to the gateway as an `Authorization: Bearer` header. For a credential in a different scheme or…llm-gateway-connect see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up ANTHROPIC_AUTH_TOKEN, on Connect Claude Code to an LLM gateway.