Subscribe

How do I check my Claude Code usage and limits?

Last updated

Short answer: Type /usage at the Claude Code prompt. On a Pro, Max or Ultra plan, it shows bars for your plan limits plus a breakdown of what used them, and if you pay through the API, it shows the session's tokens and an estimated dollar cost. On claude.ai, Settings > Usage shows the same limits along with when your five-hour session and weekly limit reset. For a number that stays on screen, you can set up a custom status line to show your 5-hour and 7-day percentages.

Start with /usage

Run /usage and you'll see plan usage bars, activity stats and a usage breakdown if you're on a subscription. The Session block at the top is meant for API users. Anthropic's docs say its dollar figure isn't relevant for billing on Pro, Max or Ultra, because that usage is included in the plan. On the API, the figure is an estimate that Claude Code works out on your machine from token counts at list price, so your billing page, not this screen, is the authoritative number. Running /clear starts a new session and resets those session totals to $0.

What the breakdown tells you

The breakdown is the useful part when you keep hitting limits. It splits your recent usage between skills, subagents, plugins and individual MCP servers, then lists suggested changes for anything behind 10% or more of it, such as trimming an oversized CLAUDE.md or lowering the effort level. Press d or w to switch between the last 24 hours and the last 7 days. These numbers come from session history on the machine you're using, so they leave out claude.ai and your other computers. On version 2.1.305 or later, pressing f lets Claude Code apply the recommendations it can.

Check reset times on claude.ai

Open Settings > Usage on claude.ai to see your current session with the time left on it, and your next weekly reset. The five-hour window starts with your first message, while the weekly reset happens at a fixed time Anthropic assigns to your account. Claude chat, Claude Code and Claude Desktop all draw from the same limit, which explains why a long chat can leave less room for coding. Verified Ultra accounts don't have a five-hour limit.

Keep it on screen with the status line

If you'd rather not keep typing /usage, a custom status line can read the same limits. Claude Code passes it rate_limits.five_hour.used_percentage and rate_limits.seven_day.used_percentage, plus a resets_at time for each window. Those fields appear only for Pro, Max and Ultra subscribers (or behind a Claude apps gateway that sets a spend limit), and only after the first response in a session, so your script should handle them being missing. The docs suggest a jq expression with // empty for exactly that.

When /usage says it's rate limited

A message like "rate limited until 3:14am" in /usage is about fetching your usage numbers, not about your work. Claude Code shows the last bars it loaded on that machine within the past hour, marked as last-known usage, and pressing r retries. If you hit an actual limit instead, the message names a session limit or a weekly limit and tells you when it resets. Switching models won't get around those two, since they cover every model.

Sources

Free PDF: the AI Coding Cost Cheat Sheet. Enter your email to download it, plus one email a week when picks or prices move.

FAQ

Why does /usage show a dollar cost on my Max plan?

That's the Session block, which Anthropic says is meant for API users. On Pro, Max and Ultra, your usage is included in the plan, so the figure doesn't affect your bill.

Does /usage include my claude.ai chats?

The plan bars cover your whole account, because the limit is shared across claude.ai, Claude Code and Claude Desktop. The breakdown below them only counts Claude Code sessions on the machine you're using.

How do I see when my Claude Code limit resets?

Settings > Usage on claude.ai shows the time left in your current session and your next weekly reset. If you hit a limit, Claude Code's message also tells you when it resets.

Can I keep working after hitting the limit?

If you turn on usage credits, yes. Run /usage-credits, which opens Settings > Usage on claude.ai for Pro, Max and Ultra subscribers, and while credits are on, /usage shows this month's spend. Otherwise you wait for the reset.

Do affiliate links affect this answer?

No. There is no affiliate link on this page, and affiliate status never affects our picks.

Next steps

Spotted an error? Send a correction.

Free: the AI Coding Cost Cheat Sheet (PDF)

What $0, about $20 and $100+ a month gets you across 22 AI coding tools, with prices copied from vendor pages when we wrote it; plans change often, so check each vendor's page before you buy. Enter your email to download it now. You'll also get our free weekly email: what shipped and which picks or prices moved, about a 2-minute read. Unsubscribe anytime.