Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.324 ·

More credential sources recognised, with clearer sign-in error hints

ANTHROPIC_FEDERATION_RULE_ID and CLAUDE_CODE_OAUTH_TOKEN join the recognised credential variables, and auth error hints name the key's source

Group of 3 You'll notice Improvements
JSON All of v2.1.324
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.324,
ImprovementsSection of the release

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_ID now appears in that list with ANTHROPIC_AUTH_TOKEN, ANTHROPIC_API_KEY and CLAUDE_CODE_OAUTH_TOKEN. Before, there was only the env-federation entry. It is also cleared, along with ANTHROPIC_API_KEY and CLAUDE_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_TOKEN is now registered as its own source, env-setup, so it is recognised as a credential from the environment like ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN. Before, only env-key, env-token and env-federation existed.
  • 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 suggests claude auth login when a sign-in profile is used. Before, it only said ANTHROPIC_API_KEY is set. The ANTHROPIC_UNIX_SOCKET check 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.

Read from
Names in the bundleANTHROPIC_FEDERATION_RULE_ID
What the documentation says
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 missing see 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
Since it was published

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
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesANTHROPIC_AUTH_TOKEN on Connect Claude Code to an LLM gateway

See this entry in the whole of v2.1.324 →

Feedback