What
OAuth is the sign-in method Claude Code uses with your Anthropic account. Several parts of signing in and out changed.
/loginwarning: a new message saysCLAUDE_CODE_OAUTH_TOKENwas set in your environment when/loginstarted, and that the session will use the new credentials.- Rejected token: when a request fails with a 401 (not signed in) and the token came from the environment, Claude Code now tells an embedding app's
heardhook which token failed before it waits for a replacement token. - Logout: Claude Code now revokes the Claude.ai refresh token and checks the answer. If Anthropic does not confirm, it warns "Logged out on this computer, but Anthropic didn't confirm the login was revoked." and still completes. Before, the result was ignored. If the config file cannot be saved, logout fails with "logout could not save the config file".
- Pasting a code: a bad pasted code is now shown as a problem on the waiting screen instead of an "Invalid code" error, and pressing no clears the pasted text or the problem before going back.
- Messages: a failed token exchange now says "Couldn't finish signing in. Try again." The setup-token success screen now says "Long-lived authentication token created" and adds where the token can be revoked.
Why
You are told when logout may have left your login active on Anthropic's side, and sign-in mistakes are easier to recover from. If you keep CLAUDE_CODE_OAUTH_TOKEN set, you now know /login replaces it for that session.
Names in the bundle/loginCLAUDE_CODE_OAUTH_TOKEN
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 CLAUDE_CODE_OAUTH_TOKEN, on Configure permissions.
Your setup might lack managed settings, a `managed-mcp.json` file, and a Team or Enterprise `/login` as the session's credential. In that setup, the mod can approve a call that a `PreToolUse` hook blocked, and some calls that a deny rule r…permissions see the edit
Added since
A small documentation edit on Get started with Claude Code in the cloud touched a line naming /login after this was published.
If Claude Code's command menu shows `No commands match "/web-setup"`, or submitting `/web-setup` returns `Unknown command: /web-setup` or says it's unavailable, the command is hidden because a requirement isn't met. The cause is usually th…web-quickstart see the edit
Confirmed since
Anthropic's documentation has since written up /login, on Claude Code changelog.
* Fixed an MCP server's long question being cut off after one row, text fields hiding long pastes with no sign, and a doubled divider line in `/plugin`'s options and `/login`'s Bedrock and Vertex stepschangelog see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up /login, on Claude Code changelog.
Anthropic's release notes agree
Fixed "Sign in with your Console account" in /login replacing your Claude subscription login when the browser sign-in used your Claude plan…