Model or dataset
openlit/openlit avatar
openlit/openlit

Inside OpenLIT: an agent harness platform that publishes its own OTLP ports

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

3,096 stars496 forksTypeScriptApache-2.0

At a glance

What is it?
OpenLIT is a self-hostable platform for tracing, evaluating and guarding AI agents through OpenTelemetry, and it names the object it instruments as the harness rather than the model. The compose file it ships is where the practical details live: an unpinned image tag, two published OTLP receivers, a default database password, and two storage engines behind one dashboard.
Who is it for?
OpenLIT fits a team that already thinks of an agent as a model plus everything wrapped around it, and that wants traces, evals and cost in one self-hosted stack rather than three hosted tools. It does not fit a deployment where the OpenTelemetry receiver should stay on a private network, because the compose file publishes 4317 and 4318 on the host without an authentication setting and starts ClickHouse with the password OPENLIT unless you set environment variables first.
Can I use it commercially?
Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 3 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • openlit/openlit3,096 ★ · +335
Star history
Repository2026-09-132026-11-22
openlit/openlit2.8k3.1k

335 Stars in the last 70 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

It instruments the harness, not the model

OpenLIT's own definition of its subject is the part worth starting from. An AI agent is a model plus a harness, and the harness is everything except the model: tools, context, prompts, memory, hooks, guardrails and feedback loops. Agent harness engineering is then the discipline of designing, measuring and improving that harness, with a stated core loop of run, observe, evaluate, fix the harness, verify.

Each step of that loop is mapped to a named feature. Observe covers every LLM call, tool call, MCP request, retrieval and agent step through agent observability and OpenTelemetry LLM tracing. Evaluate maps to evals with LLM-as-a-judge, programmatic checks and human feedback, plus CI gates. Guard maps to runtime guardrails for prompt injection, sensitive topics and topic restriction. Fixing without redeploying maps to the Prompt Hub, Context, a Rule Engine and a Vault for secrets. Comparing before shipping is OpenGround, and accounting for cost, latency and hardware is cost tracking with custom pricing plus GPU monitoring for NVIDIA, AMD and Intel.

The claimed reach is wide: Claude Code, Codex, Cursor, the OpenAI Agents SDK, LangGraph, CrewAI, and 70 or more further integrations, with no requirement to pick one model or framework. The recorded primary language of the repository is TypeScript.

The quickstart pulls an image tagged latest

The quickstart is four commands and a browser. Clone the repository, enter the directory, start the stack, then open http://127.0.0.1:3000. The SDK side is a pip install or an npm install of the same package name, followed by three lines of Python that import openlit and call openlit.init(). Telemetry then goes to an OTLP endpoint, either through the OTEL_EXPORTER_OTLP_ENDPOINT environment variable or through the otlp_endpoint argument passed to init().

The mismatch worth noticing is between that instruction and the release history. The published releases are numbered, with openlit 2.0.0 on 2026-08-28 and openlit 2.1.0 on 2026-09-10, a major step and a minor step thirteen days apart. The stack the quickstart starts does not use either of them: the compose file names its image as ghcr.io/openlit/openlit with the latest tag.

So following the README gives you a moving target, while pinning a version means going around the quickstart and editing the compose file first. That is a small thing to do and an easy thing to forget, and it is also the difference between evaluating 2.1.0 and evaluating whatever the registry served that day.

The instrumentation step is the shortest of the four. Three lines of Python, an import and a call to openlit.init(), and OpenLIT then instruments supported LLM providers, frameworks, vector databases and other AI infrastructure, exporting OpenTelemetry traces and metrics. Both a pip package and an npm package are published under the name openlit, so Python and TypeScript applications take the same route, even though the repository itself is written in TypeScript.

The compose file publishes both OTLP receivers and a default password

The compose file wires two services together. ClickHouse 24.4.1 stores the telemetry, and the OpenLIT container serves the UI and receives traces. Both publish ports straight to the host:

