[BUG] After claude auth logout , next login greets with API credentials
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The bug is: claude auth logout followed by claude shows "Welcome back!" and silently re-auths to API Console credentials instead of prompting for fresh login.
The real issue is claude code greets meand will allow me to prompt when I am not logged in.
Lower in the window it states in a friendly way "not logged in use /login to log in"
Claude code should state "not logged in" at the top instead of at the bottom.
By defaulting to API Console creds, I will be spending API money when I have a max account.
What Should Happen?
claude auth logout followed by claude should show "not logged in".
shows "Welcome back" and silently re-auths to API Console credentials instead of prompting for fresh login.
Error Messages/Logs
Steps to Reproduce
- Login with claude code. Validate you are using your account.
- exit
claude auth logoutclaude
Notice you are greeted as a logged out user
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.63 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
<img width="1742" height="688" alt="Image" src="https://github.com/user-attachments/assets/b9f6b2b8-8140-4ae4-8004-30dce57aba16" />
Note all the greeting and prompt - the "not logged in" is at the very bottom and too easy to miss
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