# Langfuse vs LangSmith: Cost Tracking Compared | SOMA AI

- URL: https://somaai.earth/ai-footprint/guides/langfuse-vs-langsmith
- Published by SOMA AI (somaai.earth)
- Last modified: 2026-11-30

---

# 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 30 November 2026.

Last updated 30 November 2026

Part of the [SOMA AI Emission Factors](https://somaai.earth/ai-footprint) 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](https://somaai.earth/ai-footprint/methodology).

## 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.

|  | Langfuse | LangSmith |
| --- | --- | --- |
| Who runs it | ["Since January 2026 we're part of ClickHouse."](https://github.com/langfuse/langfuse) | [Terms are with LangChain Inc., a Delaware corporation](https://www.langchain.com/terms-of-service) |
| Licence | [MIT except the ee folders, which have their own licence](https://raw.githubusercontent.com/langfuse/langfuse/main/LICENSE) | Platform proprietary: the [terms](https://www.langchain.com/terms-of-service) grant "a limited, non-exclusive, non-transferable ... license" to use it and reserve every other right. [Python SDK is MIT licensed](https://github.com/langchain-ai/langsmith-python) |
| Self-hosting | ["Langfuse is open source and you can self-host Langfuse for free."](https://langfuse.com/pricing) [Some add-on features need a licence key](https://langfuse.com/self-hosting) | ["An add-on to the Enterprise plan"](https://docs.langchain.com/langsmith/self-hosted), run in your Kubernetes cluster |
| Free tier | [Hobby: 50k units a month, 30 days of data access, 2 users](https://langfuse.com/pricing) | [Developer: $0 per seat, 1 seat, 5k base traces a month](https://www.langchain.com/pricing) |
| Paid plans listed | [Core $29, Pro $199, Enterprise $2,499 a month, unlimited users on paid plans](https://langfuse.com/pricing) | [Plus $39 per seat per month with 10k base traces, Enterprise custom](https://www.langchain.com/pricing) |
| Beyond the included amount | [On paid plans 100k units included, then $8 per 100k units, falling to $6 per 100k above 50M](https://langfuse.com/pricing) | ["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](https://www.langchain.com/pricing) |
| Data access or retention | [Data access of 30 days (Hobby), 90 days (Core), 3 years (Pro, Enterprise). Older data stays stored and is readable again after an upgrade](https://langfuse.com/pricing) | [Base traces 14 days, extended traces 180 days, upgrade for a fee](https://www.langchain.com/pricing) |
| Cost source | [Ingested from the response, or inferred from a model definition. Ingested takes priority](https://langfuse.com/docs/observability/features/token-and-cost-tracking) | [Derived from token counts and model prices, or sent manually on a run](https://docs.langchain.com/langsmith/cost-tracking) |
| Custom prices | [Custom model definitions per project or organisation](https://langfuse.com/docs/observability/features/token-and-cost-tracking) | [New price entries, or overwrite defaults](https://docs.langchain.com/langsmith/cost-tracking) |
| Framework | ["Built on OpenTelemetry"](https://github.com/langfuse/langfuse), [SDKs and integrations including LangChain](https://langfuse.com/docs/observability/get-started) | [Accepts OpenTelemetry traces](https://docs.langchain.com/langsmith/trace-with-opentelemetry), one environment variable for LangChain and LangGraph |
| Spend alerts or limits | [Alerts when spend crosses a threshold](https://langfuse.com/docs/observability/features/token-and-cost-tracking), and [budgets per key, user or organisation that its AI Gateway (beta) enforces by rejecting requests](https://langfuse.com/docs/gateway/features/budgets) | [A weekly cap on evaluator LLM spend](https://docs.langchain.com/langsmith/cost-tracking), and [LLM Gateway (beta) spend policies that block later requests with a 402](https://docs.langchain.com/langsmith/llm-gateway-spend-policies) |
| Carbon | [Not stated: no mention of carbon or CO2e on the pages we read as of 30 November 2026](https://langfuse.com/docs/observability/features/token-and-cost-tracking) | [Not stated: no mention of carbon or CO2e on the pages we read as of 30 November 2026](https://docs.langchain.com/langsmith/cost-tracking) |

## 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](https://langfuse.com/pricing). 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](https://www.langchain.com/pricing). 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](https://langfuse.com/docs/observability/features/token-and-cost-tracking). LangSmith [derives it from token counts and its model pricing table, or accepts a manual cost on any run](https://docs.langchain.com/langsmith/cost-tracking). 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](https://langfuse.com/self-hosting). LangSmith self-hosting is [an add-on to the Enterprise plan](https://docs.langchain.com/langsmith/self-hosted), 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](https://docs.langchain.com/langsmith/cost-tracking), and that it [supports OpenTelemetry traces from any compatible agent](https://docs.langchain.com/langsmith/trace-with-opentelemetry). 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.](https://raw.githubusercontent.com/langfuse/langfuse/main/LICENSE) LangSmith's platform is proprietary: its [terms with LangChain Inc.](https://www.langchain.com/terms-of-service) grant a limited, non-exclusive licence to use it and reserve every other right, while its [Python SDK repository](https://github.com/langchain-ai/langsmith-python) is MIT licensed.

## Does either one show carbon?

Neither vendor's pricing and cost-tracking pages we read mentioned carbon, CO2e or emissions ([Langfuse](https://langfuse.com/docs/observability/features/token-and-cost-tracking), [LangSmith](https://docs.langchain.com/langsmith/cost-tracking)). 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](https://somaai.earth/ai-footprint/guides/langfuse-alternatives) page, and a sibling comparison is [Helicone vs Langfuse](https://somaai.earth/ai-footprint/guides/helicone-vs-langfuse).

## Where does SOMA AI fit?

SOMA AI's free [AI footprint calculator](https://somaai.earth/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](https://somaai.earth/ai-footprint/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

-   [Langfuse alternatives for LLM cost tracking (2026)](https://somaai.earth/ai-footprint/guides/langfuse-alternatives)
-   [Helicone vs Langfuse for LLM cost tracking](https://somaai.earth/ai-footprint/guides/helicone-vs-langfuse)
-   [Helicone alternatives for LLM cost tracking](https://somaai.earth/ai-footprint/guides/helicone-alternatives)
-   [Tools to track and reduce OpenAI and Anthropic API spend](https://somaai.earth/ai-footprint/guides/tools-to-track-reduce-openai-anthropic-api-spend)
-   [AI and LLM cost management tools compared](https://somaai.earth/ai-footprint/guides/ai-cost-management-tools-compared)
-   [AI cost and carbon optimisation](https://somaai.earth/ai-footprint/optimise)

[Peer-reviewed methodPublished in Sustainable Production and Consumption (Elsevier, Q1)](https://doi.org/10.1016/j.spc.2026.11.003)

What does your company's AI emit?

[Try the free calculator](https://somaai.earth/ai-footprint/calculator)
