Find out what Claude Code cost, repo by repo
RepoOps reads the Claude Code transcripts your machine already writes, turns each assistant turn into one record in the repository, and sums those records across every tracked repository. Attribution lists the sessions with their spend, and Cost shows the sum per repository and per day. Nothing leaves the machine until you bind a device and turn streaming on.
Watch it
Read the narration
- 0:00 The monthly bill is one number.
- 0:02 It does not say which repository.
- 0:06 RepoOps sums every captured turn per repository.
- 0:09 The rate card prices it at read time.
- 0:13 Agent sessions lists each session with its spend.
- 0:16 Cost sums it by day, site and agent.
- 0:19 Claude Code usage shows the token split.
- 0:23 Read what was captured before judging the total.
- 0:26 The guide names the limits.
Synthetic example. Read the guide
How to
RepoOps on a machine where Claude Code runs, tracking at least one repository. No account, no key and no network needed.
- Let a scan fill the store.
Three paths write the same day files under .claude/brain/claude-code-usage/: the session-end hook when a session exits, a scan each time the desktop app starts, and a safety scan the desktop server runs over every tracked repository every 15 minutes.
- Open Attribution, then the Agent sessions tab.
The list holds the most recent captured sessions, one row each with Session, Prompt, Site, Time, Tool calls, Spend and Outcome. Sort by Most spend first or Most tool calls first, pick an outcome such as Reverted or Shipped, or type into the search box. Beside the list, Sessions and spend, 30 days counts the sessions per coding agent, and the footer under the list says how fresh the capture is.
- Read spend by repository and by day on Cost.
Cost in the sidebar opens on Overview: the Spend chart gives one figure per day of the month so far, By site lists each tracked repository's Claude Code spend, and By agent gives the 30-day total. The local app reads no hosting bill, and the page says so rather than showing zero. For the token counts behind a figure, open Claude Code usage from the palette: Totals, last 30 days splits input, output, cache read and cache creation for one repository.
- Decide whether prompts and responses are recorded.
Settings, Prompt and response recording: the button reads Recording is on or Recording is off, and Keep for offers 7, 14 or 30 days. When the window passes, the text is stripped and the row, its timing and its cost stay. On a machine never connected to repoops.ai the window starts when you connect, unless you pick 7 or 14 days.
- Set the capture mode before you connect to a team.
Privacy and egress shows the capture mode: Content (redacted), the default, keeps the prompt and response text with secrets and personal data stripped on this machine first; for sessions from agents other than Claude Code, tool output and the bodies of edits and file writes are replaced by a fingerprint and never leave the machine, and code in a prompt or an answer goes with that text, masked for secrets. Metadata only keeps counts, timings, tools, tokens, cost and paths and drops the text. Press Show sample under A sample of what would stream to see exactly what would be sent.
- Read a redacted value back, on this machine only.
In content mode each redacted value leaves as a placeholder such as [REDACTED:email#3f2a9c41d0b7e6a5]. The same value gets the same placeholder every time, so a teammate on repoops.ai can see that two turns name the same address without seeing it. The hex comes from a keyed hash, and the key sits in your OS credential store, so nobody without it can test a guess. The map from placeholder to value stays on this machine, encrypted under that key, and is never synced. On Privacy and egress, the Redaction placeholders card shows how many values it holds, reveals one when you paste its placeholder, and clears the map and its key with one button. After a clear, no placeholder made so far can be revealed anywhere. If the credential store does not answer, the stream falls back to the fixed [REDACTED:email] marker.
- Turn on streaming only when the team should see it.
Once the device is bound, Stream to your team appears in the same card, on by default unless you turned it off before. With it on, the desktop pushes redacted batches to the team once an hour. Each developer's spend, active hours, labor cost and output then appear in the Team by developer cards on the Attribution page's Agent sessions tab, and the Cost page's Cost per outcome tab shows what the team's autonomous actions spent, by verb, and what they bought back. The prompt and reply text a machine sent in content capture is on the Attribution page's Agent sessions tab, in the Prompts card: Read prompts opens a repository's newest turns, and every read is in the team audit log. Each repository's session transcripts are on the same tab, read from the evidence store that Production reads: an owner or admin reads any session, a member reads their own, and every read is in the team audit log.
Use cases
The month the bill moved
- Situation
- The provider invoice is higher than last month, six repositories are tracked, and no setting changed.
- You do
- Open Cost, read By site for the repository that grew and the Spend chart for the day the line jumps, then pick that repository on Claude Code usage, further down the same Overview.
- You see
- A repository and a date to look at, with cache reads and cache creation beside the token counts, so growth from cache creation reads differently from growth in output. The invoice stays the authority on what you were charged; Billing Guard reconciles the two.
Splitting spend between two people
- Situation
- Two people work in the same repository and the question is who spent what.
- You do
- Bind each device, set the capture mode, turn on Stream to your team, then read the Team by developer cards on the Attribution page's Agent sessions tab.
- You see
- Developers, sessions, active hours, tokens and spend per person, with a CSV export. The desktop cannot answer this: its unit is the repository.
Expected outcome
Next step: Nothing was captured in the window. End a Claude Code session in the repository, or restart the desktop app to scan the transcripts again.
Next step: Transcripts older than 14 days are skipped on each scan. Raise REPOOPS_TRANSCRIPT_SCAN_MAX_AGE_DAYS in the data directory's .env and scan again.
Next step: A model the rate card does not know prices at zero, and no page shows an unpriced count. Compare the model ids in Claude Code usage on the Cost Overview with the rate card.
Next step: Bind the device, turn on Stream to your team, and check the plan: hosted ingest answers 402 below Solo Hosted.
What else to consider
What the numbers cannot say
The unit is the repository, never the developer. Cost is computed at read time from the current rate card (cache reads at 0.10 times the input rate, cache creation at 1.25 times), so a rate-card correction changes what history reads. It covers Claude Code; Cursor is read for files and timing only, and Codex is not read. It never blocks or caps spend.
Retention
Raw day files stay readable for 90 days, then move to a gzipped monthly archive once that day's summary is written, and an archived day leaves the totals. Recorded prompt and response text expires on the window you pick, except in capture only mode, where it is kept 13 months. On repoops.ai usage, telemetry and prompt text keep 13 months, and an org owner can set a shorter window.
Stopping it
Press the Recording button to stop recording text, shorten Keep for, untick Stream to your team, or press Disconnect, which forgets the binding and revokes the device token on the server. A repository leaves the totals when it leaves repos.config.json; there is no switch for the metadata scan itself.
Cost and egress
No model call and no RepoOps charge: every number is read from local files. Nothing leaves the machine until the device is bound and streaming is on; then hourly batches of about 8 MB at most go to the hosted ingest, redacted again on arrival. Source files are never sent.