Agent Shipped

Guide · updated 2026-10-21 · 10 min read

Claude Code Usage Limits: How They Work and Last

If you hit "claude code usage limits" in a search, here is the short version. Pro and Max plans have a rolling five-hour session limit plus a weekly limit, both shared with Claude chat, and /usage inside Claude Code shows how much of each you have used. When you run out you can wait for the reset, turn on usage credits, or change plan.

Anthropic does not publish exact token or message counts for these limits, and I will not invent any. What follows is what the documentation actually says, what I do about it, and where I am guessing.

How the limits work

Anthropic's support article on using Claude Code with a Pro or Max plan describes three things:

The part that surprises people is the shared pool. Claude and Claude Code, including IDE use, all draw from the same limits. A long refactor in the terminal can leave less for chat later in the day, and the reverse is true too.

The Claude Code docs say Team and Enterprise seats work the same way: a per-seat allowance that resets on a rolling five-hour window and a weekly window, shared with chat and Cowork, sized by seat tier (Standard or Premium). See the cost management page.

API key users are different. There is no session or weekly window, you pay per token. That is why the support article warns that if an ANTHROPIC_API_KEY environment variable is set, Claude Code uses that key instead of your subscription and you are charged API rates. If you expected to be on your plan, run echo $ANTHROPIC_API_KEY before your next long session.

Recent changes

Weekly limits were raised for a promotion from May 13 through September 13, 2026, and per Anthropic's notice part of that is now permanent: since September 14, 2026, weekly Claude Code limits are 25% higher than before the promotion on Pro, Max, Team and seat-based Enterprise plans. The promotion did not change five-hour limits.

Limits have moved several times this year, so treat any blog post (including this one) as a snapshot and check the support articles when something changes.

Reading /usage

Type /usage in a session. According to the Claude Code cost docs, on Pro, Max, Team and Enterprise plans you get:

  1. Plan usage bars for your session and weekly limits.
  2. A breakdown of recent usage attributed to skills, subagents, plugins, and individual MCP servers, each as a percentage.
  3. Recommendations, one per row, for behaviors behind at least 10% of your recent usage. An example row from the docs: 25% Trim ~/code/api/CLAUDE.md · 49k tokens per request.
  4. Loops, if you have /loop or other session-scoped scheduled tasks, ranked by tokens (v2.1.242 or later).

Press d or w to switch between the last 24 hours and the last 7 days. Press f to let Claude Code act on the recommendations it can (v2.1.305 or later). It runs /effort changes directly and asks Claude to show you each other change before making it.

Three caveats from the same page:

I treat the breakdown as a profiler. Before changing any habit, I look at which row is biggest and fix that one.

What to do when you hit a limit

The docs describe a few layers.

Wrap-up allowance. If you hit the five-hour limit mid-response, Claude Code may keep going briefly to reach a stopping point and show "Usage limit reached · wrapping up." Per the wrap-up article it is small, capped, counts toward your weekly limit, needs v2.1.277 or later, and is rolling out gradually. Pro gets it once per weekly period, Max and Team Premium each time you reach a five-hour limit. The size is not published, so do not plan around it.

Automatic continue. On v2.1.234 or later, signed in with a claude.ai subscription, Claude Code waits for the reset and continues the task by default. You will see lines like Usage limit reached · limit resets 3:45pm. Details worth knowing:

If you want unattended work to survive a reset, this is the setting to understand. If you do not want Claude acting while you are away, turn off Continue automatically at usage limit in /config.

Usage credits. These let you keep working past a limit. Run /usage-credits (it needs a claude.ai login, not an API key) and it opens Settings > Usage, where you can turn credits on or off, see your balance and this month's spend, and set a monthly spend limit. With credits on, /usage shows a row with your month-to-date spend. Pricing and per-plan details change, so check the Claude Code pricing guide and Anthropic's own page for current numbers.

