Code Tycoon Get Code Tycoon

Blog / Cost

Claude Code Usage Limits: 5-Hour Windows and Weekly Caps

How Claude Code usage limits work on Pro and Max: the five-hour window, the weekly cap, what counts, what to do at a limit, and how to see what is eating yours.

Claude Code Usage Limits: 5-Hour Windows and Weekly Caps

Claude Code on a Pro or Max plan runs under two limits at once: a five-hour session limit and a weekly limit, shared with Claude.ai. Anthropic publishes the rules, not the numbers, so you manage them by measuring your own use.

Table of contents

Everything here is as of 2026-11-23 and comes from Anthropic's help center and Claude Code docs. Limits change often. Treat any specific figure on a blog, including ours, as a snapshot, and check claude.com/pricing and the linked help articles before you plan around it. The plan prices are covered in our comparison of Claude Pro, Max 5x and Max 20x.

The two limits in one minute

Anthropic's Claude Code article says it directly: "Pro and Max plans have a five-hour session limit and a weekly limit." On the top tier, "Ultra plans have a weekly limit, and verified Ultra accounts don't have a five-hour session limit" (source). Max and Ultra also have a separate weekly limit for Fable, the most expensive model family.

Both limits draw from one pool. The same article says "these limits are shared across Claude and Claude Code, meaning all activity in both tools counts against the same limits." The help center adds that Claude.ai, Claude Code and Claude Desktop all draw from the same limit (source).

Limit What the docs say Source
Five-hour session limit Starts with your first message, resets in full five hours later Help center
Weekly limit Applies across all models, resets at a fixed time assigned to your account Max article
Fable weekly limit Separate weekly limit on Max and Ultra Max article
Shared pool Claude, Claude Code and Claude Desktop use the same limits Claude Code article
Number of prompts Not listed Claude Code article
Changes "Anthropic may adjust limits at its discretion to manage capacity" Help center

How the five-hour window works

The help center describes the session limit this way: "The five-hour period starts when you send your first message, and your limit resets in full five hours later." Three details follow from that sentence.

First, the clock starts when you start working, not on the hour. If you send your first message at 9:40, that window ends at 14:40, not at 14:00. Opening Claude Code and doing nothing does not start it. A message does.

Second, the reset is in full. You do not get a trickle back. When the five hours are up, the window is a fresh one. That is why people who hit the limit at the end of a window lose very little by waiting, and people who hit it in the first hour lose a lot.

Third, the window is not tied to a Claude Code session. You can run /clear, close the terminal or switch machines, and the five-hour clock keeps going, because the limit belongs to your account. Starting a new conversation does not reset it.

The practical effect is that the five-hour limit rewards steady work and punishes bursts. Four parallel sessions on Opus for 90 minutes can use a window faster than one session spread across five hours. If you run several agents, you are spending the window at a multiple of your own typing speed.

How the weekly cap works

The weekly limit applies across all models. The help center says each account gets a fixed weekly reset time and that "you receive your full weekly allowance each cycle" (source). The Max article says it "resets at a fixed time each week that is assigned to your account." You can see yours at Settings > Usage on claude.ai.

Two cautions about what you may read elsewhere. Some third-party articles describe the weekly limit as a rolling seven-day window, others as resetting on a particular weekday. Anthropic's own pages describe a fixed time assigned to each account, so look at your own reset time and ignore generic claims. And the two limits are independent: a fresh five-hour window does not refill a weekly allowance that is gone. A weekly limit stops you even when the current five-hour window has room.

The weekly cap is the one that decides whether a plan fits your habits. The five-hour window can be waited out. The weekly cap, once hit, means waiting until your reset time, or paying for more with usage credits. If you hit the five-hour limit often but the weekly never, a bigger plan with a bigger multiple helps. If you reach the weekly cap by Wednesday, look at your heaviest sessions before you buy more.

What counts against the limit

Anthropic names the factors that move your usage. The usage best-practices article lists longer messages, larger file attachments, longer current conversations, tool use, your choice of model, the effort level, creating artifacts, and multi-step tasks such as running code or browsing (source). The help center summarizes it as conversation length and complexity, the features you use, the model, and the effort level.

For Claude Code, the Claude Code docs explain what that means mechanically. Every request carries the entire conversation, because "the model doesn't remember anything between requests" (source). Each time Claude uses a tool, that is another request carrying the same history plus the new tool result. A session with a long history therefore costs more per step than a short one, even when the step is tiny. The costs page says so: "a one-line question in a session that has been open all day still draws usage for the whole conversation" (source).

