PrefactorvsLangfusevsLogfire

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]

support-agent v4 · one run, two layersexample
Illustrative run, showing what each layer tells you
Langfuse / Logfiresee
fetch_customer212ms · 1.2k tok
apply_refund1.4s · 3.1k tok
send_reply340ms · 0.8k tok
trace recorded, no verdict
Prefactoradds
Did its job✓ yes
Quality84 / 100
Cost$0.42 · in budget
Drift vs baselinenone
✓ a run that breaches its schema is held for review
§01 / THE SHORT ANSWERtl;dr: which, and when
TL;DR

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.

The short answer

At a glance (checked 20 October 2026)

Decision factorLangfuseLogfire
OwnershipAcquired by ClickHouse in January 2026; licence and self-hosting unchanged, per LangfusePydantic, independent
LicenceMIT, except add-ons in the ee foldersSDKs MIT; platform closed source
Self-hostingFree, via Docker Compose or KubernetesEnterprise only, on Kubernetes via Helm
Trace scopeLLM calls plus retrieval, embedding and API stepsWhole application: HTTP, database, logs, metrics, LLM and agents
Production evalsEvaluator rules run by Langfuse, with backfills up to six monthsEvaluators run in your application in the background
GatewayNone; traces are exported out of the request pathYes, with guardrails and spend caps on model calls
Free tierHobby: 50k units a month, 30 days of dataPersonal: 10M records a month, 30-day retention
First paid tierCore: $29 a month, 100k unitsTeam: $49 a month, 10M records, 5 seats
§02 / CAPABILITY MATRIXside by side: what each covers
Side by side

Langfuse vs Logfire: capabilities side by side

CapabilityLangfuseLogfirePrefactor
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✓PartialPartial
Self-hosting✓PartialPartial
§03 / IN DEPTHdetail: the reasoning
In depth

Licence, and who runs the server

Langfuse publishes its platform under the MIT licence, apart from add-on features in licence-keyed ee folders. Self-hosting is free on Docker Compose for testing or Kubernetes, AWS, Azure or GCP for production, on Postgres, ClickHouse, Redis or Valkey and S3-compatible storage. ClickHouse acquired Langfuse in January 2026, and Langfuse said its roadmap and licence would not change. Releases have kept coming since, up to v4.64.0 on 19 October 2026. One date to note for cloud users: Langfuse Cloud becomes v4-only on 16 November 2026, which may require migration work.

Read more

Logfire's platform is closed source. Its SDKs and pydantic-evals are MIT-licensed, but running the platform yourself needs the Enterprise plan, a Kubernetes cluster via Helm, PostgreSQL 16 or later and object storage; a dedicated single-tenant deployment in any GCP region is also offered. If traces must stay on your own servers without a commercial agreement, Langfuse is the one of these two that allows it.

How much of the system you trace

Langfuse traces LLM calls and the non-LLM steps around them, such as retrieval, embeddings and API calls, with nested observations, sessions for multi-turn work and an agent graph view added in July 2026. It acts as an OTLP backend over HTTP (gRPC is not supported) and names OpenLLMetry and OpenLIT as compatible. Its scope is the LLM application.

Read more

Logfire's scope is the whole service. Its SDKs for Python, JavaScript and TypeScript, and Rust are OpenTelemetry wrappers that record incoming HTTP requests, database queries, logs and metrics in the same trace as model and tool calls, with Agents and LLMs views on top, and any other OpenTelemetry SDK can send data. Teams without a separate APM tool get both jobs from one product; teams that already have one may prefer Langfuse's narrower focus.

On prompts the two are near parity. Langfuse versions prompts, deploys a version by label without a code change, links each version to the traces that used it and compares metrics across versions, with a playground. Logfire stores immutable versions, tests them against saved scenarios and datasets, promotes them with labels and rollout targeting, and fetches them at runtime through its SDK. Both also track token cost: Langfuse per generation, ingested or inferred from model definitions with custom prices, and Logfire as a queryable trace column where token data exists.

Where evaluators run, and what happens at run time

Langfuse runs evaluators on its side. LLM-as-a-judge evaluators and code evaluators, written in Python or TypeScript in the UI since May 2026, score live observations at a sampling rate, and since September 2026 backfills can score up to six months of past data. A GitHub Action runs experiments in CI and fails below a threshold. Annotation queues let reviewers score traces, observations or sessions.

Read more

Logfire's live evaluations run in your application through pydantic-evals, in the background at a sample rate, and report as OpenTelemetry events. Its run annotations are in beta and annotation queues are early access.

At run time, Langfuse blocks nothing; its docs say protection comes from separate libraries and Langfuse evaluates them afterwards. 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.

Pricing shape

As of 20 October 2026, Langfuse charges per unit, where a unit is a trace, observation or score: 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. Logfire charges per record, where a record is a span, log or metric: 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.

Read more

The units do not convert directly, and Logfire counts non-LLM spans too, so model both on a week of your own traffic using Langfuse's pricing and Logfire's pricing. Self-hosted Langfuse has no subscription but carries your infrastructure cost.

§04 / THE QUALITY GAPour take: where it stops
Our take

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.

See it on your own agents

