Skip to content
FossShelf
Home / Categories / For LLM Engineers

Langfuse

Trace and debug LLM prompts while monitoring inference costs

Replaces Langsmith, Arize Ai, Braintrust

37.51K starsMITreviewed 20 May 2025last commit 14 Nov 2026
Screenshot of Langfuse

Who it's for

AI product teams debugging LLM calls

Use Langfuse when teams need trace-level visibility into prompts, model outputs, tool calls, costs, and user feedback for production AI features.

Skip it if the application only has a few experimental prompts and ordinary application logs are enough.

Companies replacing LangSmith-style observability

Use Langfuse when the team wants LLM observability and evaluation workflows with a self-hosted option.

Skip it if the team is fully committed to a managed observability vendor and does not want to operate supporting data stores.

The problem

LLM applications fail in ways traditional logging does not explain well. A bad answer may involve prompt changes, retrieved context, model selection, latency, tool calls, cost, or user feedback. Without a dedicated observability layer, teams debug production AI behavior by stitching together application logs, provider dashboards, and spreadsheet evaluations. Langfuse gives teams a shared place to inspect LLM traces, evaluate outputs, and manage prompt behavior. That matters when an AI feature moves from prototype to production and the team needs evidence for why a response changed or why quality dropped.

How it works

LLM tracing and observations

Capture model calls, tool steps, latency, cost, inputs, outputs, and nested traces. Product and engineering teams can inspect a full AI interaction instead of isolated log lines.

Prompt and evaluation workflows

Track prompts, datasets, scores, and evaluation results so changes can be compared over time. This helps teams improve AI behavior with evidence rather than one-off manual reviews.

Production self-hosting architecture

Langfuse can be self-hosted with Docker and production deployments using Postgres, ClickHouse, Redis or Valkey, and object storage. Teams can run it locally, in cloud infrastructure, or on-premises.

Provider and framework integrations

Integrate through SDKs, APIs, OpenTelemetry paths, and common LLM frameworks. That reduces the amount of custom instrumentation needed to make AI behavior observable.

Features

  • LLM tracing and observations
  • Prompt and evaluation workflows
  • Production self-hosting architecture
  • Provider and framework integrations

Recommended for this setup

Strengths

  • Built for LLM debugging: Unlike general APM tools, Langfuse models prompts, generations, traces, scores, and datasets as core product concepts. That gives AI teams a clearer debugging surface than raw logs or metrics alone.
  • Self-hosting with production guidance: The official self-hosting docs explain low-scale and production deployment paths, including Docker Compose, Kubernetes, and cloud templates. That is useful for teams with AI data residency or security constraints.

Trade-offs

  • Production hosting has real infrastructure weight: Self-hosted Langfuse depends on multiple storage and queueing components for production-scale use. Teams should plan operations for Postgres, ClickHouse, cache, object storage, migrations, backups, and upgrades.

Tech stack

Languages
TypeScript, Rust, JavaScript, Shell, CSS, Dockerfile, PLpgSQL, Python, MDX, Handlebars, HTML
Frameworks
LangChain, Next.js, React
Databases
Redis
Tooling
AWS, esbuild

FAQ

What does Langfuse replace?

Langfuse overlaps with LangSmith, Helicone, and vendor-specific LLM monitoring when the need is traces, prompts, evaluation, and production AI debugging.

Is Langfuse self-hosted?

Yes. Langfuse documents Docker-based self-hosting and production options using components such as Postgres, ClickHouse, Redis or Valkey, and object storage.

What license does Langfuse use?

Langfuse is MIT licensed. The self-hosted community edition is free to use for any purpose including commercial production. Langfuse Cloud offers additional enterprise features under separate subscription terms.

Similar tools

More in LLM Engineers