[BUG] Rate limit reached at 33% session usage on Pro plan (WSL, v2.1.77)

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

Versione: 2.1.77
Piano: Pro
Usage: 33% sessione, 16% settimanale
Errore: "API Error: Rate limit reached" su ogni prompt
Nota: Cowork funziona, solo il terminale WSL è bloccato
Hai migrato dall'installer npm al nativo

After migrating from npm installer to native installer (curl -fsSL https://claude.ai/install.sh | bash), every prompt returns "API Error: Rate limit reached" despite low usage.

  • /usage shows: 33% current session, 16% current week
  • Plan: Pro (confirmed in credentials and banner)
  • Auth: OAuth with full scopes (file_upload, inference, mcp_servers, profile, sessions:claude_code)
  • Claude Code via Cowork (browser) works fine with the same account
  • Only the terminal CLI is affected

What Should Happen?

Claude Code should accept prompts when usage is well below the session and weekly limits. At 33% session / 16% weekly, requests should not be rate limited.

Steps to reproduce:

  1. Migrate from npm to native installer on WSL
  2. claude login (OAuth succeeds, Pro plan detected)
  3. Type any prompt → "API Error: Rate limit reached"
  4. /usage confirms low utilization

Environment:

  • Claude Code v2.1.77 (native installer)
  • WSL2 (Ubuntu) on Windows
  • Previously installed via npm (@anthropic-ai/claude-code)
  • Multiple OAuth sessions accumulated before cleanup

Notes:

  • Also encountered "Richiesta OAuth non valida - Parametro redirect_uri mancante" during login from WSL (spaces injected in URL)
  • Revoking all OAuth tokens and re-authenticating did not fix the rate limit issue

Error Messages/Logs

API Error: Rate limit reached

Steps to Reproduce

  1. Environment: WSL2 (Ubuntu) on Windows, Claude Code previously installed via npm (npm install -g @anthropic-ai/claude-code)
  1. Migrate to native installer:
   npm uninstall -g @anthropic-ai/claude-code
   curl -fsSL https://claude.ai/install.sh | bash
   source ~/.bashrc
  1. Login:
   claude login
  • OAuth login succeeds, .credentials.json shows subscriptionType: "pro", all scopes granted
  • Note: WSL injects spaces in the redirect_uri parameter when opening the browser, causing "Parametro redirect_uri mancante" error. Workaround: sudo apt install wslu && export BROWSER=wslview
  1. Launch and send any prompt:
   claude
   > ciao

→ Returns: API Error: Rate limit reached

  1. Check usage:
   /usage

→ Shows: 33% current session, 16% current week — well below limits

  1. Verified:
  • Banner correctly shows "Claude Pro"
  • Credentials confirm OAuth with full scopes
  • No ANTHROPIC_API_KEY env variable set
  • rm ~/.claude/.credentials.json + fresh claude login does not fix
  • rm -rf ~/.claude/sessions/* does not fix
  • Revoking all OAuth tokens from claude.ai settings and re-authenticating does not fix
  • Claude Code via Cowork (browser) works fine with the same Pro account

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

Claude Code v2.1.77

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

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