Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
APIArea: what it touches
Internal ChangesKind: in v2.1.287,
Internal ChangesSection of the release
Unclear What Claude Code does differently when the remote environment type is self_hosted is not shown.
What
ANTHROPIC_CUSTOM_HEADERS is an environment variable for adding your own headers to Claude Code's requests. Claude Code already read an Authorization header from it. It now reads that header through the same shared parser it uses for the rest of the variable.
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 sinceAnthropic's documentation has since written up ANTHROPIC_CUSTOM_HEADERS, on Connect Claude Code to Claude for Government."Settings"="{\"forceLoginMethod\":\"gateway\",\"forceLoginGatewayUrl\":\"https://<claude-for-government-host>/gateway-api\",\"env\":{\"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC\":\"1\",\"DISABLE_TELEMETRY\":\"1\",\"DISABLE_ERROR_REPORTING\"…government/deploy-claude-code/configuresee the edit
Added sinceA small documentation edit on Connect Claude Code to an LLM gateway touched a line naming ANTHROPIC_CUSTOM_HEADERS after this was published.For a gateway that injects its own `Authorization` header, set `CLAUDE_CODE_SKIP_FOUNDRY_AUTH=1` and leave both credential variables unset. Claude Code then sends requests without an Azure credential and preserves the `Authorization` heade…llm-gateway-connectsee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat Claude Code does differently when the remote environment type is self_hosted is not shown.
Anthropic's documentation agreesA small documentation edit on Connect Claude Code to an LLM gateway touched a line naming ANTHROPIC_CUSTOM_HEADERS after this was published.
Anthropic's release notes agreeBedrock, Vertex, Mantle: Fixed model availability checks under CLAUDE_CODE_SKIP_*_AUTH sending a different Authorization header than real…