[BUG] Rate limit reached at 33% session usage on Pro plan (WSL, v2.1.77)
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.
/usageshows: 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:
- Migrate from npm to native installer on WSL
claude login(OAuth succeeds, Pro plan detected)- Type any prompt → "API Error: Rate limit reached"
/usageconfirms 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
- Environment: WSL2 (Ubuntu) on Windows, Claude Code previously installed via npm (
npm install -g @anthropic-ai/claude-code)
- Migrate to native installer:
npm uninstall -g @anthropic-ai/claude-code
curl -fsSL https://claude.ai/install.sh | bash
source ~/.bashrc
- Login:
claude login
- OAuth login succeeds,
.credentials.jsonshowssubscriptionType: "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
- Launch and send any prompt:
claude
> ciao
→ Returns: API Error: Rate limit reached
- Check usage:
/usage
→ Shows: 33% current session, 16% current week — well below limits
- Verified:
- Banner correctly shows "Claude Pro"
- Credentials confirm OAuth with full scopes
- No
ANTHROPIC_API_KEYenv variable set rm ~/.claude/.credentials.json+ freshclaude logindoes not fixrm -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_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