Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / Claude Code usage limit
Fix · Claude Code

Claude Code usage limit reached

Claude Code blocks requests until the reset time in the message. Pro and Max have a 5-hour limit and a weekly limit, shared between Claude and Claude Code. Options: wait (Claude Code can continue automatically at the reset), switch model family if it's an Opus- or Sonnet-only limit, or buy usage credits with /usage-credits. Run /usage to see what's left.

The messages and what each means

MessageMeaning
You've hit your session limit · resets 3:45pmThe 5-hour limit. Newer versions call it the "5-hour limit" (changelog v2.1.312)
You've hit your weekly limit · resets Mon 12:00amThe weekly limit
You've hit your Opus limit · resets ... / Sonnet limitA limit for that model family only
You've used 85% of your session limit · resets 3:45pmA warning before the limit
Usage limit reached · limit resets 3:45pm + Continuing automatically at 3:45pm · Esc to cancelAuto-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

  1. See your usage: /usage shows plan limits, reset times and what used them.
  2. 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.
  3. Keep working now: /usage-credits buys 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.
  4. Or use an API key: with ANTHROPIC_API_KEY set, Claude Code uses the key instead of your subscription, billed at API rates. Use /login to 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: /compact or /clear between 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 /loop and 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 /status and look for a stray ANTHROPIC_API_KEY. See Anthropic 429.
  • Credit balance is too low: an API key is in use. Unset ANTHROPIC_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

Sources

Read 2 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools