[BUG] After claude auth logout , next login greets with API credentials

Resolved 💬 3 comments Opened Mar 3, 2026 by bbulkow Closed Mar 7, 2026

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

  1. Login with claude code. Validate you are using your account.
  2. exit
  3. claude auth logout
  4. claude

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

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