LangSmith vs Logfire: how to choose
Both trace agents, run offline and online evals, version prompts and offer a gateway for model calls. LangSmith goes deeper on the agent loop for LangChain and LangGraph teams; Logfire puts agent traces in the same OpenTelemetry view as the rest of a Python application, priced on records rather than seats.[1][4]
What is the difference between LangSmith and Logfire?
LangSmith is LangChain's platform focused on the agent development loop, while Pydantic Logfire is an OpenTelemetry observability platform that traces your whole application, HTTP, database and agent calls, with evals, prompt versioning and an AI gateway built in. LangSmith fits LangChain teams; Logfire fits Python teams, especially on Pydantic AI. Both are independent and both reserve self-hosting for Enterprise.
At a glance (checked 20 October 2026)
| Decision factor | LangSmith | Logfire |
|---|---|---|
| Ownership | LangChain, independent; $125M Series B in October 2025 | Pydantic, independent; $12.5M Series A led by Sequoia in 2024 |
| What it traces | LLM and agent runs, threads and subagent trajectories | The whole application: HTTP, database, LLM and agent spans |
| Online evals | Run by LangSmith through automation rules | Run in your application with pydantic-evals, then reported to Logfire |
| Human review | Annotation queues with rubrics and assigned reviewers | Run annotations in Beta; queues are early-access |
| Gateway | LLM Gateway (beta): spend caps, model access, redaction | AI gateway: guardrails that can flag, redact or block, spend caps, failover |
| Self-hosting | Enterprise add-on on Kubernetes; BYOC also Enterprise | Enterprise only, Kubernetes via Helm |
| Free tier | Developer: 1 seat, 5k base traces a month, 14-day retention | Personal: 1 seat, 10M records a month, 30-day retention |
| First paid tier | Plus: $39 per seat a month, 10k base traces | Team: $49 a month, 5 seats, 10M records, then $2 per million |
LangSmith vs Logfire: capabilities side by side
| Capability | LangSmith | 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 | Partial | ✓ |
| Gateway or proxy in the request path | — | ✓ | — |
| Licence and deployment | |||
| Open source | Partial | Partial | Partial |
| Self-hosting | ✓ | Partial | Partial |
An agent view, or the whole application
Logfire is general observability on OpenTelemetry, recording the HTTP requests, database queries and background work around an agent in the same trace as its model and tool calls, while LangSmith traces LLM and agent work and does not try to replace your application monitoring.
Read more
Logfire comes from the team behind Pydantic, is Python-first and accepts any standard OpenTelemetry SDK. LangSmith offers threads, a Trajectory view across subagents, deep LangChain and LangGraph integration, and SDKs for Python, TypeScript, Go and Java.
Where evaluation runs
LangSmith runs online evaluators itself, through automation rules with filters and sampling, including on multi-turn threads, while Logfire's live evaluations run inside your application through the open-source pydantic-evals library. That keeps judge calls and their cost in your own code and accounts, but your service does the work.
Read more
Logfire's run annotations are in Beta and annotation queues are early access, while LangSmith routes flagged runs to annotation queues for reviewers. Prompt versioning is close on both, with versions promoted by labels or tags.
Two gateways for model calls
Both now offer an optional gateway for model calls with spend caps and redaction, but neither covers an agent's tool calls or documents approvals on agent actions. LangChain describes tool and MCP gateways as planned.
Read more
Logfire's gateway, the Pydantic AI Gateway folded into Logfire in March 2026, adds failover and load balancing across providers and guardrails that observe, flag, redact or block secrets and personal data, on cloud and self-hosted Logfire. LangSmith's LLM Gateway, in public beta since 30 July 2026, adds model access policies, with custom regex rules from October 2026.
Pricing shape
As of 20 October 2026, LangSmith charges per seat plus traces: free for one seat and 5k base traces a month, then Plus at $39 per seat a month with 10k base traces and an unpublished overage rate. Logfire charges on records (spans, logs and metrics): Personal is free for one seat and 10M records a month, Team is $49 a month with five seats and 10M records, Growth is $249 a month with unlimited seats, and extra records cost $2 per million.
Read more
Logfire counts every application span, so estimate your full volume. Retention is 30 days on Logfire Personal and Team and up to 90 days on Growth, against 14 days for LangSmith base traces, extendable to 180 days, and Logfire lets you set a spending cap on paid plans. Check LangSmith's pricing and Logfire's pricing against your own numbers.
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. Both LangSmith and Logfire act only on model calls routed through their gateways; neither holds a tool action for a person. Prefactor does not trace your wider application as Logfire does, has no prompt playground or prompt registry, and is hosted. See the full comparison of 15 platforms.
Which one fits
Pick LangSmith if
- You build on LangChain, LangGraph or Deep Agents.
- You want online evals run by the platform, not your service.
- Annotation queues for human review are part of your process.
- You work in TypeScript, Go or Java as well as Python.
Pick Logfire if
- Your stack is Python, especially Pydantic AI.
- You want agent traces in the same view as HTTP and database spans.
- Record-based pricing with several seats included suits your team.
- You want gateway guardrails that can block or redact model traffic.
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
- LangSmith pricingChecked 2026-10-20.
- LangSmith documentation
- LangSmith website
- 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 LangSmith and Logfire?
How does Prefactor compare with LangSmith and Logfire?
Which suits a Pydantic AI project?
Can I send traces from other languages?
Can I self-host LangSmith or Logfire?
Can I use both together?
Who owns LangSmith?
Is LangSmith open source?
How much does LangSmith cost?
Can LangSmith 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