Follow Discord
Sweep 30 Oct 2026 · 21:36Z Build v2.1.315 533 read Stable v2.1.308 Latest v2.1.314 Next v2.1.315 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.315 ·

Hidden gateway JSON sign-in mode for claude auth login

claude auth login gains a hidden --gateway-json option that runs Cloud gateway sign-in as JSON lines for another program, such as the VS Code extension

Group of 2 Use it now Notable New Features
JSON All of v2.1.315
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
AuthArea: what it touches
New FeaturesKind: in v2.1.315,
What probably matters to youSection of the release

Unclear It is not clear which setting makes a Cloud gateway count as available on a machine.

What

claude auth login is the command that signs Claude Code in. It gains a hidden option, --gateway-json, that does not show in the help. Instead of talking to a person, it writes the Cloud gateway sign-in questions as JSON lines (one machine-readable message per line) and reads the answers from standard input, so another program can show the sign-in to the person.

  • It is rejected when combined with --console, --claudeai, --sso or --email.
  • When a gateway is configured, it refuses to run in a terminal a person is typing into, saying the command is run by the VS Code extension.
  • It refuses to run inside a Claude Code session.
  • If no gateway is available, it prints an error saying sign-in "isn't available with this machine's settings". What makes a gateway available was not traced.
  • An interactive sign-in screen for the gateway case is also added for use in a terminal.
  • claude auth status, when asked for JSON output, now reports gatewaySignInOffered when that same gateway check finds one.
  • A new rule matches auth login when gatewayJson is on (or a helper returns true) and adds it to an existing list of exempted commands. What that list controls was not read.

Before, claude auth login only handled email, SSO, Console and claude.ai sign-in, and a gateway setup just printed a note to run the interactive /login.

Why

This gives editor extensions a way to drive gateway sign-in themselves rather than sending you to /login. Because the option is hidden, it is meant for those programs rather than for typing by hand.

Read from
Names in the bundleclaude auth login
What the documentation says
claude auth login Claude Code changelog modified, high confidence * Improved the cloud session error shown while a request refused for your claude.ai login is still being retried: it now also suggests `claude auth login` see the edit
claude auth login Continue local sessions from any device with Remote Control modified, high confidence * **Your claude.ai plan is Pro, Max, or Ultra**: Claude Code is still signed in under a Team or Enterprise organization from an earlier login, so it checks that organization's Remote Control policy. Run `/status` to see which plan and orga… see the edit
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 doubtIt is not clear which setting makes a Cloud gateway count as available on a machine.
Anthropic's documentation agreesclaude auth login on Claude Code changelog

See this entry in the whole of v2.1.315 →

Feedback