/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

  1. Open Claude Code on Windows
  2. Run /login
  3. See "Login successful"
  4. Type any message
  5. 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.

View original on GitHub ↗

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