Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.308 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.299 ·

Claude Code is more careful with custom API endpoints and gateways

With a non-Anthropic ANTHROPIC_BASE_URL, the remote settings fetch withholds the API key; features it turns off are explained and gateway use is marked

Group of 5 Use it now Internal Changes
JSON All of v2.1.299
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GatewayArea: what it touches
Internal ChangesKind: in v2.1.299,
What probably matters to youSection of the release

What

ANTHROPIC_BASE_URL sends Claude Code's requests to a different address, such as a company proxy or gateway. Several changes concern what happens when that address is not an Anthropic host.

  • The remote settings fetch no longer sends your API key when ANTHROPIC_BASE_URL is not an Anthropic host. It fails with "API key not sent: ANTHROPIC_BASE_URL is not an Anthropic host". Before, the key was always sent as x-api-key. A first-party TLS request path is also checked more strictly.
  • Some features that depend on remote settings are turned off by an API provider or a custom base URL. Claude Code now works out who set that: a machine administrator, the process environment, a launch flag, served settings or a settings file. It then tells you which source turned the feature off, or tells you to contact your administrator.
  • The attribution header can now end with cc_gateway=1; or cc_gateway=env; when a gateway is in use and the base URL is not a vouched Anthropic host.
  • Result messages gain an internal api_error_origin field. It is marked first_party only when an error came from api.anthropic.com over verified TLS, with no base URL override or gateway.
  • The SDK result schema, for both success and error, also gains an optional interrupted_by_shutdown field.

Why

If you route Claude Code through your own proxy, the remote settings fetch no longer hands that proxy your Anthropic API key. You also get a reason when a feature is off because of your endpoint. Programs built on the SDK can tell errors from Anthropic's own API apart from errors that passed through a proxy.

See this entry in the whole of v2.1.299 →

Feedback