claude-code - 💡(How to fix) Fix [Bug] Usage quota calculation incorrect for Claude 3.5 Sonnet [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46972Fetched 2026-04-13 05:44:54
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×3commented ×1
RAW_BUFFERClick to expand / collapse

Bug Description I started a brand new session with 0% usage. I have sent 341 tokens according to my terminal. I ran /usage in another claude window and already had 10% quota usage. How have I used 10% quota with 341 tokens!? I am using Sonnet 4.6

Environment Info

  • Platform: linux
  • Terminal: windows-terminal
  • Version: 2.1.104
  • Feedback ID: 876834a8-612a-4b6b-87d2-93944931557e

Errors

<a href="https://ibb.co/3yLYfD7r"><img src="https://i.ibb.co/PZfzT7Nm/usage.png" alt="usage" border="0"></a>

extent analysis

TL;DR

The discrepancy between the expected and actual quota usage may be due to the token count not accurately reflecting the quota consumption.

Guidance

  • Verify the token count and quota usage by checking the official documentation for Sonnet 4.6 to ensure understanding of how tokens are counted and quota is calculated.
  • Compare the terminal output with the /usage command output to identify any potential inconsistencies or additional information that might explain the discrepancy.
  • Check if there are any additional factors that could be contributing to the quota usage, such as other processes or sessions using the same quota.
  • Review the image linked in the error section to see if it provides any visual cues or clues about the quota usage.

Notes

The provided information does not include detailed documentation or specifications of Sonnet 4.6, which might be necessary to fully understand the token count and quota usage. The discrepancy could be due to various factors, including but not limited to, the way tokens are counted or additional quota consumption not accounted for.

Recommendation

Apply workaround: Monitor and verify quota usage through multiple sources (e.g., terminal output and /usage command) to ensure accuracy and identify any potential discrepancies.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING