Swapbar vs ccusage
ccusage turns your Claude Code logs into detailed cost reports in the terminal. Swapbar keeps the live quota of every Claude account in your menu bar and adds a cost summary. They answer different questions, and many people will want both.
Pick ccusage if
- You want detailed reports: by day, month, session or 5-hour block.
- You work on Linux or Windows.
- You want JSON output for scripts and dashboards.
- You also use Codex, OpenCode or Gemini CLI.
Side by side
| Swapbar | ccusage | |
|---|---|---|
| What it is | Menu bar app | Command line tool |
| Runs on | macOS 14 or later | macOS, Linux, Windows |
| Built with | Rust and gpui (the UI framework behind Zed) | Distributed through npm |
| Tools it tracks | Claude Code | Claude Code, Codex, OpenCode, Gemini CLI, Amp and other local tools |
| Several Claude accounts | Yes, every claude-swap account in one list | Only by pointing it at each config folder |
| Switches Claude Code’s account | Yes, one click or ⌃⌥⇧S, through claude-swap | No |
| Where the numbers come from | claude-swap’s quota polling, plus local Claude Code transcripts for cost | Local session logs only |
| Low-quota alerts | Yes, and it names the account to switch to | No |
| Token and cost | Today and 30 days, per model and per account | Yes: daily, weekly, monthly, per session and per 5-hour block |
| Install | DMG or Homebrew cask | npx ccusage@latest |
| Price and license | Free, MIT | Free, MIT |
Checked against each project’s README on . Spot something out of date? Open an issue.
Quota left vs money spent
ccusage reads what Claude Code wrote to disk, so it knows your tokens and their API-price cost, but not how much of your subscription quota Anthropic says is left. Swapbar shows that quota, per window and per model, for every account, from the same endpoint Claude Code uses. Its cost section is a summary: today and the last 30 days, per model and per account.
Terminal vs menu bar
ccusage runs when you ask it to and prints a report. Swapbar stays in the menu bar, can notify you when the current account runs low, and switches accounts with a click.
Several accounts
ccusage can be pointed at different Claude config folders. Swapbar reads every account from claude-swap and splits cost by account, working out which account each session used from claude-swap’s switch log.
Questions
- Is there a menu bar version of ccusage?
- Not from ccusage itself. Swapbar shows Claude Code quota and cost in the macOS menu bar; it is a separate app, not a ccusage front end.
- Will Swapbar’s cost match ccusage?
- Closely. Both price Claude Code’s local transcripts at API list prices and drop duplicate messages; small differences can come from how each one dedupes and which prices it uses.
- Does Swapbar replace ccusage?
- For a quick look at quota and spend, yes. For detailed reports or JSON output, keep ccusage.
Keep your limits in view.
Download for MacmacOS 14 or later · Free and open source · Needs claude-swap
or with Homebrewbrew install --cask afatmustafa/tap/swapbar