Get it for macOS

See how much of your Claude plan is left and where your AI coding spend went, by session, day and model, across every agent CLI you use. Each limit window shows what is left, when it resets and where you will land at your current pace, with a plain verdict on whether there is room for a big task. Sessions carry their titles and projects; open one for its models and its cost by token type, or click a model to filter the whole page. Reads Claude Code, Codex, Gemini CLI, OpenCode and the other CLIs ccusage supports, offline from their local logs, and draws each provider in its own colour. Plan limits use the Claude Code sign-in already on your machine and need a Claude subscription.


Overview

View source

What you get

  • Your plan limits first. A calm page that only turns amber or red when a window needs you. The session (5-hour) and weekly windows, plus any per-model weekly window your plan has: % left, when each resets, and where you will land at the current pace ("On pace to use 31% before it resets", or how long until the limit is hit). A plain verdict tells you whether there is room for a big task now, or whether to ease off for the rest of the week. The live burn rate and the cost of the current 5-hour block sit beside it.
  • Spend by day. A daily cost or token chart for today, 7, 30 or 90 days, or all time, with a hover readout, and an activity calendar where a click opens that day.
  • Spend by session. Every session with its title and project, cost and tokens, sorted by cost or recency and searchable. Open one to see its models and its cost by token type; a bb thread's own session opens its thread.
  • Spend by model. Each model's cost, share and tokens. Click a model to filter the whole page to it.
  • Every agent CLI you use. Pick one or several providers from the header (Claude Code, Codex, Gemini CLI, OpenCode, Copilot CLI and the other CLIs ccusage reads). With several on, each provider gets its own colour: one line per provider on the daily chart, and its models in that colour in every breakdown. Providers with no usage in the range are listed, and your choice is remembered.
  • Totals that add up. Processed, cached and uncached input, output, and what caching saved, with the cost split into input, cache writes, cache reads and output.

How it works

Usage comes from ccusage, pinned to one release and run offline as its native binary: it reads the local logs your agent CLIs already write, so nothing about your usage leaves your machine. On first use the plugin downloads that binary once from the npm registry and checks it against a pinned checksum before running it. Costs are estimates at API list prices, including the higher price of one-hour cache writes.

Plan limits come from Anthropic's usage endpoint, using the sign-in Claude Code already stored on your Mac (Keychain, then ~/.claude/.credentials.json). The token stays in bb's server: it is never sent to the page, logged, refreshed or written. If that check fails, the plugin asks bb's built-in usage plugin instead.

Session titles and projects for Claude Code are read from each transcript's first and last lines. Everything is cached for a minute, and the page reads again when you press refresh.

Requirements

  • bb 0.48 or later, on macOS, Linux or Windows.
  • Plan limits need Claude Code signed in to a Claude subscription on the same machine; on macOS, the first read may ask to allow access to Claude Code's Keychain item.
  • Usage for other agents needs their CLI's local logs on the machine that runs bb.

More from Muhammad Ahsan

GitHub PR DashboardSee why each pull request is stuck, and get it unstuck, without leaving bb. My PRs lists your pull requests, review requests for you and your teams, the ones you reviewed, and assigned ones by repository, each with its +/- lines and led by what blocks it: failing CI down to the job, changes requested, unresolved comments, conflicts or a stack. Reviewed turns amber when the author pushes after your review. Open one for its reviewers and their verdicts, labels, and tabs: Overview (the description, then comments and reviews), Checks with error annotations, Files with syntax-highlighted diffs and review threads under their lines, Commits with the ones since your review marked, and Comments. Edit the title and description, comment on a line or range, reply, delete your own comments, submit a review, mark your draft ready, and close or reopen, each only when you click. A menu links the PR to a bb thread, asks about it, explains it, or sends every finding to an agent, starting in the PR's project; Fix with agent does it for one comment or failed job. Jira keys open in bb's My Jira plugin. Search, hide or fold repositories, move by keyboard, switch gh accounts, and get alerts when CI fails or someone comments. Uses the GitHub CLI login or a token; github.com only.NewJira BoardSee every Jira ticket assigned to you in one bb tab, filtered and grouped the way you work, and move it along without opening Jira. Filter by status and type, search by key or words, and group by status, initiative and epic, or the boards that list each ticket. Open a ticket beside the list to read its lineage, description, subtasks and comments, then step to the next one with Previous and Next or the keyboard. Change a status in place from the moves your workflow allows. Needs Jira Cloud with Atlassian's Rovo MCP server allowed for your organization; you sign in with Atlassian in the browser and set up nothing else.New

More in Token Usage & Limits 36

Understand or control token, context-window, and provider-quota use.

View all