Two windows, not one
| Window | How it refills | What it stops |
|---|---|---|
| Every 5 hours | Continuously, as the window rolls forward | A long unbroken session |
| Every week | Once, at the reset | Sustained heavy use across days |
Most people notice the 5-hour window first and assume it is the constraint. For anyone using Claude Code daily, the weekly window is the one that ends the plan.
Why Claude Code drains a limit faster than chat
- Context is re-sent every turn. The model has no memory between requests, so Claude Code resends the system prompt, project context, every prior message and every tool result on each turn.
- The meter discounts the re-read. Cached portions count far less against your limits than new content — Anthropic says so directly, and measurement puts a cache read at well under 1% of a fresh token.
- Tool output is input. File contents, command output and diffs all land in the context and are re-read on later turns.
- Model choice multiplies it. Opus spends the allowance faster than Sonnet for the same work.
Headless use is worse than interactive use: one measurement found claude -p filling the 5-hour meter about 1.5x faster than interactive sessions doing the same work.
Ways to stay inside the limits
- Keep sessions warm rather than restarting them. A cold session re-reads everything at full price.
- Avoid changing the system prompt, tool definitions or CLAUDE.md mid-session — editing the prefix invalidates everything behind it.
- Route simple work to Sonnet or Haiku. The meter is the same; the work per unit is not.
- Trim large tool outputs. A 500 kB file read is roughly 125,000 tokens.
- Watch the weekly window, not the 5-hour one, and plan heavy refactors for after the reset.
What a metered plan changes
A metered plan has no windows. You buy an amount of usage, measured at API list value, and it is drawn down as you work. There is nothing to exhaust mid-week and nothing to wait for.
gatewaydock charges 10.5% of list, so $69 buys $657 of usage. The only cap is a daily one, which paces spending rather than removing it. Plans are on Claude Code pricing.
Questions
What are the Claude Code usage limits?
A 5-hour window and a weekly window, both expressed as multiples of the Pro allowance. Anthropic does not publish token counts for either.
What happens when I hit the Claude Code limit?
Requests stop until the window refills. The 5-hour window clears quickly; the weekly window does not, so a heavy week can leave you waiting days.
What are the Claude Code rate limits on the API?
The API uses rate limits by usage tier — Start, Build and Scale — measured in requests and tokens per minute, not in weekly allowances. They are documented separately from subscription limits.
Sources
- How usage and length limits work — Anthropic support
- Usage limit best practices — Anthropic support
- How Claude Code uses prompt caching
- Rate limits — Claude Platform docs
Last checked 2026-12-06.
Private beta
Founding members keep their price. Join the waitlist before the first batch of seats opens.