openlit/openlit

★ 2,777⑂ 395

Open-source observability & evaluation platform for AI agents and coding agents. Trace LLMs, tools, prompts, costs & agent workflows with OpenTelemetry.

About openlit/openlit

openlit/openlit is an open-source project on GitHub, mainly written in TypeScript. Open-source observability & evaluation platform for AI agents and coding agents. Trace LLMs, tools, prompts, costs & agent workflows with OpenTelemetry. It currently holds 2,777 stars and 395 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Coding Agents board.

GitHub Repository Details

Repository openlit/openlit · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

https://github.com/openlit/openlit/blob/HEAD/OpenLIT Logo

Open-source observability & evaluation for AI agents

Trace, evaluate, debug, and optimize AI applications and coding agents with OpenTelemetry.

https://github.com/openlit/openlit/blob/HEAD/OpenLIT coding agent trace view

⭐ Star     🚀 Quickstart     📚 Docs

Documentation License Downloads Slack X

Documentation · Quickstart · Examples · Join Slack

---

See what your AI agents are actually doing

AI applications are no longer just LLM calls.

A production agent can involve:

flowchart TD
    U([User]) --> A[AI Agent]
    A --> L[LLM calls]
    A --> T[Tool calls]
    A --> R[Retrieval]
    A --> M[Memory]
    A --> S[Sub-agents]
    A --> P[Prompts]
    A --> C[Code changes]
    L & T & R & M & S & P & C --> E{{Evaluation}}
    E --> O[["Cost / Quality / Errors"]]

style U fill:#F97316,stroke:#7C2D12,color:#fff style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff style E fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff style O fill:#F97316,stroke:#7C2D12,color:#fff

OpenLIT gives you visibility across the entire workflow.

Trace every LLM call, tool invocation, prompt, agent step, token, cost, error, and evaluation — using OpenTelemetry.

---

⚡ Get started in 5 minutes

1. Start OpenLIT

git clone https://github.com/openlit/openlit.git
cd openlit

docker compose up -d

Open:

http://127.0.0.1:3000

2. Install the SDK

Python:

pip install openlit

TypeScript:

npm install openlit

3. Instrument your application

Python:

import openlit

openlit.init()

That's it.

OpenLIT automatically instruments supported LLM providers, frameworks, vector databases, and other AI infrastructure and exports OpenTelemetry traces and metrics.

4. Send telemetry

By default, configure the OTLP endpoint:

export OTEL_EXPORTER_OTLP_ENDPOINT="http://127.0.0.1:4318"

Or:

import openlit

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

Open your dashboard and start exploring your AI application's traces, metrics, costs, and performance.

---

🤖 Observe Claude Code, Cursor & Codex

AI coding agents are powerful — but understanding what they actually did can be difficult.

OpenLIT gives you an OpenTelemetry-native view of coding-agent sessions.

Install the CLI:

macOS / Linux

curl -fsSL https://raw.githubusercontent.com/openlit/openlit/main/cli/scripts/install.sh | sh

Windows

iwr -useb https://raw.githubusercontent.com/openlit/openlit/main/cli/scripts/install.ps1 | iex

Configure OpenLIT:

openlit configure --endpoint http://127.0.0.1:4318

Install coding-agent instrumentation:

openlit coding install --vendor=all

Or install individual integrations:

openlit coding install --vendor=cursor
openlit coding install --vendor=claude-code
openlit coding install --vendor=codex

Check your installation:

openlit doctor

Now OpenLIT can capture:

flowchart LR
    S([Coding Agent Session]) --> P[User prompt]
    S --> L[LLM calls]
    S --> T[Tool calls]
    T --> T1[File reads]
    T --> T2[File edits]
    T --> T3[Shell commands]
    T --> T4[Search]
    S --> SA[Sub-agent activity]
    S --> TU[Token usage]
    S --> CO[Cost]
    S --> CI[Code impact]

style S fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff style T fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff

Explore the resulting sessions in the Coding Agents dashboard.

---

🔍 What OpenLIT gives you

Traces

Understand exactly what happened during an AI request.

https://github.com/openlit/openlit/blob/HEAD/LLM calls https://github.com/openlit/openlit/blob/HEAD/Prompts & responses https://github.com/openlit/openlit/blob/HEAD/Tool calls https://github.com/openlit/openlit/blob/HEAD/Retrieval https://github.com/openlit/openlit/blob/HEAD/Embeddings https://github.com/openlit/openlit/blob/HEAD/Vector DB ops https://github.com/openlit/openlit/blob/HEAD/Agent steps https://github.com/openlit/openlit/blob/HEAD/Latency https://github.com/openlit/openlit/blob/HEAD/Token usage https://github.com/openlit/openlit/blob/HEAD/Errors

All represented using OpenTelemetry.

---

💰 AI cost observability

Track the cost of your AI applications across:

