✦ ✦ ✦ ✦

Tokentrail

Here be tokens


(⊙) Token step
──── Trail
─┬─ Branch
✕ Merged PR
! Anomaly
⚑ Feature complete
Cost Today—of this week
Merged PRs011 total · all time
Anomalies—active
Sessions—today

What it does

Three things, kept local

Tokentrail reads what Claude Code already wrote to disk, and turns it into a ledger you can navigate by branch, feature, and PR.

Reads your local logs

Every session's JSONL stays on your machine. Tokentrail reads them in place — never uploaded, never proxied, never seen by anyone but you.

Maps cost to your work

Each token step gets tied to the Git branch you ran it on, the feature it touched, and the PR that merged it.

Surfaces what burns

Spike days, hot sessions, and burning features get flagged automatically. Optional Notion sync mirrors your daily rollup for the team.


Onboarding wizard

A guided checklist on first run

CLI, SwiftBar menubar widget, dashboard daemon, Claude Code skills, session-end hook, and a clickable Tokentrail.app launcher — installed one tick at a time, with the trail map building itself beside you as you go.

Tokentrail welcome wizard: a five-item install checklist on a parchment-themed page, with an ASCII trail map preview rendering below it.

The wizard reflects live state — every box ticks itself as each piece lands.


Daily dashboard

Where the trail picks up each morning

Cost today, the week so far, sparklines per top feature, and a running list of every commit Tokentrail attributed since you last looked.

Tokentrail overview page with demo data: a 30-day cost trend stacked by project, the top burn paths with per-feature bars, and budget, this-week and worth-a-look panels.

Everything comes from the local SQLite — no remote calls. (Screenshots show demo data.)



Spot what's burning

Anomalies, surfaced before the bill is

Tokentrail flags spike days, hot sessions, and burning features automatically — pulled together on a single triage view so you don't have to grep your wallet.

Tokentrail anomalies page: a table of detected spending spikes, each row showing the affected feature, the amount against the prior week, and a dismiss link.

Each row is a real signal from the local model — snooze, investigate, or jump straight into the feature.


Feature deep-dive

Drill into any feature

Cost over time, a session-level breakdown, and the exact commits that finished the work. Topic clustering groups related sessions when transcripts overlap.

Tokentrail feature detail page for a demo currency-symbols feature, showing its estimated cost, the PRs and releases it shipped, a cost-and-activity chart, and a sessions list.

Branch ↔ feature ↔ PR — the same attribution chain, all the way down.


Optional — Notion sync

Tokentrail can mirror your daily rollup into a Notion database — one env var to enable, runs on the same daily cadence as tokentrail rollup. Setup lives in the README under Notion sync.