My take: set a spend limit before you enable credits. Unlimited is the default shown when you have not set one, and a runaway loop at API rates is a worse surprise than waiting two hours.

Switching models. Switching with /model does not help with a session or weekly limit, because those are shared across models. It does help after a model-specific message like "You've hit your Opus limit", where moving to a model outside that family keeps you working.

Habits that stretch a plan

The core fact from the docs: Claude Code sends your full conversation with every request, and each tool call sends another request carrying the results. Prompt caching makes re-reading cheaper, but a one-line question in a session that has been open all day still draws usage for the whole history. Most habits below reduce that.

Keep context small

Match model and effort to the task

The docs say Sonnet handles most coding tasks and costs less than Opus, so reserve Opus for architecture and multi-step reasoning. Use /model mid-session, and /effort to lower reasoning effort on simple work. Thinking tokens are billed as output, and you cannot turn thinking off on Opus 5.5, Sonnet 5.5, Haiku 5.5 or the Fable models, so effort is the lever there.

Cut tool overhead

Be careful with parallel and background work

Agent teams use roughly 7x more tokens than a standard session when teammates run in plan mode, per the docs, and each active teammate keeps consuming until it exits. The docs also list quieter drains in long sessions: session-scoped scheduled tasks that fire while idle, cross-session messages, goal check-ins, and compaction. If /usage shows a Loops row eating a big share, that is your answer.

Prompt like you are paying per file read

"Improve this codebase" triggers broad scanning. "Add input validation to the login function in auth.ts" does not. Use plan mode (Shift+Tab) for anything large, press Escape early when Claude heads the wrong way, and include a test or expected output so Claude can verify its own work. More on this in Claude Code best practices.

A routine I would copy

  1. Start the day with /usage to see where you are in both windows.
  2. /clear at every task boundary.
  3. Default to Sonnet, move up for hard planning, and drop effort for mechanical edits.
  4. Check /mcp weekly and remove what you did not touch.
  5. Put heavy, parallel work right after a reset, not right before one.
  6. Set a credits spend limit if you enable credits at all.
  7. Every few days, open the /usage breakdown for 7 days and fix the top recommendation.

If you are comparing tools because of limits, my Claude Code vs Codex vs Cursor comparison covers how the others meter usage.

What I am not sure about

Bottom line

Your limits are two rolling windows shared across Claude and Claude Code. Read /usage as a profiler, keep context small with /clear and a lean CLAUDE.md, match model and effort to the job, and set a spend limit before turning on usage credits. If you want more setups like this, subscribe to Agent Shipped (Free · twice a week · 4-minute read).

FAQ

What are the Claude Code usage limits on Pro and Max?

Both plans have a five-hour session limit and a weekly limit, and Max also has a separate weekly limit for Fable models. Claude chat and Claude Code draw from the same pools. Anthropic does not publish exact message or token counts.

How do I check my Claude Code usage?

Run /usage in Claude Code. On a subscription plan it shows plan usage bars, activity stats, and a breakdown of what counted against your limits. Anthropic's support article for Pro and Max also points to /status for remaining allocation.

What happens when I hit a Claude Code limit?

Claude Code shows the reset time and, on v2.1.234 or later with a claude.ai login, waits and continues the interrupted task on its own after the reset. If you have usage credits turned on, you can keep working immediately at standard rates.

Do usage credits cost extra?

Yes. Usage credits let you keep working past your plan limit and are billed at standard rates against a monthly spend limit you can set. You manage them with /usage-credits or in Settings > Usage on claude.ai.

Does an API key avoid the limits?

An API key replaces subscription limits with per-token billing. If ANTHROPIC_API_KEY is set in your environment, Claude Code uses it instead of your subscription and you pay API rates, so check for it before assuming you are on your plan.

Get the field guide

Join builders who use coding agents every day. Free, twice a week, unsubscribe in one click.

No spam. The CLAUDE.md starter pack comes in your confirmation email. Not seeing it? Check spam or Promotions.

Keep reading