ccusage-sbx local dashboard showing token spend, daily cost chart, model breakdown, and synced Docker Sandbox machines

Tracking LLM Token Usage Across Docker Sandboxes

I run coding agents inside disposable Docker Sandboxes (sbx) to keep my system safely isolated from agents that I run. Getting a view of token usage across all agents I run, in all sandboxes, is not easy. Every agent writes its own session logs inside the sandbox. When you spin up half a dozen sandboxes across different projects and destroy them after work finishes, token counts and spend metrics will therefore disappear along with the sandboxes. To solve this, I put together krisfoster/ccusage-sbx, an experimental Docker Sandbox kit and host hub that syncs token consumption from ephemeral sandboxes into a centralised dashboard on your local machine. It provides a dashboard that gives a consolidated view of token consumption across every sandbox. You can stack the daily spend chart by sandbox name, agent type, or model, filter by custom date windows, and inspect per-machine and per-model costs without leaving your browser. It’s very much a PoC, so expect sharp edges. ...

October 17, 2026 · 7 min · 1317 words · me@krismade.me
ccusage HTML dashboard showing spend metrics, token counts, daily spend bar chart, and per-agent usage breakdowns

Hacking on ccusage with Devin: Cloud Sync and HTML Dashboards

This week I went to the Devin Mixin / Hackathon event hosted at the Cloudflare offices in London. We were gifted a chunk of credits to use with Devin during the hackathon, and I decided to fork and add some features I wanted to krisfoster/ccusage. ccusage is an open-source CLI for tracking token consumption and cost across coding assistants and I find it super useful. I wanted to add two features that I felt were missing. First, aggregating token logs across separate development machines (into Google Cloud Storage - GCS), and secondly generating a nice HTML dashboard to show my aggregate profligate spend. Oh, and I want the dashboard to show me how much I could have saved by switching LLM provider. ...

September 18, 2026 · 3 min · 465 words · me@krismade.me