Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.329 ·

Clearer error when a refreshed sign-in can't be saved to the Keychain

If Claude Code renews your sign-in but can't save it to the macOS Keychain, it now explains why and what to run

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

Claude Code renews your sign-in token (the key that keeps you signed in) from time to time and stores it in the Keychain, the macOS password store. If the renewed token can't be saved, it now shows:

"Failed to refresh OAuth token: can't save to the Keychain. If locked, run security unlock-keychain. If sandboxed, use claude setup-token. Otherwise, retry, then claude auth login"

The message offers a fix for each case:

  • security unlock-keychain if the Keychain is locked
  • claude setup-token if Claude Code is running in a sandbox (a restricted environment)
  • retrying, then claude auth login otherwise
Why

A failed sign-in renewal now tells you what went wrong and the command to try next.

What the documentation says
claude auth login Error reference modified, high confidence | `Managed settings on this machine configure a Cloud gateway sign-in; run interactive /login to authenticate.` | [`claude auth login`](https://code.claude.com/docs/en/cli-reference#cli-commands) | see the edit
claude auth login CLI reference modified, medium confidence | `claude auth login` | Sign in to your Anthropic account. Use `--email` to pre-fill your email address, `--sso` to force SSO authentication, and `--console` to sign in with Anthropic Console for API usage billing instead of a Claude subsc… see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesclaude auth login on Error reference

See this entry in the whole of v2.1.329 →

Feedback