Usage
How many tokens your coding agents use, by tool, model, repo or day, with an estimated cost. Only counts are collected, never what was said.
Last updated
0b usage --days 30
0b usage --by model
0b usage off
The dashboard's Usage page (from Overview's Last 30 days: "Usage by tool, model, repo and machine", or /app/usage) shows the same as a chart by day, with the totals for 7, 30 or 90 days or a year. bridge__usage lets a connected AI answer "what did I use this month?".
What is collected#
For each session, model and hour: input tokens, output tokens, cache reads, cache writes and reasoning tokens (which are part of the output). Plus the session's id, the tool, the machine's name and the repo's name. No prompts, no answers and no file contents.
The counts come from what each tool already writes on your machine:
- Claude Code: the usage on each assistant message, counted once per message.
- Codex and OpenClaw: their running token totals, turned into the difference since the last read.
- Gemini CLI: the per-message token counts, when the log has them.
- Other tools: nothing yet.
When it runs#
Usage follows history: 0b history on uploads counts with your conversations. 0b usage on uploads counts alone, with history off, and 0b usage off stops it. In end-to-end history mode, your conversations stay sealed, but the counts are not: the server can read them, with the repo's name, so it can add them up. If that matters to you, run 0b usage off.
A repo you excluded from history still counts, without its name. Chat apps see usage without repo names unless Chat history is on. A request grouped by repo is refused for them otherwise.
The cost is an estimate#
Cost is the tokens times a vendor's published API list price, with the price table's date shown on the page ("API-equivalent estimate; subscriptions don't bill per token"). If you use Claude Code or Codex on a subscription, you aren't billed per token, so the number says what the same use would cost through the API, not what you paid. A model with no price in the table (Gemini, and Codex variants the price pages don't list) shows a dash, and the total is marked partial. We don't guess a price. Claude Code's cache writes are priced at the 5-minute cache rate, so a session using the 1-hour cache costs a little more than shown.
Delete it#
0b usage off stops uploading. Forget usage on the dashboard deletes everything stored, for every session and machine. Rows older than 400 days are dropped by themselves, and deleting your account erases all of it.