Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Claude Code now refuses unexpected redirects of model API requests

Redirected model API requests are now refused with a clearer error, and CLAUDE_CODE_DISABLE_REDIRECT_CHECK turns the new check off

Group of 3 Use it now Improvements
JSON All of v2.1.331
Use it nowTier: how much it should matter to you
5Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
InternalsArea: what it touches
ImprovementsKind: in v2.1.331,
What probably matters to youSection of the release

Unclear Which request addresses the redirect check applies to is not known.

What

A redirect is a server's reply telling the program to send its request somewhere else. Networks that ask you to sign in first, such as hotel or office Wi-Fi, and some proxies redirect traffic this way. Claude Code now checks for this on the requests it sends to the model:

  • Model API requests that send data (POST requests) and set no redirect option of their own are now retried with redirect: error. An unexpected redirect goes to a handler that either follows it or stops with Claude Code refused a redirect of this request. Before, redirected responses were only logged after the fact and never blocked.
  • A refused redirect now has its own error code, RedirectRefused, and its own message: Unable to connect to API: sign in to network or proxy. The request was redirected. The message then asks you to have your network administrator allow api.anthropic.com. Before, this case fell through to the generic Unable to connect to API message.
  • The new environment variable CLAUDE_CODE_DISABLE_REDIRECT_CHECK turns the check off. An environment variable is a named value set in your shell before Claude Code starts. Only the environment Claude Code starts with, your own settings or managed settings (settings an administrator sets for an organisation) may set it, so Claude itself cannot. It joins the same list of names as AWS_ENDPOINT_URL_STS and CLAUDE_CODE_DISABLE_EARLY_KEY_GUARD.
  • The check that decides whether an error is a sign-in problem now also requires an HTTP 401 status, the server's "not authorised" reply.

Why

A redirect could send model requests, along with your credentials, to a different server. Requests are now stopped instead. If you are behind a sign-in page or proxy, the error now tells you what to do. If the check gets in the way on your network, you can set CLAUDE_CODE_DISABLE_REDIRECT_CHECK.

Read from
Feature flag
tengu_nifty_chipmunk Gate removed from the code

This release deleted the gate from the code while it was still reading on for the account this site reads, so the code path no longer asks a flag before running.

This account: on · anonymous baseline: on · compiled default in v2.1.331: not a boolean we can read

These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.

Read once, for one account on one subscription tier, against v2.1.331. It isn't a statement about your account. What a flag value here can and cannot tell you

What has happened since
Gate removed from the code v2.1.334 removed the tengu_nifty_chipmunk gate from the code while it was still reading on for the account this site reads. The code path no longer asks a flag before it runs.
Gate removed from the code v2.1.331 removed the tengu_nifty_chipmunk gate from the code while it was still reading on for the account this site reads. The code path no longer asks a flag before it runs.

See this across every release →

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 request addresses the redirect check applies to is not known.

See this entry in the whole of v2.1.331 →

Feedback