Claude Code Rate Limits & Usage
Claude Code's `/usage`, `/extra-usage` and `/cost` commands for real-time consumption monitoring. 5-hour rolling rate limit window, the limit resets by sliding window, not at a fixed time. Extra usage billing on overage, configurable spending cap to avoid end-of-month surprises.
Strengths
- Built-in /usage + /extra-usage + /cost commands, instant visibility without external tool
- Configurable spending cap, protection against accidental overages
- 5-hour sliding window, short breaks recover quota without waiting until midnight
Limitations
- Non-intuitive sliding window mechanics, hard to predict exactly when the limit resets
- Extra usage billed outside subscription, without spending cap, risk of overbilling
Best for
- Power users launching long sessions or CI pipelines that may hit limits
- Teams wanting to monitor Claude Code consumption before choosing a subscription plan
- Devs billing Claude Code to a client, /cost gives the breakdown per session