How to Check Claude Code Usage and Limits on a Mac
Check Claude Code usage, tokens and cost from local logs, see how subscription limits differ from API spend, and keep a task going when you hit a limit.
GuideUpdated 9 min read
On this page
To check your Claude Code usage on a Mac, read the session logs Claude Code saves locally as JSONL files. The quickest way to do that is ccusage: bunx ccusage daily prints token use and cost per day, and bunx ccusage blocks groups usage into Claude Code's 5-hour billing windows. If you run Claude Code alongside other agents, Sledbot's Insights reads the same logs and breaks tokens and cost down by model, provider and agent. When an account hits its limit, Sledbot can also hand the task to another account or model in the same worktree.
Where Claude Code records usage on your Mac
Claude Code writes its sessions to disk as JSONL files. Usage trackers work by reading those files. ccusage reads them directly, so it needs no account. Sledbot reads Claude Code's session logs read-only and never reads your login credentials.
This has a few practical effects:
- Deleted transcripts mean lost history. ccusage reads the files directly, so if you delete old transcripts to save disk space, it can't report on those sessions any more. Sledbot's Cleanup only includes "Agent CLI transcripts" if you opt in.
- Each config folder is separate. Claude Code keeps its login in a config folder, and two logins in the same folder overwrite each other. Sledbot avoids that by giving each Claude account its own folder through
CLAUDE_CONFIG_DIR. If your sessions are spread across several folders, a log reader only counts the folders it reads. - Logs stay on the machine where Claude Code ran. Usage from a remote server is recorded on that server, not on your Mac.
We don't give the exact log path here. It's Claude Code's internal layout, and the tools below find the logs for you.
Check Claude Code usage from inside a session
Claude Code has its own slash commands. For the ones that report cost and plan usage in your version, see Anthropic's Claude Code documentation.
ccusage also gives you two ways to check without leaving the session:
- Ask Claude Code to run ccusage. Claude Code can run
ccusageitself and answer questions like "how much have I used today?" from the output. - Show usage in the status line.
ccusage statuslineadds usage to Claude Code's status line, so you can see it while you work. Setup details are on the ccusage npm page.
Read Claude Code usage totals with ccusage
ccusage is a command-line tool from the JavaScript ecosystem, and you run it with bunx. bunx comes with Bun, so install Bun first if you don't have it. These commands only read your logs and change no settings.
bunx ccusage dailyThis prints token use and cost per day.
bunx ccusage blocksThis groups usage into Claude Code's 5-hour billing windows. Use it when you're watching a subscription limit.
ccusage also has weekly, monthly and session reports for other time slices.
What ccusage doesn't do: it only reports usage and cost. It doesn't run or manage agents, and it has no GUI. An unrelated Rust project also uses the name ccusage (a multi-account Claude Code usage dashboard). Before you copy commands from a guide, check which of the two it covers.
Which method to use
| Method | What it shows | Agents covered | Price (as of November 2026) |
|---|---|---|---|
| Claude Code's own commands | Whatever your Claude Code version reports | Claude Code | Comes with Claude Code |
| ccusage | Daily, weekly, monthly, per-session and 5-hour window reports; status line | Mainly Claude Code | No paid plans found |
Sledbot Insights and sled stats | Tokens and cost by model, provider, agent, account and machine; plan limits per account; CSV/JSON export | Claude Code, Codex, OpenCode, plus Sledbot's own agent and jobs | Part of MacSuite, $349 one-time |
If you only use Claude Code with one account, Claude Code's own commands plus ccusage are enough.
Subscription limits vs API spend
Claude Code can run on a Claude subscription or on an Anthropic API key. "Usage" means something different for each.
Subscription. You pay a flat monthly price, and usage limits reset over time. ccusage's blocks report shows the 5-hour windows. Anthropic lists Claude Code on its paid plans. As of November 2026, third-party price reports list Pro at $20/month ($17/month billed yearly), Max at $100 or $200/month, and Team from $20 per seat. These figures aren't from Anthropic, so check Anthropic's site before you decide.
API key (Anthropic Console account). You pay per token, so cost is the number to watch.
Keep this in mind when you read cost totals. On a subscription, a dollar figure calculated from token prices shows what the same work would cost on an API key. It isn't your bill. Sledbot marks every cost as either "exact" or an "estimate". Estimates use list prices from the models.dev catalogue.
What happens when you hit a usage limit
When Claude Code reaches a usage limit, it prints a limit message in the terminal and can't continue until the limit resets. Edits it already made stay in your files.
Without extra tools, you can:
- Wait for the reset. Then carry on in the same session. If you closed it,
claude --continuepicks up the most recent conversation andclaude --resume <id>opens a specific one. - Log in to another account. Logging in again in the same config folder replaces the current login. You're switching accounts, not adding one.
- Move to an API key if you need to keep going now and accept per-token pricing.
- Hand the work to a different agent. Give it the task, what's done so far and the current
git diff.
In Sledbot, the limit is detected for you. Sledbot reads the limit message from the agent's screen and marks the agent as blocked with the kind "limit". It then shows up in several places:
- Needs you lists the agent as "At its usage limit, resets …".
- The banner on the agent's session page shows "Resets
<time>." - Settings ▸ Accounts shows the account as "At limit (resets HH:mm)".
- Today shows "
<account>at limit · Resets …" under Usage. - The "Hit a usage limit" sound plays (on by default), unless you're looking at that agent.
Sledbot's Health check also flags rate limits ("<who> hit a rate limit"). One of its fixes is Switch account, which opens Settings ▸ Accounts.
Continue the task on another account or model
Option 4 above works, but you have to gather the context yourself every time. Sledbot's fallback gathers it for you. (We make Sledbot, so weigh this section accordingly.)
Fallback chains belong to teammates, which are named, persistent agents. To get an automatic handoff, run the task through a teammate.
Set up accounts and a fallback chain
- Open Settings with ⌘, (Command-Comma) and choose Accounts.
- Click Add account….
- Choose Subscription (CLI login).
- Fill in Agent, Machine, Plan (optional) and Label.
- Click Add and log in, then log in with the CLI itself. Sledbot gives this login its own config folder and never sees your password.
- To add an API key instead, save the key under Providers first. Then choose API key in Add account…, pick the Provider and click Add. Sledbot refuses Claude subscription login tokens (they start with
sk-ant-oat), so add subscriptions through the CLI login instead. - Open the teammate (sidebar Team, then the teammate) and go to its Settings tab.
- Put the accounts in order in the Accounts list, and add entries to Fallback. Without a fallback, work pauses at the limit.
- Click Save (⌘S).


What the handoff does
When the current account hits its limit, Sledbot:
- Sends Ctrl-C twice to stop the agent cleanly, and ends it if it doesn't stop.
- Starts the next entry in the same worktree with a handoff prompt. The prompt contains the task, the last plan,
git status --short,git diff --stat, thegit diff(cut at 12,000 characters) and the last 200 lines of the screen. - Records it in the agent's activity: "Switched from X (at limit, resets HH:mm) to Y". If no entries are left, it records "X is at its limit and the fallback chain is exhausted".
Limits of the handoff:
- Stacking is opt-in. Nothing switches unless you list more than one entry.
- A Claude subscription is never chained into another Claude subscription. Fall back to an API key, another agent or a model instead. Some providers restrict using several personal subscriptions this way, so check their terms before you stack accounts.
- A model entry in the chain runs through OpenCode by default.
Track Claude Code usage across agents in Sledbot
Insights collects usage from Claude Code, Codex and OpenCode logs, plus Sledbot's own native agent and delegated jobs. Usage from other CLI agents isn't counted.
- Per agent: on an agent's session page, the Usage section of the details rail shows Model, Account, Tokens, Cost, Account today and Limit. Show or hide the rail with ⌥⌘I (Option-Command-I).
- Quick look: press ⇧⌘I (Shift-Command-I) or click the Insights button in the toolbar. The popover shows weekly or daily cost, top models and accounts.
- Full view: click Insights in the sidebar. Tabs include Overview, Usage and Models & Providers. Set a range (Today through All time, or Custom) and break tokens down by model, provider, agent, machine or source.
- Export: CSV… or JSON… writes your usage records to a file.


Each account card in Settings ▸ Accounts also shows "N tokens today" and today's cost, and the Today page shows your API spend for the day.
You can get the same data from the sled command. Every Sledbot terminal already has it on its PATH.
sled stats --range 7d --by accountTokens and cost for the last seven days, per account.
sled stats limitsPlan limits per account, and how full each agent's context is.
sled stats export --format csv --out ~/Desktop/usage.csvWrites usage records to a CSV file.
None of these commands change settings. Sledbot has no telemetry, and the logs are read on your Mac. Sledbot is part of MacSuite; you can try it free for 7 days. For every tab and option, see Insights, Resources and Cleanup. For account setup, see AI providers, accounts and fallback.
If the numbers look wrong
- Insights shows nothing for Claude Code. Run
sled stats rescanto index the local agent logs again. Usage from a remote machine is recorded there, so usesled stats --on <machine>or the machine breakdown in Insights. - The Usage section says "No usage reported for this agent yet." The agent hasn't reported usage yet, or it's a CLI agent whose logs Sledbot doesn't read (anything other than Claude Code, Codex and OpenCode).
- The cost doesn't match your bill. Costs marked as an estimate come from list prices. On a subscription, you pay the plan price, not that figure.
- ccusage shows less than you expected. Check whether old transcripts were deleted, and whether some sessions ran under a different config folder or on another machine.
- A ccusage command doesn't run. Check that Bun is installed (
bunxcomes with it). Also make sure the guide you're following is about the npmccusagepackage, not the Rust project with the same name. - The fallback didn't happen. Fallback chains apply to teammates and need more than one entry. A chain from one Claude subscription to another never runs, by design. Check the teammate's Accounts and Fallback lists.
FAQ
Can I set a hard spending cap for Claude Code in Sledbot? Delegated jobs have Caps for turns, minutes and dollars. A teammate's "Daily budget (USD)" is not a daily total and doesn't limit CLI agents like Claude Code. It only caps individual native-agent runs.
Does checking usage send my data anywhere? ccusage reads local files and needs no account. Sledbot reads the logs read-only on your Mac, never reads Claude Code's credentials and has no telemetry.
Can I see Codex and OpenCode usage in the same place? Yes, in Sledbot Insights. For how the agents themselves differ, see Codex vs Claude Code and OpenCode vs Claude Code.