docs / cost
See what your sessions cost
Price any Claude Code or Cursor session on your machine, by session, by day, and for the CI runs it set off.
Every command on this page reads files on your machine. None of them needs an account or sends
your data anywhere, except ci sync, which uploads CI metadata to your team.
Before you begin
- Install the CLI and its hooks for Claude Code or Cursor. The Quickstart takes two minutes.
- Run at least one session after installing, so there's something to price.
See the current session's cost
Run this in the directory your assistant is working in:
promptconduit cost
AI session cost — claude-code (exact)
Total: $0.0140 USD
claude-sonnet-5-5 $0.0140 in 2000 · out 1000 · cache-read 0 · cache-write 0
Signals: cache-hit 0% · input-share 100% · tier standard
cache-miss cost share 29%
It prices the newest session in that directory, one line per model. (exact) means
the tokens were read verbatim from the assistant's own usage record. Signals shows
how much of the input was served from cache. When cache hits are low, see
improving cache hit rate.
Other ways to pick the session:
promptconduit cost --cwd ~/code/my-repoprices the newest session in another directory.-
promptconduit cost --session <id>prices one Claude Code session wherever its transcript lives, subagents included. Add--fromand--to(RFC 3339 times) to price only part of it. --jsonprints the same numbers for a script or an agent.
See cost by day
promptconduit cost history --days 30
DAY COST (USD) REQUESTS INPUT OUTPUT CACHE READ 2026-11-29 0.0140 1 2000 1000 0 TOTAL 0.0140
This totals every priced request in the local event log, across all your projects. It covers as many days as the log keeps: 30 by default. To keep more, see Configuration.
Watch cost live
The editor extension shows the last request's cost and the session's total in the status bar of Cursor or VS Code, updating as you work. Click it to open The Loop, which breaks the latest prompt down round-trip by round-trip.
Without an editor, open the Session Graph in your browser:
promptconduit graph
It draws a session as a growing tree of prompts, tool calls and subagents, with each turn's cost.
It runs on 127.0.0.1:4320. Over SSH, add --no-open to print the URL
instead of opening a browser.
Find and reopen a session
promptconduit sessions lists sessions from the last 12 hours that aren't running any
more, such as ones closed when your editor restarted. Each one keeps the exact directory it ran
in, worktrees included.
promptconduit sessions --all --since 48h
promptconduit resume reopens the most recent one in its directory, by running
claude --resume. Pass a session id, or part of one, to pick another.
See what your CI runs cost
Agent sessions push commits, and commits start GitHub Actions runs. ci audit prices a
repo's runs, flags waste such as re-tests after merge and superseded runs, and matches each run to the
session that pushed it:
promptconduit ci audit
Run it inside a clone, or name the repo: promptconduit ci audit acme/api. It reads
only run and job metadata, never logs or code, using your own GitHub token
(GITHUB_TOKEN, GH_TOKEN or gh auth token). It never writes
to the repo. More on the CI cost audit page.
On a team, promptconduit ci sync uploads the same metadata so CI cost shows next to
token cost on the team dashboard. It needs promptconduit login.
How pricing works
- Claude Code cost comes from its session transcripts in
~/.claude/projects/. If a session saves no transcript, its cost can't be counted; see Troubleshooting. - Cursor cost comes from the token counts Cursor's hooks report for each request.
-
Tokens are priced against the rate card built into the CLI. Once a day the CLI downloads the
current rate card from promptconduit.dev, which overrides the
built-in rates when it's newer. Run
promptconduit cost refresh-cardto download it now. -
A model that isn't on the card shows its exact tokens and is marked
unpriced. Its cost is left out of totals, never guessed. -
promptconduit cost refresh-pricingis opt-in. It fetches LiteLLM's public price list and uses it only for models the card doesn't cover.
Note
Cost is fixed when an event is recorded. Cursor events captured before CLI v0.21.0 counted
cached tokens twice. promptconduit cost reprice --dry-run shows which events it
would fix, and promptconduit cost reprice fixes them, keeping a backup.