[BUG] 401 Invalid bearer token on every request - Pro plan not recognized - Nigeria

Resolved 💬 4 comments Opened Mar 15, 2026 by ATECHWEBSOL Closed Apr 13, 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?

Login always succeeds but every prompt returns 401. Confirmed working on another PC with same account. Complete reinstall + full wipe of all claude files makes no difference. No ANTHROPIC_API_KEY set anywhere. billingType shows stripe_subscription in config but UI shows "API Usage Billing". Location: Lagos, Nigeria. Account: [atechwebsitesolutions@gmail.com](mailto:atechwebsitesolutions@gmail.com). This requires backend investigation — the OAuth tokens being issued for my account are being rejected server-side.

<img width="1366" height="768" alt="Image" src="https://github.com/user-attachments/assets/c2364bca-ce57-4f6a-86f9-6819d11f43a7" />

<img width="1366" height="768" alt="Image" src="https://github.com/user-attachments/assets/a64a0411-6748-4d08-8058-cad139203f95" />

What Should Happen?

It should be showing me claude pro or claude api instead of api usage billing since I am not usng api usage billing?

Error Messages/Logs

API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"Invalid bearer token"},"request_id":"req_011CZ4uN4SpdceVq4YyUSoHR"} · Please run /login

Steps to Reproduce

  1. Install Claude Code fresh (npm install -g @anthropic-ai/claude-code)
  2. Run claude login and select option 1 (Claude account with subscription)
  3. Complete OAuth flow in browser - shows "Login successful"
  4. Type any prompt e.g. "Hello"
  5. Immediately receive 401 Invalid bearer token error

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.76

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

  • Same account works perfectly on another PC (friend's laptop)
  • Tested across VS Code extension, terminal, and Claude Code desktop app
  • No ANTHROPIC_API_KEY set anywhere on system
  • Config shows billingType: stripe_subscription but UI shows "API Usage Billing"
  • Complete wipe of all Claude files and fresh reinstall makes no difference
  • Issue persists across Claude Code versions 2.1.71 through 2.1.76
  • Location: Lagos, Nigeria
  • Account: atechwebsitesolutions@gmail.com
  • This is definitively a backend/server-side token validation issue

View original on GitHub ↗

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