https://github.com/openlit/openlit/blob/HEAD/Models https://github.com/openlit/openlit/blob/HEAD/Providers https://github.com/openlit/openlit/blob/HEAD/Users https://github.com/openlit/openlit/blob/HEAD/Sessions https://github.com/openlit/openlit/blob/HEAD/Agents https://github.com/openlit/openlit/blob/HEAD/Environments

Support custom pricing for custom and fine-tuned models.

---

🧪 AI evaluations

Automatically evaluate LLM and agent outputs using LLM-as-a-Judge evaluations.

Built-in evaluation types include:

https://github.com/openlit/openlit/blob/HEAD/Hallucination https://github.com/openlit/openlit/blob/HEAD/Bias https://github.com/openlit/openlit/blob/HEAD/Toxicity https://github.com/openlit/openlit/blob/HEAD/Safety https://github.com/openlit/openlit/blob/HEAD/Instruction following https://github.com/openlit/openlit/blob/HEAD/Completeness https://github.com/openlit/openlit/blob/HEAD/Conciseness https://github.com/openlit/openlit/blob/HEAD/Sensitivity https://github.com/openlit/openlit/blob/HEAD/Relevance https://github.com/openlit/openlit/blob/HEAD/Coherence https://github.com/openlit/openlit/blob/HEAD/Faithfulness

Use evaluations to move from:

"The agent produced an answer."

to:

"The agent produced a good answer."

---

🐛 Debug production AI

Find the requests that matter.

Investigate:

https://github.com/openlit/openlit/blob/HEAD/Failed LLM calls https://github.com/openlit/openlit/blob/HEAD/Exceptions https://github.com/openlit/openlit/blob/HEAD/Latency spikes https://github.com/openlit/openlit/blob/HEAD/Unexpected costs https://github.com/openlit/openlit/blob/HEAD/Bad evaluations https://github.com/openlit/openlit/blob/HEAD/Problematic prompts https://github.com/openlit/openlit/blob/HEAD/Agent/tool failures

Go from:

Something went wrong.

to a fully traced root cause:

flowchart TD
    A[Agent] --> P[Prompt] --> L1[LLM] --> T[Tool call] --> R[Retrieval] --> L2[LLM] --> E([Error])

style E fill:#DC2626,stroke:#7F1D1D,color:#fff style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff

---

📸 See OpenLIT in action

https://github.com/openlit/openlit/blob/HEAD/Traces view with full agent conversation, spans, and cost breakdown
Traces — full agent conversation, spans & cost
https://github.com/openlit/openlit/blob/HEAD/Automated evaluation dashboard with hallucination, bias, and toxicity metrics
Evaluations — hallucination, bias & toxicity checks
https://github.com/openlit/openlit/blob/HEAD/Connectors catalog with ClickHouse, Grafana Tempo, Loki, Prometheus, and Jaeger
Connectors — plug in ClickHouse, Tempo, Loki, Prometheus & more
https://github.com/openlit/openlit/blob/HEAD/Prompt Hub prompt detail page with versions and linked rules
Prompt Hub — versioned, centrally managed prompts
https://github.com/openlit/openlit/blob/HEAD/Rule Engine rule detail page with condition groups and live rule preview
Rule Engine — conditional rules on trace attributes
https://github.com/openlit/openlit/blob/HEAD/OpenLIT dashboard preview with cost, latency, and usage charts
Dashboards — cost, latency & usage charts at a glance

---

🧠 Prompt management

Use Prompt Hub to:

https://github.com/openlit/openlit/blob/HEAD/Create prompts https://github.com/openlit/openlit/blob/HEAD/Version prompts https://github.com/openlit/openlit/blob/HEAD/Retrieve from apps https://github.com/openlit/openlit/blob/HEAD/Compare versions https://github.com/openlit/openlit/blob/HEAD/Consistent across environments

Example:

prompt = openlit.prompts.get(
    "customer-support"
)

Keep prompt management separate from application code while maintaining version control and observability.

---

⚙️ Rule Engine

Define runtime rules based on trace attributes.

Use rules to dynamically control:

https://github.com/openlit/openlit/blob/HEAD/Prompts https://github.com/openlit/openlit/blob/HEAD/Evaluations https://github.com/openlit/openlit/blob/HEAD/Contexts https://github.com/openlit/openlit/blob/HEAD/Runtime behavior

Example:

IF
  environment = production
  AND
  model = expensive-model

THEN run cost evaluation + retrieve production prompt

---

🔌 OpenTelemetry-native

OpenLIT is built around OpenTelemetry, rather than creating a proprietary telemetry format.

Your telemetry can flow through the OpenTelemetry ecosystem:

