Guide
Claude Code usage limits explained
Claude Code enforces usage limits based on your Anthropic plan. This guide covers what counts toward your limits, how the different windows work, and how to get the most out of your quota.
How Claude Code limits work
Anthropic tracks your Claude Code usage on two separate timers:
- 5-hour session window — starts when you send your first message. Resets 5 hours later regardless of activity. See reset details.
- 7-day rolling weekly cap — a total budget over a 7-day period. As old usage rolls off, new capacity becomes available.
Hitting either limit pauses Claude Code. The 5-hour window is what most users encounter first. The weekly cap mainly affects developers who use Claude Code for many hours every day.
Limits by plan
| Plan | Price | Session limit | Weekly cap | Models |
|---|---|---|---|---|
| Pro | $20/mo | 1x | 1x | Sonnet (default), Opus on demand |
| Max 5x | $100/mo | 5x | 5x | Sonnet + Opus |
| Max 20x | $200/mo | 20x | 20x | Sonnet + Opus |
Anthropic does not publish exact token numbers for each tier. The multipliers (5x, 20x) are relative to the Pro plan baseline. Actual limits may vary as Anthropic adjusts pricing and capacity.
What counts toward your limit?
- Input tokens — your messages, system prompts, file contents that Claude reads, and tool results.
- Output tokens — Claude's responses, code edits, and tool call arguments.
- Tool calls — each Bash command, file read, file edit, grep, etc.
- Context window — longer conversations accumulate more input tokens because the full history is sent with each turn.
How to check your current usage
Inside Claude Code, run:
/usage This shows your remaining quota and when the current 5-hour window resets. For a more detailed breakdown across sessions:
npx vusage limits VibeUsage reads your local Claude Code data to show session counts, token usage, tool call breakdowns, and personalized tips.
Tips to maximize your limits
- Run
/compactwhen conversations get long — it summarizes history to reduce token usage. - Start fresh sessions for new tasks instead of continuing one giant conversation.
- Be specific in prompts — vague requests cause Claude to explore broadly, using more tokens and tool calls.
- Use targeted tools —
Grepfor searching is much cheaper than having Claude read entire files. - Check your patterns with
npx vusage— you might discover that most of your tokens go to a specific type of operation that can be optimized.
Rate limiting vs usage limits
Rate limiting and usage limits are different things:
- Usage limits — total budget per 5-hour/7-day window. Once exhausted, wait for reset.
- Rate limiting — requests-per-minute throttling. Temporary, resolves within seconds. Usually happens during peak hours.
If Claude Code says "rate limited," wait a few seconds and retry. If it says "usage limit reached," check your reset time.
Frequently asked questions
What are Claude Code usage limits?
Claude Code has two limits: a 5-hour session window and a 7-day rolling weekly cap. The exact amounts depend on your plan (Pro, Max 5x, or Max 20x). When you hit either limit, Claude Code pauses until the window resets.
How do I check my Claude Code usage limits?
Run /usage inside Claude Code to see your current usage and reset time. For a more detailed breakdown, use the open-source VibeUsage CLI: npx vusage limits.
What is the difference between Pro and Max plans for Claude Code?
Pro ($20/month) gives standard usage limits. Max 5x ($100/month) multiplies limits by 5. Max 20x ($200/month) multiplies limits by 20. Both session and weekly caps scale with the plan.
Can I use Claude Code with a free plan?
Claude Code requires a paid Anthropic plan (Pro or Max). There is no free tier for Claude Code usage.
What counts toward Claude Code usage limits?
Input tokens (your messages, file contents read by Claude), output tokens (Claude's responses, code edits), and tool calls all count toward your usage limits. Longer conversations consume more tokens.
Track your usage with VibeUsage
Open-source CLI that shows sessions, tokens, rate limits, and personalized tips.
npx vusage Want real-time monitoring in your MacBook notch? Try Vibe Island.