[BUG] Rate Limit Reached without typing anything, and /insights causes insane token 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?
I wanted to code in Claude Code CLI in my terminal on Windows. I was immediately met with "API Error: Rate limit reached". I tried debugging around, and I went to claude.ai's "Usage" page, and noticed no token usage for today and almost none for the week.
I then tried some commands, re-opening Claude Code, and nothing works. I tested /insights, which I believe then spiked up A TON of token usage on my account... causing 100% of my token usage within 20 seconds... Now I'm completely out of tokens, without having written A SINGLE LINE OF CODE.
This is a major bug, I tried writing to support, but was only able to get an AI bot to respond to me and said: "I understand you're requesting a refund or usage limit reset due to unexpected usage spikes in Claude Code CLI. Let me look up your account information to help resolve this issue." then it said: "We've determined that your purchase doesn't meet our refund eligibility criteria due to a previously issued refund.
If you have any other questions or need assistance with something else, please feel free to open a new request."
<img width="1100" height="1377" alt="Image" src="https://github.com/user-attachments/assets/61884902-8c00-4893-946c-3887024d540f" />
What Should Happen?
Write code and not steal my token usage for no reason.
Error Messages/Logs
API Error: Rate limit reached
Steps to Reproduce
- Type in Claude Code
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.86 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
_No response_
13 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Yeh, im hitting abnormal usage too...
Normally 1x 5 hour limit is 8% for my total week.. During promo it was 5-6%...
Today? Its 14 fking percent... Thats HALF my usage per week...
What the actual fk is going on here???????
Max20 here...
Vow - this is crazy, and a very surprising and disappointing drop in quality. Good to know this: I won't be running the /insights command anytime soon after this.
Same issue here — brand new account, zero usage, immediately rate limited. See #41590
Related. Max 20, v2.1.89, April 1: 100% in ~70 min after reset. Token accounting is clearly broken.
Full report: #41788
Related: #38335, #38239, #38896, #41663
My Claude says your issue shares the same pattern as #38239, #37917, #39465, #39938, #40079, #40085, #40128, #40438. The "28% already used when you woke up" matches the phantom usage pattern — tokens consumed without any user activity, likely from background processes, session resume, or metering errors. Issue #39938 confirmed 93% was phantom usage in one case.
Follow-up — confirming the
/insightstoken drain (April 2, 2026)Your report about
/insightscausing insane token usage is consistent with what I've found. Both/insightsand/dreamtrigger background API calls that consume tokens without producing visible output in your session. Combined with the cache bug (which makes every token fully billed), these features can burn through your quota silently.Full precaution list for affected users:
Avoid entirely:
/insights,/dream— background token drain (as you discovered)--resume— replays full conversation history as billable inputBe careful with:
What helps:
ANTHROPIC_BASE_URLAnalysis: https://github.com/ArkNill/claude-code-cache-analysis
Update (April 2): v2.1.90 has significantly improved cache efficiency — benchmark shows 95-99% cache read in stable sessions (both npm and standalone installations).
If you're still affected:
claude update(ornpm install -g @anthropic-ai/claude-code)"DISABLE_AUTOUPDATER": "1"to~/.claude/settings.jsonenv section--resume(still broken)Note: server-side quota issues (org-level pool sharing, accounting mismatches) remain unresolved — the above fixes the client-side cache drain only.
Benchmark data: https://github.com/ArkNill/claude-code-cache-analysis
A user in #40584 may have found the root cause for your rate limit issue. Two findings:
See #40584 for the full analysis with log evidence from two independent occurrences.
@marlvinvu Thanks for cross-referencing #40584. The
model: "<synthetic>"/input_tokens: 0finding is compelling — it proves a class of rate limit errors that never touch the API at all.This is a separate issue from the cache regression I documented (Bug 1: #40524, Bug 2: #34629). The cache bugs cause real API calls to be billed at full price. The #40584 bug causes the client to block requests entirely without making an API call.
Both contribute to the "unusable" experience, but through different mechanisms. This explains why some users see improvement on v2.1.90 (cache bug fixed) while others see no change (hitting the client-side rate limiter instead).
April 3 update: v2.1.91 fixes the cache regression that caused the worst drain. If you are still hitting limits after updating, there are additional unfixed mechanisms: a 200K tool result budget cap, a client-side false rate limiter, and silent context stripping — all confirmed via proxy testing. Anthropic acknowledged peak-hour tightening on X (Lydia Hallie) but stated "none were over-charging you." Measured data and analysis: claude-code-cache-analysis
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.