Get it for macOS

See what your threads cost in tokens and time, and whether your subscription's session and weekly limits will last until they reset. Each thread's header shows a sparkline of its token use that opens a summary of which of your messages used the most tokens and time. bb's title bar shows how much of your session and week you have used, in amber or red when either is on pace to run out before it resets. Once a thread's context passes a size you set, a meter above the composer offers to compact it. A Tokenomics page charts tokens by hour or day, shows where turn time went, and ranks threads by use. Counts tokens, not dollars, needs bb 0.43 or later, and counts Claude Code subagents only for threads that ran on the same machine as bb.


Overview

View source

What you get

  • Tokens in each thread's header: a sparkline of the thread's tokens over time, with its past day and lifetime totals. Click it to see which of your messages used the most tokens and time.
  • A context meter above the composer once a thread's context passes 300K tokens, red past 550K, with a Compact button. Every model call reads the whole context again, so a large context makes every turn expensive.
  • Your session in the title bar: a spark chart of its tokens and rings for the session and the week, amber or red once either is headed for its limit. Hover it for the limits and the past day's chart.
  • A Tokenomics page with each usage limit and where it lands at the current pace, tokens by hour or day, where turn time went, and the threads that used the most.

How it works

Tokenomics copies each usage event into its own database as bb records it, starting when you install it, and reads Claude Code subagent transcripts from disk. It reads your usage limits from bb every five minutes. It counts tokens, not dollars.

For agents

bb tokenomics threads and bb tokenomics commands print the same numbers, with --json, so an agent can find expensive threads without reading their transcripts.

Requirements

bb 0.43 or later, and a provider that reports token usage to bb. Usage limits need one that reports them, such as Claude Code or Codex. No account or outside service.

More from Daniel Bachhuber

Automation PaletteRun any bb automation from the quick palette, without opening the Automations page. Each row names the automation and its project, so typing either name finds it, and selecting it starts the run as its schedule would. Every project's automations are listed in every window, and a paused automation keeps its row. Requires bb 0.42 or later and the bb CLI on the machine running the bb server.4Diff Viewed EnhancedSee how much of a long diff you've read, with a viewed count beside bb's own Viewed checkboxes and the same marks on GitHub. The changes panel toolbar counts the files you have checked, such as 3/6 viewed, across every file in the range. On a thread with an open pull request, checking a file in bb marks it viewed on GitHub, and a file marked viewed on GitHub is checked in bb. A file with edits you have not pushed shows a Local icon until a push makes its diff match the pull request's. Requires bb 0.47 or later, and GitHub sync needs the gh CLI signed in.22Impromptu UITurn your agent's walls of text into interfaces you can click. Triage a milestone from rows that each carry a drafted comment and Post and close, Post, and Start thread buttons. Split one review comment into several pull requests, each waiting on its own card with its diff until you click Commit, push, and open PR. Find a design by picking from screenshots of the original and its variations, with a note on each. Requires bb 0.43 or later, and needs no account or external service.NewMarkdown EditorEdit a markdown file in the tab you were already reading it in, and save it with Cmd+S. Preview renders the file the way bb renders a chat message, including the images it points at, and Raw gives you the source in an editable pane, with unsaved text carrying between the two. Selecting text in Preview offers an Add to chat button that quotes it into the composer under the file's path. A pencil on markdown files in the changes panel opens the one you are reading a diff of. Every save checks the file's hash first, so an edit an agent made while you were typing gives you a choice between reloading and overwriting instead of a silent clobber. Works on files in a project workspace, on a host, or in a thread's storage. Requires bb 0.43 or later, and needs no account or external service.14

More in Token Usage & Limits 34

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

View all