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.
What does each cost?
Langfuse charges by billable unit: Hobby is free with 50k units, Core is $29 a month and Pro $199, both including 100k units then $8 per 100k. LangSmith charges by seat and trace: Developer is $0 for one seat with 5k base traces, Plus $39 per seat with 10k, then 0.005 LSU per extra base trace at $1 per LSU. Each vendor defines its own units.
How does each calculate LLM cost?
Both multiply token counts by a per-token price. Langfuse takes cost you send from the response first, and otherwise infers it from a model definition. LangSmith derives it from token counts and its model pricing table, or accepts a manual cost on any run. Neither reprices stored traces after an update.
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?
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.
