/login shows "Login successful" but immediately reverts to "Not logged in"
Resolved 💬 11 comments Opened Apr 7, 2026 by taiyakiinvest Closed Jun 27, 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?
After running /login, it displays "Login successful" but the status bar still shows "Not logged in · Run /login". Any subsequent command fails with "Not logged in".
What Should Happen?
After successful login, authentication should persist and allow normal usage.
Error Messages/Logs
No error messages. /compact also failed with: EPERM: operation not permitted
Steps to Reproduce
- Open Claude Code on Windows
- Run /login
- See "Login successful"
- Type any message
- Get "Not logged in · Please run /login"
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.92
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Subscription: Claude Pro. Installed via winget. Previously used npm install but migrated. Deleted .claude folder, reinstalled, ran as administrator — login succeeds every time but auth is never persisted.
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