Langfuse launches AI Gateway Learn more

Open source LLM observability: what to look for and how to self-host it

LLM observability records what your models and agents do: every model call, tool call, and retrieval, with inputs, outputs, cost, and latency, so you can debug failures and measure quality. Many teams want that tooling to be open source, so they can run it in their own infrastructure, inspect the code, and avoid lock-in. "Open source" covers very different things across tools, though, and the differences matter once you deploy.

TL;DR: Check five things before you pick an open source LLM observability tool: the license, which features are gated, whether self-hosting is production-ready at scale, whether it accepts OpenTelemetry, and whether you can get your data out. Langfuse is MIT-licensed, includes all core features (tracing, evaluation, prompt management, datasets, dashboards) in the open source version without usage limits, runs on the same architecture as Langfuse Cloud, and accepts OpenTelemetry. Self-host it with Docker Compose for a trial or Helm for production.

Deployment architecture
UI, API, and SDK clients connect to Langfuse Web. Web connects to PostgreSQL, Redis or Valkey, ClickHouse, and S3 or blob storage. Redis queues jobs for Langfuse Worker, which connects to PostgreSQL, ClickHouse, and S3. Both containers can optionally connect to LLM providers: Web for the playground, Worker for evaluations. The optional Langfuse AI gateway receives model requests from applications and coding agents, resolves gateway keys and uploads traces through Langfuse Web, and relays the requests to the LLM providers. The application containers, gateway, and storage run in your VPC or on-premises. The LLM providers can also run in the same VPC or a peered VPC.VPC / on-premisesUI, API & SDKsApps & agentsModel requestsResolve + tracesRequestsPlaygroundEvaluationsRelayAI GatewayOptional (beta)langfuse/ai-gatewayLangfuse WebUI & API serverlangfuse/langfuseLangfuse WorkerAsync event processinglangfuse/workerPostgreSQLTransactional dataRedis / ValkeyCache & job queueClickHouseObservability dataS3 / Blob storageEvents & attachmentsLLM providersOptional (bring your own)
Web connectionsWorker connectionsOptional

The optional AI gateway relays model requests from your apps and coding agents to your LLM providers and records them in Langfuse. LLM providers can also run in the same VPC or a peered VPC.

Five questions for any open source tool

QuestionWhy it mattersLangfuse
Which license?Permissive licenses allow internal use and modification without conditions; others restrict itMIT for the core; enterprise features in a separately licensed directory
Which features are gated?Some tools open-source only a tracing SDK and keep evaluation or the UI closedTracing, evaluation, prompt management, datasets, dashboards, and SSO are open source
Is self-hosting production-ready?A single-container demo is different from a deployment that handles spikes and large payloadsSame architecture as Langfuse Cloud, with Helm and Terraform deployments
Does it accept OpenTelemetry?Standard instrumentation avoids lock-in to one SDKNative OTLP endpoint, plus SDKs built on OpenTelemetry
Can you get your data out?You may want traces in your warehouse or need to migrate laterPublic API, blob storage export, and direct ClickHouse access when self-hosted

What open source Langfuse includes

Features such as audit logs, data retention, project-level roles, and server-side masking need an Enterprise license key when self-hosted. See the license key page.

Why teams self-host

Self-hosting is not the only way to use open source Langfuse. Langfuse Cloud runs the same code, if you would rather not operate it. See self-hosted vs Cloud.

Get started

  1. Try it locally with Docker Compose.
  2. Instrument an app with the Python or JS/TS SDK, OpenTelemetry, or one of the framework integrations.
  3. Deploy for production with the Helm chart or the AWS, Azure, or GCP modules. Use the production checklist.
  4. Plan ClickHouse early. See ClickHouse for self-hosted Langfuse.

FAQ

Is Langfuse open source?

Yes. The core of Langfuse is MIT-licensed on GitHub, and includes all core features without usage limits. A set of enterprise features lives in a separately licensed part of the repository and needs a license key when self-hosted.

Is self-hosted Langfuse free?

The open source version is free, with unlimited usage. You pay for your own infrastructure. Enterprise and Government licenses are paid. See self-hosted pricing.

Can I use Langfuse with OpenTelemetry only, without the Langfuse SDK?

Yes. Langfuse accepts traces on its OpenTelemetry endpoint, so any OpenTelemetry instrumentation or GenAI semantic conventions library can send traces. See OpenTelemetry.


Was this page helpful?