Follow Discord
Sweep 23 Oct 2026 · 21:48Z Build v2.1.310 529 read Stable v2.1.308 Latest v2.1.309 Next v2.1.310 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.310 ·

Custom API host from ANTHROPIC_BASE_URL is ignored in some modes

The check that picks out a custom host from ANTHROPIC_BASE_URL now reads the variable directly and returns nothing in some modes

You'll notice Improvements
JSON All of v2.1.310
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
API ProvidersArea: what it touches
ImprovementsKind: in v2.1.310,
ImprovementsSection of the release

Unclear Which modes cause Claude Code to ignore ANTHROPIC_BASE_URL here is not stated.

What

ANTHROPIC_BASE_URL is the environment variable that sends Claude Code's requests to a different address, such as a proxy or gateway. An internal check that works out whether that address is a custom host now reads ANTHROPIC_BASE_URL itself instead of being handed the address. It also now returns nothing, as though no custom host were set, when a particular mode is active.

Why

In practice, which custom host Claude Code picks up for this check, if any, can now depend on the mode it is running in, not only on what ANTHROPIC_BASE_URL says.

Read from
Names in the bundleANTHROPIC_BASE_URL
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 doubtWhich modes cause Claude Code to ignore `ANTHROPIC_BASE_URL` here is not stated.

See this entry in the whole of v2.1.310 →

Feedback