Book a free call

Best Open Source LLM Observability Tools: 8 Compared

Open source LLM observability tools trace prompts, score outputs and watch costs without sending your data to a vendor. Here are eight compared.

Hertiv engineering teamReviewed by a senior engineer
6 min read
Best Open Source LLM Observability Tools: 8 Compared
On this page

Short answer

The best open source LLM observability tools are Langfuse, Arize Phoenix, Opik, Traceloop, Helicone, LangWatch, Portkey AI Gateway and LiteLLM. They trace prompts and responses, record token use and cost, and let you score outputs against an evaluation set, while the code and your data stay under your control.

Which open source LLM observability tools should you compare?

The open source LLM observability tools worth comparing are the ones you can run yourself, that trace prompts and responses, and that record token use and cost. If a tool only logs raw text, it will not help you find why an answer went wrong.

Use the table below to shortlist. Self-host means you can run the tool on your own servers.

ToolWhat it tracesSelf-hostBest for
LangfusePrompts, traces, scoresYes, DockerPrompts and evals in one place
Arize PhoenixTraces, spans, evalsYes, DockerDebugging traces and retrieval
OpikTraces, evals, promptsYes, DockerEvaluation-led teams
TraceloopOpenTelemetry tracesYes, SDKTeams already using OpenTelemetry
HeliconeRequests, cache, costsYes, proxyCost control and caching
LangWatchTraces, evals, guardrailsYes, DockerGuardrails plus observability
Portkey AI GatewayRequests, routing, fallbacksYes, gatewayMulti-model routing
LiteLLMRequests, spend, keysYes, proxyOne API for many models

Start with one tool, not three. Connect it to a single LLM feature, trace a week of real traffic, and check whether you can answer three questions: what was asked, what it cost, and why an answer failed.

Langfuse and Arize Phoenix

1. Langfuse: best for prompts and evals in one place

Langfuse is an open source platform for tracing LLM calls, managing prompts and scoring outputs. It records each prompt, response, token count and cost, and lets you compare prompt versions against an evaluation set.

It suits teams that iterate on prompts often and want tracing and evaluation in the same tool. You can self-host it with Docker, which keeps prompts and responses inside your own network. See LLM observability for the concepts behind the tooling.

  • Pros: tracing, prompts and evals in one place; self-hosted with Docker.
  • Cons: needs a database and storage to run; setup takes more than an SDK.

2. Arize Phoenix: best for debugging traces and retrieval

Arize Phoenix is an open source tool for tracing LLM applications, with a focus on spans, retrieval steps and evaluation. Its trace view shows each step of a retrieval pipeline, so you can see which retrieved chunk shaped an answer.

It suits teams debugging retrieval and multi-step agents. Phoenix runs as a local server or a hosted service, and it works well alongside the rest of the Arize stack if you already use it.

  • Pros: clear trace and span views; strong for retrieval debugging.
  • Cons: prompt management is lighter than in full platforms.

Opik and Traceloop

3. Opik: best for evaluation-led teams

Opik, from Comet, is an open source platform for tracing, evaluating and improving LLM applications. It scores traces against datasets, tracks prompt versions and gives you a playground to test changes before they ship.

It suits teams that treat evaluation as the core loop: build a dataset, run the model, score the output, change the prompt, repeat. Opik is Apache 2.0 licensed and can be self-hosted.

  • Pros: evaluation-first design; prompt playground for testing changes.
  • Cons: newer project, so the community is smaller than older tools.

4. Traceloop: best for teams already using OpenTelemetry

Traceloop is an open source SDK that adds LLM tracing to OpenTelemetry, the standard many teams already use for application monitoring. Your prompt traces land in the same system as your service traces.

It suits teams with an OpenTelemetry setup who want LLM data beside their other telemetry. Setup is a small code change, and the traces flow to any OpenTelemetry backend you already run.

  • Pros: fits existing OpenTelemetry setups; small code change to start.
  • Cons: you need your own backend to store and view traces.

Helicone and LangWatch

5. Helicone: best for cost control and caching

Helicone is an open source observability proxy that sits between your app and the model provider. It logs every request, tracks spend per user or key, and caches repeated prompts so you stop paying twice for the same answer.

It suits teams whose LLM bill is growing and who want caching and rate limits without changing application code. You point your client at the proxy and keep your existing code. For broader monitoring, see open source observability tools.

  • Pros: caching and rate limits with no code changes; spend per key.
  • Cons: a proxy adds a hop; deep evaluation needs another tool.

6. LangWatch: best for guardrails plus observability

LangWatch is an open source platform that combines tracing, evaluation and guardrails for LLM applications. It checks outputs against rules you set and records the results alongside the trace.

