USAGE LIMITS

Claude Code usage limits, how they work and how to make them last

How Claude Code usage limits work on Pro and Max, five-hour sessions and weekly caps, how to check usage with /usage, and what to do at the limit.

Short answer

On Pro and Max plans, Claude Code usage counts against a five-hour session limit and a weekly limit that are shared with Claude chat and the desktop app. The five-hour window starts with your first message, and weekly limits reset at a fixed time assigned to your account. Run /usage in Claude Code to see your plan usage bars, and when you hit a limit you can wait for the reset, add usage credits or upgrade.

Claude Code usage limits on a subscription work in two layers: a five-hour session limit and a weekly limit. Both are shared with everything else you do with Claude on the same account, so a long chat in the browser and a long refactor in the terminal draw from the same pool. Anthropic does not publish fixed token numbers for these limits and can change them, so this guide explains how they behave, how to check where you stand, and how to make them last, with links to the official pages for current details.

How do Claude Code usage limits work on Pro and Max?

On Pro and Max plans, Claude Code has a five-hour session limit and a weekly limit, according to Anthropic's help center. Usage is shared across Claude and Claude Code, and you see warnings as you get close to a limit.

The two windows behave differently:

LimitHow it works
Five-hour session limitStarts when you send your first message, and resets in full five hours later
Weekly limitApplies across all models and resets at a fixed time each week assigned to your account
Separate Fable weekly limitApplies on Max and Ultra plans, on top of the general weekly limit

On the Ultra plan, verified accounts have only a weekly limit, with no five-hour session limit. On Team and Enterprise plans, the Claude Code docs describe a per-seat allowance that resets on a rolling five-hour window and a weekly window, shared with Claude chat and Cowork, sized by seat tier.

The help center says the Max plan gives five times Pro's usage in each window, but it does not give absolute numbers for any plan. Treat any specific "messages per five hours" figure you read elsewhere as an estimate. For the vocabulary, see the glossary entry on usage limit resets.

What uses up Claude Code usage faster?

Claude Code consumes your plan much faster than chat, because each turn carries file contents, tool calls and multi-step reasoning. The official docs list the main reasons a session can use more than your activity suggests:

  • Long context. Claude Code sends the whole conversation with every request, and every tool call sends another request with the results. A one-line question in a session open all day still pays for the full history.
  • Cache misses. Your first message after a break longer than the prompt cache lifetime reprocesses the full context.
  • Subagents, workflows and agent teams. Each one sends its own requests on top of the main conversation.
  • Background activity. Scheduled tasks, /loop, background command check-ins and prompt suggestions can use tokens while you are idle.
  • Model and effort. The help center lists the model and effort level among the factors. Opus at high effort costs more than Sonnet at medium.
  • Compaction. /compact reads the whole conversation it summarizes, so it is a large request in itself.

Running several sessions at once multiplies all of this. If you work that way, see how to run multiple Claude Code sessions.

How do I check my remaining Claude Code usage?

Run /usage at the Claude Code prompt. On Pro, Max, Ultra, Team and Enterprise plans it shows your plan usage bars, activity stats and a breakdown of what counts against your limits. /cost and /stats are aliases.

The breakdown is the useful part:

  • Attribution: your recent usage split between skills, subagents, plugins and individual MCP servers.
  • Recommendations: rows such as "Trim CLAUDE.md" or "Compact before you step away", each with the share of your recent usage it applies to. When the footer says something like f to fix 2 of 3, pressing f lets Claude Code apply the ones it can.
  • Loops: the heaviest scheduled tasks that ran recently.

Press d or w to switch between the last 24 hours and the last 7 days. These breakdown figures come from local session history on that machine, so usage from other devices or claude.ai is not included. The Session block at the top of /usage shows an estimated dollar cost, which the docs note is meant for API users, not subscribers.

Outside the terminal, open Settings, then Usage on claude.ai. The help center says the "Current session" section shows how much you have used and the time remaining. Anthropic's Claude Code plan article also mentions /status for monitoring; in current versions /status shows version, model, account and connectivity, while the plan bars live in /usage.

What happens when I hit the Claude Code usage limit?

When you reach a limit, Claude Code stops sending requests and tells you which limit you hit and when it resets, for example "You've hit your session limit" or "You've hit your weekly limit". Those two are shared across all models, so switching with /model does not help. A model-specific message such as "You've hit your Opus limit" is different: switching to a model outside that family keeps you working.

