---
title: "Open source LLM observability: what to look for and how to self-host it"
description: "What makes an LLM observability tool open source in practice: license, feature gating, self-hosting, OpenTelemetry, and data ownership. How Langfuse fits, and how to get started."
tags: [guide]
---

# 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.

**Start with Langfuse** [Sign up](/cloud)

**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](/docs) 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](/self-hosting) with Docker Compose for a trial or Helm for production.

**Deployment architecture — your infrastructure (VPC / on-premises)**

UI, API, and SDK clients send requests to [Langfuse Web](/self-hosting/deployment/infrastructure/containers) (`langfuse/langfuse`), which serves the UI and APIs. [Langfuse Worker](/self-hosting/deployment/infrastructure/containers) (`langfuse/worker`) processes events asynchronously.

| Storage service | Purpose | Connections |
| --- | --- | --- |
| [PostgreSQL](/self-hosting/deployment/infrastructure/postgres) | Transactional data | Web → PostgreSQL; Worker → PostgreSQL |
| [Redis / Valkey](/self-hosting/deployment/infrastructure/cache) | Cache and job queue | Web → Redis / Valkey; Redis / Valkey → Worker |
| [ClickHouse](/self-hosting/deployment/infrastructure/clickhouse) | Observability data | Web → ClickHouse; Worker → ClickHouse |
| [S3 / Blob storage](/self-hosting/deployment/infrastructure/blobstorage) | Raw events and multi-modal attachments | Web → S3 / Blob storage; Worker → S3 / Blob storage |

Both containers can optionally connect to [LLM providers](/self-hosting/deployment/infrastructure/llm-api): Web for the playground, Worker for evaluations. Bring your own LLM API; it can also run in the same VPC or a peered VPC.

The optional [Langfuse AI Gateway](/self-hosting/configuration/ai-gateway) (`langfuse/ai-gateway`, beta) receives model requests from apps and coding agents. Gateway → Web resolves gateway API keys and uploads traces; Gateway → LLM providers relays the requests.

## Five questions for any open source tool [#criteria]

| Question                          | Why it matters                                                                                 | Langfuse                                                                              |
| --------------------------------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Which license?                    | Permissive licenses allow internal use and modification without conditions; others restrict it | MIT 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 closed                 | Tracing, 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 payloads  | Same architecture as Langfuse Cloud, with Helm and Terraform deployments              |
| Does it accept OpenTelemetry?     | Standard instrumentation avoids lock-in to one SDK                                             | Native OTLP endpoint, plus SDKs built on OpenTelemetry                                |
| Can you get your data out?        | You may want traces in your warehouse or need to migrate later                                 | Public API, blob storage export, and direct ClickHouse access when self-hosted        |

## What open source Langfuse includes [#included]

- **[Tracing](/docs/observability/overview)** for agents, RAG pipelines, and chat apps, with [sessions](/docs/observability/features/sessions), [users](/docs/observability/features/users), and [cost tracking](/docs/observability/features/token-and-cost-tracking).
- **[Evaluation](/docs/evaluation/overview)** with LLM-as-a-Judge, code evaluators, annotation queues, datasets, and experiments.
- **[Prompt management](/docs/prompt-management/overview)** with versions, release labels, and a playground.
- **[Dashboards](/docs/metrics/features/custom-dashboards)** and the [public API](/docs/api-and-data-platform/features/public-api).
- **The [AI Gateway](/self-hosting/configuration/ai-gateway)**, in beta, for routing and recording model calls to your providers.

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](/self-hosting/license-key).

## Why teams self-host [#why-self-host]

- **Data stays in their network.** Prompts and outputs often contain customer or regulated data. See [HIPAA-compliant LLM observability](/resources/engineering/hipaa-compliant-llm-observability) and [LLM observability for financial services](/resources/engineering/llm-observability-financial-services).
- **No internet access.** Langfuse does not require it. See [air-gapped LLM observability](/resources/engineering/air-gapped-llm-observability).
- **Existing platform.** Teams that already run Kubernetes and a data stack add Langfuse at low marginal cost.

