You'll notice
A gateway credential hand-off file locked by another process, such as antivirus, is now retried once instead of failing.
When CLAUDE_CODE_USE_GATEWAY is set without ANTHROPIC_AUTH_TOKEN, Claude Code now waits and retries once if the credential hand-off file is locked by another process, such as an antivirus scan, instead of failing immediately.
Names in the bundleCLAUDE_CODE_USE_GATEWAYANTHROPIC_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.