TokenJam Lens
The local dashboard for every analyzer's findings.
TokenJam Lens is the dashboard you get when you run tj serve. It runs entirely
on your machine (no signup, no cloud) and brings the output of every analyzer, every alert,
and every cost trend into one screen you can open in your browser.
Overview, your triage front door
Three bands answer "where am I, and what should I look at next?" in one glance. Cost hero with a sparkline and an honest run-rate caption. Recoverable waste tiles, one per analyzer, showing dollar values or "β at 100%" when there's nothing to recover. A one-line health summary covering alerts, drift, and budgets. Every tile drills into the detail screen with filters pre-applied via URL.
Every analyzer's findings in one place
Lens reads from the same tj optimize analyzers the CLI does, plus a dedicated
Optimize tab where you see each analyzer's findings side by side, filter by agent, and
compare against a previous window. New analyzers (like Reuse) appear automatically: the
band is registry-driven.
8 of 47 sessions match a smaller-model candidate shape. Estimated recoverable: $42 / mo. Review before applying.
anthropic/claude-opus-4-7 Β· efficacy 100% (2.79 B tokens). Already optimized, nothing to recover.
1 cluster found: 31 sessions share the "patch-release" skeleton (read changelog β bump version β run tests β tag β push). Estimated recoverable: $54 / mo (cache-reuse) or $61 / mo (script replacement).
Cost transparency, with the math
The Cost screen shows your spend as a real chart with hover tooltips, and the cost table
now includes CACHE R and CACHE W columns so a cache-heavy
$1.44 span is no longer a mystery. Run-rate projections are explicitly
captioned "linear run-rate, not a forecast": Lens never claims to predict.
| MODEL | TOKENS IN | CACHE R | CACHE W | COST |
|---|---|---|---|---|
claude-opus-4-8 | 294 K | 698.8 M | 0 | $468.53 |
claude-opus-4-7 | 38.8 K | 1.53 B | 1.48 M | $1,115.44 |
| TOTAL | 369 K | 2.79 B | 2.95 M | $1,247.83 |
Get started
Three commands. Local. No signup. Open the dashboard at 127.0.0.1:7391 in
your browser.
$ pipx install tokenjam $ tj serve β open http://127.0.0.1:7391/
Source on GitHub. Lens shipped in v0.4.0. Reference docs in the docs site.