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:
- A five-hour session limit. It is rolling, meaning the window starts with your first message rather than at a fixed clock time.
- A weekly limit. It covers all models on the plan.
- A separate weekly limit for Fable models on Max. I have not tested this one, so read the article rather than trusting my summary.
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:
- Plan usage bars for your session and weekly limits.
- A breakdown of recent usage attributed to skills, subagents, plugins, and individual MCP servers, each as a percentage.
- 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. - Loops, if you have
/loopor 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:
- The breakdown is computed from local session history on that machine. Usage from other devices or claude.ai is not included, so the bars can be right while the breakdown is incomplete.
- The Session block at the top shows a dollar figure. On Pro and Max that number is not what you are billed, it is an estimate at list price.
- If the usage endpoint is rate limited,
/usageshows the last-known bars from the past 60 minutes with a note. Pressrto retry. A message likerate limited until 3:14ammeans Claude Code cannot fetch your limits, not that you are locked out.
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:
- Press
Escat an empty prompt orCtrl+Cto cancel the wait. - It does not start by itself when the reset is more than 24 hours away, so a weekly limit usually needs you to pick Wait here, then continue automatically from
/rate-limit-options. - Permissions still apply, so a continued task can stall on a prompt while you are away.
- After repeated limit hits it stops and tells you to use
/rate-limit-options.
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
/clearbetween unrelated tasks. It costs nothing. Use/renamefirst if you want to/resumelater.- Compact on purpose.
/compact Focus on test output and code changestells Claude what to keep. Note that compacting a large context is itself a large request, so compact before it gets huge, not after. - Trim CLAUDE.md. The docs suggest keeping it under 200 lines and moving workflow-specific instructions into skills, which load only when invoked. See how to write a CLAUDE.md file that Claude follows and the skills guide.
- Watch cache misses. Your first message after a break longer than the cache lifetime reprocesses the full context.
/usagecan show a prompt cache line (v2.1.251 or later) with hits, misses, and whether the cache is warm. A long coffee break in a huge session is a real cost.
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
- Disable MCP servers you are not using with
/mcp. Tool definitions are deferred by default now, so the cost is lower than it used to be, but the docs still say CLI tools likegh,awsandgcloudare more context-efficient. See how to add an MCP server if you are deciding what to keep. - Filter noisy output with hooks. The docs example is a PreToolUse hook that greps test output for
FAILandERRORand returns only those lines, shrinking tens of thousands of tokens to hundreds. I have more patterns in 8 copy-paste hook examples. - Send verbose work to subagents. Test runs and log reads stay in the subagent's context and only a summary returns. The catch from the docs: their requests still draw on your usage, so pick a smaller model for simple ones. See the subagents guide.
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
- Start the day with
/usageto see where you are in both windows. /clearat every task boundary.- Default to Sonnet, move up for hard planning, and drop effort for mechanical edits.
- Check
/mcpweekly and remove what you did not touch. - Put heavy, parallel work right after a reset, not right before one.
- Set a credits spend limit if you enable credits at all.
- Every few days, open the
/usagebreakdown 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
- Exact limit sizes per plan. Anthropic does not publish them, and third-party numbers are guesses.
- The wrap-up allowance size and whether your account has it yet.
- The current five-hour limit values, which have changed more than once. Check the support articles instead of trusting a number from a blog.
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.