---
title: "See what your sessions cost — PromptConduit docs"
description: Price Claude Code and Cursor sessions on your machine with promptconduit cost, by session and by day, find and resume sessions, and see what CI runs cost.
image: "https://promptconduit.dev/og-image.png"
---

<!-- Markdown copy of https://promptconduit.dev/docs/cost. Index of every page: https://promptconduit.dev/llms.txt -->

# 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](https://promptconduit.dev/docs/quick-start) 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:

```bash
promptconduit cost
```

```text title="output"
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](https://promptconduit.dev/coaching/improve-cache-hit-rate).

Other ways to pick the session:

-   `promptconduit cost --cwd ~/code/my-repo` prices the newest session in another directory.
-   `promptconduit cost --session <id>` prices one Claude Code session wherever its transcript lives, subagents included. Add `--from` and `--to` (RFC 3339 times) to price only part of it.
-   `--json` prints the same numbers for a script or an agent.

## See cost by day

```bash
promptconduit cost history --days 30
```

```text title="output"
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](https://promptconduit.dev/docs/configuration).

## Watch cost live

The [editor extension](https://promptconduit.dev/docs/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:

<!-- docs-test: skip: serves a page until you stop it -->
```bash
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.

```bash
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:

<!-- docs-test: skip: needs a GitHub token and a GitHub repo with Actions runs -->
```bash
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](https://promptconduit.dev/ci-audit).

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](https://promptconduit.dev/docs/troubleshooting#cost-missing).
-   **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](https://promptconduit.dev/model-rates) from promptconduit.dev, which overrides the built-in rates when it's newer. Run `promptconduit cost refresh-card` to 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-pricing` is 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.

## Next steps

-   [Editor extension](https://promptconduit.dev/docs/editor-extension): live cost per request and The Loop in Cursor or VS Code.
-   [Troubleshooting](https://promptconduit.dev/docs/troubleshooting): missing or unpriced cost, events that aren’t sent, and logs.
-   [AI agents (MCP)](https://promptconduit.dev/docs/agents): let your assistant answer cost questions itself.
-   [CLI reference](https://promptconduit.dev/docs/cli-reference#cost): every cost, sessions and ci flag.

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "@id": "https://promptconduit.dev/#software",
  "name": "PromptConduit",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "macOS, Linux, Windows",
  "description": "PromptConduit shows what AI coding costs per developer, repo, and pull request across Claude Code and Cursor. An open-source CLI records every session to a local JSONL file first, with git context and exact cost computed on your machine. Teams sync to see spend across members, models, repos, and clients, with budgets and alerts.",
  "url": "https://promptconduit.dev",
  "installUrl": "https://promptconduit.dev/docs/installation",
  "softwareHelp": {
    "@type": "CreativeWork",
    "url": "https://promptconduit.dev/docs"
  },
  "releaseNotes": "https://promptconduit.dev/changelog",
  "license": "https://opensource.org/licenses/MIT",
  "isAccessibleForFree": true,
  "publisher": {
    "@id": "https://promptconduit.dev/#organization"
  },
  "offers": [
    {
      "@type": "Offer",
      "name": "Free",
      "description": "The full CLI on your machine, and a team of up to 3.",
      "price": "0",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 3,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Team",
      "description": "Up to 15 members. One flat price, no seat math.",
      "price": "99",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "99",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 15,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Growth",
      "description": "Up to 50 members, for teams and agencies running AI across many repos.",
      "price": "249",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "249",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 50,
        "unitText": "members"
      }
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://promptconduit.dev/#organization",
  "name": "PromptConduit",
  "url": "https://promptconduit.dev",
  "logo": "https://promptconduit.dev/favicon.svg",
  "email": "hello@promptconduit.dev",
  "contactPoint": {
    "@type": "ContactPoint",
    "contactType": "customer support",
    "email": "hello@promptconduit.dev",
    "url": "https://promptconduit.dev/about"
  },
  "sameAs": [
    "https://github.com/promptconduit/cli",
    "https://github.com/promptconduit/editor-extension",
    "https://twitter.com/promptconduit"
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://promptconduit.dev/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Docs",
      "item": "https://promptconduit.dev/docs"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "See what your sessions cost",
      "item": "https://promptconduit.dev/docs/cost"
    }
  ]
}
```