Prompt caching softens this. Cached tokens are billed at a fraction of normal input, and on a subscription the main conversation requests a one-hour cache by default. But a cached read still counts as work, and a cache miss counts as the full history again. The Claude Code docs have a full page on how the cache works.

The docs also list things that spend usage when you are not typing:

  • Scheduled tasks inside a session fire on their interval even while the session is idle, each sending the full context.
  • Messages from another of your sessions arrive as a new turn when this session sits idle.
  • Goal check-ins can start a turn while background work waits, capped at three idle check-ins per goal between your prompts.
  • Subagents send their own requests on top of the main conversation's, and each agent-team teammate keeps consuming tokens until it exits.
  • Compaction reads the whole conversation it summarizes, so compacting a large context is itself a large request.

All five are on the "Why usage climbs in a long session" list in the costs doc. The same page gives a rough figure for agent teams: about 7x more tokens than a standard session when teammates run in plan mode.

What happens when you hit one

Claude Code shows "You've hit your session limit" or "You've hit your weekly limit", with the time the window resets. Those are seat-based windows shared across all models, so "the developer can't restore access by switching models with /model" (source). The exception is a model-specific message such as "You've hit your Opus limit" or "You've hit your Sonnet limit". After one of those, switching to a model outside that family keeps you working.

You have four options at a limit.

  1. Wait. On Claude Code v2.1.234 or later you can have Claude Code wait and continue the interrupted task automatically after the reset. The docs list when it starts the wait itself and when you pick it from /rate-limit-options.
  2. Use usage credits. If they are on, the help center says "your work continues on usage credits instead of stopping." You turn them on and set a monthly spend limit from /usage-credits, which opens Settings > Usage. The command is not available when you sign in with an API key.
  3. Move up a plan. The pricing page lists Pro at $20 a month, Max 5x at $100 and a $200 tier. Moving up changes the multiple and, on the $200 tier for verified accounts, removes the five-hour limit.
  4. Switch to API billing for the overflow. You pay per token and there is no five-hour window or weekly cap, only API rate limits and your spend.

Option 2 has a side effect that is easy to miss. Claude Code's one-hour cache default applies to a subscription "within your plan's included usage". When you go over and draw on usage credits, it drops the main conversation to the five-minute cache unless you set a TTL yourself. A session that continues past the limit can therefore get a shorter cache lifetime just when each request is costing real money.

How to see where your usage goes

The most useful command is /usage. On a Pro, Max, Ultra, Team or Enterprise plan it shows plan usage bars, activity stats, and a breakdown with attribution to skills, subagents, plugins and individual MCP servers. It also lists recommendations, each starting with a share of your recent usage of at least 10%, such as trimming a large CLAUDE.md or switching effort level. Press d for the last 24 hours or w for the last seven days (source).

The figures are approximate and computed from local session history on that machine. Usage from other devices or from claude.ai is not in them. That matters if you split work between a laptop and a server, or between chat and code: each machine shows its own part, and Settings > Usage on claude.ai shows the account total.

After the first response in a session, /usage also shows a Prompt cache (main) line on Claude Code v2.1.251 or later: the share of input tokens read from cache, the number of misses, and whether the cache is warm or cold. If creation stays high turn after turn, something in your prefix keeps changing.

For a session-level dollar figure, /usage computes an estimate from token counts at list price. The docs say that for subscribers the session cost "isn't relevant for billing purposes". It is still a useful relative measure: a session showing $40 used much more of your allowance than one showing $2.

Code Tycoon does the same thing across sessions and machines: it reads your transcripts, prices every session at API list prices, and ranks the habits that cost most. It is not an Anthropic tool and it does not read your account limits. The self-hosted version is free.

What drains limits fastest

We have a dataset for the shape of spend. From 2026-10-02 to 2026-11-23, one small team of ours ran 792 Claude Code sessions (54,344 requests) across 17 products and Code Tycoon itself. We priced the tokens at Anthropic's API list prices, so these are dollar-equivalents, not bills. This is one team and mostly one model (Opus 5.5 was 99.2% of the cost), so read it as one example.

Measure Value
Median session $3.28
90th percentile session $17.35
Largest session $144.47
Cost from requests with over 200k tokens of context 63.8%
Cold resumes after a gap of over one hour 405, costing $681 (11.4% of the total) in cache rewrites

