You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
AuthArea: what it touches
ImprovementsKind: in v2.1.305,
ImprovementsSection of the release
Unclear It is not clear exactly which errors count as a cancel and get code 130, such as pressing Ctrl-C.
What
An exit code is the number a program hands back when it finishes, which scripts use to tell success from failure. When the login flow is cancelled, Claude Code now exits with code 130. Other login errors still exit with code 1, which used to be the code in every case. The cleanup on exit also now stops listening for keyboard input.
Why
Scripts that wrap claude auth login will see 130 instead of 1 on cancel, and may need updating if they check for 1.
Read from
Names in the bundleclaude auth login
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 sinceAnthropic's documentation has since written up claude auth login, on Authentication.* **Earlier sign-in**: you ran [`claude auth login`](/docs/en/cli-reference#cli-commands) in your shell before your first session, or you rebuilt a dev container that keeps your credentials in a [volume](/docs/en/devcontainer#persist-authe…authenticationsee 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 exactly which errors count as a cancel and get code 130, such as pressing Ctrl-C.
Anthropic's documentation agreesAnthropic's documentation has since written up claude auth login, on Authentication.