{"version":"2.1.332","anchor":"anthropic-auth-token-now-takes-precedence-in-the-auth-header","canonical_anchor":"anthropic-auth-token-now-takes-precedence-in-the-auth-header","heading":"ANTHROPIC_AUTH_TOKEN now wins over other tokens for the Authorization header","tier":"notice","area":"Auth","scope":"both","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332\/e\/anthropic-auth-token-now-takes-precedence-in-the-auth-header","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.332","markdown":"### `ANTHROPIC_AUTH_TOKEN` now wins over other tokens for the Authorization header\n\nWhen `ANTHROPIC_AUTH_TOKEN` is set, it is now used for the Authorization header ahead of a token passed in or one in your configured headers\n\n**Unclear.** It is not stated which requests pass in their own token, so it is unclear where setting `ANTHROPIC_AUTH_TOKEN` now replaces a different credential.\n\n**What**\n\nThe Authorization header carries the credential that proves who you are on each request. Claude Code builds it in this order:\n\n- `ANTHROPIC_AUTH_TOKEN`, sent as `Bearer` followed by its value\n\n- a token passed in by the part of Claude Code asking for the header\n\n- an authorization header found in your configured headers\n\nBefore, `ANTHROPIC_AUTH_TOKEN` was the only token source, followed by the configured header. The passed-in token is the new step.\n\n**Why**\n\nIf `ANTHROPIC_AUTH_TOKEN` is set, it will be the credential sent even where another token is supplied. Check what it holds if requests go out with credentials you did not expect.\n\n- Area: Auth\n- Names: `ANTHROPIC_AUTH_TOKEN`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: yes"}