How to Check Your Claude Code Usage Limit and Fix What's Eating Your Plan

Introduction

You are halfway through a refactor, the tests are green, and then Claude Code stops with a limit message and a reset time hours away. What broke is your plan budget, and Claude Code already knows exactly what spent it. Since version 2.1.305, the /usage screen names the culprit and offers to fix the fixable parts itself. This tutorial shows how to read that screen, act on it, and stop the same limit from eating your next workday.

Quick answer

Run /usage in Claude Code. Read the two bars (5-hour session, weekly), then the “What’s contributing to your usage?” breakdown to see which skill, subagent, or MCP server is eating your plan. Press f to apply the fixes it can.

The hard part

The hard part is not opening /usage, it is reading the breakdown correctly, because the percentages overlap, they are approximate, and they only cover sessions on this machine.

Checked on

Checked on 2026-11-23 against the Claude Code costs documentation and the Claude Code changelog (v2.1.330 is the latest release). Interfaces change fast, so if a menu or label differs, trust the linked page.

Evidence

Every paid Claude plan runs on a rolling 5-hour session limit plus a weekly limit, and Claude Code, claude.ai, and the desktop app draw from the same pool. Claude’s pricing page puts the tiers at Pro for $20 a month ($17 billed annually), Max for $100 a month with 5x Pro usage every 5 hours and every week, and Ultra for $200 a month with 10x Pro usage every week and no 5-hour limit for verified accounts.

The tool that makes the budget visible changed in a real, dated release. The Claude Code changelog for v2.1.305 says: “Improved /usage: each warning is now a one-line fix that names its source, and f applies the fixes; the same fixes appear in VS Code and /doctor.” Be on that version before you trust the f key; the current release, v2.1.330, is well past it.

Two numbers from the official costs docs set expectations. A recommendation row only appears when one cause reaches at least 10% of your recent usage. And the shares overlap: one request at 160K context that missed the prompt cache counts toward both causes, so the percentages can add up to more than 100%. Treat the rows as a ranking of suspects, not as an exact token ledger.

Prerequisites

  • Claude Code installed. Run claude --version and claude update first. The f fix shortcut needs v2.1.305 or later.
  • A paid Claude plan: Pro, Max, Ultra, Team, or Enterprise. API key authentication shows session token costs, not plan bars, so the breakdown section does not apply to it.
  • A few hours of recent sessions on this machine. A fresh install has almost nothing to attribute.

Step-by-step guide

Step 1: Open /usage and read the two bars

At the Claude Code prompt, type /usage. The screen opens on two bars. Current session is your rolling 5-hour window, with the percentage used and the time it resets in full. Current week (all models) is the weekly limit, with its reset day and time. Below the bars, the Session block shows the current session’s token counts and an estimated cost.

The weekly bar is the one that ruins weeks: a session limit costs you at most a few hours, because the window resets five hours after your first message, while a weekly limit locks you out for days. When the two bars disagree, act on the weekly bar first.

Claude Code costs docs showing the Using the /usage command section

The official Claude Code costs docs, captured 2026-11-23.

Step 2: Switch windows and read the breakdown

Press d for the last 24 hours or w for the last 7 days. The breakdown below the bars is titled “What’s contributing to your usage?” and it has three parts: attribution, recommendations, and loops.

Attribution splits recent usage across your skills, subagents, plugins, and individual MCP servers, each with a percentage. An MCP server’s share counts only requests that consumed one of its tool results. Before v2.1.222, one call made Claude Code blame that server for every later request, so update before trusting an old reading.

Recommendations are up to five rows, largest share first, each a share plus one action, for example 85% Start fresh when you switch tasks · run /clear. A row only appears when its cause is at least 10% of the period’s usage.

Loops is one row per heavy /loop or scheduled task that ran recently (v2.1.242 or later).

For the session you are in right now, run /context to see the same picture as a grid of what fills the context window.

Run /usage → read the two bars (5h session, week)
→ read the breakdown (d = 24h, w = 7 days)
→ press f for what it can fix, run the "run ..." rows by hand

Example, replace with your values:

Current session: 14% used · resets today at 9:20pm
Current week (all models): 61% used · resets Thursday at 8:00pm
What's contributing to your usage?
Approximate · sessions on this machine only · shares overlap
Last 24h · 317 requests · 6 sessions
  95%  Start fresh when you switch tasks · run /clear
  40%  Check which models your subagents use
  21%  Turn off wmedia when you don't need it
  f to fix 2 of 3 · d to day · w to week

The session bar looks healthy at 14%, but the weekly bar at 61% says the account is more than halfway through the week. The 95% row is the real story: almost every request carried a stale, overgrown conversation.

Step 3: Press f and watch what it actually does

When the footer shows a hint like f to fix 2 of 3, press f. Claude Code then acts on the rows it can, after the current turn ends:

Row shapeExample rowWhen you press f
Ends in an /effort command with no run before it40% Switch from max to high effort · /effort highClaude Code runs the command for you
Ends in run and a command30% Compact before you step away · run /compactNothing happens. Run the command yourself
Ends in anything else25% Trim ~/code/api/CLAUDE.md · 49k tokens per requestClaude gets a prompt step for the rows it can act on, and shows you each change first

