Langfuse Agent Observability: Open-Source Tracing, Evals and Prompts

Langfuse Agent Observability: Open-Source Tracing, Evals and Prompts

Langfuse agent observability is the open-source way to see what your AI agents are doing: every model call, tool call and retrieval step traced, every output scored, every prompt versioned, and every token costed. Langfuse is an open-source LLM engineering platform, and the default choice for teams that want one platform for tracing, evaluation, prompt management and cost tracking without vendor lock-in.

Langfuse gives you the full observability stack with a genuinely free self-hosted option. Its core is MIT-licensed, it speaks OpenTelemetry, and it covers agents as well as simple chat applications, with agent graph views and session tracking built in.

Key takeaways

  • Langfuse is an open-source LLM engineering platform covering tracing, evaluation, prompt management and dashboards.
  • Its core is MIT-licensed and free to self-host; Langfuse Cloud has a free tier up to 50,000 units a month.
  • It is OpenTelemetry-native, so it accepts traces from any instrumented code and integrates with more than 100 frameworks.
  • Agent features include an agent graph view, session tracking, tool-call capture and multi-step trace inspection.
  • Evaluation covers LLM-as-a-judge templates, online evals on production traffic, datasets, experiments and human annotation.
  • Langfuse became part of ClickHouse in January 2026; both companies say the core stays MIT-licensed and Cloud keeps running standalone.

What Langfuse is

Langfuse is an open-source observability and engineering platform for LLM applications. It sits between your application and your language model, recording what goes in and what comes out, and giving you the tools to understand whether your agents are behaving well — covering the whole workflow from development to production.

Four pillars hold the platform together. Tracing records every call to a model, including inputs, outputs and metadata. Evaluation scores response quality using manual review, automated scoring, or LLM-based judges.

Prompt management versions prompts outside your codebase, so you can update them without redeploying. Dashboards show cost, latency and quality over time, with alerts when something drifts.

Langfuse was acquired by ClickHouse in January 2026. Both companies have said the core stays MIT-licensed, the roadmap and self-hosting continue, and Cloud keeps running as a standalone service. The project has continued shipping actively since, including an agent graph view added in July 2026.

Tracing agents with Langfuse

Tracing is the foundation of Langfuse. Every time your application calls a model, Langfuse can record that call as a trace: a tree of observations — model calls, tool calls, retrieval steps and spans of your own code — nested so you can follow a multi-step agent run from the first message to the final answer.

Langfuse is OpenTelemetry-native. Since version 3 it accepts traces over OTLP from any instrumented code, and its own SDKs emit OpenTelemetry under the hood.

That matters for agents, which are usually built from many pieces: a framework, a model provider, a vector store, tools, and custom code. OpenTelemetry lets all of them report into one place, in one format.

Langfuse has typed SDKs for Python and JavaScript, and named integrations for OpenAI, Anthropic, LangChain, LlamaIndex, Pydantic AI, the Vercel AI SDK and CrewAI, plus more than 100 integrations in total. Session tracking groups related traces into conversations, and the agent graph view renders multi-step execution as a graph, so you can see the shape of a run at a glance.

Each observation carries the details you need when something goes wrong: the full input and output, the model used, token counts and cost, latency, and any errors. When an agent produces a bad answer, you can see whether the model was given the wrong context, chose the wrong tool, or received an unexpected tool result. See our guide to agent observability and tracing what your agents actually do.

Evaluation: scoring what your agents do

Tracing shows what happened. Evaluation judges whether it was good. Langfuse offers several ways to evaluate response quality, and the combination is what makes it useful for agents rather than just chatbots.

Manual evaluation lets a human review and score individual responses, with annotation queues for organising that review. LLM-as-a-judge evaluation lets another model score responses against criteria you define, and Langfuse ships built-in templates for common qualities.

Code evaluators let you write deterministic checks, such as valid JSON or an expected format. Scores can also come from external evaluators, including DeepEval, Ragas and Promptfoo.

Evaluation runs in two modes. Offline evaluation runs against datasets before release, catching regressions before users see them.

Online evaluation samples production traffic and scores it as it happens. Langfuse also supports CI gating through a GitHub Action that can block a pull request when scores drop.

The habit that makes evaluation pay off is the same on every platform: turn production failures into test cases. When a trace shows an agent failing, add that case to a dataset, and the next version must pass it before it ships. Our guide to testing agents that take actions explains how to structure that loop.

Prompt management and the playground

Instead of hardcoding prompts inside your application, Langfuse lets you manage them centrally. Prompts are versioned, so you can track every change, and labelled, so you can mark which version is in production, which is being tested, and which is retired. Your application fetches the labelled version at run time, so you can update a prompt without redeploying code.

The playground lets you test prompt variations directly in the interface before shipping them, and A/B testing compares how different versions perform against real traffic. That combination is the difference between prompt work that is guesswork and prompt work that is measured.

Prompt management is where Langfuse’s breadth shows. Many tracing tools record what prompt was used, but fewer let you manage the prompt lifecycle. For teams that iterate on prompts weekly, that alone can justify the choice.

Cost tracking, dashboards and alerts

Langfuse tracks token usage and cost per model, per user, per feature and per agent run. Dashboards aggregate traces into views of latency, quality and cost, and alerts can notify you through Slack, GitHub Actions or webhooks when a metric moves outside its expected range.