flowchart TD
    A["AI App / AI Agent"] -->|OpenTelemetry| C[OpenTelemetry Collector]
    C --> B[OpenLIT Backend]
    C --> O["Other OTel backends
(Datadog, Grafana, Honeycomb, ...)"] B --> D[OpenLIT Dashboard]

style A fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff style C fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff style B fill:#F97316,stroke:#7C2D12,color:#fff style D fill:#F97316,stroke:#7C2D12,color:#fff

This means you can integrate OpenLIT into an existing OpenTelemetry architecture instead of replacing it.

---

🧩 70+ integrations

OpenLIT auto-instruments a growing ecosystem of AI providers, frameworks, vector databases, and GPU infrastructure with a single line of code. Click any badge to view its integration guide.

LLM Providers

https://github.com/openlit/openlit/blob/HEAD/OpenAI https://github.com/openlit/openlit/blob/HEAD/Ollama https://github.com/openlit/openlit/blob/HEAD/Anthropic https://github.com/openlit/openlit/blob/HEAD/DeepSeek https://github.com/openlit/openlit/blob/HEAD/GPT4All https://github.com/openlit/openlit/blob/HEAD/Cohere https://github.com/openlit/openlit/blob/HEAD/Mistral https://github.com/openlit/openlit/blob/HEAD/GitHub Models https://github.com/openlit/openlit/blob/HEAD/vLLM https://github.com/openlit/openlit/blob/HEAD/Azure OpenAI https://github.com/openlit/openlit/blob/HEAD/Azure AI Inference https://github.com/openlit/openlit/blob/HEAD/HuggingFace https://github.com/openlit/openlit/blob/HEAD/Amazon Bedrock https://github.com/openlit/openlit/blob/HEAD/Vertex AI https://github.com/openlit/openlit/blob/HEAD/Google AI Studio https://github.com/openlit/openlit/blob/HEAD/Groq https://github.com/openlit/openlit/blob/HEAD/NVIDIA NIM https://github.com/openlit/openlit/blob/HEAD/xAI https://github.com/openlit/openlit/blob/HEAD/ElevenLabs https://github.com/openlit/openlit/blob/HEAD/AI21 https://github.com/openlit/openlit/blob/HEAD/Together AI https://github.com/openlit/openlit/blob/HEAD/DigitalOcean (pydo) https://github.com/openlit/openlit/blob/HEAD/DigitalOcean Gradient https://github.com/openlit/openlit/blob/HEAD/Assembly AI https://github.com/openlit/openlit/blob/HEAD/Featherless https://github.com/openlit/openlit/blob/HEAD/Reka AI https://github.com/openlit/openlit/blob/HEAD/OLA Krutrim https://github.com/openlit/openlit/blob/HEAD/Titan ML https://github.com/openlit/openlit/blob/HEAD/Sarvam AI https://github.com/openlit/openlit/blob/HEAD/Prem AI https://github.com/openlit/openlit/blob/HEAD/Replicate https://github.com/openlit/openlit/blob/HEAD/OCI GenAI

Vector & Data Stores

https://github.com/openlit/openlit/blob/HEAD/ChromaDB https://github.com/openlit/openlit/blob/HEAD/Pinecone https://github.com/openlit/openlit/blob/HEAD/Qdrant https://github.com/openlit/openlit/blob/HEAD/Milvus https://github.com/openlit/openlit/blob/HEAD/AstraDB https://github.com/openlit/openlit/blob/HEAD/PostgreSQL (psycopg3)

AI Frameworks & Agents

https://github.com/openlit/openlit/blob/HEAD/LangChain https://github.com/openlit/openlit/blob/HEAD/OpenAI Agents https://github.com/openlit/openlit/blob/HEAD/LiteLLM https://github.com/openlit/openlit/blob/HEAD/CrewAI https://github.com/openlit/openlit/blob/HEAD/LlamaIndex https://github.com/openlit/openlit/blob/HEAD/Browser Use https://github.com/openlit/openlit/blob/HEAD/Pydantic AI https://github.com/openlit/openlit/blob/HEAD/DSPy https://github.com/openlit/openlit/blob/HEAD/AutoGen (AG2) https://github.com/openlit/openlit/blob/HEAD/Haystack https://github.com/openlit/openlit/blob/HEAD/mem0 https://github.com/openlit/openlit/blob/HEAD/Guardrails AI https://github.com/openlit/openlit/blob/HEAD/Phidata https://github.com/openlit/openlit/blob/HEAD/MultiOn https://github.com/openlit/openlit/blob/HEAD/Julep AI https://github.com/openlit/openlit/blob/HEAD/Letta https://github.com/openlit/openlit/blob/HEAD/Crawl4AI

GitHub Stars & Activity

2,777Stars
395Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars2,777
Forks395
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

thedotmack / claude-mem

TypeScript★ 94,360⑂ 8,336
2

Egonex-AI / Understand-Anything

TypeScript★ 83,490⑂ 7,043
3

stablyai / orca

TypeScript★ 73,877⑂ 4,841
4

ruvnet / ruflo

TypeScript★ 72,954⑂ 8,660
5

diegosouzapw / OmniRoute

TypeScript★ 68,672⑂ 9,716
6

Yeachan-Heo / oh-my-claudecode

TypeScript★ 39,279⑂ 3,510
7

JCodesMore / ai-website-cloner-template

TypeScript★ 34,705⑂ 5,055
8

iOfficeAI / AionUi

TypeScript★ 32,998⑂ 3,418

More AI Rankings