█

AI/TLDR

Buy me a coffee
Buy me a coffee

OpenLIT

OpenTelemetry-native observability and evaluation for LLM and GenAI apps

Observability & LLMOpsOpen source
Language
Python
$git clone git@github.com:openlit/openlit.git
IN SHORT

What is OpenLIT?

OpenLIT is an open-source platform for AI engineering that adds observability to applications built on LLMs and other generative AI. Its SDKs send traces and metrics using OpenTelemetry, so you can monitor LLM calls, vector databases, and GPUs alongside the rest of your stack. It sits in the Observability & LLMOps category of the Evaluation & Production Ops tools and is open-source, written in Python.

Overview

OpenLIT is an open-source platform for AI engineering that adds observability to applications built on LLMs and other generative AI. Its SDKs send traces and metrics using OpenTelemetry, so you can monitor LLM calls, vector databases, and GPUs alongside the rest of your stack. Adding instrumentation takes a single line of code.

It is aimed at developers and teams who are moving GenAI features from experimentation into production and want a clear view of cost, latency, errors, and output quality. Because the SDKs are vendor-neutral and follow the OpenTelemetry GenAI semantic conventions, the data can flow into OpenLIT's own UI or into observability tools you already run.

As an LLM observability tool, OpenLIT goes beyond tracing: it bundles automated LLM-as-a-Judge evaluations, a rule engine, prompt versioning, secrets management, and a playground for comparing models. The backend is self-hosted with Docker and stores data in ClickHouse.

What it does

  • OpenTelemetry-native SDKs for Python, TypeScript, and Go that emit traces and metrics to any compatible backend
  • One-line instrumentation that captures LLM, vector database, and GPU activity
  • 11 built-in LLM-as-a-Judge evaluation types, including hallucination, bias, toxicity, and relevance detection
  • Prompt Hub for managing and versioning prompts across applications
  • Cost tracking with custom pricing files for fine-tuned and custom models
  • Analytics and exception dashboards for monitoring performance, cost, and errors

Getting started

Self-host the OpenLIT stack with Docker, then instrument your app with the SDK. The example below uses the Python SDK.

Deploy the OpenLIT stack

Clone the repository and start the backend (UI plus ClickHouse) with Docker Compose. The UI is then available at 127.0.0.1:3000.

bashbash
git clone git@github.com:openlit/openlit.git
docker compose up -d

Install the SDK

Add the Python SDK to your application environment.

bashbash
pip install openlit

Initialize in your application

Call openlit.init() once at startup. Without an OTLP endpoint it prints traces to the console, which is handy during development; set otlp_endpoint to send data to OpenLIT.

pythonpython
import openlit

openlit.init(
    otlp_endpoint="http://127.0.0.1:4318",
)

Visualize and optimize

Open OpenLIT at 127.0.0.1:3000 and log in with the default credentials to explore traces, metrics, and costs.

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Trace and monitor LLM calls in production to track latency, token usage, and cost
  • Run automated evaluations to catch hallucinations, bias, or toxic output before users see them
  • Manage and version prompts centrally with the Prompt Hub instead of scattering them across code
  • Compare different LLMs side by side in the playground when choosing a model

How OpenLIT compares

OpenLIT alongside other open-source observability & llmops tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Langfuse★ 38kA self-hostable platform for tracing LLM and agent calls, managing prompts, and running evaluations to debug and improve AI applications.
Opik★ 23.5kAn open-source platform from Comet for tracing, evaluating, and monitoring LLM applications, RAG systems, and agent workflows with dashboards and LLM-as-judge metrics.
RagaAI Catalyst★ 16.2kPython SDK that combines agentic tracing, metric evaluation, dataset and prompt management, guardrails and red-teaming for LLM and multi-agent applications.
CodeBurn★ 11.9kReads the session files 41 AI coding tools already write to disk and breaks token spend down by model, project and task — no API keys or proxy — then flags waste and correlates spend with git commits.
TensorZero★ 11.7kAn open-source LLMOps platform that puts a single gateway in front of every major LLM provider and adds observability, evaluation, optimization, and A/B testing.
Evidently★ 8.1kA monitoring and evaluation framework for ML and LLM systems that tracks output quality, drift, and test results over time with reports and dashboards.
Star Office UI★ 7.6kA self-hosted pixel-art office that shows an AI agent's live work state, with a character moving between desk, sofa and bug corner as it writes, idles or hits errors; built for OpenClaw but drivable by any HTTP client.
OpenLIT★ 3.1kOpenTelemetry-native observability and evaluation for LLM and GenAI apps