# Langfuse

> A free tool that records each step of an LLM app. You can run it yourself.

**Field:** Software Development  
**Category:** AI Engineering  
**Also known as:** Langfuse Cloud, Langfuse Tracing

## Think of it like

It is like a home camera you own. The tapes stay in your house.

## Definition

Langfuse is an open-source platform for tracing and improving LLM apps. You can use its cloud or run it on your own servers. Each trace holds the model calls and the steps around them, like searches and API calls. It also stores prompt versions, runs evaluations and shows cost and speed on a dashboard. It is built on OpenTelemetry, a shared standard for tracing.

## Example

Jack's company keeps all data in its own country. His team runs Langfuse on their own servers, so traces with customer text never leave.

## Example code

```bash
LANGFUSE_SECRET_KEY="sk-lf-..."
LANGFUSE_PUBLIC_KEY="pk-lf-..."
LANGFUSE_BASE_URL="https://cloud.langfuse.com"
```

Two keys and an address connect your app. A copy you run yourself uses your own address.

## Why it matters

Teams that cannot send data to an outside service can still trace their app. Open code also means you are not stuck with one vendor.

## Common mistake

Logging prompts full of private data and forgetting who can read them. Traces hold the real text, so hide what should not be kept.

## Three principles

- **Open source.** Run it yourself or in its cloud.
- **Traces and prompts.** One place for both.
- **OpenTelemetry.** Uses the shared tracing standard.

## Related terms

- [LLM Observability](https://learn.benibix.com/term/development/llm-observability)
- [LangSmith](https://learn.benibix.com/term/development/langsmith)
- [Prompt Versioning](https://learn.benibix.com/term/development/prompt-versioning)
- [Open Source Software](https://learn.benibix.com/term/development/open-source)
- [OpenTelemetry (OTel)](https://learn.benibix.com/term/infrastructure/opentelemetry)
- [LLM Evaluation](https://learn.benibix.com/term/ai/llm-evaluation)

## Told apart from

- [LangSmith vs Langfuse](https://learn.benibix.com/compare/langsmith-vs-langfuse): People think LangSmith and Langfuse are one tool, because the names sound alike and both trace and test LLM apps. LangSmith comes from LangChain, the team behind the LangChain framework. Langfuse is a separate project with open code, free to run on your own servers. Both record each step of a run, keep prompts and score answers.

![A trace of one user request, drawn as a timeline. It shows the retrieval step, two model calls and a tool call, each with its time, tokens and cost.](https://learn.benibix.com/diagrams/dev-llm-observability.svg)

---

Source: https://learn.benibix.com/term/development/langfuse
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