The first number in f to fix 2 of 3 counts the rows Claude Code acts on, and the second counts the rows shown. Remote Control being connected hides the hint entirely, and if pressing f closes /usage with Nothing was sent. Turn off Remote Control to use fixes, disconnect Remote Control and run /usage again.

Step 4: Fix the rows f cannot fix

Four fixes cover most of what f leaves behind.

Compact the long session. A session that has run for hours carries its whole history into every request, which is why the “start fresh” row so often reads 85% or 95%. Run /compact to summarize it, or /clear when you switch tasks. Compact before stepping away: v2.1.305 added a warning on Pro and Max when resuming an inactive conversation would use a noticeable share of your 5-hour limit. We could not verify that idle sessions auto-compact on their own; vendor docs describe auto-compact when context fills, so treat a long-idle session as a /compact candidate, not as already compressed.

Move subagents to a cheaper model. Subagents inherit the session model, so a fleet of general-purpose subagents on Opus burns the plan several times faster than the same work on Sonnet. The Claude Code subagent effort levels guide shows how /effort and per-agent model settings change the cost. If one agent type owns 90% of usage, its model is the fix, not your main session.

Turn off MCP servers you are not using. A server counts only when its tool results are consumed, but a chatty one adds up fast. The Claude Code MCP setup guide covers scoping, so disable servers outside the current task instead of leaving all of them enabled.

Trim CLAUDE.md. The docs show rows like Trim ~/code/api/CLAUDE.md · 49k tokens per request, meaning the file alone costs 49,000 tokens per request. Move reference material into files Claude reads only when needed; the Claude Code projects guide explains how project memory files are layered.

Step 6: Get the pattern view with /insights

When the same limit hits every week, look at the pattern. Run /insights: it analyzes up to 200 recent sessions on this machine and writes an HTML report to ~/.claude/usage-data/report.html. The report’s tokens count against your plan, so run it once a week.

Step 7: Decide whether to upgrade or pay per token

If the breakdown is clean and you still hit the weekly cap every week, the plan is too small. Two escapes exist. Usage credits let you keep working past the limit at API rates: run /usage-credits to open Settings > Usage on claude.ai, turn credits on, and set a monthly spend limit. Or switch to API key authentication, where there are no plan limits at all, only rate limits and whatever spend limit you set. At list rates, Opus 5.5 costs $4 per million input tokens and $20 per million output tokens, so a session with 100,000 input tokens and 20,000 output tokens costs about $0.80.

Copy-paste template: weekly usage triage

# Add to ~/.bashrc or ~/.zshrc: print both usage windows without opening the UI
alias cc-usage='claude -p "/usage"'
Weekly Claude Code usage triage (run the day before your weekly reset)
[ ] 1. Run `cc-usage` and note the weekly percentage and reset time.
[ ] 2. Open `/usage`, press `w`, and write down the top 3 rows and their shares.
[ ] 3. Press `f`, then re-open `/usage` and confirm the fixed rows dropped.
[ ] 4. For each remaining row ending in "run ...", run that command by hand.
[ ] 5. If one subagent type owns more than 50%, lower its model or effort level.
[ ] 6. If one MCP server owns more than 20%, disable it outside the task that needs it.
[ ] 7. If the weekly bar is above 80% with days left, decide now: usage credits,
       API key for the rest of the week, or stop and wait for the reset.

When not to use this / Limits

Do not use /usage as your only source of truth. Its attribution is approximate and local: it leaves out claude.ai chats, other devices, and Cowork sessions, so a clean breakdown can hide heavy usage from your phone. API key users get no plan bars at all, and the session cost figure is an estimate computed locally at list price, not a bill. Do not chase the percentages to zero. Usage is a budget, not a score, and a week at 60% with nothing blocked is healthy. Use /usage when a limit blocks you or once a week as a check, and use claude.ai Settings > Usage for the authoritative account-wide picture.

Cost / scale math

One API session. On Opus 5.5 list rates ($4 input, $20 output per million tokens), a session with 100,000 input tokens and 20,000 output tokens costs 100,000 x $4 / 1,000,000 + 20,000 x $20 / 1,000,000 = $0.40 + $0.40 = $0.80. Ten such sessions cost $8.00, still far less than the $80 gap between Pro and Max, so usage credits on Pro are cheaper than Max for a few overflow sessions a month.

Pro versus Max. Max costs $80 more per month than Pro and gives 5x the usage every 5 hours and every week. If Pro locks you out two days a month and each lost day costs you more than $40 in billable time, Max pays for itself. If the lockout costs you an evening of side-project time and nothing billable, it does not.

Cache is the cheapest token. Prompt cache reads cost $0.20 per million tokens against $4 for fresh Opus 5.5 input, so a cached token is 20 times cheaper than a fresh one. That is why the “start fresh” and “compact” rows matter: a compacted session rebuilds a warm cache once and then reads cheaply, while a sprawling session pays full price for stale history on every request.

