Langfuse vs LangSmith for Production AI Agents
Langfuse vs LangSmith for teams running AI agents in production: licensing and self-hosting, framework fit, evals, alerting, automated failure analysis, pricing models, and the check neither runs for you.
Checked against each vendor’s public docs on .
Langfuse and LangSmith are the two names most teams shortlist when an agent leaves the prototype stage and someone asks what it actually did in production. Both record each run as a trace, both run evaluators over those traces, both manage prompts and datasets, and both can page you when a metric crosses a threshold.
The difference is less about features than about position. Langfuse is an MIT-licensed platform you can run yourself and point any framework at. LangSmith is LangChain's closed platform, built to sit alongside LangChain, LangGraph and Deep Agents, and it increasingly does the analysis for you. This page compares them for engineers running agents, not single LLM calls.
The short answer
Choose Langfuse if
you need to self-host without an enterprise contract, want the platform's source under an open licence, or run a mixed stack where OpenTelemetry is the common denominator.
Choose LangSmith if
your agents are built on LangChain, LangGraph or Deep Agents and you want one vendor for tracing, evals, agent deployment and scheduled issue detection (Engine).
Either way: Neither tool knows, out of the box, whether a run did what the agent was told to do. A trace with every span green can still hold a refund the policy forbids. You get that check by writing an evaluator that reads the agent's own instructions, on either platform.
Langfuse vs LangSmith, side by side
| Langfuse | LangSmith | |
|---|---|---|
| Who makes it | Langfuse, founded in 2023; part of ClickHouse since January 2026. | LangChain, the company behind the LangChain, LangGraph and Deep Agents frameworks. |
| Licence | Open source under MIT, platform included. | Proprietary platform; the client SDKs are open source. |
| Self-hosting | On every plan, including the free open-source edition (Docker or Kubernetes with Helm). | Enterprise plan only, in your own Kubernetes cluster or as a hybrid deployment. |
| Instrumentation | Python and JS/TS SDKs built on OpenTelemetry, an OTLP endpoint, and integrations for LangChain, LlamaIndex, the OpenAI SDK, LiteLLM, the Vercel AI SDK and others. | Python and TypeScript SDKs (Go and Java listed too); one environment variable for LangChain and LangGraph apps; OpenTelemetry ingestion for the rest. |
| Evaluation | LLM-as-a-judge and code evaluators on live traces and on experiments, versioned datasets, annotation queues. | Online and offline evaluators (LLM-as-a-judge, code, composite, multi-turn), automation rules, annotation queues. |
| Alerting | Thresholds on any observation or score metric, sent to Slack, PagerDuty, GitHub Actions or webhooks (Cloud and self-hosted v4+). | Thresholds on run count, error rate, latency, feedback score and cost, sent to Slack, PagerDuty, Dynatrace or webhooks. |
| Automated failure analysis | On demand: an in-product assistant, plus a CLI and MCP server so your own coding agent can read traces. | Engine (public beta since May 2026) scans traces on a schedule, groups recurring failures into issues and proposes fixes as pull requests; Insights groups traces into categories. |
| Prompt management | Yes, framework-agnostic. | Yes. |
| Pricing model | Billed on usage units (traces, observations and scores), not seats, above a free tier; the self-hosted open-source edition is free. | Billed per seat plus per-trace usage above a free tier; deployment, Engine and other services are metered separately. |
Open platform or one vendor's stack
Langfuse sells no framework and no agent runtime, so it has every reason to trace whatever you run. Its SDKs are built on OpenTelemetry, and a service that already emits OTel spans can send them to Langfuse without a Langfuse-specific client. If your agents span several frameworks, or you expect to change framework, the traces, datasets and evaluators stay where they are.
LangSmith works with any code, but its centre of gravity is LangChain's own stack. A LangGraph app gets tracing by setting environment variables, and the same account can host the agent (Agent Server), inspect graph state, and run Engine against the traces. For a team already committed to LangGraph, that is one bill, one login and fewer moving parts.
Self-hosting and where trace data lives
Agent traces hold what users typed, what tools returned and what the agent decided, which is often the most sensitive data in the system. If it has to stay in your own infrastructure, the two tools differ sharply: Langfuse's open-source edition is the same codebase as its cloud and can be deployed today; LangSmith self-hosting needs an Enterprise contract.
Both offer managed cloud regions and publish their security certifications. Check each vendor's security page for the regions, certifications and agreements (such as a BAA) your compliance team needs, rather than relying on any comparison, including this one.
Catching failures in production
Both tools cover the loop most teams start with: sample production traces, score them with an LLM judge or a code check, send poor runs to an annotation queue, turn them into dataset examples, and re-run experiments after a fix.
Where they diverge is how much of the hunting they do for you. LangSmith Engine runs on a schedule, opens issues with the traces behind them, tracks new traces that match, and drafts a fix as a pull request for agents built with LangChain, LangGraph or Deep Agents. Langfuse leaves the hunting to you or your own coding agent: alerts fire on the scores you define, and its MCP server and CLI let an agent in your editor query traces and propose the change.
The check neither runs for you
Tracing tells you what the agent did; it does not tell you whether that was what it was told to do. The failures that reach users quietly, such as a refund outside policy, an invented order ID passed to a lookup, or a ticket closed without the escalation the prompt required, return HTTP 200 and well-formed output. Latency, error rate and generic quality scores stay flat.
On either platform you can close part of that gap yourself:
- Write an online LLM-as-a-judge evaluator whose prompt includes the agent's system prompt or policy, and ask one narrow question: did this run follow it?
- Record the answer as a boolean score (Langfuse) or feedback score (LangSmith), so the pass rate is a metric you can chart.
- Alert on that rate, not just on errors and latency, and route failing runs to an annotation queue.
- Turn confirmed failures into dataset examples, so the fix is re-checked on every change after it ships.
Switching, or running both
Because both accept OpenTelemetry, you can send the same spans to both while you evaluate, using an OpenTelemetry Collector to fan out. Moving over usually means re-pointing instrumentation, copying datasets and prompts through each SDK, and recreating evaluators. Trace history generally stays behind in the old tool until its retention runs out.
What to check before you decide
Plans, included volumes, retention windows and per-unit prices change often, and both vendors publish comparisons of each other that favour themselves. Before committing, read both vendors' pages and run your own numbers:
- Pricing and plan limits: langfuse.com/pricing (and its self-hosted pricing page) and langchain.com/pricing, which has a usage calculator.
- How your traces are counted: Langfuse bills traces, observations and scores as units; LangSmith bills traces. Deep agent traces with many spans change the comparison, so estimate with your real span counts.
- Retention: how long traces are kept on each plan, and whether evaluators or automation rules move traces into a longer, paid retention tier.
- Features you rely on in self-hosted mode, which can arrive later than in the cloud or need a minimum version.
Frequently asked questions
Is Langfuse open source?
Yes. The Langfuse platform is MIT-licensed and can be self-hosted. LangSmith's platform is closed source; its client SDKs, LangChain and LangGraph are open source.
Does LangSmith require LangChain?
No. LangSmith has its own SDKs and accepts OpenTelemetry traces from any code. Setup is shortest for LangChain and LangGraph apps, and some features, such as Engine's proposed code fixes, target LangChain's frameworks.
Can I use Langfuse with LangGraph?
Yes. Langfuse has a LangChain and LangGraph integration through a callback handler, and it also accepts OpenTelemetry spans.
Can I self-host LangSmith?
Only on LangSmith's Enterprise plan. Langfuse can be self-hosted on any plan, including the free open-source edition.
Which is cheaper?
It depends on how many people need access, how many traces you send, how many spans each trace has, and how long you keep them. Langfuse bills usage units with no per-seat fee; LangSmith bills per seat plus per trace. Price your own workload on both pricing pages.
Will either tool catch an agent that confidently does the wrong thing?
Not by default. Both record the run and both can score it, but a score only reflects the question you ask. To catch policy and instruction violations, add an evaluator that compares each run with the agent's own instructions, then alert on its pass rate.
Sources
Prices and plan limits change: check Langfuse pricing and LangSmith pricing for current figures.
- Langfuse pricing
- Langfuse self-hosted pricing
- Langfuse alerts
- Langfuse: Langfuse vs. LangSmith (vendor comparison)
- Langfuse joins ClickHouse
- LangSmith plans and pricing
- Self-hosted LangSmith
- Trace with OpenTelemetry in LangSmith
- Alerts in LangSmith
- LangSmith Engine
- LangChain: LangSmith vs. Langfuse (vendor comparison)


