Unclear Which login flows, if any, ask for the extra scope is not known.
What
When you sign in, Claude Code normally starts a small local listener that receives the result from your browser. If that listener could not start, login failed.
- Now login continues with a manual URL and asks you to paste the code shown after signing in, at the prompt "Paste code here > ".
- The login screen says "Use the URL below to sign in" instead of "Browser didn't open? Use the url below to sign in".
claude auth loginin a terminal prints "Sign in at:" with the URL and waits for the code; Ctrl-D closes the prompt and stops the login.- Running out of file handles (EMFILE or ENFILE) still stops login with an error.
- If the fallback cannot be used, you see "Couldn't start the local listener that receives the browser sign-in. Try again." with " Run with --debug for the underlying error." added.
- Separately, the sign-in URL builder can add one extra permission scope through a new
alsoRequestScopeoption; no caller was found using it.
Why
Login can work on headless or remote machines and where the local port is blocked, and failures point you to --debug.
Names in the bundle--debug
--debug
Claude Code changelog modified, high confidence
* Fixed `claude --help` text for `--tools`, `--resume`, `--debug`, `--json-schema`, `--disable-slash-commands`, `--system-prompt-snapshot` and `claude update` to match actual behaviorsee the edit
--debug
Continue local sessions from any device with Remote Control modified, high confidence
| `-d`, `--debug[=<filter>]` | Turn on debug logging for the server, optionally filtered by category. Pass a filter only in the `=` form, such as `--debug=api,hooks`. Requires Claude Code v2.1.282 or later. |see the edit
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 --debug, on using.
| `--debug` | Print full HTTP request and response to stderr |cli-sdks-libraries/cli/using see the edit
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
Which login flows, if any, ask for the extra scope is not known.
Anthropic's documentation agrees
--debug on Claude Code changelog