Langfuse: tracing and evals for agents
Added Updated New
Published Last verified Released
Our verdict
Once an agent runs more than a few steps, you need traces to debug it and evals to know whether a prompt or model change helped. Langfuse does both, plus prompt versioning. The core is MIT-licensed, so you can self-host it with no usage limits, or start on the free cloud tier (50,000 units a month). Budget for the self-hosting stack (Postgres, ClickHouse, Redis and S3 storage) or for per-unit cloud billing once traffic grows.
- Who it's for
- Builders running agents in production or on a schedule
- Leverage
- Debug and improve agents from real traces
- Effort
- Medium
- Date added
What Langfuse does
Langfuse is an open-source platform for agent observability and evals. Its Python and JS/TS SDKs and its OpenTelemetry endpoint record a trace of each run: model calls with tokens and cost, tool calls, retrieval steps, sessions and users. On top of the traces it adds evaluation (LLM-as-a-judge, code evaluators, user feedback, manual labelling, datasets and experiments), prompt management with versions and release labels, a playground, an MCP server and a CLI. Ready integrations include the OpenAI SDK, LangChain and LangGraph, LlamaIndex, LiteLLM, the Vercel AI SDK, Mastra, the OpenAI Agents SDK, the Claude Agent SDK and CrewAI. Code outside the ee/ folders is MIT; the licence's copyright holder is ClickHouse, Inc.
How builders use Langfuse
- Add the integration for your framework (for example the LangGraph callback handler or the OpenAI drop-in), run the agent once and open the trace to see every model and tool call with its latency and cost.
- Group a chat's turns into one session and tag the user, so a support complaint maps to the exact run.
- Save failed runs to a dataset, then run each new prompt or model version against it as an experiment before you ship.
- Score live traffic with an LLM-as-a-judge evaluator or user feedback, and watch the score over time.
- Move prompts out of code into Prompt Management and promote versions with labels, without a redeploy.
- Try self-hosting with Docker Compose on one machine; the docs recommend Kubernetes (Helm) for production.
Langfuse Cloud plans (checked 25 Nov 2026)
A unit is any tracing data point you send: the trace, each observation inside it (spans, events, generations) and each score. A trace with five observations and one score counts as seven units.
| Plan | Price | Included | History you can view |
|---|---|---|---|
| Hobby | Free | 50k units a month, 2 users | 30 days |
| Core | $29 a month | 100k units, then $8 per 100k; unlimited users | 90 days |
| Pro | $199 a month | As Core, plus higher rate limits, data retention controls, SOC2 and ISO27001 reports | 3 years |
| Enterprise | $2,499 a month | As Pro, plus audit logs, SCIM and uptime and support SLAs | 3 years |
What self-hosting takes
From the self-hosting docs and self-hosted pricing page, checked 25 Nov 2026.
- Two Langfuse containers: Web and Worker.
- PostgreSQL for transactional data and ClickHouse for traces, observations and scores.
- Redis or Valkey for the queue and cache, and S3-compatible storage for raw events and attachments.
- Docker Compose for a single machine, Helm on Kubernetes for production, and Terraform templates for AWS, Azure and GCP.
- The open-source edition is free with unlimited usage, including enterprise SSO and RBAC. Audit logs, data retention policies and project-level RBAC need Self-Hosted Enterprise, which is priced on request.
Langfuse: limits and gotchas
- Self-hosting is a real stack: four data services plus two containers to run, back up and upgrade.
- Cloud bills by units, and detailed instrumentation adds up quickly. Langfuse's own main tip for a lower bill is to send fewer units.
- The free Hobby plan shows only 30 days of history and allows 2 users. Older data becomes visible again if you upgrade.
- Traces can hold user prompts and personal data. Set up client-side masking before production traffic, and choose the cloud data region (US, EU or Japan) on purpose.
- It records and scores runs; it doesn't fix the agent. You still need a dataset of real failures and someone to read the traces.
Langfuse compared with other tools here
- OpenAI Agents SDK: an agent framework, not an observability tool. Langfuse has an integration for it, so handoffs and tool calls show up as traces you can score.
- LangGraph: build the agent graph in LangGraph and trace it in Langfuse by passing the callback handler.
- Mastra: a TypeScript agent framework with Studio for local testing. Langfuse integrates with it when you need production traces and evals.
- Claude Agent SDK: Langfuse lists an integration, so agents built on Claude Code's harness can be traced and scored the same way.
- ccusage: a zero-install CLI for token and cost reports from your local coding-agent logs. Use it for your own spend, and Langfuse for agents you build and ship.
When to pick Langfuse
- Pick Langfuse if you run agents in production and want traces, evals and prompt versions in one open-source tool you can self-host.
- Pick the free Hobby plan to try it on a side project before deciding whether to self-host.
- Pick something lighter (ccusage) if you only want to see what your own coding agent spends.
Langfuse questions
Is Langfuse free?
The open-source edition is free to self-host with unlimited usage (MIT outside the ee/ folders). Langfuse Cloud has a free Hobby plan with 50k units a month, and paid plans start at $29 a month.
What counts as a Langfuse unit?
Any tracing data point you send: a trace, each span, event or generation inside it, and each score.
Does Langfuse work with OpenTelemetry?
Yes. It is built on OpenTelemetry, so any OpenTelemetry-instrumented app or collector can send traces to it, alongside the native Python and JS/TS SDKs.
Who owns Langfuse?
The licence file's copyright holder is ClickHouse, Inc., and Self-Hosted Enterprise is sold bundled with ClickHouse Cloud, BYOC or Private. The core stays MIT-licensed.
Related discoveries
See the newest picks →- ToolMulti-Step Agent Setups
OpenShell: run agents in a policy-locked sandbox
NVIDIA's Apache-2.0 runtime that puts each agent in a sandbox where files, network and credentials follow a policy you approve.
NewEffort: MediumPrompt#Local / BYO model#Open source
- ToolMulti-Step Agent Setups
LangGraph
Low-level framework for stateful, controllable agent workflows.
Effort: High#Open source
Get the best new A.I. picks in your inbox
The best new agent workflows and tools we’ve vetted, with a clear verdict on each. Short, occasional, useful.