[BUG] Claude Code shows "Auth token: none" after successful OAuth login — hasAvailableSubscription stays false despite active Pro subscription (macOS)

Resolved 💬 7 comments Opened Apr 22, 2026 by sulya90 Closed Apr 30, 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 successfully completing OAuth login via "Claude account with subscription" on macOS, Claude Code shows "Login successful" but the token is never persisted. /status shows "Auth token: none". The VS Code extension is completely unusable — it shows "Failed to retrieve auth status after login" in an infinite loop.

My account had both an active Pro subscription AND a Console organization on the same email. Deleting the Console organization did NOT resolve the issue — this appears to be a server-side entitlement flag that's stuck.

~/.claude.json contains:
"hasAvailableSubscription": false
"billingType": "stripe_subscription"
"hasExtraUsageEnabled": false

Manually setting hasAvailableSubscription to true does not help — "Auth token: none" persists.

Header shows "Opus 4.7 (1M context) · API Usage Billing" despite selecting sub

What Should Happen?

After completing OAuth flow with "Claude account with subscription":

  1. Token should be persisted (/status should show a valid Auth token, not "none")
  2. hasAvailableSubscription should be set to true
  3. Header should show "Pro subscription" instead of "API Usage Billing"
  4. VS Code extension should inherit the authenticated session
  5. Commands should execute without "Not logged in" errors

Error Messages/Logs

Terminal output:
> /status
  Auth token: none

> (any prompt)
  Not logged in · Please run /login

VS Code extension:
  Failed to retrieve auth status after login

Steps to Reproduce

  1. Run claude /login in Terminal.app
  2. Select "1. Claude account with subscription"
  3. Complete OAuth flow in browser (shows "Build something great. You're all set up for Claude Code")
  4. Terminal shows "Login successful"
  5. Run /status → shows "Auth token: none"
  6. Any command returns "Not logged in · Please run /login"
  7. Open VS Code — extension shows "Failed to retrieve auth status after login"

Troubleshooting attempted (all failed):

  • Reinstalled Node.js (v18 → v22) and Claude Code via npm
  • Deleted ~/.claude.json multiple times
  • security unlock-keychain ~/Library/Keychains/login.keychain-db
  • Cleared browser cookies for anthropic.com
  • Deleted all Claude Code tokens in claude.ai Settings → Claude Code
  • Deleted Claude Console organization (had both Pro + Console on same email)
  • Reinstalled VS Code extension
  • Opened VS Code via code . from authenticated terminal session
  • Manually patched hasAvailableSubscription to true in ~/.claude.json

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.1.112

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Plan: Claude Pro (active, $24/month, renews Apr 19, 2026)
Had both Pro subscription AND Console organization on same email. Console org deleted (pending permanent deletion on Apr 23, 2026).

Node.js: v22.22.2
VS Code extension: v0.40.2

Support ticket submitted to Anthropic support chat 5 days ago — no response. Subscription is active and paid, but Claude Code is completely unusable. This is a critical blocker for paid Pro subscribers.

View original on GitHub ↗

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