yaml
  clickhouse:
    image: clickhouse/clickhouse-server:24.4.1
    container_name: clickhouse
    environment:
      CLICKHOUSE_PASSWORD: ${OPENLIT_DB_PASSWORD:-OPENLIT}
      CLICKHOUSE_USER: ${OPENLIT_DB_USER:-default}
      ports:
      - "9000:9000"
      - "8123:8123"

  openlit:
    ports:
      - "${PORT:-3000}:${DOCKER_PORT:-3000}"
      - "4317:4317"  # OTLP gRPC receiver
      - "4318:4318"  # OTLP HTTP receiver

Three observations follow from those lines. The database password falls back to the literal string OPENLIT and the user falls back to default, so an unmodified quickstart runs with credentials that are in the repository. ClickHouse's native and HTTP ports are published as well as the app port, which is more exposure than a local trial needs. And ports 4317 and 4318 are the standard OTLP receiver ports being bound on the host, with no authentication setting anywhere in the visible service definitions, which means anything that can reach the host can push spans to the receiver.

ClickHouse also carries a healthcheck that runs a real query, SELECT 1, on a five second interval with ten retries and a hundred second start period, and the database container is set to restart always.

The database is also customised rather than left at image defaults. Its configuration comes from a file in the repository, assets/clickhouse-config.xml, mounted read only over ClickHouse's config.d directory, and assets/clickhouse-init.sh is mounted into the initdb directory so it runs when the data volume is first created. Running those init scripts is forced on with CLICKHOUSE_ALWAYS_RUN_INITDB_SCRIPTS set to true, and the data itself lives in a named volume, clickhouse-data. So the schema a trial runs against is whatever init.sh creates, which is one more repository file to read before trusting the numbers in the dashboard.

Two storage engines sit behind the same container

The OpenLIT service points at ClickHouse and at a file. The database settings are passed as INIT_DB_HOST, INIT_DB_PORT, INIT_DB_DATABASE, INIT_DB_USERNAME and INIT_DB_PASSWORD, with the host set to the clickhouse service name and the port to 8123, ClickHouse's HTTP port. Alongside that there is a separate variable, SQLITE_DATABASE_URL, set to a file path inside the container at /app/client/data/data.db.

So one container talks to two very different stores: ClickHouse for the telemetry itself and a SQLite file for whatever the application keeps locally. That pairing is worth knowing before you plan storage, because the two have completely different backup and upgrade behaviour, and the SQLite file lives inside the container's own filesystem unless you mount something over it.

Two smaller defaults are worth noting in the same list. TELEMETRY_ENABLED is set to the string true in the compose file, so the stack starts with telemetry on and nothing in the file turns it off. And four OAuth variables for Google and GitHub are present but default to empty strings, meaning the login buttons those integrations need are unconfigured until you supply client IDs and secrets.

Coding agents are instrumented by a script piped into a shell

Coding agents get their own path through the CLI rather than through the SDK. On macOS and Linux the CLI is installed by piping a script straight into a shell:

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

On Windows the PowerShell equivalent pipes an install.ps1 into iex. Both fetch from a raw file URL on the main branch, so the script that runs is whatever that branch currently holds, with no tag, no checksum and no signature in the command.

After installation the steps are ordinary subcommands: openlit configure with an endpoint, openlit coding install with a vendor flag that accepts all or a single one such as cursor, claude-code or codex, and openlit doctor to check the result. What the instrumentation then captures is listed as the user prompt, LLM calls, tool calls broken into file reads, file edits, shell commands and search, sub-agent activity, token usage, cost and code impact, and those sessions appear in a dashboard called Coding Agents.

The convenience is real, and so is the tradeoff: a one line install is also a one line supply chain decision, and pinning it means fetching the script, reading it, and running it yourself.

The GPU collector is a second package still at 0.0.8

GPU monitoring appears in the feature list for NVIDIA, AMD and Intel, and in the repository it is a separate component with a separate release stream. The tree holds an opentelemetry-gpu-collector directory, and the release history includes otel-gpu-collector 0.0.8 published on 2026-08-26, alongside openlit 2.0.0 and 2.1.0.

Two projects at two different maturity levels are being published from one repository: a 2.x platform and a 0.0.x collector. The 0.0.x number is the conventional signal that an interface is still moving, so anyone depending on the collector's configuration format should expect it to change. The release tags carry a package prefix for the same reason, openlit-2.1.0 and otel-gpu-collector-0.0.8, so one repository can publish two version lines without colliding. The collector's tag is also the older of the two, published on 2026-08-26, two days before the platform's own 2.0.0.

