---
title: "7 open-source tools for LLM observability"
slug: "llm-observability"
description: "Seven verified tools to trace, evaluate and cost-track your LLM app — eval CLIs, AI gateways and self-hosted dashboards."
published: "2026-11-11"
verifiedAt: "2026-11-11"
picks: 7
canonical: "https://aifree.dev/best/llm-observability"
---

# 7 open-source tools for LLM observability

> Seven verified tools to trace, evaluate and cost-track your LLM app — eval CLIs, AI gateways and self-hosted dashboards.

Published 2026-11-11. Last checked 2026-11-11.

An LLM app ships on vibes and breaks in production. Traces, evals and cost dashboards make it debuggable again, without a SaaS subscription.

Every pick pushed a commit in the last 90 days (checked 2026-11-11) and installs from its own docs. All are open source except one source-available pick, flagged. Ordered from a CLI to code you wire in.

## The 7 tools at a glance

| Tool | What it does | Price | Install |
| --- | --- | --- | --- |
| promptfoo | Evals and red teaming for prompts | Free · OSS (MIT) | `npx promptfoo@latest` |
| Helicone | AI gateway with logs, routing, costs | Free · OSS (Apache-2.0) | clone + `helicone-compose.sh` |
| Langfuse | Traces and evals, self-hosted in minutes | Free · OSS (MIT core + EE) | clone + `docker compose up` |
| OpenLLMetry | OpenTelemetry wiring for any LLM app | Free · OSS (Apache-2.0) | `pip install traceloop-sdk` |
| Phoenix | Tracing and evals for troubleshooting | Free · source-available (ELv2) | `pip install arize-phoenix` |
| Opik | Agent tracing, evals, prompt optimization | Free · OSS (Apache-2.0) | `pip install opik` |
| LiteLLM | One proxy for 100+ providers, with spend logs | Free · OSS (MIT core + EE) | `uv tool install 'litellm[proxy]'` |

## 1. promptfoo: prove the prompt works before shipping it

