Unclear It is not clear whether the shared function reads any value differently from the old line-and-colon split.
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.
Most values should read the same as before. Unusual values, near the edges of the Name: Value format, could now be read differently.
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.
"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
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
It is not clear whether the shared function reads any value differently from the old line-and-colon split.
A small documentation edit on Connect Claude Code to an LLM gateway touched a line naming ANTHROPIC_CUSTOM_HEADERS after this was published.
Bedrock, Vertex, Mantle: Fixed model availability checks under CLAUDE_CODE_SKIP_*_AUTH sending a different Authorization header than real…