Langfuse vs Logfire: how to choose
Both trace agents, run experiments, score production traffic and version prompts. Langfuse is the open-source option you can self-host for free, with evaluators that run on its own servers; Logfire traces the whole application, not only model calls, and adds a gateway that can block model requests. If self-hosting without a contract is a requirement, that settles it; otherwise compare how much of your system you want in one trace.[3][4]
What is the difference between Langfuse and Logfire?
Langfuse is an open-source LLM engineering platform focused on model and agent traces, evals and prompt versioning, while Logfire is Pydantic's OpenTelemetry observability platform that traces the whole application and adds an AI gateway. Langfuse is MIT-licensed apart from add-ons and free to self-host, and ClickHouse acquired it in January 2026; Logfire's platform is closed source and self-hosting is Enterprise only. The names are similar, but the products answer different questions.
At a glance (checked 20 October 2026)
| Decision factor | Langfuse | Logfire |
|---|---|---|
| Ownership | Acquired by ClickHouse in January 2026; licence and self-hosting unchanged, per Langfuse | Pydantic, independent |
| Licence | MIT, except add-ons in the ee folders | SDKs MIT; platform closed source |
| Self-hosting | Free, via Docker Compose or Kubernetes | Enterprise only, on Kubernetes via Helm |
| Trace scope | LLM calls plus retrieval, embedding and API steps | Whole application: HTTP, database, logs, metrics, LLM and agents |
| Production evals | Evaluator rules run by Langfuse, with backfills up to six months | Evaluators run in your application in the background |
| Gateway | None; traces are exported out of the request path | Yes, with guardrails and spend caps on model calls |
| Free tier | Hobby: 50k units a month, 30 days of data | Personal: 10M records a month, 30-day retention |
| First paid tier | Core: $29 a month, 100k units | Team: $49 a month, 10M records, 5 seats |
Langfuse vs Logfire: capabilities side by side
| Capability | Langfuse | Logfire | Prefactor |
|---|---|---|---|
| Observe | |||
| LLM call tracing | ✓ | ✓ | ✓ |
| Multi-step agent tracing (tool calls, nested spans) | ✓ | ✓ | ✓ |
| Cost tracking | ✓ | ✓ | ✓ |
| OpenTelemetry support | ✓ | ✓ | ✓ |
| Evaluate | |||
| Offline evals (datasets, experiments) | ✓ | ✓ | ✓ |
| Online evals on production traffic | ✓ | ✓ | ✓ |
| LLM-as-a-judge scoring | ✓ | ✓ | ✓ |
| Code-based evaluators | ✓ | ✓ | ✓ |
| Human review and annotation | ✓ | Partial | ✓ |
| Prompt versioning and playground | ✓ | ✓ | — |
| Act on findings | |||
| Runtime controls on live agent actions | — | Partial | ✓ |
| Gateway or proxy in the request path | — | ✓ | — |
| Licence and deployment | |||
| Open source | ✓ | Partial | Partial |
| Self-hosting | ✓ | Partial | Partial |
Licence, and who runs the server
Langfuse is MIT-licensed, apart from licence-keyed ee features, and free to self-host; Logfire's platform is closed source, and self-hosting it needs the Enterprise plan.
Read more
Langfuse runs on Docker Compose for testing or Kubernetes, AWS, Azure or GCP, on Postgres, ClickHouse, Redis or Valkey and S3-compatible storage. ClickHouse acquired it in January 2026 and Langfuse said its roadmap and licence would not change; releases continue (v4.64.0 on 19 October 2026), and Langfuse Cloud becomes v4-only on 16 November 2026, which may need migration work. Logfire's SDKs and pydantic-evals are MIT; self-hosting it needs Kubernetes via Helm, PostgreSQL 16 or later and object storage, and a dedicated single-tenant option runs in any GCP region.
How much of the system you trace
Langfuse traces the LLM application; Logfire traces the whole service, recording HTTP requests, database queries, logs and metrics in the same trace as model and tool calls. Teams without an APM tool get both jobs from Logfire.
Read more
Langfuse covers retrieval, embeddings and API calls around the model, sessions and an agent graph view added in July 2026, and acts as an OTLP backend over HTTP but not gRPC. Logfire's Python, JavaScript and TypeScript, and Rust SDKs wrap OpenTelemetry. Prompt versioning and token cost tracking are near parity.
Where evaluators run, and what happens at run time
Langfuse runs evaluators on its own side; Logfire runs them in your application through pydantic-evals. At run time Langfuse blocks nothing, while Logfire's gateway can flag, redact or block model calls and cap spend for traffic routed through it; neither covers an agent's tool actions.
Read more
Langfuse's LLM-as-a-judge and code evaluators (Python or TypeScript in the UI since May 2026) score live observations at a sampling rate, and since September 2026 backfills cover up to six months. A GitHub Action fails CI below a threshold, and annotation queues cover traces, observations and sessions. Logfire's run annotations are in beta and its annotation queues early access.
Pricing shape
Langfuse charges per trace, observation or score and Logfire per span, log or metric, so Logfire counts non-LLM spans too. As of 20 October 2026, Langfuse Hobby is free for 50k units a month with 30 days of data, Core is $29 a month for 100k units then $8 per 100k, falling to $6 per 100k above 50M, and Pro is $199 a month.
Read more
Logfire Personal is free for 10M records, Team is $49 a month for five seats, Growth is $249 a month, and extra records cost $2 per million. Self-hosted Langfuse has no subscription but carries your infrastructure cost. Model a week of traffic against Langfuse's pricing and Logfire's pricing.
Where Prefactor fits
We sell the layer this section describes. Read it with that in mind.
Stated plainly, since Prefactor publishes this page: Prefactor is an agent evaluation platform that scores each step of a run and acts on what it finds through runtime policies on tool calls and data access, approval holds for risky actions and a kill switch for a run, an agent or a team. Langfuse evaluates after the fact, and Logfire's gateway checks model calls only; neither covers tool actions or approvals. Prefactor has no prompt playground or prompt registry and its platform is hosted, so if free self-hosting is what you need, Langfuse is the better pick. See the full comparison of 15 platforms.
Which one fits
Pick Langfuse if
- You need to self-host for free, or want an MIT-licensed codebase.
- You want evaluators to run on the platform, with backfills over past data.
- You already have APM and want a tool focused on the LLM application.
- A $29 first paid tier fits your volume.
Pick Logfire if
- You want agent traces in the same view as HTTP, database, logs and metrics.
- You want a gateway with guardrails and spend caps on model calls.
- You build with Pydantic AI and want tooling from the same team.
- You need SDKs beyond Python and TypeScript, such as Rust.
How we reviewed this comparison
Reviewed against public product and documentation pages on October 20, 2026. If a vendor has changed a feature, product name, or positioning since then, send a correction and we will update it. Numbered source links in the page body point to the ordered sources below.
Sources reviewed
- Langfuse pricingChecked 2026-10-20.
- Langfuse documentation
- Langfuse ownership and status
- Logfire pricingChecked 2026-10-20.
- Logfire documentation
- Logfire website
- Prefactor platform
Methodology
- Reviewed public product, documentation, and launch material visible at the time of writing.
- Mapped each page to the primary buyer, control layer, and runtime capabilities each vendor describes publicly.
- Prefer direct product and documentation pages over analyst summaries or reseller material.
What is the difference between Langfuse and Logfire?
How does Prefactor compare with Langfuse and Logfire?
Can I self-host Langfuse or Logfire?
Do both support OpenTelemetry?
Which suits a Pydantic AI project?
Does the ClickHouse acquisition change anything for Langfuse users?
Who owns Langfuse?
Is Langfuse open source?
How much does Langfuse cost?
Can Langfuse block or hold a live agent action?
Who owns Logfire?
Is Logfire open source?
How much does Logfire cost?
Can Logfire block or hold a live agent action?
Is Prefactor open source?
How much does Prefactor cost?
Can Prefactor block or hold a live agent action?
Score the run, then act on it
Prefactor scores each step of every agent run and can hold or stop an action when a score says it should not happen. Start on the free tier: 5,000 spans a month, no credit card required.
Unified performance platform for agents, authentication, and risk management