Comparison
Langfuse vs Arize Phoenix for Tracing AI Agents
Both are free to self-host, both take OpenTelemetry spans, and both trace, evaluate and version prompts for agents. They differ in licence, in how much infrastructure you run, and in what you do when you want someone else to run it.
By The Instrumented Agent Editors · Checked against Langfuse and Arize Phoenix documentation on
The short answer
Langfuse is an MIT-licensed LLM engineering platform you can use as a managed cloud or run yourself; it has been part of ClickHouse since January 2026. Arize Phoenix is Arize's self-hosted observability and evaluation platform, published under the Elastic License 2.0, built on OpenTelemetry and Arize's OpenInference conventions. Arize's managed offering is a separate commercial product, Arize AX, which takes the same instrumentation.
If you want one container and a PostgreSQL database, no feature gates, and agents already instrumented with OpenInference packages, Phoenix is the lighter thing to run. If you want the option of a managed cloud from the same project you self-host, a backend built for high trace volume on ClickHouse, or an OSI-approved licence, Langfuse is the better fit.
Langfuse and Arize Phoenix at a glance
| Langfuse | Arize Phoenix | |
|---|---|---|
| Made by | Langfuse, acquired by ClickHouse, Inc. in January 2026 | Arize AI, which also sells the managed Arize AX platform |
| Licence | Core platform under MIT; some enterprise features (audit logs, SCIM, retention policies) need a licence key when self-hosted | Elastic License 2.0: free to self-host with no feature gates, but you may not offer Phoenix to third parties as a hosted or managed service |
| Where it runs | Langfuse Cloud (EU, US, Japan and a HIPAA region), or self-hosted with Docker Compose, Kubernetes (Helm) or Terraform | Self-hosted: pip install arize-phoenix, Docker, Kubernetes (Helm) or one-click templates for AWS, Google Cloud Run, Azure, Railway and Render. Managed hosting is Arize AX |
| What you operate when self-hosting | Web and worker containers on PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage | One container on SQLite (the default, for local use) or PostgreSQL 14+ (recommended for production) |
| OpenTelemetry ingest | OTLP over HTTP (JSON or protobuf) at /api/public/otel; no gRPC. Maps GenAI semantic conventions and OpenInference input and output attributes | OTLP over HTTP (protobuf) at /v1/traces on port 6006, and OTLP over gRPC on port 4317. Reads OpenInference attributes |
| Agent frameworks | SDK integrations and OpenTelemetry-based instrumentation; LangChain and LangGraph through a callback handler | OpenInference auto-instrumentation for the OpenAI Agents SDK, Claude Agent SDK, LangGraph, CrewAI, Vercel AI SDK, Mastra and others |
| Trace retention | Cloud: data access window set by plan. Self-hosted: what you store | Indefinite by default; per-project policies purge traces by age or trace count on a schedule |
| Evaluation and prompts | Datasets, experiments, LLM-as-judge evaluators, annotation queues, prompt versioning with labels, playground | Datasets, experiments, LLM and code evaluators (including tool-selection and tool-invocation evaluators), annotations, prompt management, playground |
| Limit worth knowing | With raw OpenTelemetry, user, session, tags and metadata must be set on every span to filter by them | One instance is one tenant: teams that need isolation from each other run separate instances or PostgreSQL schemas |
How each one models an agent run
In Langfuse the root of a run is a trace and every step under it is an observation: a span for a unit of work, a generation for a model call, an event for a point in time. Traces from one conversation are grouped into a session, and scores (from evaluators, annotators or users) attach to a trace or an observation.
Phoenix stores plain OpenTelemetry traces in projects and reads their meaning from OpenInference attributes. Every span carries an openinference.span.kind: AGENT for a reasoning step, LLM for a model call, TOOL for a tool execution, RETRIEVER, GUARDRAIL, EVALUATOR and a few more. Traces that share a session.id form a session, and annotations from people, LLM judges or code attach to a span, a trace or a session.
The practical difference is where the agent's structure lives. Langfuse's observation types are its own model, mapped from whatever arrives; Phoenix's span kinds are an open convention your instrumentation writes, so the same spans mean the same thing in any backend that reads OpenInference. Either way, a failure is only findable if each decision gets its own span; see span design for multi-step agentic pipelines.
Getting spans in with OpenTelemetry
Both are OTLP backends, so an agent already exporting OpenTelemetry can reach either with exporter settings. The details differ:
- Langfuse: set
OTEL_EXPORTER_OTLP_ENDPOINTto your region's/api/public/otelURL (or your own host's) and authenticate with HTTP Basic auth built from your public and secret keys. Add thex-langfuse-ingestion-version=4header; Langfuse's docs say spans sent without it can take up to 10 minutes to appear. Only HTTP is accepted, so a gRPC exporter has to be switched. - Phoenix: set
PHOENIX_COLLECTOR_ENDPOINTto your instance andPHOENIX_API_KEYif authentication is on (Phoenix turns it on by itself when bound to a non-loopback address, unlessPHOENIX_ENABLE_AUTHsays otherwise). Python'sregister()sends a URL with no path over gRPC to port 4317; behind a reverse proxy or ingress that only exposes HTTP, passprotocol="http/protobuf". Exporters that post to exactly the URL they are given need the full/v1/tracespath. - Phoenix reads OpenInference attributes, and Arize ships span processors that convert OpenLIT and OpenLLMetry spans to them. Langfuse maps the GenAI semantic conventions and also reads OpenInference's
input.valueandoutput.value, so an agent instrumented with OpenInference packages can send to Langfuse too.
That overlap makes a side-by-side trial cheap: instrument once with OpenInference and fan the spans out to both through an OpenTelemetry Collector. Decide which attribute set is canonical before you do; OpenTelemetry GenAI semantic conventions for agent spans covers the trade-off.
What self-hosting takes
This is the sharpest difference. Phoenix is one containerised application (web UI, trace collector and API) on a SQL database: SQLite by default, kept in ~/.phoenix/ or PHOENIX_WORKING_DIR, or PostgreSQL 14 or newer for production. It scales out by running more instances behind a load balancer on the same database. Authentication supports OAuth2, LDAP and local accounts, with role-based access control.
Langfuse's self-hosted edition is the same architecture as Langfuse Cloud: web and worker containers on PostgreSQL, ClickHouse, Redis or Valkey, and S3-compatible blob storage. That is more to run and back up, and it is built for heavy trace volume on ClickHouse. Every core feature works without a licence; audit logs, data retention policies and SCIM need a licence key.
Neither charges a licence fee to self-host, so the cost is the infrastructure. Size it against your own spans per run and runs per month; sampling strategies for high-volume agent trace pipelines covers what to keep when volume gets expensive.
When you want someone else to run it
With Langfuse the managed option is the same project: Langfuse Cloud, metered in billable units, where every trace, every observation in it and every score counts. An agent run with 40 spans and one evaluator score is 42 units. Put your own volumes into Langfuse's pricing calculator.
With Phoenix the managed option is a different product. Arize AX is Arize's commercial platform, offered as SaaS (and self-hosted under a commercial licence), with a free tier. It accepts the same OpenTelemetry and OpenInference instrumentation, so moving from Phoenix means pointing the exporter elsewhere, not re-instrumenting. Arize lists monitors, dashboards, multi-team workspaces, compliance certifications and support with SLAs as what AX adds. Plans and prices are on Arize's pricing page.
Phoenix's licence also matters here: the Elastic License 2.0 lets you run Phoenix for your own company but not offer it to third parties as a hosted or managed service. Langfuse's MIT core has no such limit.
Retention and where trace data lives
Self-hosted, both keep traces on infrastructure you control, and Phoenix can run fully air-gapped. Phoenix keeps everything until told otherwise: its Default retention policy is 0 days, meaning indefinite. Set PHOENIX_DEFAULT_RETENTION_POLICY_DAYS, or attach per-project policies that purge by age or trace count on a cron schedule. Storage grows until you do.
On Langfuse Cloud the data access window is set by plan; self-hosted, you keep what you store, and retention policies are one of the licence-key features. If traces have to be kept as evidence, read audit logging for AI agents in regulated industries first: who can delete a trace matters as much as where it sits.
Evaluating what the traces show
Both cover the same loop: datasets built from traces, experiments that rerun them, LLM-as-judge evaluators beside your own code checks, and human annotation. Phoenix adds evaluators aimed at agents, such as tool-selection and tool-invocation evaluators that judge whether an agent picked the right tool and called it with valid parameters, and server-side evaluators that run on each new experiment without local code. Langfuse adds annotation queues for routing traces to reviewers, and evaluators that score live production traces.
Neither decides what a wrong answer looks like for your agent; that comes from what each span records. See span-level correctness signals that surface wrong answers in clean traces, and for a Phoenix-specific walkthrough, instrumenting Arize Phoenix for production agent pipelines. If you are weighing Langfuse against a hosted service instead, see Langfuse vs LangSmith.
Which one to pick
Choose Langfuse if
- You want a managed cloud and self-hosting from the same project, and the freedom to switch between them
- You need an OSI-approved licence, or may offer the platform to others as a service
- Your trace volume is high enough that a ClickHouse-backed store is worth running
- Your agents are instrumented with the GenAI semantic conventions or Langfuse's own SDKs
Choose Arize Phoenix if
- You want the smallest thing to self-host: one container on PostgreSQL, or SQLite on a laptop
- Your agents are instrumented with OpenInference, or you want auto-instrumentation for many agent frameworks
- You need every feature without a licence key, including air-gapped deployments
- You expect to move to a managed platform later and want Arize AX to take the same spans
Sources and where to check prices
- Langfuse: OpenTelemetry for LLM observability
- Langfuse: Pricing (Cloud) and billable units
- Langfuse: Self-hosted pricing
- Langfuse: Self-host Langfuse
- Langfuse: Langfuse joins ClickHouse
- Arize Phoenix: Licence (Elastic License 2.0)
- Arize Phoenix: Self-hosting
- Arize Phoenix: Architecture
- Arize Phoenix: Configuration (ports and endpoints)
- Arize Phoenix: Data retention
- Arize Phoenix: Phoenix or Arize AX
- OpenInference: Span kinds
- Arize: Plans and pricing