Two things stand out for anyone managing limits. The cost is lopsided: a small number of sessions that grew very large account for most of it. And more than a tenth of the dollars were cache rewrites after the team came back to an old session. Subscription limits are not measured in dollars, but they count the same underlying work, so the habits that make a dollar total big are the habits that make a limit arrive early.

The levers, in the order we would try them:

  1. Clear between unrelated tasks. The costs doc says /clear "costs nothing" and that stale context "wastes tokens on every subsequent message". Use /rename first so you can /resume later.
  2. Do not leave giant sessions open. A session at 400k tokens costs several times more per step than one at 80k.
  3. Match the model to the task. The docs say Sonnet "handles most coding tasks well and costs less than Opus", and that simple subagent tasks can use model: haiku.
  4. Lower the effort level for easy work. Thinking tokens are billed as output tokens, and on Opus 5.5, Sonnet 5.5 and Haiku 5.5 you cannot turn thinking off.
  5. Cut tool overhead. Disable MCP servers you do not use, keep CLAUDE.md under about 200 lines, and move workflow instructions into skills, which load only when invoked (turning a CLAUDE.md section into a skill walks through the move).
  6. Check the background list above: loops, idle check-ins and agent teams are the usual surprises.

If you run four or five sessions on a server, you will not notice any single one draining your week. You need a per-session view. That is what the cost views in Code Tycoon are for, and the same reasoning is behind our post on what Claude Code costs per month.

What Anthropic does not publish

Be skeptical of any article that gives you "messages per window" for a plan. Anthropic's Claude Code article gives no prompt estimate for Pro or Max, and the pricing page expresses plans as multiples of Pro, not as counts. A number like "45 messages per five hours" is a third party's estimate, from a particular day, model and conversation length. Limits also vary with the model and context you use, so one number cannot hold.

Not listed anywhere we looked: the size of the Pro allowance in tokens or dollars, the weekly allowance in hours, how the Fable limit is sized relative to the all-models limit, and how the usage credit rate compares to API prices. If you need any of these for a budget, measure your own consumption in /usage for two weeks and plan from that.

The honest summary is that the limits are a black box with a good dashboard. You cannot know the size of the box, but you can see how fast you fill it, which sessions fill it, and how much headroom the next plan up gives you. If you are choosing between plans, our post on Pro, Max 5x and Max 20x lays out what each tier lists.

For anyone running agents unattended, one more point. A server that keeps sessions running while you sleep does not add capacity. It spends your window and your week while you are away. Our guide to running Claude Code on a dedicated server is about keeping sessions alive. Read this post first, so you know how fast they spend.

Frequently asked questions

How long is the Claude Code usage window?

Five hours on Pro and Max. The window starts when you send your first message and resets in full five hours later. Verified accounts on the $200 tier have no five-hour limit.

What is the Claude Code weekly limit?

A second cap that applies across all models and resets at a fixed time each week, assigned to your account. Max and Ultra also have a separate weekly limit for Fable. You can see your reset time at Settings > Usage.

Do Claude.ai chats count against Claude Code limits?

Yes. Anthropic says all activity in Claude and Claude Code counts against the same limits, and Claude Desktop uses the same pool.

Does /clear reset my usage limit?

No. The limits belong to your account, not to a session. /clear starts a fresh conversation, which makes later requests cheaper because the context is smaller, but it does not refill the window or the weekly allowance.

What can I do when I hit the limit?

Wait for the reset, optionally with Claude Code's wait-and-continue option on v2.1.234 or later, turn on usage credits with /usage-credits, move up a plan, or use API billing. Switching models with /model helps only after a model-specific limit message.

How many prompts do I get on Pro or Max?

Anthropic does not publish a number. The pricing page lists Max as 5x Pro and the top tier as 10x Pro weekly, and the help articles say usage depends on model, conversation length and effort. Any specific prompt count is a third-party estimate.

Conclusion

The five-hour window and the weekly cap are separate, shared with Claude.ai, and sized in a way Anthropic does not publish. Measure your own use with /usage, clear stale context, keep giant sessions from growing, and treat any quoted message count as a third-party guess.

Related articles

About this research

Code Tycoon is a tool built by developers who run their own products on Claude Code every day. The limit rules come from Anthropic's help center and Claude Code docs, read on 2026-11-23; quotes and URLs are in our sources file.

The cost shape comes from our own Claude Code transcripts (792 sessions, 2026-10-02 to 2026-11-23), priced at API list prices.

Content reviewed and updated: 2026-11-26


Keep reading