Langfuse

New

Open-source LLM engineering platform for tracing model and agent calls, versioning prompts with deployment labels, running evals on datasets, and tracking cost and latency, on Langfuse Cloud or self-hosted.

langfuse.com

Langfuse

Explore features, practical uses and pricing below.

Langfuse is an open-source platform for teams building products on language models. It records what happens inside each request, from the model call to tool use and retrieval, and keeps prompts, evaluation scores and test datasets in the same project. The homepage says all product features are MIT licensed, and the same software runs as the managed Langfuse Cloud or on your own servers.

How Langfuse traces an LLM application

A trace is a tree of observations: the generation, the retrieval step that fed it, the tool call that followed, and any custom spans you add. Traces carry user IDs, session IDs, tags and metadata, so you can pull up one customer's conversation or every request slower than a threshold. Token usage and cost are recorded per observation and rolled up in dashboards.

Native SDKs cover Python and JavaScript/TypeScript, and the docs say tracing is based on OpenTelemetry, which is how Go, Java and .NET connect. Listed integrations include LangChain, LlamaIndex, the Vercel AI SDK, LiteLLM, OpenRouter, OpenAI, Anthropic and Amazon Bedrock.

Prompt versions, labels and evaluation

Every prompt edit creates an immutable version, and labels point at versions. According to the concepts guide, production is the default label your application fetches, latest follows the newest version, and custom labels handle staging or A/B tests. Rolling back means moving the production label. Prompts can be plain text or chat messages with roles, and the SDK caches them on the client, which the docs say keeps fetching from adding latency. Linking prompts to traces lets you compare versions on cost, latency and scores.

Scores come from LLM-as-a-judge evaluators, code evaluators, user feedback or reviewers working through annotation queues. Experiments run a prompt or app version against a dataset from the UI or SDK, and a documented CI/CD setup can block regressions.

Teams that get the most out of it

Langfuse pays off for teams running LLM features in production, especially multi-step agents, where plain logs stop being readable. It also suits teams with data residency rules: the FAQ says self-hosting is free under the MIT license, and the cloud offers US, EU and Japan regions. Domain experts can edit prompts and review traces without touching code. If you call a model occasionally from a script, or want ready-made prompts to copy, it's more than you need. It sits alongside an agent framework such as LangChain rather than replacing one. Related tools are in our AI prompt tools category.

Example: fixing a support bot that ignores its sources

  1. Add the Python SDK so each conversation produces a trace with retrieval and generation as separate observations.
  2. Filter traces by low feedback scores. Say the retrieved articles look right but the answers ignore them.
  3. Edit the system prompt in Langfuse, saving version 2, and try it in the playground on the same inputs.
  4. Put the failing conversations in a dataset and run an experiment comparing both versions with a groundedness judge.
  5. If version 2 wins, move the production label to it. The bot picks it up on its next fetch, and the label can move back if live scores drop.

Running costs and self-hosting effort

Self-hosting is more than one container. The docs list web and worker containers plus PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible storage, and they describe Docker Compose as a single VM without high availability or backups. A few self-hosted admin features, such as the instance management API, need an enterprise license key. On the cloud, an agent that emits many observations per request uses billable units faster than a single-call app.

The pricing page lists a free Hobby plan with 50k units a month, 30 days of data access and two users, Core at $29 a month, Pro at $199 and Enterprise at $2,499, with extra usage billed per 100k units.

Questions people ask about Langfuse

Do I have to use LangChain?

No. You can trace direct OpenAI or Anthropic SDK calls, other frameworks, or any OpenTelemetry-instrumented code.

Can the data stay on my own infrastructure?

Yes. The open-source release deploys with Docker Compose, Kubernetes via Helm, or Terraform templates for AWS, GCP and Azure. The Langfuse documentation covers each route.

Similar tools

ScrapeGraphAI is an LLM-powered scraping API with scrape, extract, search, crawl and monitor endpoints that return markdown or schema-shaped JSON, plus an MIT-licensed Python library you can run yourself.
AWS-built agentic development environment that turns prompts into requirements, design and task specs, then runs agents in an IDE, CLI, web app or VS Code extension with hooks, steering files and MCP.
JetBrains' coding agent that plans, edits, runs tests and returns a diff, working in Air inside JetBrains IDEs, in a terminal CLI and in GitHub or GitLab CI, with a free Junie Lite model and bring-your-own-key support.