Skip to content

[BUG] Claude code cli OAuth token revoked after login #29497

Description

@sunhaozhe2k

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

yesterday, I reinstalled claude code and cleaned up the authentication cache completely
however, right after /login in claude code successfully, every input shows OAuth revoked error, and 'Usage' of /status shows OAuth revoked error too

What Should Happen?

after login, claude code should work normally

Error Messages/Logs

❯ /login
  ⎿  Login successful

❯ Hi
  ⎿  OAuth token revoked · Please run /login

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


  Error: Failed to load usage data: {"type":"error","error":{"type":"permission_error","message":"OAuth token has been
  revoked. Please obtain a new
  token.","details":{"error_visibility":"user_facing"}},"request_id":"req_011CYZo6qUyzUKhkdmmGAgpA"}

  r to retry · Esc to cancel

Steps to Reproduce

  1. completely uninstall claude code
  2. delete all cache of claude code
  3. install claude code
  4. login in claude code

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.62

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Image

request id req_011CYZkLe6AypdCBexwiQ3aV
time: about 21:20, Feb 27, 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authbugSomething isn't workingplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions