Version 0.1.0 with Copilot, Data Doctor, and sharper triage

See which repos are using your AI coding tokens.

RepoSpend tracks Codex, Claude Code, GitHub Copilot, and opt-in experimental Cursor usage by repo, session, model, and source surface. It reads files already on your disk. No login, no telemetry, no prompt uploads.

Cost precision is strongest for Codex; support for Claude Code and GitHub Copilot is initial, and Cursor import is experimental and opt-in.

$npx repospend
View on GitHub
Reads local data fromCodexClaude CodeGitHub CopilotCursor opt-in
185weekly npm downloads13GitHub stars0.1.0current releaseNode 20+runtime
The dashboard

Your local AI coding activity at a glance.

One screen for every signal that matters: source filters, Start here actions, spend, top repos, cache reuse, command issue rate, and file edits. All grouped by Git root, all running on localhost.

localhost:2005 RepoSpend v0.1.0
RepoSpend overview dashboard
Latest release

v0.1.0 makes mixed-tool usage easier to trust.

The release expands beyond Codex and Claude Code with Copilot imports, then adds confidence reporting so missing pricing, token gaps, and source warnings are visible.

Featured releasev0.1.0
  • GitHub Copilot support for local OTEL exports, session state, and VS Code chat data
  • Data Doctor confidence reporting for token coverage, pricing coverage, repo grouping, and parser warnings
  • Cleaner Overview with Start here actions, compact labels, and cost-outlier context
  • Sharper Agent Friction triage with direct routes into command evidence
4local source clients17fictional demo sessions17.6mfictional demo tokens$86.30API-equivalent demo cost

GitHub Copilot

Imports local OTEL exports, CLI session state, and VS Code Copilot Chat transcript data.

Data Doctor

Surfaces token coverage, pricing coverage, repo verification, parser issues, and source warnings.

Pricing hygiene

Separates missing token detail from missing model rates before API-equivalent costs drift.

What it shows

Six signals that explain local usage.

No vanity metrics. Just the things that tell you, repo by repo and session by session, where tokens and cost went.

Repo cost

Walks sessions to their Git root, so apps, packages, and scripts roll up into the project you recognize.

Git rootaggregation

Source coverage

Codex, Claude Code, GitHub Copilot, and opt-in Cursor imports are separated by local source and app surface.

sourcesread-only

Model mix

Compare models by token shape, API-equivalent cost, cache reuse, sessions, and repo concentration.

modelscache

Agent friction

Separates blocking command failures from harmless shell exits, so high-token troubleshooting loops are easier to triage.

signals

Data Doctor

A confidence report explains token coverage, pricing coverage, repo verification, parser issues, and source warnings.

confidencesettings

Export anywhere

Dashboard-style filters now apply consistently to CLI summaries and JSON or CSV exports.

jsoncsvfilters
Screenshots

Every screen, explained.

Click through the real product views. Expand a screenshot when you want to inspect the details without opening the app.

How it works

Three steps. About twelve seconds.

No login, no API keys, no setup wizard. The hardest part is finding your terminal.

01

Run it

One command, and your dashboard opens at localhost:2005.

$ npx repospend
02

Read your files

Scans supported Codex, Claude Code, GitHub Copilot, and enabled Cursor paths in read only mode.

local source files only
03

Review usage

Find the repo using the most tokens, then inspect sessions, command evidence, and data confidence.

localhost:2005
Privacy by design

Your prompts never leave your laptop.

RepoSpend binds to localhost. There is no hosted analytics service and no account to create. It is Apache 2.0 and auditable.

No login

No account because there is nothing to store.

No telemetry

The dashboard does not report usage back.

No uploads

Prompt and tool output stay local.

No edits

Source client files are read only.

Supported tools

Reads what is already on disk.

RepoSpend was built first for Codex and now reads Claude Code and GitHub Copilot local data too. Cursor stays experimental and opt-in. RTK appears when local RTK data exists.

Claude Code

initial

Sessions, projects, models, timestamps, and tokens when available. Unknown token and cost fields stay unknown instead of guessed.

GitHub Copilot

initial

Reads Copilot CLI OTEL exports, CLI session state, and VS Code Copilot Chat transcript/debug files. Costs stay unknown when local token splits are incomplete.

Cursor

experimental

Best-effort local JSONL and SQLite/vscdb discovery. Tokens and cost remain unknown when Cursor does not persist exact usage locally.

RTK

optional

Surfaces RTK token savings analytics only when local RTK data exists. Otherwise it stays out of the way.

Commands

Most people just type repospend.

Power users get terminal friendly commands and source filters. The full help is one --help away.

~ repospend --help
$repospend

Open the dashboard at localhost:2005

$repospend scan

Scan supported local Codex, Claude Code, GitHub Copilot, and enabled Cursor files again

$repospend doctor

Print local data confidence, pricing coverage, parser issues, and source warnings

$repospend by-repo

Aggregate tokens and cost by Git root

$repospend by-day

Daily timeline of token use and spend

$repospend by-hour

Hourly distribution for spotting unusual bursts

$repospend by-model

Split usage across model names

$repospend by-app

Group by app or surface where detectable

$repospend export --format json

Dump the local usage data as JSON

$repospend export --format csv

Export CSV for a spreadsheet

$repospend by-repo --source copilot

Filter aggregates to one source

$repospend export --format csv --repo my-app --from 2026-05-01

Apply dashboard-style filters to exports

$REPOSPEND_NO_OPEN=1 repospend

Print the URL without opening a browser

FAQ

Reasonable questions, honest answers.

Trust the dashboard before you install it. These are the things people ask first.

Does RepoSpend send my prompts anywhere?

No. RepoSpend binds to localhost and reads files already on your machine. There is no login, no telemetry, and no prompt upload path in the dashboard.

Is the cost number my actual bill?

No. RepoSpend shows API-equivalent cost estimates from local token counts and pricing rules. It is useful for comparing repos and sessions, but it is not an invoice.

Does it support GitHub Copilot?

Yes. RepoSpend imports local Copilot CLI OTEL exports, Copilot CLI session state, and VS Code Copilot Chat transcript or debug files. Cost stays unknown when local data lacks full token splits.

Does it edit Codex, Claude, Copilot, or Cursor files?

No. Source client and RTK data are read only. RepoSpend settings, pricing overrides, and parse cache files live under ~/.repospend and can be reset from Settings.

Can I run it without npx?

Yes. Install once with npm install -g repospend, then run repospend. Node.js 20 or newer is required.

Find out where it all went.

One command. No account, no upload, no surprise. The dashboard is already on your machine; RepoSpend just turns it into a map.

$npx repospend
Star on GitHub