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
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.
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 loginClaude Code changelogmodified, 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 loginContinue local sessions from any device with Remote Controlmodified, 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