The messages and what each means
| Message | Meaning |
|---|---|
You've hit your session limit · resets 3:45pm | The 5-hour limit. Newer versions call it the "5-hour limit" (changelog v2.1.312) |
You've hit your weekly limit · resets Mon 12:00am | The weekly limit |
You've hit your Opus limit · resets ... / Sonnet limit | A limit for that model family only |
You've used 85% of your session limit · resets 3:45pm | A warning before the limit |
Usage limit reached · limit resets 3:45pm + Continuing automatically at 3:45pm · Esc to cancel | Auto-continue is waiting for the reset |
Claude Code's docs: "The session and weekly limits are shared across all models, so switching models doesn't restore access." The Opus and Sonnet limits are the exception: /model to the other family keeps you working.
What to do
- See your usage:
/usageshows plan limits, reset times and what used them. - Let it continue by itself: with a claude.ai login, Claude Code (v2.1.234+) waits and resumes after the reset, up to 3 times. Cancel with Esc; turn it off in
/config("Continue automatically at usage limit"). The Desktop app has its own Auto-continue when limits reset checkbox on the session-limit card (not the weekly one); the two settings are separate. - Keep working now:
/usage-creditsbuys usage credits (Pro, Max, Ultra) or requests them from your admin (Team, Enterprise). Anthropic: "Usage credits are billed at standard API rates" and apply to both Claude and Claude Code. Set a monthly spend limit in Settings, Usage. - Or use an API key: with
ANTHROPIC_API_KEYset, Claude Code uses the key instead of your subscription, billed at API rates. Use/loginto go back to the subscription.
Why it runs out faster than expected
- The limits are shared with your Claude chats in the browser and app.
- Claude Code's docs: "A single burst of heavy activity, such as a large workflow fanout, can exhaust the weekly allowance before the session window resets."
- Long sessions resend more context every turn:
/compactor/clearbetween tasks.
Find what's using up your limit: the /usage breakdown
On Pro, Max, Ultra, Team and Enterprise, /usage shows more below the usage bars (Claude Code's costs docs):
- Attribution: the share of recent usage that went to each skill, subagent, plugin and individual MCP server.
- Recommendations: one change per row, each starting with the share of usage it applies to, e.g.
25% Trim ~/code/api/CLAUDE.md · 49k tokens per request. The share is how much usage the row covers, not how much it saves. - Loops: the heaviest
/loopand scheduled tasks, with how often they fire and tokens per run (v2.1.242+).
Press d or w to switch between the last 24 hours and the last 7 days. If the footer says f to fix 2 of 3, press f (v2.1.305+): Claude Code runs any /effort change itself and asks Claude to make the others, showing each change first. Rows that end in run /compact or another command are for you to run.
The figures are approximate and come from local history on that machine, so usage from claude.ai or other devices isn't counted. In the VS Code extension the same breakdown is in the Account & usage dialog.
Errors that look similar but aren't your limit
API Error: Server is temporarily limiting requests (not your usage limit): wait, and check status.claude.com.API Error: Request rejected (429): run/statusand look for a strayANTHROPIC_API_KEY. See Anthropic 429.Credit balance is too low: an API key is in use. UnsetANTHROPIC_API_KEY, relaunch,/login.
Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review
FAQ
When does the Claude Code usage limit reset?
At the time shown in the message: the 5-hour (session) limit resets at the end of its window, the weekly limit at its weekly time. Run /usage to see both.
Does switching models fix the Claude Code limit?
Not for the session or weekly limit, which are shared across models. If the message says Opus limit or Sonnet limit, switching to the other family with /model does help.
Can I keep using Claude Code after hitting the limit?
Yes: buy usage credits with /usage-credits (billed at API rates), use an API key, or let auto-continue resume at the reset.
Are Claude and Claude Code limits shared?
Yes. Anthropic says the Pro and Max limits are shared across Claude and Claude Code.
How do I see what is using up my Claude Code limit?
Run /usage. On a plan it shows the share of recent usage by skill, subagent, plugin and MCP server, plus recommendations; press f (v2.1.305+) to apply the ones Claude Code can.
Related errors
- Codex: You've hit your usage limit
- Anthropic API 429 rate_limit_error
- Claude Code: Failed to authenticate / 403
Sources
Read 2 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.
- Claude Code docs: Error reference: code.claude.com/docs/en/errors
- Claude Code docs: Interactive mode (wait for a usage limit to reset): code.claude.com/docs/en/interactive-mode
- Claude Code changelog: github.com/anthropics/claude-code/blob/main/CHANGELOG.md
- Claude Help Center: Use Claude Code with your Pro or Max plan: support.claude.com/en/articles/11145838-use-claude-code-with-your-pro-or-max-plan
- Claude Help Center: Usage credits: support.claude.com/en/articles/12429409
- Claude Help Center: What is a limit reset: support.claude.com/en/articles/17007452-what-is-a-limit-reset
- Claude Code docs: Costs and usage: code.claude.com/docs/en/costs
- LLM API cost checker: find LLM calls with no limits or retries capped
- reviewready CLI: one command that checks an AI app repo before it ships
- Install Claude Code on Windows: commands and install error fixes