[BUG] Session is not remembered when login in Windows

Resolved 💬 4 comments Opened Jan 22, 2026 by fredrikcarlbom Closed Feb 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?

When I write /login the authentication seems to work correctly but when I try to start a prompt I get an error message that my account does not have access to Claude Code. The new session appears correctly under https://claude.ai/settings/claude-code

❯ /login

 Logged in as x@y.com
 Login successful. Press Enter to continue…
❯ /login
  ⎿  Login successful

❯ hello

● Your account does not have access to Claude Code. Please run /login.

What Should Happen?

The session should be remembered/stored/used by Claude Code

Error Messages/Logs

❯ /status
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  Settings:  Status   Config   Usage  (←/→ or tab to cycle)


  Error: Failed to load usage data: {"type":"error","error":{"type":"permission_error","message":"OAuth token does not meet scope requirement
  user:profile","details":{"error_visibility":"user_facing"}},"request_id":"req_011CXN4G6w9ghyq3Bc2U1p22"}


❯ /doctor

 Diagnostics
 └ Currently running: native (2.1.15)
 └ Path: C:\Users\fr-car\.local\bin\claude.exe
 └ Invoked: C:\Users\fr-car\.local\bin\claude.exe
 └ Config install method: native
 └ Search: OK (bundled)

 Updates
 └ Auto-updates: enabled
 └ Auto-update channel: latest
 └ Stable version: 2.1.7
 └ Latest version: 2.1.15

 Version Locks
 └ No active version locks

Steps to Reproduce

  1. Type /login
  2. Type hello

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.15 (Claude Code)

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell, cmd

Additional Information

Claude Code works from WSL

I have done extensive troubleshooting, following all Fin AI Agent instructs, reinstalling claude code, running /logout, deleting claude configuration in %appdata% and %localappdata%, looking for non existing API-keys in environment variables, searching for non-existing credentials in "Windows Credential Manager"

View original on GitHub ↗

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