# OpenLIT

> OpenTelemetry-native observability and evaluation for LLM and GenAI apps

- Category: Evaluation & Production Ops / Observability & LLMOps
- Language: Python
- Repository: https://github.com/openlit/openlit
- Website: https://openlit.io
- Canonical page: https://ai-tldr.dev/tools/openlit/

## In short

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.

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

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

2. Install the SDK

   Add the Python SDK to your application environment.

```bash
pip install openlit
```

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

```python
import openlit

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

4. Visualize and optimize

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

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