Neither of the two services in the compose file is that collector. ClickHouse and the OpenLIT container cover storage, the UI and the OTLP receivers, which is enough for tracing, evals and cost, and means the hardware half of the advertised story needs its own deployment rather than arriving with docker compose up. Anyone reading the cost section of the dashboard and expecting accelerator metrics should work out which deployment supplies them.

Agent configuration directories are committed at the root

The root of the repository is where the project's own tooling habits show. There is a .claude directory, a .claude-plugin directory, a CLAUDE.md file, an AGENTS.md file, an agent-guides directory and a .cursor directory. Six entries committed at the top level, all of them configuration for coding agents rather than source for the platform.

A fork inherits all six, including whatever instructions and plugin manifests they carry, which is worth checking before you point an agent at this repository. The same root also holds CODEOWNERS, CODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md, an env.example file and a .so directory whose purpose the README does not explain, alongside .gitmodules, which means parts of the tree arrive as submodules.

The examples are the other half of the picture. There are seventeen of them, and they cover three clouds (Anthropic, Azure and Bedrock, Gemini), several harnesses (CrewAI, LangGraph, two LiteLLM directories, two OpenAI Agents directories, Mem0) and three deployment shapes worth noting: a kubernetes directory, a linux directory, and a non-llm-http-app whose name suggests tracing plain HTTP traffic with no model in the path at all.

The module layout explains which piece does what. cli/ is the command that installs agent instrumentation, sdk/ is what applications import, src/ holds the platform itself, openlit-controller/ is a component separate from that source tree, and plugins/, docs/, agent-guides/ and assets/ sit alongside them, with assets/ being where the compose file reads its ClickHouse configuration and init script from. The default branch last took a push on 2026-10-01, days after the newest release, so this is a tree where code and releases move close together.

Editorial conclusion

OpenLIT fits a team that already thinks of an agent as a model plus everything wrapped around it, and that wants traces, evals and cost in one self-hosted stack rather than three hosted tools. It does not fit a deployment where the OpenTelemetry receiver should stay on a private network, because the compose file publishes 4317 and 4318 on the host without an authentication setting and starts ClickHouse with the password OPENLIT unless you set environment variables first. Before you roll it out, three things are worth checking yourself: pin the image to a release instead of latest, since the quickstart uses latest while releases are numbered; decide what TELEMETRY_ENABLED true means for your own stack, since that is the shipped default; and look at what the GPU collector needs, because it is a separate package at version 0.0.8 and not one of the two services in that compose file.

Frequently asked questions

What is OpenLIT?

An open-source agent harness engineering platform, self-hostable under Apache 2.0. It gives teams OpenTelemetry-native tracing, evals, guardrails, prompt and context management, and cost and GPU monitoring for the harness around an AI agent, and it works with Claude Code, Codex, Cursor, the OpenAI Agents SDK, LangGraph, CrewAI and 70 or more further integrations.

How do I run OpenLIT locally?

Clone the repository, enter the directory and run docker compose up -d, then open http://127.0.0.1:3000. Install the SDK with pip install openlit or npm install openlit, instrument your app by importing openlit and calling openlit.init(), and point telemetry at the OTLP endpoint with the OTEL_EXPORTER_OTLP_ENDPOINT environment variable or the otlp_endpoint argument.

Can OpenLIT trace Claude Code or Cursor sessions?

Yes, through its CLI rather than the SDK. Install the CLI, run openlit configure with your endpoint, then openlit coding install with a vendor flag set to all or to a single vendor such as cursor, claude-code or codex, and check the result with openlit doctor. Captured per session are the user prompt, LLM calls, tool calls including file reads, file edits, shell commands and search, sub-agent activity, token usage, cost and code impact.

Official sources

  1. License: Apache-2.0
  2. openlit/openlit on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/openlit-openlit.svg)](https://hysenlabs.com/projects/openlit-openlit)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/openlit-openlit.svg)](https://hysenlabs.com/projects/openlit-openlit)

Was this useful?