CostKey

Changelog

What shipped in CostKey, newest first.

Browser replay, datasets, evals and dashboards

  • Browser replay. Runs by Playwright and Puppeteer agents play back like a video, with each click and keystroke next to the model call that chose it. The recorder is @costkey/replay.
  • Screenshot replay. Computer-use and browser runs step through the screenshots the model saw, with each click marked.
  • Datasets. Label any call Good or Bad from a run. Its screenshot and the action it took are saved with the label.
  • Evals. CostKey.runEval replays a dataset against another model or prompt from your own code, with your own keys. The console shows the pass rate and cost next to the original calls.
  • Dashboards. Build your own from totals, trends and breakdowns of calls, tokens and spend.
  • The platform's code is on GitHub.

Faster at scale

  • SDK batches are stored through a Postgres queue, so ingest keeps up with bursts.
  • The Overview reads completed days from a daily rollup, which keeps long date ranges fast.
  • Findings refresh at most once a minute while calls arrive, and the findings list loads without trace ID lists.
  • Console summaries stay available for an hour while they refresh.

v0.7.38 to v0.7.40

Agent pages that load in one pass

  • Agent pages and the Overview board build their runs once per request.
  • The model page loads in one read, and retries are worked out in one pass.
  • A spans index, bounded cleanup and cached summaries keep large projects quick.

v0.7.30 to v0.7.37

Failed calls cost nothing

  • A failed call is no charge everywhere, and it is never shown as unpriced. A missing-price warning appears only when setting a price would fix it.
  • Agent runs are paged, and the Overview is faster.
  • One token count is used on every page.
  • Live pages refresh only when new calls arrive.
  • A Python stream that is closed before its end is recorded as cancelled.

v0.7.24 to v0.7.29

Compare periods and deploys, and an MCP endpoint

  • Compare two periods or two deploys in place. Releases link to their commits.
  • An MCP endpoint lets coding agents read your CostKey data with read-only tokens.
  • Calls made through Vercel's AI Gateway are priced.
  • One time picker across the console.

v0.7.18 to v0.7.23

The code behind every call

  • The call stack shows the code itself. Calls an agent framework makes for you point back to the code that started them.
  • Every cost shows how it adds up, with a pricing table.
  • Streamed answers are captured, and ingest accepts gzip.
  • A budget's Used amount counts the calls that were recorded.

v0.7.4 to v0.7.17

Run timeline, retries and a live console

  • Every run has a flow and a timeline.
  • Failures and retries are recorded. A retried run reads as its outcome: Succeeded or Failed.
  • The console updates live.
  • Budgets, and spend over time as a line chart.
  • Cache usage is recorded, and empty runs are cleaned up.

v0.7.0 to v0.7.3

The server does the processing

  • The SDK sends telemetry only. Pricing, attribution and grouping happen on the server.
  • Quality checks, and a metrics Overview.
  • Serve CostKey under a path, and sign in to the console through IAP or OIDC.
  • Cost per successful run.

v0.6.1 to v0.6.4

Self-hosted

  • One command installs CostKey with Docker Compose. See self-hosting.
  • Deploy recipes for Kubernetes, Fly, Render, Railway, Cloud Run and AWS. See deploy.
  • A provider waterfall on the run timeline, with provider logos.

Agents

  • Agent spans and agent views: runs, tools and handoffs.
  • Every major provider is captured and priced, from a price catalog that keeps up with new models.
  • A new console design.

First release

  • An SDK that ties every model call to the line of code that made it.
  • Sourcemap upload, so minified stacks read as your source. See sourcemaps.
  • Budgets per project, model and function, with alerts.
  • Spike detection for each function.
  • Teams, invites and API key rotation.

Try it on your own machines

One command starts Postgres, the server and the console with Docker.

bash
curl -fsSL https://costkey.dev/install.sh | sh