CostKey vs Laminar
Both trace AI agents and replay browser runs. CostKey adds the line of code behind every call, cost across 45+ providers and budgets with a kill switch, and it self-hosts on Postgres and one container.
Laminar is an open-source observability platform for AI agents. Both products trace agent runs, replay browser sessions, build datasets from real runs and run evals. They differ in what they add on top: Laminar reads every trace with its own model to find failures, and CostKey ties every call to your code and your bill.
CostKey and Laminar side by side
| CostKey | Laminar | |
|---|---|---|
| Self-hosting | One command with Docker (Postgres and one container) | Docker Compose (PostgreSQL, ClickHouse, Quickwit), or a Helm chart that adds RabbitMQ and Redis |
| Price | Free to run yourself | Cloud: free plan with 1 GB and 7 days of data, then $30 or $150 a month plus data. Self-hosting is free |
| Slack and email alerts when self-hosted | Included | Need an enterprise license key |
| How calls are captured | SDK watches the calls your app already makes; frameworks add spans | SDK and framework integrations, sent over OpenTelemetry |
| The line of code behind a call | Yes | Not listed |
| Cost for non-token units (characters, audio seconds, searches) | 45+ providers priced per component | Cost and tokens for LLM calls |
| Budgets and a kill switch | Yes | Not listed |
| Browser agent replay | Playwright and Puppeteer, plus screenshot replay for computer-use agents | Browser session recording for Browser Use, Stagehand and Playwright |
| Datasets and evals | Label calls into datasets; evals run from your own code | Datasets, labeling queues, LLM and agent evaluations, a playground |
| Finding failures | Rules and rubric checks you define, scored on every run | Signals: a fine-tuned model reads every trace and groups failures |
| SQL editor and full-text search | No | Yes |
| MCP for coding agents | Read-only MCP endpoint | MCP and CLI with SQL access |
Laminar details from laminar.sh/pricing and its self-hosting docs, checked 2026-11-11.
Where CostKey is different
From a failed run to the line of code
Every model call carries the stack it came from. A run page shows the span tree, the failing step and the code behind it.
The whole bill, with a hard stop
CostKey prices 45+ providers per component, including speech, audio and search. Budgets cover any agent, feature, customer or provider, and the kill switch refuses the next call before the provider bills it.
Smaller to run
Self-hosted CostKey needs Postgres and one container. Slack and email alerts work without a license key.
Where Laminar is ahead
Laminar's Signals find failures you did not define, and group similar ones. It has a SQL editor, full-text search across spans, a playground, labeling queues and an agent debugger. Laminar Cloud is SOC 2 Type II and HIPAA compliant. If you want a model to read every trace for you, or a managed service, Laminar fits better today.
Questions
Is Laminar free?
Laminar Cloud has a free plan with 1 GB of data, one project, one seat and 7 days of data access. Paid plans are $30 and $150 a month, plus data over the included amount. Self-hosting Laminar is free, but Signals and Slack and email alerts need an enterprise license key. CostKey is free to run on your own machines.
Can I self-host Laminar?
Yes, with Docker Compose or a Helm chart. The Compose stack runs PostgreSQL, ClickHouse and Quickwit next to the app. CostKey needs Postgres and one container: curl -fsSL https://costkey.dev/install.sh | sh.
Does CostKey replay browser agents?
Yes. Add @costkey/replay and every page a Playwright or Puppeteer agent drives is recorded and played back like a video, next to the model call behind each action.
Can I run CostKey next to Laminar?
Yes. CostKey's SDK observes HTTP calls and does not change them, so it works alongside Laminar or any other tracer.
Try it on your own machines
One command starts Postgres, the server and the console with Docker.
curl -fsSL https://costkey.dev/install.sh | sh