OAuth token revoked · Please run /login

Status Closed — not planned
Maintainer reply None cached
Activity 15 comments · opened Aug 6, 2025 · closed Jan 13, 2026

Bug Description
I am being told I am a pro users, /status or whatever says I am logged in via api access but am only logged in via subscription, I am begging otld I am only a pro user but I pay for 20x max

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.69
  • Feedback ID:

Errors

[{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth token has been revoked. Please obtain a new token.\"}}\n    at new rW (unknown:1:28)\n    at new z9 (/$bunfs/root/claude:1117:1853)\n    at new mW0 (unknown:1:28)\n    at generate (/$bunfs/root/claude:1117:2380)\n    at makeRequest (/$bunfs/root/claude:1134:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:09:28.694Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"OAuth\"\n    at <parse> (:0)\n    at parse (unknown)\n    at <anonymous> (/$bunfs/root/claude:624:9928)\n    at W (/$bunfs/root/claude:456:14411)\n    at rnG (/$bunfs/root/claude:1163:10769)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:09:28.697Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth token has been revoked. Please obtain a new token.\"}}\n    at new rW (unknown:1:28)\n    at new z9 (/$bunfs/root/claude:1117:1853)\n    at new mW0 (unknown:1:28)\n    at generate (/$bunfs/root/claude:1117:2380)\n    at makeRequest (/$bunfs/root/claude:1134:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:09:29.433Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth token has been revoked. Please obtain a new token.\"}}\n    at new rW (unknown:1:28)\n    at new z9 (/$bunfs/root/claude:1117:1853)\n    at new mW0 (unknown:1:28)\n    at generate (/$bunfs/root/claude:1117:2380)\n    at makeRequest (/$bunfs/root/claude:1134:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:11:35.005Z"},{"error":"Error\n    at uA (/$bunfs/root/claude:529:1076)\n    at D1 (/$bunfs/root/claude:530:9952)\n    at emit (node:events:92:22)\n    at endReadableNT (internal:streams/readable:862:50)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/claude:532:2098)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:11:35.347Z"}]

View original on GitHub ↗

15 Comments

github-actions[bot] · 1 year ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/4007
  2. https://github.com/anthropics/claude-code/issues/4107
  3. https://github.com/anthropics/claude-code/issues/2633

If your issue is a duplicate, please close it and 👍 the existing issue instead.

<sub>This issue will be automatically closed as a duplicate in 3 days if there are no additional comments. To prevent auto-closure, please 👎 this comment.</sub>

🤖 Generated with Claude Code

inoovador · 1 year ago

¿Resolviste?

sammcj · 11 months ago

Constantly having this occur today, claude code keeps logging me out.

QSchenKI · 11 months ago

I have the same issue, I am the pro/max subscription user, but I found the /status show I am the API user, and asked me login again and again,

hej

⎿  OAuth token revoked · Please run /login

/status

Settings: Status Config Usage (tab to cycle)

Version: 2.0.1
Session ID: 35f0b117-**-**-982e-be5054611b84
cwd: /Users/qiaosenchen/project/test
Login method: Claude API Account

Model: Default Sonnet 4.5 · Smartest model for daily use (currently Opus)
Memory:
Setting sources: User settings, Shared project settings, Local,
Command line arguments, Enterprise managed policies

System Diagnostics
⚠ Installation config mismatch: running npm-global but config says unknown

