> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openlit.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-Host OpenLIT

> Self-host OpenLIT with Docker or Kubernetes. Deploy OpenLIT (dashboard plus OTLP receiver) and ClickHouse on your own infrastructure.

OpenLIT is open source and is lightweight to self-host. You need two components:

1. **OpenLIT** — dashboard, APIs, the first-party [OTLP receiver](https://docs.openlit.io/latest/openlit/otlp-receiver.md) (`:4317` gRPC, `:4318` HTTP), and the realtime engine
2. **ClickHouse** — storage for traces, metrics, and logs (`otel_*` tables)

[Threshold alerts](https://docs.openlit.io/latest/openlit/alerts.md) also need **NATS JetStream**, which carries live span signals from the receiver to the realtime engine. Docker Compose runs it for you; elsewhere, point `NATS_URL` at your own NATS server.

> [!NOTE]
>
> **Already have ClickHouse?**
>
> You can reuse it and skip deploying a new database. OpenLIT connects through `INIT_DB_*` or a project [database config](https://docs.openlit.io/latest/openlit/developer-resources/multiple-db.md). You do **not** need a bundled OpenTelemetry Collector — OTLP ingest is built into the OpenLIT container. An optional sidecar Collector can still forward OTLP to OpenLIT.

This section contains guides for different deployment scenarios.

> [card] [Kubernetes](https://docs.openlit.io/latest/openlit/installation.md#kubernetes)
>
> Deploy OpenLIT and ClickHouse on Kubernetes. OTLP ingest is built into the OpenLIT container.

> [card] [Docker](https://docs.openlit.io/latest/openlit/installation.md#docker)
>
> Deploy OpenLIT and ClickHouse with Docker Compose. Ports 3000, 4317, and 4318 are on the OpenLIT service.

## Kubernetes

Deploy OpenLIT on your Kubernetes cluster using the [OpenLIT Helm chart](https://github.com/openlit/helm/tree/main/charts/openlit). The chart deploys the OpenLIT platform (including the OTLP receiver) and ClickHouse.

**1. Helm Repo Setup**

```shell shell theme={"theme":{"light":"github-light","dark":"github-dark"}}
helm repo add openlit https://openlit.github.io/helm/
helm repo update
```

**2. Installing the Helm Chart**

```shell shell theme={"theme":{"light":"github-light","dark":"github-dark"}}
helm install openlit openlit/openlit
```

Send OTLP to the OpenLIT service on `4317` (gRPC) or `4318` (HTTP). See [OTLP receiver](https://docs.openlit.io/latest/openlit/otlp-receiver.md).

## Docker

For a quick setup, Docker Compose (v2.24 or later) deploys OpenLIT, ClickHouse, and NATS. The OpenLIT container listens on `3000` (UI), `4317` (OTLP/gRPC), and `4318` (OTLP/HTTP). NATS publishes no ports and is only reachable from the Compose network. There is no separate `otel-collector` service.

**1. Git Clone OpenLIT Repository**

```shell theme={"theme":{"light":"github-light","dark":"github-dark"}}
git clone git@github.com:openlit/openlit.git
```

**2. Start Docker Compose**

From the root directory of the OpenLIT Repo, Run the below command

```shell theme={"theme":{"light":"github-light","dark":"github-dark"}}
docker compose up -d
```

> [!WARNING]
>
> Compose ships placeholder NATS passwords. Before anyone else can reach your deployment, set `NATS_RECEIVER_PASSWORD` and `NATS_ENGINE_PASSWORD` (for example in a `.env` file next to `docker-compose.yml`). See the [realtime production checklist](https://docs.openlit.io/latest/openlit/configuration.md#realtime-production-checklist).

> [!WARNING]
>
> If you previously ran the old stack, restart Compose with `--remove-orphans`. The standalone `otel-collector` container is no longer used and will conflict on ports 4317 and 4318 if it is left running.

## Frequently asked questions

> [accordion] What do I need to self-host OpenLIT?
>
> Docker and Docker Compose for the quickest path, or a Kubernetes cluster with Helm. Both deploy OpenLIT (dashboard + OTLP receiver) and ClickHouse.

> [accordion] Can I reuse my existing ClickHouse or OpenTelemetry Collector?
>
> Yes for ClickHouse — see [Connect Multiple Databases](https://docs.openlit.io/latest/openlit/developer-resources/multiple-db.md). You do not need OpenLIT to run `otelcol`. If you already operate a Collector, [forward OTLP to OpenLIT](https://docs.openlit.io/latest/openlit/otlp-receiver.md#optional-sidecar-collector).

> [accordion] Is OpenLIT free to self-host?
>
> Yes. OpenLIT is licensed under Apache-2.0 and the community edition is free to self-host, with no license key or usage limits. A few organisation-wide governance features, such as custom roles, audit logs, event alerts, and notification destinations for alerts, are part of [OpenLIT Enterprise](https://docs.openlit.io/latest/openlit/enterprise.md) and are marked with an **Enterprise** tag in these docs.

***

> [card] [Start tracing](https://docs.openlit.io/latest/openlit/quickstart-ai-observability.md)
>
> Production-ready AI monitoring setup in 2 simple steps with zero code changes

> [card] [Use prompt management](https://docs.openlit.io/latest/openlit/prompts-experiments/prompt-hub/overview.md)
>
> Version, deploy, and collaborate on prompts with centralized management and tracking

> [card] [Set up evals](https://docs.openlit.io/latest/openlit/evaluations/llm-as-a-judge.md)
>
> Score live traces automatically with prebuilt LLM-as-a-judge evaluators


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.