Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.278 ·

New function captures custom ANTHROPIC_BASE_URL host for firstParty sessions

A new helper captures the custom hostname when ANTHROPIC_BASE_URL points somewhere other than Anthropic's API

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaAuto Modewhat it touches
KindInternal Changesin v2.1.278,
Under the hood

A new helper captures the custom hostname when ANTHROPIC_BASE_URL points somewhere other than Anthropic's API

What

A new helper function returns the hostname from ANTHROPIC_BASE_URL in the specific case where the session is still classified as first-party but the base URL isn't api.anthropic.com, and no unix socket is in use.

Why

This appears to support telemetry or diagnostics around proxy or gateway hosts that don't match Anthropic's usual API address, likely to help identify unrecognized custom endpoints.

Read from
Names in the bundleANTHROPIC_BASE_URL
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_BASE_URL, on Connect Claude Code to an LLM gateway. | `400` errors naming `thinking` or `adaptive`, such as `Input tag 'adaptive' found` | The upstream model build doesn't accept adaptive reasoning, which Claude Code requests for Claude 4.6 and later models | Upgrade the gateway's upstream.… 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 doubtThe finding doesn't say what consumes this captured hostname, only that it's produced in this specific case.
Anthropic's documentation agreesAnthropic's documentation has since written up ANTHROPIC_BASE_URL, on Connect Claude Code to an LLM gateway.

See this entry in the whole of v2.1.278 →