[BUG] CLI incorrectly rate-limited while web shows near-zero usage (state desync)
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 reports "hit your limit" while web dashboard shows 1% usage
Bug Description
Claude Code CLI reports that I've hit my usage limit and refuses to process any requests, while the claude.ai web interface works normally and the Settings → Usage page clearly shows only 1% session usage and 0% weekly usage.
Steps to Reproduce
- Use Claude Code CLI (
claude) — it reports:You've hit your limit · resets 8pm (Australia/Sydney) - Open claude.ai in browser — works normally, can send messages without issues
- Check Settings → Usage on claude.ai:
- Current session: 1% used (resets in 4 hr 31 min)
- Weekly limits (All models): 0% used
- Weekly limits (Sonnet only): 0% used
- Return to Claude Code CLI — still blocked,
/rate-limit-optionsshows limit hit - Restarting Claude Code does not resolve the issue
Expected Behavior
Claude Code should allow sending messages when usage is well within limits (1% session / 0% weekly).
Actual Behavior
Claude Code is stuck in a rate-limited state that does not reflect actual account usage. The web interface works fine with the same account.
Environment
- Claude Code version: v2.1.81
- OS: macOS (Apple Silicon)
- Plan: Claude Pro
- Account email: (redacted)
- Timezone: Australia/Sydney (AEST, UTC+10)
Screenshots
(Attach the screenshots showing: 1) Claude Code rate limit message, 2) Settings → Usage page showing 1% used, 3) Web interface working normally)
Additional Context
- This occurred on March 31, 2026, around 3-4 PM AEST
- The claude.ai web chat in the same account was fully functional at the same time
- The rate limit state in Claude Code persisted across CLI restarts
- This may be related to the recent peak-hour rate limit policy changes announced on March 26, 2026
What Should Happen?
Claude Code CLI should allow sending requests when the account usage is clearly within limits.
Specifically, when the claude.ai dashboard shows low usage (e.g., 1% session usage and 0% weekly usage), the CLI should not report a "hit your limit" error.
The CLI and web interface should reflect a consistent view of account usage and rate limits.
Error Messages/Logs
You've hit your limit · resets 8pm (Australia/Sydney)
Steps to Reproduce
- Install and run Claude Code CLI (
claude) on macOS - Send any prompt using the CLI
- Observe that the CLI immediately returns:
"You've hit your limit · resets 8pm (Australia/Sydney)"
- Open https://claude.ai/ in a browser using the same account
- Send prompts successfully without any restriction
- Navigate to Settings → Usage:
- Current session usage shows ~1%
- Weekly usage shows 0%
- Return to CLI and retry — still blocked
- Restart CLI — issue persists
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
claude v2.1.81
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