Cost tracking matters more for agents than for simple chat applications, because an agent run can involve many model calls. A run that loops, retries aggressively, or retrieves too widely can cost several times more than a well-behaved one. Langfuse makes that cost visible per run, per user and per feature, from the first week.

Alerting in Langfuse is scoped to behavioural metrics rather than deep anomaly detection, and the number of alerts depends on your tier: two on the free Hobby tier, twenty on Core, and fifty on Pro. That covers most teams’ core alerts — error rate, latency, cost and quality.

Self-hosting and Langfuse Cloud

Langfuse gives you two ways to run it. Self-hosting is free, with all core features and no usage limits, but it needs real infrastructure: Postgres, ClickHouse, Redis and S3, plus the application servers. The payoff is full control over your data, which matters for data-residency or compliance requirements.

Langfuse Cloud is the managed alternative. It is free up to 50,000 units a month for two users, with thirty days of data access.

Pricing beyond that starts at $29 a month for Core, which includes 100,000 units, unlimited users and ninety days of data access. Units are Langfuse’s billing measure, so confirm the details on the pricing page before estimating your bill.

Langfuse also ships an MCP server with read and write tools for prompts, scores and datasets, an in-app assistant called Halo, and an AI gateway in public beta — signs the platform aims to be the control surface for the whole agent lifecycle, not just where traces are stored.

Langfuse compared with the alternatives

Capability Langfuse LangSmith Arize Phoenix
Licence MIT core, enterprise features separate Commercial, closed source Elastic License 2.0, source-available
Self-hosting Yes, full platform, free Enterprise option only Yes, single container
Tracing OTel-native, sessions, agent graph view Runs in traces, threads, Studio graph OTel via OpenInference, agent graph
Evaluation LLM-as-a-judge, online evals, CI gating Datasets, experiments, online evals Deep agent evals, OpenInference format
Prompt management Versioning, labels, playground, A/B tests Playground, versioned prompts Prompt versioning via datasets
Cost tracking Yes, per user, model and feature Yes, per run, project and thread Cost tracking in managed Arize AX
Free tier 50,000 units a month, self-host free 5,000 traces a month, 1 seat Free self-hosted, unlimited
Entry paid tier Core, $29 a month Plus, $39 per user a month Managed upgrade is Arize AX

The comparison makes Langfuse’s position clear. It is the all-rounder: not the deepest in any single category, but the only platform covering tracing, evaluation, prompt management and cost tracking in an open-source package you can run yourself. See our guide to multi-agent observability for the full comparison.

A magnifying glass over a glowing timeline of connected events and data points on a dark screen
Langfuse traces every step of an agent run, from the first model call to the final answer.

Getting started checklist

  • Choose your hosting first: Self-host if trace data cannot leave your network; start on Langfuse Cloud if you want to move fast and migrate later.
  • Instrument one agent: Add the SDK to your most important agent, trace every run for a week, and learn its failure modes before rolling out further.
  • Use sessions: Group related traces into sessions so multi-turn conversations are visible as one story, not a pile of separate runs.
  • Build one dataset from production: Turn your most interesting failures into test cases, and run them before every release.
  • Add one online evaluator: Start with a single LLM-as-a-judge template on sampled production traffic, and check it against human judgement before trusting it.
  • Move one prompt into Langfuse: Version it, label the production version, and make your next prompt change through the platform.
  • Set a cost alert: Alert on token usage and cost per user and per run, so a runaway agent is caught early.

Common mistakes

The first mistake is self-hosting without budgeting for operations. Langfuse itself is free, but Postgres, ClickHouse, Redis and S3 still need running, backing up and upgrading. If you cannot staff the operations, start on Cloud.

The second mistake is collecting traces and never evaluating. Tracing without evaluation tells you what happened but not whether it was good. Add at least one evaluator in the first month.

The third mistake is trusting LLM judges without validation. An LLM-as-a-judge evaluator is a model with opinions, and its scores can drift from human judgement. Check its scores against human review on a sample of traces.

The fourth mistake is treating prompt versioning as optional. Once prompts live in Langfuse, every change is tracked, labelled and reversible. Once they live in code, every change is a deploy.

Frequently asked questions

Is Langfuse really open source?

Yes, the core is MIT-licensed and free to self-host with no usage limits. Some enterprise features, such as audit logs and project-level roles, need a separate enterprise licence key.

What happened to Langfuse in 2026?

ClickHouse acquired Langfuse in January 2026. Both companies have said the core stays MIT-licensed, the roadmap and self-hosting continue, and Cloud keeps running as a standalone service.

How much does Langfuse Cloud cost?

Langfuse Cloud is free up to 50,000 units a month for two users, with thirty days of data access. Core is listed at $29 a month for 100,000 units, unlimited users and ninety days of data access.

Does Langfuse work with frameworks other than LangChain?

Yes. Langfuse is OpenTelemetry-native and framework-agnostic, with integrations for OpenAI, Anthropic, LangChain, LlamaIndex, Pydantic AI, the Vercel AI SDK, CrewAI and more than 100 frameworks in total.

What is the agent graph view?

The agent graph view, added in July 2026, renders multi-step agent execution as a graph, so you can see which agents and tools were involved, and in what order, at a glance.

When should I choose LangSmith instead of Langfuse?

Choose LangSmith if your agents are built on LangChain or LangGraph and you want the deepest integration with that stack. Choose Langfuse if you want open source, free self-hosting, or a framework-agnostic platform.

Latest articles

Scroll to Top