It suits teams that need safety checks as well as traces, for example blocking disallowed content before it reaches a user. LangWatch can be self-hosted, which keeps the checked data in your network.

  • Pros: guardrails built in; traces and checks in one view.
  • Cons: guardrail rules need tuning to avoid false blocks.

Portkey AI Gateway and LiteLLM

7. Portkey AI Gateway: best for multi-model routing

Portkey AI Gateway is an open source gateway that routes LLM requests across providers, with fallbacks, retries and caching built in. Its observability view shows cost and latency per provider, model and key.

It suits teams that use several models and want one control point for routing and spend. If one provider fails, the gateway can retry on another without changing your application code.

  • Pros: fallbacks and retries across providers; cost per model.
  • Cons: routing rules need care to avoid surprise provider switches.

8. LiteLLM: best for one API across many models

LiteLLM is an open source proxy that gives you one API for more than a hundred models, with logging, spend tracking and key management. Your app calls one endpoint and LiteLLM translates the call for the model you choose.

It suits teams that switch models often or run a mix of hosted and self-hosted models. LiteLLM also supports virtual keys and budgets per team, which helps when several teams share one account. For pricing of hosted options, see vendor site.

  • Pros: one API for many models; budgets and keys per team.
  • Cons: evaluation features are lighter than in dedicated platforms.

How to choose an open source LLM observability tool

Choose by your stack and your question. The right tool is the one that answers what was asked, what it cost and why an answer failed, without forcing you to rebuild your app.

  1. Start from your setup. If you already run OpenTelemetry, Traceloop fits. If you want a proxy, Helicone, Portkey or LiteLLM fit.
  2. Check what it records. It should log the prompt, the retrieved context, the response, the token count and the cost for each request.
  3. Test self-hosting early. Run it on one server with real traffic for a week. If setup is painful now, it will be painful later.
  4. Build one evaluation set. Pick twenty real cases with known good answers and score every tool against them before you commit.
  5. Compare with the commercial side. If you want the hosted options too, compare with LLM observability tools for startups before you decide.

The cheapest tool is the one your team actually opens. A perfect platform nobody checks is worth less than a simple trace view your team reads every day.

What are the common mistakes?

The most common LLM observability mistakes are logging raw text without structure, skipping evaluation, and collecting traces nobody reads.

  • Logging text without structure. A pile of raw prompts is hard to search. Record prompt, context, response, tokens and cost as fields.
  • No evaluation set. Without known good answers, you cannot tell whether a prompt change helped or hurt.
  • Tracing everything, reading nothing. Start with one feature and one weekly review, or the traces become noise.
  • Sending sensitive data to a hosted tool. If prompts carry personal or regulated data, self-host or redact before you send anything out.
  • Ignoring cost per request. Token use is the bill. Track spend per user and per feature from the first week.

Key takeaways

  • Open source observability tools keep your prompts and data under your control
  • Trace prompts, responses, token use and cost from the first week of traffic
  • Pick the tool that fits your stack: OpenTelemetry, a proxy, or a full platform
  • Score outputs against an evaluation set instead of reading a few samples
  • Start with one tool on one feature, then expand once the traces answer real questions

Frequently asked questions

What is LLM observability?

LLM observability is the practice of recording what your language model was asked, what it answered, what it cost and how long it took, so you can debug failures and control spend. Without it, a bad answer is a mystery. With it, you can see the prompt, the retrieved context and the model version behind each reply.

Why choose open source over a hosted tool?

Open source tools let you self-host, which keeps prompts and responses inside your own network. That matters for regulated data and for teams that want to avoid vendor lock-in. The trade-off is that you run the servers, backups and upgrades yourself.

Do these tools work with any model provider?

Most of them do. Langfuse, Phoenix, Opik and Traceloop accept traces from the main providers through their SDKs, while Helicone, Portkey and LiteLLM sit in front of the provider as a proxy. Check the tool's docs for your specific model before you commit.

What is the difference between tracing and evaluation?

Tracing records what happened on one request: the prompt, the context, the response and the cost. Evaluation scores many requests against a dataset with known good answers, so you can tell whether a change made the system better or worse. You need both.

How much does it cost to self-host an observability tool?

The software itself is free under its open source licence, but you pay for the server, storage and your team's time to run it. Small teams often start on one small server and grow storage as traffic grows. See vendor site for hosted pricing if you prefer not to run it.

Can I use an open source tool with RAG?

Yes. Most of these tools trace retrieval steps, so you can see which documents were fetched, how they were ranked and whether the answer used them. That is the fastest way to find out whether a bad answer came from retrieval, the prompt or the model.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building an LLM app and unsure how to trace and evaluate it? Talk to Hertiv.

A senior engineer replies within one business day. Or see our LLM Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call