Skip to content

Latest commit

Β 

History

1,008 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
OpenLIT Logo

Open-source observability & evaluation for AI agents

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

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
Loading

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
Loading

Explore the resulting sessions in the Coding Agents dashboard.


πŸ” What OpenLIT gives you

Traces

Understand exactly what happened during an AI request.

LLM calls Prompts & responses Tool calls Retrieval Embeddings Vector DB ops Agent steps Latency Token usage Errors

All represented using OpenTelemetry.


πŸ’° AI cost observability

Track the cost of your AI applications across:

Models Providers Users Sessions Agents 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:

Hallucination Bias Toxicity Safety Instruction following Completeness Conciseness Sensitivity Relevance Coherence 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:

Failed LLM calls Exceptions Latency spikes Unexpected costs Bad evaluations Problematic prompts 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
Loading

πŸ“Έ See OpenLIT in action

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

🧠 Prompt management

Use Prompt Hub to:

Create prompts Version prompts Retrieve from apps Compare versions 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:

Prompts Evaluations Contexts 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"] -->|OTLP| R[OpenLIT OTLP receiver]
    A -->|optional sidecar| C[Your OpenTelemetry Collector]
    C --> R
    C --> O["Other OTel backends<br/>(Datadog, Grafana, Honeycomb, ...)"]
    R --> B[ClickHouse]
    B --> D[OpenLIT Dashboard]

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

OpenLIT listens for OTLP on :4317 (gRPC) and :4318 (HTTP). A bundled Collector is not required. You can still put your own Collector in front for fan-out or processing.

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

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

Vector & Data Stores

ChromaDB Pinecone Qdrant Milvus AstraDB PostgreSQL (psycopg3)

AI Frameworks & Agents

LangChain OpenAI Agents LiteLLM CrewAI LlamaIndex Browser Use Pydantic AI DSPy AutoGen (AG2) Haystack mem0 Guardrails AI Phidata MultiOn Julep AI Letta Crawl4AI FireCrawl Dynamiq ControlFlow SwarmZero LangGraph Strands Agents Google ADK Claude Agent SDK Vercel AI SDK Agent Framework smolagents

Governance & Protocols

Agent Governance Toolkit MCP

GPU Monitoring

NVIDIA GPUs AMD GPUs Intel GPUs

See the complete integration list in the documentation.


πŸ› οΈ SDKs

OpenLIT provides OpenTelemetry-native SDKs for:

Python

pip install openlit

Python SDK β†’

TypeScript

npm install openlit

TypeScript SDK β†’

Go

Go SDK β†’


πŸ—οΈ Architecture

OpenLIT is designed to run in your infrastructure.

A typical deployment looks like:

flowchart TD
    subgraph App["Your application"]
        direction LR
        Agent --> LLM --> Tools --> RAG --> DB
    end
    App -->|OTLP| Receiver[OpenLIT OTLP receiver]
    Receiver --> CH[(ClickHouse)]
    CH --> Dash[OpenLIT Dashboard]

    style App fill:#1F2937,stroke:#F97316,stroke-width:2px,color:#fff
    style Receiver fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff
    style CH fill:#111827,stroke:#F97316,stroke-width:2px,color:#fff
    style Dash fill:#F97316,stroke:#7C2D12,color:#fff
Loading

πŸ” Self-hosted by default

Run OpenLIT inside your own infrastructure using Docker or Kubernetes.

Your telemetry stays under your control.

docker compose up -d

For Kubernetes, see the installation documentation.


πŸš€ From trace to optimization

Observability is only the beginning.

OpenLIT is designed around a continuous AI engineering loop:

flowchart LR
    T[Trace] --> E[Evaluate] --> A[Analyze] --> O[Optimize] --> M[Manage] -.-> T

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

The goal is simple:

Make AI systems observable, measurable, debuggable, and continuously improvable.


🌎 Community

OpenLIT is open source and built with the AI engineering community.

Join us:

If OpenLIT is useful to you, please consider giving the repository a ⭐.

It helps other AI engineers discover the project.


🀝 Contributing

Contributions are welcome.

You can contribute by:

  • fixing bugs
  • adding integrations
  • improving documentation
  • creating examples
  • improving SDKs
  • adding evaluations
  • building dashboards
  • reporting issues
  • sharing OpenLIT with other developers

Check the repository's issues for opportunities to contribute.


πŸ“„ License

OpenLIT is licensed under the Apache License 2.0.

See LICENSE for details.


πŸ™‡ Acknowledgments

Sponsors

Silver

Fluxion AI

Bronze

TestMu AI

Deployment partners

DigitalOcean Β Β Β Β  Deploy on Hostinger


πŸ’» Contributors

OpenLIT contributors

Names for the same contributors are on openlit.io/about-us.


Build AI systems you can actually understand.

⭐ Star OpenLIT on GitHub

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2.8k stars

Watchers

21 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages