Skip to main content
OpenLIT is configured through environment variables. Set these in your .env file, Docker Compose environment section, or Kubernetes secrets.

Database

required
Host address of the ClickHouse server.Default: 127.0.0.1
required
Port on which ClickHouse listens for HTTP connections.Default: 8123
required
Name of the ClickHouse database for OpenLIT to use.Default: default
required
Username for authenticating with ClickHouse.Default: default
required
Password for authenticating with ClickHouse.Default: OPENLIT
required
Path for the SQLite database that stores OpenLIT application data (users, prompts, vault entries).Default: file:/app/client/data/data.db

Authentication

Canonical URL of your OpenLIT deployment. Required for OAuth and session management in production.
Secret used to encrypt NextAuth.js JWT tokens. Generate a secure value with:

OAuth providers

Configure OAuth to allow users to sign in with Google or GitHub. See the OAuth setup guide for detailed instructions.
Google OAuth client ID for Google sign-in.
Google OAuth client secret for Google sign-in.
GitHub OAuth client ID for GitHub sign-in.
GitHub OAuth client secret for GitHub sign-in.

Sample .env file

.env

Environment file placement

1

Docker Compose

Create a .env file in the same directory as docker-compose.yml (the repository root). Docker Compose loads it automatically.
2

Kubernetes

Create a Kubernetes Secret and reference it in your Helm values or pod spec. Never commit secrets to source control.
3

Development

For local development, create a .env file in src/client/ — Next.js loads it automatically.

Quickstart

Get LLM observability running quickly

Dashboards

Build custom visualizations for your AI telemetry