A few behaviors worth knowing:

  • Wrap-up allowance. If you hit the five-hour limit in the middle of a response, Claude Code may finish the step in progress and show "Usage limit reached · wrapping up". The help center describes it as small and capped. On Pro it applies up to once per weekly period, on Max each time you reach a five-hour limit.
  • Automatic continue. On Claude Code v2.1.234 or later, in interactive sessions signed in with a subscription, Claude Code waits in the open session and picks the task back up after the reset. Press Esc to cancel, run /rate-limit-options to choose what to do, or turn it off with the autoContinueAtUsageLimit setting. It stops after three automatic continuations in a row.
  • Your options. Depending on the plan: wait for the reset, turn on usage credits with /usage-credits (pay-as-you-go past the limit, with a monthly spend limit you set), upgrade, or switch to a Console account billed at API rates.

Usage credits change your bill, so set a spend limit before you rely on them. The Codex usage limits and Cursor usage limits guides cover the equivalent rules in those tools.

How can I make Claude Code usage last longer?

The most effective habits come straight from the official cost guide:

  1. Clear between unrelated tasks. /clear starts fresh at no cost. Name the session first with /rename so you can return with /resume.
  2. Compact with a focus. /compact Focus on the API changes keeps what matters when you do need continuity.
  3. Pick the model for the job. Sonnet handles most coding work. Keep Opus for hard design problems, and use model: haiku for simple subagents.
  4. Lower the effort level with /effort for routine tasks.
  5. Trim CLAUDE.md. It loads on every session. The docs suggest staying under about 200 lines and moving specialized instructions into skills, which load on demand.
  6. Disable MCP servers you are not using with /mcp, and prefer CLI tools such as gh when they exist.
  7. Write specific prompts. "Add input validation to the login function in auth.ts" reads far fewer files than "improve this codebase".
  8. Use plan mode for big changes, and press Esc early when Claude heads the wrong way.
  9. Delegate noisy work to subagents so long test output or logs stay out of the main context.
  10. Watch for idle usage. Stop scheduled loops you no longer need, and think twice before resuming a huge conversation after a long break. Claude Code may show a "Resume this conversation?" dialog with an estimate of how much of your five-hour limit the saved conversation alone would use.

Then check /usage again after a few days to see whether the recommendations changed.

Seeing your limits at a glance

Typing /usage works, but only when you remember to, and only for the tool you are in. Allowbar, a Mac menu bar app for people who run Claude Code and Codex, shows Claude, Codex and Cursor usage in one place with the time of the next reset. Its Dynamic Island style panel warns you when less than 50% and less than 20% remains, and tells you when a limit resets, so a long task does not stop by surprise.

Allowbar does not change your limits or switch plans for you; it shows them. It is Mac only (macOS 14 or later). For other options, see the roundup of Claude Code usage trackers.

Allowbar is in private beta. Join the waitlist; the launch price is $9.99 instead of $29.90.

Sources:

Frequently asked questions

Are Claude Code limits separate from Claude chat limits?

No. On Pro and Max, usage across claude.ai, Claude Code and Claude Desktop counts toward the same limits. A heavy chat session leaves less room for coding in the same window.

When does the Claude Code five-hour limit reset?

The five-hour window starts when you send your first message and resets in full five hours later. Claude Code shows the reset time when you hit the limit, and claude.ai shows the time remaining under Settings, then Usage.

When does the weekly limit reset?

Weekly limits reset at a fixed time each week that is assigned to your account. The reset time appears in the limit message and in your usage settings.

Which command shows Claude Code usage?

/usage shows your plan usage bars, activity stats and a breakdown with recommendations. /cost and /stats open the same screen.

Does switching to Sonnet help when I hit the limit?

Not for the session or weekly limit, which apply across all models. It does help after a model-specific message such as "You've hit your Opus limit", and it makes the rest of your allowance last longer in general.

How many messages do I get on the Max plan?

Anthropic does not publish a fixed message or token count. The help center says Max offers five times Pro's usage per window, and actual usage depends on context size, model, effort and features used.

ALLOWBAR FOR MAC

Answer your agents from the menu bar.

Permission requests from Claude Code and Codex slide down from the top of your screen. Allow, Block or send back to the terminal. Allowbar never approves anything on its own.

Launch price $9.99 instead of $29.90, one-time purchase, lifetime license.