Troubleshooting

SymptomLikely causeCommand to checkFix
/usage shows “Showing last-known usage” with old barsThe usage endpoint is rate limitedPress r to retryWait until the time in the message, such as rate limited until 3:14am, then press r
Pressing f does nothing, or /usage closes with “Nothing was sent”Remote Control is connectedCheck the Remote Control statusDisconnect Remote Control, then run /usage again and press f
/usage shows session cost but no plan barsSigned in with an API key, not a subscriptionRun /login and check the auth methodSign in with your claude.ai subscription. API users see token costs, not plan limits
Footer says f to fix 2 of 3 but one row stays after fThe remaining row ends in run /compact or similarRead the row’s endingRun that command yourself at the prompt. f never runs run ... rows

Common mistakes

  • Watching the session bar and ignoring the weekly bar. The session bar resets in five hours, so it almost always looks fine. The weekly bar is the one that locks you out for days, so read it first.
  • Treating the percentages as exact token counts. The rows are weighted shares from approximate local history, and they overlap. A 95% row and a 40% row do not mean 135% of anything.
  • Pressing f and assuming everything is fixed. Rows ending in run ... need a manual command, and rows that ask Claude to change a file show you the change first. Re-open /usage after f and confirm the rows actually dropped.
  • Resuming a days-old session instead of starting fresh. Resuming reloads the whole history and can burn a noticeable share of your 5-hour window before you type anything. Start a new session and refer to the old one by name.

Test before you rely on it

  • Run /usage and confirm both bars appear with a percentage and a reset time.
  • Press d and then w, and confirm the window label changes between 24 hours and 7 days.
  • Run claude -p "/usage" in a plain terminal and confirm both windows print without opening the UI.
  • Press f once, re-open /usage, and confirm at least one fixed row dropped or changed.

FAQ

How do I check my Claude Code usage limit?

Run /usage inside Claude Code. It shows your current 5-hour session and your current week, each with a percentage used and a reset time. Below the bars, the breakdown shows which skills, subagents, plugins, and MCP servers used the most.

What does “f to fix 2 of 3” mean in /usage?

It means /usage shows three recommendation rows and Claude Code can act on two of them when you press f. The first number counts the rows it acts on, the second counts the rows shown. A row ending in run /compact is not auto-fixed, so run that command yourself.

Why does /usage show different numbers than Settings > Usage on claude.ai?

The breakdown is computed from local session history on this machine, so it leaves out claude.ai chats and sessions on other devices. The plan bars come from Anthropic’s usage endpoint, but the attribution below them is local only.

What usually eats the most plan usage: subagents, MCP servers, or long context?

Long context is usually the biggest single cause, because every request re-sends the conversation history. Subagents are next when they run on the expensive model, and MCP servers count only for requests that consumed one of their tool results.

Can I keep working after hitting my Claude Code usage limit?

Yes. Usage credits let you pay API rates past the limit, managed with /usage-credits. Or switch to API key authentication, where you pay per token instead of drawing on plan limits, at Opus 5.5 list rates of $4 input and $20 output per million tokens.

Conclusion

The next time Claude Code tells you the limit is hit, do not guess. Open /usage, read the weekly bar first, then read the breakdown, press f, and run the run ... rows by hand. Most weeks the fix is one of three things: compact the stale session, move a subagent to a cheaper model, or turn off an MCP server you are not using. Before your next long session, ask which row of /usage would own the biggest share after six hours. If you cannot answer, open /usage now and learn while the fix is still cheap. Next, read the Claude Code model switching and cost guide to control which model each part of your workflow runs on.

Frequently asked questions

How do I check my Claude Code usage limit?

Run /usage inside Claude Code. It shows your current 5-hour session and your current week, each with a percentage used and a reset time. Below the bars, the 'What's contributing to your usage?' breakdown shows which skills, subagents, plugins, and MCP servers used the most.

What does 'f to fix 2 of 3' mean in /usage?

It means /usage shows three recommendation rows and Claude Code can act on two of them when you press f. The first number counts the rows it acts on, the second counts the rows shown. A row that ends in 'run /compact' is not auto-fixed, so you run that command yourself.

Why does /usage show different numbers than Settings > Usage on claude.ai?

The breakdown in /usage is computed from local session history on the machine you are sitting at, so it leaves out claude.ai chats and sessions on other devices. The plan bars come from Anthropic's usage endpoint, but the attribution below them is local only.

What usually eats the most plan usage: subagents, MCP servers, or long context?

Long context is usually the biggest single cause, because every request re-sends the conversation history. Subagents are next when they run on the expensive model, and MCP servers count only for requests that consumed a tool result.

Can I keep working after hitting my Claude Code usage limit?

Yes, in two ways. Usage credits let you pay API rates past the limit, and you manage them with /usage-credits. Or switch to API key authentication, where you pay per token instead of drawing on plan limits, at Opus 5.5 list rates of $4 input and $20 output per million tokens.

TP
ToolPilot Team

We install, break, and fix automation tools so you don't have to. Every tutorial on ToolPilot is tested hands-on before publishing.

Keep reading