[BUG] False rate limit error despite 0-4% usage
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?
Claude Code is giving false API Rate Limit error alerts.
My usage is at 4%
<img width="908" height="645" alt="Image" src="https://github.com/user-attachments/assets/f9c6db7a-1355-435b-bc3c-a750c065d61d" />
And I am getting API rate limit error in my VS Code | Claude Code session
What Should Happen?
The before giving rate limit errors it should be checking Session/Weekly limits
Error Messages/Logs
API Error: Rate limit reached
Steps to Reproduce
Not sure, I opened VS Code from last night's Session , and in the morning I got this error
API Error: Rate limit reached
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.81
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
<img width="862" height="659" alt="Image" src="https://github.com/user-attachments/assets/31b6aaea-c4dd-4cbc-ba99-75e5a5ed0c53" />
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