[BUG] API Error 403 Please run /login

Resolved 💬 11 comments Opened Oct 2, 2025 by AsDeadAsADodo Closed Jan 18, 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?

I'm a Claude Pro user and using Claude Code via Claude Code for VS Code plugin.
I tried it on both VS Code and Cursor; after logging in to Claude Code, I was immediately and repeatedly asked to run /login.
I tested it on both Ubuntu 22.04 and Windows 11.
I also checked the .credentials.json, the subscriptionType property seems weird.

{"claudeAiOauth":{"accessToken":"sk-ant-oat01-","refreshToken":"sk-ant-ort01-","expiresAt":1759435078288,"scopes":["user:inference","user:profile"],
"subscriptionType":null}}

What Should Happen?

As a Pro user, I should be able to interact with Claude Code without seeing the error message below.

Error Messages/Logs

API Error: 403 {"error":{"type":"forbidden","message":"Request not allowed"}} · Please run /login

Steps to Reproduce

  1. Open Claude Code window on VS Code or Cursor
  2. Login
  3. Type anything you like then submit
  4. Error Message

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

I don't know

Claude Code Version

2.0.1

Platform

Pro user

Operating System

Ubuntu 22.04 and Windows 11

Terminal/Shell

Cursor and VS Code

Additional Information

_No response_

View original on GitHub ↗

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