[promptfoo](https://github.com/promptfoo/promptfoo) runs LLM evals (automated quality tests) and red teaming: score prompts against test cases, compare models side by side, and attack your app before someone else does.

**What:** A CLI that runs eval matrices (`promptfoo eval`) and a local viewer for results, plus automated red-team probing.

**Why:** Prompt regressions become tests you run in CI, not surprises in production.

**Use when:** You are changing prompts or swapping models and need proof nothing broke.

**Install:**

```bash
npx promptfoo@latest
```

**Catch:** Evals need provider API keys set as environment variables — and writing good test cases is your job.

## 2. Helicone: the gateway that logs while it routes

[Helicone](https://github.com/Helicone/helicone) is an AI gateway (a proxy between your app and model providers) with an observability dashboard. One API key and one base-URL swap give you logging, routing, fallbacks and cost tracking across 100+ models.

![Helicone's dashboard: requests, errors, costs, latency and top countries for an app over three months](https://f.aifree.dev/media/best/llm-observability/2c9f5039aa66a36f.webp#w=1280&h=720)

**What:** Traces, sessions, prompts and a playground. The hosted version has a free tier of 10k requests a month.

**Why:** You point your existing OpenAI-style client at it; no instrumentation code.

**Use when:** You want production visibility today and self-hosting as an option.

**Install:**

```bash
git clone https://github.com/Helicone/helicone.git && cd helicone/docker && cp .env.example .env
./helicone-compose.sh helicone up
```

**Catch:** Every call takes one more network hop, so its latency and uptime become yours. The Helm chart for production is enterprise-only.

## 3. Langfuse: the full self-hosted trace platform

[Langfuse](https://github.com/langfuse/langfuse) is an open-source platform for tracing and evaluating AI agents and tracking usage and cost. It is built on OpenTelemetry, the standard tracing format.

**What:** Traces for every LLM call, retrieval and agent action; sessions, datasets, evals and dashboards; cloud or self-host.

**Why:** It self-hosts in about 5 minutes with Docker Compose and also covers prompt management.

**Use when:** You need one place where every AI call your product makes is inspectable.

**Install:**

```bash
git clone --depth=1 https://github.com/langfuse/langfuse.git && cd langfuse && docker compose up
```

**Catch:** The core is MIT, but `ee/` directories carry a separate enterprise license, so not every feature is free.

## 4. OpenLLMetry: telemetry that goes to your stack

[OpenLLMetry](https://github.com/Traceloop/openllmetry) is a set of OpenTelemetry extensions for LLM apps. It sends traces to Datadog, Honeycomb or wherever your telemetry already lives.

**What:** Standard OTel instrumentations for LLM providers and vector DBs, plus a Traceloop SDK to start fast.

**Why:** Traces land in the dashboards your team already runs, not a new platform.

**Use when:** You must not add another vendor dashboard to the company stack.

**Install:**

```bash
pip install traceloop-sdk
```

**Catch:** You still need somewhere to send traces — this is wiring, not a UI.

## 5. Phoenix: tracing plus evals for debugging

[Phoenix](https://github.com/Arize-ai/phoenix) is Arize's observability platform for experiments, evals and troubleshooting. It pairs OpenTelemetry tracing with LLM-as-judge evals, where a model grades responses and retrieval.

**What:** A local UI (`phoenix serve`) that ingests traces and runs retrieval and response evals against them.

**Why:** When RAG answers go wrong, Phoenix shows which retrieval or generation step failed.

**Use when:** You are debugging quality, not just collecting logs.

**Install:**

```bash
pip install arize-phoenix && phoenix serve
```

**Catch:** Elastic License 2.0: free to use and self-host, but source-available, not OSI open source.

## 6. Opik: evals with an optimizer attached

[Opik](https://github.com/comet-ml/opik) is Comet's open-source platform for tracing and evaluating LLM apps and agents, with prompt optimization built in.

![Opik CLI output: an optimizer improving a prompt from 0.3000 to 0.4000, with the reasoning and prompt diff shown](https://f.aifree.dev/media/best/llm-observability/3cc1468e2e4c3759.webp#w=1280&h=1112)

**What:** `pip install opik`, wrap functions with `@track`, and run optimization experiments that rewrite prompts against your metrics.

**Why:** Evals and prompt improvement in one loop, fully self-hostable under Apache-2.0.

**Use when:** You want the eval platform to also try to make the prompt better.

**Install:**

```bash
pip install opik && opik configure
```

**Catch:** Optimization runs spend LLM API calls scoring your prompts — watch the bill while it iterates.

## 7. LiteLLM: one proxy, every provider, all metered

[LiteLLM](https://github.com/BerriAI/litellm) is an AI gateway with 63,000+ GitHub stars that calls 100+ providers through the OpenAI API format, with budgets, fallbacks and spend logs.

**What:** `litellm --model gpt-4o` starts a local proxy; your code points at port 4000 instead of a vendor SDK.

**Why:** Provider switching, retries and cost ceilings become config, not rewrites.

**Use when:** Many models, many teams, one place to control spend.

**Install:**

```bash
uv tool install 'litellm[proxy]'
```

**Catch:** MIT core with an `enterprise/` directory under a separate license — SSO and some controls sit behind it.

## Which one to try first

Testing prompts and models → #1. Logging production calls without writing code → #2. A full self-hosted trace platform → #3. Traces into Datadog instead of a new dashboard → #4. Debugging RAG quality → #5. Eval plus prompt optimization in one loop → #6. Many models, one spend meter → #7.

## Picks

1. [promptfoo](https://github.com/promptfoo/promptfoo)
2. [Helicone](https://github.com/Helicone/helicone)
3. [Langfuse](https://github.com/langfuse/langfuse)
4. [OpenLLMetry](https://github.com/Traceloop/openllmetry)
5. [Phoenix](https://github.com/Arize-ai/phoenix)
6. [Opik](https://github.com/comet-ml/opik)
7. [LiteLLM](https://github.com/BerriAI/litellm)

## Frequently asked questions

### What is LLM observability?

Recording every AI call your app makes — prompt, model, latency, cost, output — then tracing multi-step agent runs, evaluating quality with automated checks, and replaying sessions to debug failures.

### Langfuse or Phoenix?

Langfuse is an MIT-licensed platform focused on tracing, production analytics and evals, self-hosted with Docker Compose. Phoenix (Arize) is strong at tracing plus LLM-as-judge evals for debugging RAG — but it is licensed under the Elastic License 2.0, so it is source-available rather than OSI open source.

### Do I need an AI gateway?

Not always. A gateway (Helicone, LiteLLM) adds logging, fallbacks and cost control at the provider boundary without touching app code — useful once several models or teams share one bill. For pure tracing, SDKs like OpenLLMetry or Langfuse are enough.

## Sources

- https://github.com/promptfoo/promptfoo
- https://github.com/Helicone/helicone
- https://github.com/langfuse/langfuse
- https://github.com/Traceloop/openllmetry
- https://github.com/Arize-ai/phoenix
- https://github.com/comet-ml/opik
- https://github.com/BerriAI/litellm
- https://langfuse.com/self-hosting/deployment/docker-compose

HTML page: https://aifree.dev/best/llm-observability
