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

Claude Code v2.1.304 ·

/login in cloud sessions: hidden or refused in some cases, and a new expired sign-in notice

/login is now hidden or refused in cloud sessions started with a Console sign-in or pinned by forceLoginMethod, with clearer notices

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

What

/login is the command that signs you in to your Anthropic account. In cloud sessions (Claude Code running on Anthropic's servers instead of your machine) it changed:

  • When enabled: the command is now enabled only when there is no session context or the session has a session id. Before, it was enabled whenever DISABLE_LOGIN_COMMAND was not set.
  • Refused cases: signing in inside a cloud session is refused when the session was started with a Console sign-in, or when forceLoginMethod requires a method other than claude.ai. The command is then hidden, with notices such as "Signing in isn't available here: a cloud session needs a claude.ai sign-in, and the forceLoginMethod setting on this machine requires a different sign-in method."
  • Expired sign-in: a new message says "The claude.ai sign-in this session was using is no longer usable." and tells you to run /login or claude auth login when DISABLE_LOGIN_COMMAND is set.

Why

In cloud sessions you may find /login missing or get an explanation instead, and a lost claude.ai sign-in now tells you how to recover.

Read from
Names in the bundle/loginDISABLE_LOGIN_COMMAND
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 /login, on Error reference. Each of these messages from `/login`, `claude auth login`, or `claude setup-token` means Claude Code couldn't open the port on `127.0.0.1` where your browser returns the sign-in result. errors see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up /login, on Error reference.

See this entry in the whole of v2.1.304 →

Feedback