A working session on a fleet like yours: watch a run evaluated, catch a drift, walk the record.

§05 / WHICH TO PICKdecide: by your stack
Which to pick

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.
§06 / HOW WE REVIEWEDsources: checked October 20, 2026
Methodology

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

  1. Langfuse pricingChecked 2026-10-20.
  2. Langfuse documentation
  3. Langfuse ownership and status
  4. Logfire pricingChecked 2026-10-20.
  5. Logfire documentation
  6. Logfire website
  7. Prefactor platform
Prefactor context

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.
§07 / QUESTIONSfaq: the common ones
Questions
What is the difference between Langfuse and Logfire?
Langfuse is an open-source platform focused on LLM and agent traces, evals and prompt versioning, free to self-host. Logfire is Pydantic's OpenTelemetry platform that traces the whole application, including HTTP, database, logs and metrics, and adds evals, prompt versioning and an AI gateway.
How does Prefactor compare with Langfuse and Logfire?
Prefactor is an agent evaluation platform for teams building AI agents: it observes every agent run from development to production, evaluates whether the agent did its job, and shows how to improve it. As of 20 October 2026, Prefactor can block or hold a live agent action; Logfire does so in part and Langfuse does not. Prefactor supports human review and annotation; Langfuse does too and Logfire does so in part. Langfuse and Logfire both include prompt versioning and a playground. Prefactor evaluates how prompts perform in live runs rather than providing a prompt playground or registry.
Can I self-host Langfuse or Logfire?
Langfuse, for free, on Docker Compose or Kubernetes; some add-on features need a licence key. Logfire only on the Enterprise plan, on Kubernetes via Helm with PostgreSQL and object storage.
Do both support OpenTelemetry?
Yes. Langfuse is an OTLP backend over HTTP; gRPC is not supported. Logfire is built on OpenTelemetry, and any standard OpenTelemetry SDK can send it data, so OpenTelemetry instrumentation can feed either.
Which suits a Pydantic AI project?
Both list Pydantic AI as an integration. Logfire is made by the team behind Pydantic AI and its eval library, pydantic-evals, sits in the Pydantic AI repository. Langfuse suits Pydantic AI teams that need free self-hosting.
Does the ClickHouse acquisition change anything for Langfuse users?
Langfuse said in January 2026 that its roadmap and licence would not change and self-hosting stays a first-class option. Separately, Langfuse Cloud becomes v4-only on 16 November 2026, which may need migration work.
Who owns Langfuse?
As of 20 October 2026: ClickHouse, Inc., which acquired Langfuse in January 2026. Langfuse said its roadmap and licence would not change and that self-hosting stays a first-class option.
Is Langfuse open source?
Yes. The repository is MIT-licensed, apart from add-on features in its ee folders that need a licence key. Self-hosting on Docker or Kubernetes is free.
How much does Langfuse cost?
As of 20 October 2026: Hobby is free with 50k units a month and 30 days of data, and self-hosting is free. Core is $29 a month for 100k units, then $8 per 100k. Pro is $199 a month, and Enterprise is $2,499 a month or custom.
Can Langfuse block or hold a live agent action?
No. Langfuse evaluates runs after they happen. Its documentation says run-time protection comes from separate libraries, and Langfuse scores those measures afterwards.
Who owns Logfire?
As of 20 October 2026: Pydantic, the company behind the Pydantic library and Pydantic AI. It is independent and backed by Sequoia, which led its $12.5M Series A in 2024.
Is Logfire open source?
Partly. The SDKs, pydantic-evals and Pydantic AI are MIT-licensed; the Logfire platform is closed source. Self-hosting is Enterprise only.
How much does Logfire cost?
As of 20 October 2026: Personal is free with 10M records a month. Team is $49 a month and Growth $249 a month, each with 10M records included, then $2 per extra million. Enterprise is custom.
Can Logfire block or hold a live agent action?
Partly. Model calls routed through its AI gateway can be flagged, redacted or blocked, and spend caps stop requests over budget. Tool actions outside the gateway are not covered.
Is Prefactor open source?
Partly. Its deterministic evals package is Apache-2.0; the platform is hosted.
How much does Prefactor cost?
As of 20 October 2026: Dev is free with 5,000 spans a month. Startup is $49 a month and Scaleup $199 a month. Enterprise is custom above 4 million spans a month.
Can Prefactor block or hold a live agent action?
Yes. Runtime policies can block, throttle, sandbox or escalate an agent's tool calls and data access before they run, approval routing holds risky actions for a person, and a kill switch stops a run, an agent or a team.
Reviewed against public sources on October 20, 2026Suggest a correction

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.

Agent Performance Platform
Unified performance platform for agents, authentication, and risk management
All Systems Operational
3Global Agents
7Instances
5Services
12%Human Intervene
4High Risk
$2,360Monthly Spend
Mission ControlLive agent health with 7-day activity heartbeat
Claims Proc...68
$330/moRed
Claims Proc...65
$160/moRed
Claims Proc...82
$170/moAmber
ChatGPT74
$150/moAmber

See how every agent performs, and make it better

Prefactor helps teams observe, evaluate, and improve their AI agents in production, across every framework and provider.