Claude Code 5-hour limit: how the session window works
The five-hour window is the limit most people hit first. It fills from your current session, so what is happening right now matters more than last week.
The Claude Code 5-hour limit is a session window that starts with your first message and lets you use your plan until it fills or five hours pass. Verified Ultra accounts have no five-hour limit. Long sessions, parallel agents and idle breaks fill the window fastest, and QuotaPlug removes that waste automatically so each window lasts longer.
How the Claude Code 5-hour limit works
Per Anthropic's support article (December 2026):
- The session limit covers a five-hour period that starts with your first message.
- When you hit it, you can use Claude again after the window resets, five hours after it began.
- Usage from claude.ai, Claude Desktop and Claude Code all counts toward it.
- Verified Ultra accounts do not have a five-hour limit. They still have a weekly limit.
On Pro the window is the baseline. Max gives 5x the five-hour usage. The weekly limit sits on top (see the weekly limit guide), so you can be fine in the five-hour window and still be near the weekly wall.
What fills a five-hour window fastest
Inside one window, three drivers decide how far you get.
- Session size. Each step re-sends the conversation. A big session can drain a window in a handful of tasks, while a small one barely moves it.
- Parallel and long-running agents. Every agent sends its own requests. Run several at once and the window drains several times as fast.
- Cache misses after a break. If you step away longer than the cache lifetime, your next message reprocesses the full context from scratch. Coming back to a huge conversation is expensive.
Model choice matters too. At list price, Opus 5.5 is $4/$20 per million tokens and Sonnet 5.5 is $2/$10. Your plan limit is not published in dollars, but it drains on the same drivers.
The lunch break problem: cache lifetime
Prompt caching only works while the cache is warm. Anthropic's docs describe the cache as having a lifetime, and the first message after a break longer than that lifetime misses the cache and reprocesses your full context. You can see the effect in the Prompt cache line of /usage, which reports misses, warm or cold status, and how many tokens were re-cached.
What that means for a five-hour window:
- A big conversation left idle over lunch costs a full reprocess on your next message.
- Short pauses inside the cache lifetime are cheap. It is the long gaps that hurt.
- You rarely notice it happen. The window just closes earlier than your work suggests.
Does switching models help once you hit it?
For the session limit, no. It is shared across models. Anthropic's docs say a developer cannot restore access by switching models with /model. The exception is a model-specific message such as "You've hit your Opus limit": then a model outside that family keeps you working.
When the window closes anyway
If you hit it, you have three official options. Let Claude Code wait: on v2.1.234 or later, choose waiting from /rate-limit-options, and it continues the task after reset. Run /usage-credits to keep going on credits with a monthly spend limit you control. Or wait for the reset and plan lighter work for the gap.
One more thing worth knowing: the window starts at your first message, so a 9:00 start means a reset at 14:00. Heavy work planned for just after a reset gets a full allowance instead of the tail of the last one.
Why QuotaPlug handles the window for you
Pacing a window by hand works when you remember it. At 4pm in the middle of a bug hunt you do not. The waste that closes a window early is invisible while you work, and it is the same waste every day.
QuotaPlug is a usage optimizer for Claude Code that makes a Claude Pro, Max or Ultra plan last 2 to 4 times longer. Same model, same effort level, same quality, and no changes to how you prompt. It installs in one command and runs locally.
It handles the waste in the background, so each five-hour window goes further. Try the audit first. It reads your local logs and costs nothing:
npx quotaplug auditSee the plans if you want it to run continuously.
Frequently asked questions
How long is the Claude Code 5-hour limit?
Which plans have a 5-hour limit?
Can I see how much of my 5-hour limit is left?
/usage shows plan usage bars.