QSchenKI · 11 months ago
Bug Description I am being told I am a pro users, /status or whatever says I am logged in via api access but am only logged in via subscription, I am begging otld I am only a pro user but I pay for 20x max Environment Info Platform: darwin Terminal: vscode Version: 1.0.69 Feedback ID: Errors [{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth token has been revoked. Please obtain a new token.\"}}\n at new rW (unknown:1:28)\n at new z9 (/$bunfs/root/claude:1117:1853)\n at new mW0 (unknown:1:28)\n at generate (/$bunfs/root/claude:1117:2380)\n at makeRequest (/$bunfs/root/claude:1134:5330)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:09:28.694Z"},{"error":"SyntaxError: JSON Parse error: Unexpected identifier \"OAuth\"\n at <parse> (:0)\n at parse (unknown)\n at <anonymous> (/$bunfs/root/claude:624:9928)\n at W (/$bunfs/root/claude:456:14411)\n at rnG (/$bunfs/root/claude:1163:10769)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:09:28.697Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth token has been revoked. Please obtain a new token.\"}}\n at new rW (unknown:1:28)\n at new z9 (/$bunfs/root/claude:1117:1853)\n at new mW0 (unknown:1:28)\n at generate (/$bunfs/root/claude:1117:2380)\n at makeRequest (/$bunfs/root/claude:1134:5330)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:09:29.433Z"},{"error":"Error: 403 {\"type\":\"error\",\"error\":{\"type\":\"permission_error\",\"message\":\"OAuth token has been revoked. Please obtain a new token.\"}}\n at new rW (unknown:1:28)\n at new z9 (/$bunfs/root/claude:1117:1853)\n at new mW0 (unknown:1:28)\n at generate (/$bunfs/root/claude:1117:2380)\n at makeRequest (/$bunfs/root/claude:1134:5330)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:11:35.005Z"},{"error":"Error\n at uA (/$bunfs/root/claude:529:1076)\n at D1 (/$bunfs/root/claude:530:9952)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:862:50)\n at processTicksAndRejections (native:7:39)\n at request (/$bunfs/root/claude:532:2098)\n at processTicksAndRejections (native:7:39)","timestamp":"2025-08-06T04:11:35.347Z"}]

Have you fixed this? or haven't?

vieko · 11 months ago

I'm getting the exact same issue as @QSchenKI: same error, same status.

vieko · 11 months ago

I solved this by removing the CLAUDE_CODE_OAUTH_TOKEN I had saved in my .secrets once upon a time. Hope this help you as well 💪🏼

QSchenKI · 11 months ago
I solved this by removing the CLAUDE_CODE_OAUTH_TOKEN I had saved in my .secrets once upon a time. Hope this help you as well 💪🏼

Yes, it works, as long as I do this
unset CLAUDE_CODE_OAUTH_TOKEN

Then it works as what it should be....

aleksadvaisly · 10 months ago

Started to happen too frequent!

It happens few times in a day in Claude Code. Never had such problems. It disturbs development flow. Take a look at below example. You have long ongoing process. You want to see summarisation, but boom - you have been revoked.

⏺ architecture-advisor(Phase 0 architecture planning)
⎿ Done (7 tool uses · 98.5k tokens · 6m 27s)
⎿ OAuth token revoked · Please run /login

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

jo47011 · 8 months ago

Had the same issue only happend using terminal inside IDE. Called /login again in a normal ubuntu terminal and it works. Still enoying and should be fixed.

freshstylez · 8 months ago

Same issue its incredibly meesy. Error is always: OAuth token revoked · Please run /login

Sometimes i get logged out 20-50 times within a span of 30 minutes.
In other times i don't get logged out for like 2-4 days.

I've been using Claude terminal inclduing Claude inside Visual Studio code.

github-actions[bot] · 7 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

kingdom84521 · 7 months ago

Since there isn't a definitive solution for this issue, I'll leave my trial-and-error log here:

  1. Opened the VSCode extension and encountered the error: [OAuth token revoked · Please run /login]
  2. Tried unsetting CLAUDE_CODE_OAUTH_TOKEN → worked, but the problem reappeared when opening a new terminal session
  3. Attempted to locate the specific token in my system → couldn't find it; the token is likely stored in an encrypted location
  4. Ran the "Claude Code: Logout" option in VSCode → worked, and no more cached token!

I'm not saying the root cause is fully understood, but this approach permanently solved the problem.

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.