What
Claude Code keeps a list of environment variables (values set in your shell or by the program that starts it) that can supply its sign-in credentials.
ANTHROPIC_FEDERATION_RULE_IDnow appears in that list withANTHROPIC_AUTH_TOKEN,ANTHROPIC_API_KEYandCLAUDE_CODE_OAUTH_TOKEN. Before, there was only theenv-federationentry. It is also cleared, along withANTHROPIC_API_KEYandCLAUDE_CODE_OAUTH_TOKEN, where Claude Code removes credentials from an environment. The Workload Identity Federation token exchange skips its error reporting for one kind of error.CLAUDE_CODE_OAUTH_TOKENis now registered as its own source,env-setup, so it is recognised as a credential from the environment likeANTHROPIC_API_KEYandANTHROPIC_AUTH_TOKEN. Before, onlyenv-key,env-tokenandenv-federationexisted.- The hint added to sign-in errors now tells apart a key passed in by the program that started the session from a key in
ANTHROPIC_API_KEY, and suggestsclaude auth loginwhen a sign-in profile is used. Before, it only saidANTHROPIC_API_KEYis set. TheANTHROPIC_UNIX_SOCKETcheck now comes first.
Why
If sign-in fails, the error now points to where the credential actually came from, which helps in embedded or hosted sessions. How these credentials are recognised and reported may also affect which one is used.
Names in the bundleANTHROPIC_FEDERATION_RULE_ID
Documented inapi/agents-and-tools/mcp-tunnels/deploy-compose
ANTHROPIC_AUTH_TOKEN
Connect Claude Code to an LLM gateway modified, high confidence
Your requests use a gateway credential variable rather than a saved claude.ai login. With `ANTHROPIC_AUTH_TOKEN`, the variable takes precedence immediately. With `ANTHROPIC_API_KEY`, you are prompted once in interactive mode to approve the…see the edit
ANTHROPIC_API_KEY
Connect Claude Code to an LLM gateway modified, high confidence
Your requests use a gateway credential variable rather than a saved claude.ai login. With `ANTHROPIC_AUTH_TOKEN`, the variable takes precedence immediately. With `ANTHROPIC_API_KEY`, you are prompted once in interactive mode to approve the…see the edit
ANTHROPIC_AUTH_TOKEN
Roll out an LLM gateway for your organization modified, high confidence
* A login screen, or `Not logged in` with nothing new in the gateway log, means a credential gap. Run `/status` and open the **Status** tab: when the `Setting sources` line doesn't include managed settings, the distribution didn't reach th…see the edit
ANTHROPIC_API_KEY
Roll out an LLM gateway for your organization modified, high confidence
* `Not logged in`: check the gateway log. If it's empty, no credential reached the session and no request left the machine; re-run the exports in the shell you're testing from. If it shows a `401` from the gateway naming `x-api-key`, the g…see the edit
CLAUDE_CODE_OAUTH_TOKEN
Claude Code changelog modified, high confidence
* Fixed `/usage` hiding limit bars for setup tokens and `CLAUDE_CODE_OAUTH_TOKEN`: it keeps the session and weekly bars and says why the rest are missingsee the edit
ANTHROPIC_FEDERATION_RULE_ID
wif-reference modified, high confidence
| `ANTHROPIC_FEDERATION_RULE_ID` | Yes | Tagged ID (`fdrl_...`) of the federation rule to evaluate. |see the edit
ANTHROPIC_AUTH_TOKEN
wif-reference modified, high confidence
| SDK authenticates with an API key instead of federating | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` is set and wins precedence. | Unset the key or token variable. |see the edit
ANTHROPIC_API_KEY
wif-reference modified, high confidence
| SDK authenticates with an API key instead of federating | `ANTHROPIC_API_KEY` or `ANTHROPIC_AUTH_TOKEN` is set and wins precedence. | Unset the key or token variable. |see the edit
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.
Confirmed since
Anthropic's documentation has since written up ANTHROPIC_FEDERATION_RULE_ID, on wif-reference.
| `ANTHROPIC_FEDERATION_RULE_ID` | Yes | Tagged ID (`fdrl_...`) of the federation rule to evaluate. |manage-claude/wif-reference see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
ANTHROPIC_AUTH_TOKEN on Connect Claude Code to an LLM gateway