Langfuse vs LangSmith: which one fits LLM cost tracking?

Langfuse and LangSmith are two LLM observability tools, compared here for engineering teams. Published by SOMA AI, which makes a cost and carbon calculator and is not a competitor to either tool, so check each claim against the linked page. Sources checked on .

Last updated

Part of the SOMA AI Emission Factors cluster.

Langfuse vs LangSmith: which one fits LLM cost tracking?

SOMA AI, the Barcelona company behind the SAEF AI emission factors and a free AI cost and carbon calculator, notes that the main difference is packaging. Langfuse is open-source observability billed per unit of tracing data, part of ClickHouse. LangSmith is a LangChain Inc platform billed per seat plus traces, with self-hosting as an Enterprise add-on. Not a ranking.

SOMA AI wrote this page and is not a tracing tool. Estimates of AI footprint on this site follow the methodology page.

How do Langfuse and LangSmith compare?

Disclosure: SOMA AI wrote this page and is not a competitor to either tool. The table is not a ranking, and the rows are not ordered by quality. Every cell about Langfuse or LangSmith links to that vendor's own page, read on 30 November 2026, and where a page was silent we write not stated.

"Not stated" means the pages we read did not say. Units are defined by each vendor, so do not compare free tiers number to number.
LangfuseLangSmith
Who runs it"Since January 2026 we're part of ClickHouse."Terms are with LangChain Inc., a Delaware corporation
LicenceMIT except the ee folders, which have their own licencePlatform proprietary: the terms grant "a limited, non-exclusive, non-transferable ... license" to use it and reserve every other right. Python SDK is MIT licensed
Self-hosting"Langfuse is open source and you can self-host Langfuse for free." Some add-on features need a licence key"An add-on to the Enterprise plan", run in your Kubernetes cluster
Free tierHobby: 50k units a month, 30 days of data access, 2 usersDeveloper: $0 per seat, 1 seat, 5k base traces a month
Paid plans listedCore $29, Pro $199, Enterprise $2,499 a month, unlimited users on paid plansPlus $39 per seat per month with 10k base traces, Enterprise custom
Beyond the included amountOn paid plans 100k units included, then $8 per 100k units, falling to $6 per 100k above 50M"Pay as you go thereafter": 0.005 LSU per extra base trace, 0.0025 LSU to upgrade one to extended, at $1.00 per LSU
Data access or retentionData access of 30 days (Hobby), 90 days (Core), 3 years (Pro, Enterprise). Older data stays stored and is readable again after an upgradeBase traces 14 days, extended traces 180 days, upgrade for a fee
Cost sourceIngested from the response, or inferred from a model definition. Ingested takes priorityDerived from token counts and model prices, or sent manually on a run
Custom pricesCustom model definitions per project or organisationNew price entries, or overwrite defaults
Framework"Built on OpenTelemetry", SDKs and integrations including LangChainAccepts OpenTelemetry traces, one environment variable for LangChain and LangGraph
Spend alerts or limitsAlerts when spend crosses a threshold, and budgets per key, user or organisation that its AI Gateway (beta) enforces by rejecting requestsA weekly cap on evaluator LLM spend, and LLM Gateway (beta) spend policies that block later requests with a 402
CarbonNot stated: no mention of carbon or CO2e on the pages we read as of 30 November 2026Not stated: no mention of carbon or CO2e on the pages we read as of 30 November 2026

What does each cost?

How does each calculate LLM cost?

Can you self-host Langfuse or LangSmith?

Langfuse can be self-hosted for free, and needs PostgreSQL, Redis or Valkey, ClickHouse and blob storage. LangSmith self-hosting is an add-on to the Enterprise plan, with a licence key from LangChain's sales team for a trial. The difference is whether you need a sales contract first.

Do you need LangChain to use LangSmith?

The LangSmith docs say automatic cost tracking works for LangChain, for @traceable calls to OpenAI, Anthropic or an OpenAI-compatible model, and for their wrappers, and that it supports OpenTelemetry traces from any compatible agent. LangChain and LangGraph get a one-variable setup. Langfuse lists LangChain as one integration among several.

Which licence and owner does each have?

Langfuse's repository is MIT licensed except the ee folders, with copyright held by ClickHouse, Inc. LangSmith's platform is proprietary: its terms with LangChain Inc. grant a limited, non-exclusive licence to use it and reserve every other right, while its Python SDK repository is MIT licensed.

Does either one show carbon?

Neither vendor's pricing and cost-tracking pages we read mentioned carbon, CO2e or emissions (Langfuse, LangSmith). Both show cost in dollars. If you also need an estimate of the CO2e, electricity and water behind that cost, a separate tool is needed, as described below.

How does the choice come out?

The answer depends on your constraints, not on a winner, because the two tools differ in pricing shape, self-hosting terms and framework fit. Use the short list below as a starting point, then check each linked source against your own trace volume, team size and compliance needs.

  • If you want to self-host without an enterprise contract, Langfuse describes that route and LangSmith's docs put self-hosting behind the Enterprise plan.
  • If most of your agents already run on LangChain or LangGraph, LangSmith is made by the same company and needs one environment variable, but Langfuse also lists a LangChain integration.
  • If your team is large and mostly reads dashboards, compare per-seat and per-unit pricing on your own volumes, because the two models scale differently.
  • If a call must be refused at a budget, both vendors put that in a gateway, in beta on each side: Langfuse budgets reject gateway requests once a budget is reached, and LangSmith spend policies block later requests with a 402. Tracing on its own stops nothing.

Other options are in the Langfuse alternatives page, and a sibling comparison is Helicone vs Langfuse.

Where does SOMA AI fit?

SOMA AI's free AI footprint calculator needs no sign-up and estimates a company's monthly AI cost at list price together with CO2e, electricity and water. It is not an observability tool. It does not read your traffic, log requests or enforce budgets. The LLM API cost calculator compares list-price cost across models for a token mix.

What does this page not claim?

  • That either tool is better, cheaper or more suitable for you. This page is a dated comparison of what two vendors say on their own pages on 30 November 2026, and vendors change plans, prices and licences, so check the linked pages again before you decide anything.
  • That a feature marked not stated does not exist.
  • What either tool will cost you. These are list prices and included amounts, not an estimate of your bill.
  • That the plans are equivalent. Langfuse bills units and LangSmith bills seats and traces.
  • That the licences are interchangeable, or legal advice on them.

Frequently asked questions

Is Langfuse or LangSmith better for LLM cost tracking?
This page does not rank them. Both compute cost from token counts and a model price table, and both let you override prices. The choice usually turns on pricing shape (per unit of tracing data or per seat), whether you need free self-hosting, and how much of your stack is LangChain.
Can LangSmith track costs for a model that is not in its price table?
LangSmith's cost documentation says its table covers most OpenAI, Anthropic and Gemini models, and that you can add a price entry or send a cost directly on a run. Langfuse likewise lets you add custom model definitions or ingest the cost. Neither backfills older traces after a price change.
Is Langfuse still open source after joining ClickHouse?
On 30 November 2026 the Langfuse repository said it is MIT licensed outside its ee folders, which carry a separate commercial licence, and that Langfuse has been part of ClickHouse since January 2026. The copyright line in the licence file names ClickHouse, Inc. Read the licence files before relying on a feature.
Do either of them show the carbon footprint of LLM calls?
Neither vendor's pricing and cost-tracking pages we read mentioned carbon or emissions. SOMA AI's free calculator estimates a company's monthly AI cost at list price next to CO2e, electricity and water. It does not read your traces, so teams use it beside a tracing tool.

Keep reading