Self-hosting is not the only way to use open source Langfuse. [Langfuse Cloud](https://cloud.langfuse.com) runs the same code, if you would rather not operate it. See [self-hosted vs Cloud](/resources/engineering/self-hosted-vs-cloud).

## Get started [#get-started]

1. **Try it locally** with [Docker Compose](/self-hosting/deployment/docker-compose).
2. **Instrument an app** with the [Python or JS/TS SDK](/docs/observability/sdk/overview), [OpenTelemetry](/integrations/native/opentelemetry), or one of the [framework integrations](/integrations).
3. **Deploy for production** with the [Helm chart](/self-hosting/deployment/kubernetes-helm) or the [AWS](/self-hosting/deployment/aws), [Azure](/self-hosting/deployment/azure), or [GCP](/self-hosting/deployment/gcp) modules. Use the [production checklist](/resources/engineering/self-hosted-langfuse-production-checklist).
4. **Plan ClickHouse** early. See [ClickHouse for self-hosted Langfuse](/resources/engineering/clickhouse-for-self-hosted-langfuse).

## FAQ

### Is Langfuse open source? [#is-langfuse-open-source]

Yes. The core of Langfuse is MIT-licensed on [GitHub](https://github.com/langfuse/langfuse), 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? [#free-self-hosted]

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](/pricing-self-host).

### Can I use Langfuse with OpenTelemetry only, without the Langfuse SDK? [#otel-only]

Yes. Langfuse accepts traces on its OpenTelemetry endpoint, so any OpenTelemetry instrumentation or GenAI semantic conventions library can send traces. See [OpenTelemetry](/integrations/native/opentelemetry).

[Ask another question](/docs/ask-ai)

**Start with Langfuse** [Sign up](/cloud)

<!-- agent-instructions -->

---

## Agent Instructions

This page is part of the [Langfuse](https://langfuse.com) documentation, published as plain Markdown for AI agents. Every page is available as Markdown by appending `.md` to its URL, or by sending an `Accept: text/markdown` header. This page: `https://langfuse.com/resources/engineering/open-source-llm-observability.md`.

### Querying these docs

If the answer is not on this page, query the documentation instead of guessing:

- **Semantic search** across all Langfuse docs, returning an answer with the relevant pages and excerpts. Ask a specific, self-contained question:

  ```bash
  curl -sG "https://langfuse.com/api/search-docs" --data-urlencode "query=How do I trace a LangGraph agent?"
  ```

- **Index of every page**: <https://langfuse.com/llms.txt>, with per-section indexes [llms-docs.txt](https://langfuse.com/llms-docs.txt), [llms-integrations.txt](https://langfuse.com/llms-integrations.txt), and [llms-self-hosting.txt](https://langfuse.com/llms-self-hosting.txt).

### Before writing Langfuse code

- **Install the [Langfuse Agent Skill](https://langfuse.com/docs/api-and-data-platform/features/agent-skill).** It encodes Langfuse's own best practices for instrumentation, prompt management, and evaluation, and materially improves results.
- **Read [What does a good trace look like?](https://langfuse.com/docs/observability/best-practices.md)** before instrumenting an application.
- **Verify endpoints, parameters, and response fields** against the [OpenAPI spec](https://cloud.langfuse.com/generated/api/openapi.yml), or read the [API reference as Markdown](https://api.reference.langfuse.com/index.md), instead of inferring them from code examples.
- **Use the [Langfuse CLI](https://langfuse.com/docs/api-and-data-platform/features/cli)** (`npx @langfuse/cli api <resource> <action>`) to read or write traces, prompts, datasets, and scores from the terminal.

Found an error in these docs? Please open an issue at <https://github.com/langfuse/langfuse-docs/issues>.
