claude-code - 💡(How to fix) Fix [BUG] Why I can not use Sonnet even I have enough quota?!

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…

Error Message

❯ /compact ⎿ Error: Error during compaction: API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

❯ /ecc:strategic-compact API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

✻ Crunched for 1s · 1 shell still running 100% context used ──────────────────────────────────────────────────────────────────────────── ❯ ──────────────────────────────────────────────────────────────────────────── [Sonnet 4.6] [100%]

Fix Action

Fix / Workaround

❯ /model ⎿ Set model to Sonnet 4.6 and saved as your default for new sessions

You've hit your weekly limit · 
/upgrade to increase your usage limit.

Code Example

/compact
Error: Error during compaction: API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

/ecc:strategic-compact
API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

Crunched for 1s · 1 shell still running
                                                          100% context used
────────────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────
  [Sonnet 4.6] [100%]

---

You've hit your weekly limit · 
/upgrade to increase your usage limit.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

I ONLY used 30% of the quota of Sonnet, but I can use it!

<img width="1519" height="553" alt="Image" src="https://github.com/user-attachments/assets/21b4e032-718b-4406-b3d6-b184e617e494" />

What Should Happen?

Even I reached the Opus 4.8 limitation, but I CAN use Sonnet 4.6, RIGHT? I ONLY used 30% of its quota!

<img width="1539" height="539" alt="Image" src="https://github.com/user-attachments/assets/4551b684-2290-4cc0-825a-67d9b944aa7b" /> <img width="280" height="196" alt="Image" src="https://github.com/user-attachments/assets/a5b4558b-78f5-44a2-8824-55ea985427fe" />

Error Messages/Logs

❯ /compact
  ⎿  Error: Error during compaction: API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

❯ /ecc:strategic-compact
API Error: Usage credits required for 1M context · run /usage-credits to turn them on, or /model to switch to standard context

✻ Crunched for 1s · 1 shell still running
                                                          100% context used
────────────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────
  [Sonnet 4.6] [100%]

Steps to Reproduce

  1. Use opus 4.8, when getting limitations, then:
  2. Use /model switch to Sonnet or start a new session Claude Code( exit and restart Claude code), then /model switch to Sonnet 4.6.
  3. When talking to Claude Code, I encountered You've hit your weekly limit!:

❯ /model ⎿ Set model to Sonnet 4.6 and saved as your default for new sessions

You've hit your weekly limit · 
/upgrade to increase your usage limit.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.159

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

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

claude-code - 💡(How to fix) Fix [BUG] Why I can not use Sonnet even I have enough quota?!