spanr Not released yet

Local-first tracing and evals for Claude Code

Know where your Claude Code time and money went.

Spanr records each Claude Code turn as a run, draws its model calls and tool calls on a timeline, and shows what each model call cost. It runs on your machine.

tracing
built, not released yet
evals
in development
source
open source, coming soon
hello@spanr.dev

Write for a note when Spanr is released.

The Spanr Runs page in the light theme for the last 30 days, sorted by cost: the top bar, six summary tiles (cost $39.52, up 4% on the 30 days before; 431 runs, up 14%; 62.3M tokens, up 9%; agent share 19.8%, down 2.2 points; cache reads 94.9%, down 0.2 points; median run 15s, down 2%), a cost-per-day chart with a bar for each of the last 14 days split by human, agents and automation, the who-acted breakdown with where each run ran and costs for people, agents and automation, tabs for all runs, typed by you, agent-started and automation, and seven runs with who acted, project, model, duration and cost. The selected typed run, "run the full lint in the background and report back", is previewed beside the table: cost $0.43, duration 20s, 604k tokens, 3 model and 2 tool calls, and where the money went. The same Spanr Runs page in the dark theme.
The Runs page, with Spanr's demo data.

Tracing

What a trace tells you.

Where it went

Cost per call and per run.

Spanr prices each model call from a local pricing table and adds them up for the run. The trace shows what each call cost; spanr show gives the total.

$ spanr show

duration             76.1s
model calls              7

computed           $0.5630
Excerpt of spanr show, numbers from a real Claude Code run.

What happened

Every model call and tool call, on one timeline.

Each run is a trace: the model and tool calls in the order they ran, how long each took and what it cost, which ones failed, and the subagents and messages it started.

A Spanr trace in the light theme: duration, cost split between the main run and its subagent, tokens, calls and errors, then a timeline of Opus 5.5 model calls and Bash and Write tool calls with their time and cost, one failed Bash call, an Agent call to a general-purpose subagent, and a Messages lane showing the message sent to it. The same Spanr trace in the dark theme.
A trace from Spanr's demo data: cost per call, a failed Bash call, and a subagent with its own cost.

Who acted

You, an agent, or automation.

Spanr records who started each run and links the runs one prompt set off into a chain: which agent sessions messaged which, in what order, and what each cost. When the sender is not recorded, it says so instead of guessing.

A Spanr chain in the light theme: started by you in the orchestrator session, 3 runs across 2 agent sessions for $0.09. A graph shows you prompting the orchestrator, which messages api-worker, which messages back; a message log lists each step; a timeline places each agent's runs on one clock. The same Spanr chain in the dark theme.
A chain from Spanr's demo data: you prompt an orchestrator session, it messages a worker session, and the worker reports back.

Private by design

Your runs stay on your machine.

  • Runs on your computer

    The server and web UI accept connections from your own machine only, never from your network.

  • Stored in one private folder

    A local database that only your user account can read. Known API key and token formats are redacted before anything is stored.

  • Sends nothing

    No account, no telemetry, no update checks. Spanr makes no network requests outside your machine.

In development

Evals: test your Claude Code setup, version against version.

Evals will run your project's Claude Code configuration as two versions against the same cases, and tell you whether the change made it better, worse or no different. Every score will link to the trace of the run behind it.

Not available yet. This describes work in progress, not a shipped feature.

Questions

Before you write in.

Can I install Spanr today?

Not yet. Spanr is not released and there is nothing to install. Write to hello@spanr.dev and you will get a note when it is.

Does anything leave my machine?

Nothing Spanr records leaves your machine. It reads Claude Code's hook events and transcript files locally, stores runs in a local database and serves its UI on 127.0.0.1. It has no telemetry and no account.

Where do the cost numbers come from?

Spanr computes each model call's cost from the token counts in the transcript and a local pricing table you can edit.

What does it run on?

macOS and Linux, with Node.js 22. Windows is untested.