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.287 ·

ANTHROPIC_CUSTOM_HEADERS is read by a shared helper

Claude Code now reads ANTHROPIC_CUSTOM_HEADERS through a single shared function instead of separate inline code

Under the hood Internal Changes
JSON All of v2.1.287
Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
APIArea: what it touches
Internal ChangesKind: in v2.1.287,
Internal ChangesSection of the release

Unclear It is not clear whether the shared function reads any value differently from the old line-and-colon split.

What

ANTHROPIC_CUSTOM_HEADERS is an environment variable for adding your own headers to Claude Code's requests. Claude Code now reads it with one shared function. Before, each place split the value into lines and each line at its first colon.

Why

Most values should read the same as before. Unusual values, near the edges of the Name: Value format, could now be read differently.

Read from
Names in the bundleANTHROPIC_CUSTOM_HEADERS
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_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/configure see the edit
Added since A 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-connect see 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 doubtIt is not clear whether the shared function reads any value differently from the old line-and-colon split.
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…

See this entry in the whole of v2.1.287 →

Feedback