> ## 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.

# Configuration

> Configuring Options for OpenLIT

This guide covers environment variables for installing and fine-tuning OpenLIT.

> [!NOTE]
>
> **ClickHouse connection at runtime is a [Database Config](https://docs.openlit.io/latest/openlit/organisation/database-config.md), not a live env lookup.**\
> `INIT_DB_*` variables **seed** the first Database Config when OpenLIT is first set up. Day-2 host, password, or environment changes belong in **Organisation → Database Config** and **Connectors**. See also [Connectors](https://docs.openlit.io/latest/openlit/connectors/overview.md) and [Signal routing](https://docs.openlit.io/latest/openlit/organisation/signal-routing.md).

## ClickHouse bootstrap (`INIT_DB_*`)

Used once at seed/install time to create the default Database Config. After that, the UI (and APIs under `/api/db-config`) own the connection.

| Env var | Database Config field |
| - | - |
| `INIT_DB_HOST` | Host |
| `INIT_DB_PORT` | Port |
| `INIT_DB_DATABASE` | Database |
| `INIT_DB_USERNAME` | Username |
| `INIT_DB_PASSWORD` | Password |

## Environment variables

**INIT\_DB\_HOST** *required*

Seed-only: host address written into the default Database Config on first setup. Not read on every request after the config exists.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export INIT_DB_HOST=127.0.0.1
```

**INIT\_DB\_PORT** *required*

Seed-only: ClickHouse HTTP port for the default Database Config (commonly `8123`).

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export INIT_DB_PORT=8123
```

**INIT\_DB\_DATABASE** *required*

Seed-only: ClickHouse database name for the default Database Config.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export INIT_DB_DATABASE=default
```

**INIT\_DB\_USERNAME** *required*

Seed-only: username stored on the default Database Config.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export INIT_DB_USERNAME=default
```

**INIT\_DB\_PASSWORD** *required*

Seed-only: password stored on the default Database Config. Rotate later via the Database Config UI, not by relying on this env var alone.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export INIT_DB_PASSWORD=default
```

**SQLITE\_DATABASE\_URL** *required*

Sets the location where SQLITE data is stored.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export SQLITE_DATABASE_URL=file:/app/client/data/data.db
```

## OAuth authentication variables

> [!NOTE]
>
> For detailed OAuth setup instructions, see the [OAuth Authentication Setup](https://docs.openlit.io/latest/openlit/oauth.md) guide.

**NEXTAUTH\_URL**

Sets the canonical URL of your site for NextAuth.js authentication

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export NEXTAUTH_URL=http://localhost:3000
```

**NEXTAUTH\_SECRET**

Used to encrypt the NextAuth.js JWT tokens and email verification hashes

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export NEXTAUTH_SECRET=your-secret-here
```

**Generate with**: `openssl rand -base64 32`

**GOOGLE\_CLIENT\_ID**

Google OAuth client ID for Google sign-in integration

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export GOOGLE_CLIENT_ID=your-google-client-id
```

**GOOGLE\_CLIENT\_SECRET**

Google OAuth client secret for Google sign-in integration

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export GOOGLE_CLIENT_SECRET=your-google-client-secret
```

**GITHUB\_CLIENT\_ID**

GitHub OAuth client ID for GitHub sign-in integration

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export GITHUB_CLIENT_ID=your-github-client-id
```

**GITHUB\_CLIENT\_SECRET**

GitHub OAuth client secret for GitHub sign-in integration

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export GITHUB_CLIENT_SECRET=your-github-client-secret
```

**AZURE\_AD\_CLIENT\_ID**

Application (client) ID of the Microsoft Entra ID app registration used for Microsoft sign-in.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AZURE_AD_CLIENT_ID=your-azure-client-id
```

**AZURE\_AD\_CLIENT\_SECRET**

Client secret of the Microsoft Entra ID app registration used for Microsoft sign-in.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AZURE_AD_CLIENT_SECRET=your-azure-client-secret
```

**AZURE\_AD\_TENANT\_ID**

Optional. The Microsoft Entra directory (tenant) ID or a verified domain, such as `contoso.onmicrosoft.com`. Defaults to `common`, which accepts work, school, and personal Microsoft accounts from any directory. Set a single directory to limit sign-in to your organisation: OpenLIT only links a Microsoft sign-in to an existing account by email when this names one directory. `organizations` and `consumers` are also accepted.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AZURE_AD_TENANT_ID=00000000-0000-0000-0000-000000000000
```

**OKTA\_CLIENT\_ID**

Client ID of the Okta OIDC web application used for Okta sign-in.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OKTA_CLIENT_ID=your-okta-client-id
```

**OKTA\_CLIENT\_SECRET**

Client secret of the Okta OIDC web application used for Okta sign-in.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OKTA_CLIENT_SECRET=your-okta-client-secret
```

**OKTA\_ISSUER**

Issuer URL of your Okta authorization server. It must be a public `https` URL, such as `https://your-domain.okta.com/oauth2/default`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OKTA_ISSUER=https://your-domain.okta.com/oauth2/default
```

> [!TIP]
>
> In OpenLIT Enterprise, the instance admin can also set these values from **Instance admin → Auth** without redeploying. Values saved there override these variables. See [Instance admin](https://docs.openlit.io/latest/openlit/instance-admin.md#auth).

## Server variables

**PORT**

Sets the port the OpenLIT server listens on. For **Docker Compose** deployments, set this in the `.env` file next to `docker-compose.yml` - Compose maps it to both the host port and the container's internal `DOCKER_PORT` for you. For **Kubernetes** or a raw container run, set `DOCKER_PORT` directly instead (see below); the container's entrypoint always derives its actual listening port from `DOCKER_PORT`, defaulting to `3000` if unset.

**Example** (Docker Compose `.env`):

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
PORT=3000
```

**DOCKER\_PORT**

Sets the port the OpenLIT container listens on internally. Only relevant for Kubernetes or a raw container run where there's no Docker Compose translating `PORT` for you.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export DOCKER_PORT=3000
```

**API\_URL**

Sets the base URL OpenLIT uses to call back into its own API - required by the Auto Evaluation, Auto Pricing, Agents materialization, and telemetry-snapshot cron jobs, which run as separate processes and call this URL directly. Defaults to `http://localhost:$PORT`. Set this if you run behind a reverse proxy, a non-default host, or a different container/pod hostname - otherwise these background jobs will fail silently after every restart.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export API_URL=https://openlit.internal.example.com
```

**OPENLIT\_EDITION**

Sets which OpenLIT build is running. Defaults to `oss` if unset.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_EDITION=oss
```

## Agents variables

Tune the background job that materializes the [Agents](https://docs.openlit.io/latest/openlit/observability/agents/overview.md) page's call graphs and versions from trace data.

**AGENTS\_MATERIALIZE\_SCHEDULE**

Cron schedule for the Agents materialization job. Defaults to `* * * * *` (every minute); the job self-throttles when there's no new trace data to process.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AGENTS_MATERIALIZE_SCHEDULE="* * * * *"
```

**AGENTS\_MATERIALIZE\_MAX\_PER\_TICK**

Maximum number of agents materialized per scheduled run. Defaults to `100`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AGENTS_MATERIALIZE_MAX_PER_TICK=100
```

**AGENTS\_MATERIALIZE\_PARALLEL**

Maximum number of agents materialized concurrently per run. Defaults to `4`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AGENTS_MATERIALIZE_PARALLEL=4
```

**AGENTS\_LOG\_LEVEL**

Log level for the Agents materialization job (`debug`, `info`, `warn`, `error`). Defaults to `info`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AGENTS_LOG_LEVEL=info
```

**AGENTS\_LOG\_STACK**

Set to `false` to omit stack traces from Agents materialization error logs. Defaults to including them.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export AGENTS_LOG_STACK=false
```

## Realtime variables

Realtime evaluation powers [threshold alerts](https://docs.openlit.io/latest/openlit/alerts.md#threshold-alerts). The OTLP receiver publishes each GenAI span sent with an API key to NATS JetStream, and the bundled `openlit-engine` evaluates every enabled alert and records breaches, which appear under **Alerts**. Docker Compose includes a NATS service by default. Realtime is disabled when `NATS_URL` is unset.

**NATS\_URL**

NATS JetStream server URL. When set, the receiver publishes realtime signals and the container starts the realtime engine.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export NATS_URL="nats://nats:4222"
```

**NATS\_RECEIVER\_USER / NATS\_RECEIVER\_PASSWORD**

NATS user for the OTLP receiver. Docker Compose uses `openlit-receiver`, which [`assets/nats.conf`](https://github.com/openlit/openlit/blob/main/assets/nats.conf) only allows to publish signals and manage the signal stream. `NATS_RECEIVER_TOKEN` and `NATS_RECEIVER_CREDS` are also accepted.

**NATS\_ENGINE\_USER / NATS\_ENGINE\_PASSWORD**

NATS user for the realtime engine. Docker Compose uses `openlit-engine`, which can only read the signal stream. `NATS_ENGINE_TOKEN` and `NATS_ENGINE_CREDS` are also accepted. `NATS_USER`, `NATS_PASSWORD`, `NATS_TOKEN`, and `NATS_CREDS` are used as a shared fallback for both.

> [!WARNING]
>
> Docker Compose ships placeholder passwords (`openlit-receiver-change-me`, `openlit-engine-change-me`). Set `NATS_RECEIVER_PASSWORD` and `NATS_ENGINE_PASSWORD` for any deployment other people can reach. The same values are passed to the NATS server and to OpenLIT.

**NATS\_TLS\_CA / NATS\_TLS\_CERT / NATS\_TLS\_KEY / NATS\_TLS\_REQUIRED**

TLS for NATS: a CA bundle, an optional client certificate and key for mutual TLS, and `NATS_TLS_REQUIRED=true` to refuse plaintext connections. Use TLS whenever NATS runs outside the OpenLIT container network.

**OPENLIT\_ENGINE\_SECRET**

Shared secret between the UI server and the realtime engine, sent as `X-OpenLIT-Engine-Secret`. The Docker image generates one per install and stores it in the data volume. Outside Docker, set the same value for both processes; the engine refuses to start without it, and the internal realtime routes reject every request. It is separate from `CRON_JOB_SECRET`.

**OPENLIT\_SIGNAL\_STREAM\_MAX\_BYTES / OPENLIT\_SIGNALS\_MAX\_AGE**

Size cap (default 256 MiB) and retention (default `10m`) of the signal stream. The oldest signals are discarded first.

**OPENLIT\_ENGINE\_MAX\_WINDOWS\_PER\_RULE / OPENLIT\_ENGINE\_MAX\_WINDOWS\_PER\_TENANT / OPENLIT\_ENGINE\_MAX\_WINDOWS / OPENLIT\_ENGINE\_MAX\_SAMPLES\_PER\_WINDOW / OPENLIT\_ENGINE\_FINDINGS\_PER\_MIN**

Engine limits: rule windows per alert (default `200`), per organisation/project/environment (default `1000`), and in total (default `50000`), samples per window (default `5000`), and findings each environment can open per minute (default `60`). Excess is dropped and counted.

**OTLP\_STATS\_ADDR / OTLP\_TENANT\_CACHE\_MAX / OTLP\_AUTH\_FAIL\_BURST / OTLP\_AUTH\_FAIL\_PER\_MIN**

Receiver hardening: the loopback listener for pipeline counters (default `127.0.0.1:4319`, `off` disables), the API key cache size (default `10000`), and how many rejected API keys a client IP may send (default burst `20`, refilling `60` per minute) before it receives `429`.

**OPENLIT\_ENGINE\_URL**

Base URL the UI uses to read live spans for an alert from the engine. Defaults to `http://127.0.0.1:4330`, which matches the engine inside the Docker container and `scripts/dev-realtime.sh`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_ENGINE_URL="http://127.0.0.1:4330"
```

**ENGINE\_HTTP\_ADDR / OPENLIT\_URL**

The engine's internal HTTP listener (default `127.0.0.1:4330`, which serves live spans to the UI) and the UI URL the engine reads alerts from and posts findings to (default `http://127.0.0.1:3000`; the Docker image sets it from the UI port). Keep `ENGINE_HTTP_ADDR` on loopback or a private network.

**ENGINE\_RULES\_REFRESH / ENGINE\_TICK / ENGINE\_REPLAY**

How often the engine reloads alerts (default `10s`), how often it evaluates every window (default `5s`), and how much of the signal stream it replays on start (default `10m`), as Go durations.

**OPENLIT\_SIGNALS\_STREAM**

JetStream stream name for signals (default `OPENLIT_SIGNALS`). The receiver and the engine must use the same name.

**OPENLIT\_REALTIME\_FINDING\_RETENTION\_DAYS / OPENLIT\_REALTIME\_MAX\_OPEN\_FINDINGS**

How long resolved threshold alert history is kept (default `30` days) and how many groups can be firing at once in each project environment (default `1000`). New groups beyond that limit are not recorded.

**OPENLIT\_REALTIME\_WINDOW\_SEC / OPENLIT\_REALTIME\_MIN\_SAMPLES / OPENLIT\_REALTIME\_COOLDOWN\_SEC**

Suggested window (default `300`, max `3600`), minimum spans (default `20`), and cooldown (default `900`) in the threshold alert templates. They only change the values a new alert starts with.

**OPENLIT\_SIGNAL\_ATTRIBUTES**

Personal span and resource attribute keys that realtime signals may carry. Comma-separated. Threshold alerts can filter and group by any span or resource attribute (up to 64 per span, values truncated to 256 bytes) without configuration, except keys that identify people or internal systems: any key with a `user`, `enduser`, `session`, `conversation`, `email`, `phone`, `ip`, `address`, or `path` segment (such as `user.id`, `gen_ai.conversation.id`, `url.path`, or `server.address`). Those are only copied when listed here. Prompt, completion, message, and secret attributes are always ignored, and values that look like credentials are redacted.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_SIGNAL_ATTRIBUTES="session.id,url.path"
```

**OPENLIT\_REALTIME\_ERROR\_RATE / OPENLIT\_REALTIME\_P95\_LATENCY\_MS / OPENLIT\_REALTIME\_TOKENS\_PER\_WINDOW / OPENLIT\_REALTIME\_COST\_PER\_WINDOW\_USD**

Suggested thresholds in the [threshold alert](https://docs.openlit.io/latest/openlit/alerts.md#threshold-alerts) templates: error rate per service (default `0.25`), p95 latency per model (default `30000`), total tokens per model per window (default `1000000`), and span-reported cost per model per window (default `25`). Nothing alerts until someone creates an alert.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_REALTIME_ERROR_RATE=0.1
```

### Realtime production checklist

* Set strong `NATS_RECEIVER_PASSWORD` and `NATS_ENGINE_PASSWORD` values (or use NATS creds files), and keep NATS on a private network. Docker Compose does not publish NATS ports.
* Enable TLS (`NATS_TLS_*`) when NATS is not on the same host or container network.
* Keep `OPENLIT_ENGINE_SECRET` and `CRON_JOB_SECRET` distinct and secret, and keep `ENGINE_HTTP_ADDR` and `OTLP_STATS_ADDR` on loopback.
* Set `OTLP_REQUIRE_API_KEY=true` so every span is attributed to a project.
* Leave personal-data attributes out of `OPENLIT_SIGNAL_ATTRIBUTES` unless rules need them.

## Telemetry variables

> [!NOTE]
>
> See [Anonymous Telemetry](https://docs.openlit.io/latest/openlit/developer-resources/anonymous-telemetry.md) for what OpenLIT's own usage telemetry collects and why.

**TELEMETRY\_ENABLED**

Set to `false` to disable OpenLIT's anonymous usage telemetry, including the daily instance snapshot.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export TELEMETRY_ENABLED=false
```

**TELEMETRY\_SNAPSHOT\_SCHEDULE**

Cron schedule for the daily anonymous instance telemetry snapshot. Defaults to `17 3 * * *`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export TELEMETRY_SNAPSHOT_SCHEDULE="17 3 * * *"
```

## Security variables

OpenLIT enables stricter API protections by default, including security response headers, CSRF checks for browser session API requests, vault secret encryption, and restricted CORS for the vault secrets API.

**CRON\_JOB\_SECRET**

Token required to trigger internal cron-driven endpoints (Auto Evaluation, Auto Pricing, Agents materialization, telemetry snapshot). **Optional for typical self-hosted installs** - when unset, both the cron scripts and the endpoint check fall back to the same shared default, so scheduled jobs work out of the box with no configuration. Set it only if your instance is exposed such that an untrusted party could otherwise call these endpoints directly.

Changing this takes effect on the next restart, since cron entries are re-created from the current environment on every server startup.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export CRON_JOB_SECRET=your-cron-secret
```

**OPENLIT\_REQUIRE\_ORG\_FILTER**

Set to `true` to enforce organisation-scoped isolation on coding-agent telemetry queries in multi-organisation deployments.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_REQUIRE_ORG_FILTER=true
```

**OPENLIT\_VAULT\_ENCRYPTION\_KEY**

Secret used to encrypt Vault values at rest with AES-256-GCM. If this is not set, OpenLIT falls back to `NEXTAUTH_SECRET`.

Use a stable, high-entropy value and keep it unchanged across restarts. Changing this value after secrets are encrypted prevents existing Vault values from being decrypted.

**Generate with**:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
openssl rand -base64 32
```

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_VAULT_ENCRYPTION_KEY=your-vault-encryption-key
```

**OPENLIT\_ALLOWED\_CORS\_ORIGINS**

Comma-separated list of browser origins that are allowed to call API-key authenticated Vault secret retrieval from another domain.

Configure this when a browser application hosted on a different origin needs to call `POST /api/vault/get-secrets`. Server-to-server SDK or REST calls usually do not need this because they do not send a browser `Origin` header.

Specify complete origins, including scheme and host. Do not use `*`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_ALLOWED_CORS_ORIGINS=https://app.example.com,https://admin.example.com
```

**OPENLIT\_ALLOWED\_ORIGINS**

Backward-compatible alias for `OPENLIT_ALLOWED_CORS_ORIGINS`.

**Example**:

```yaml theme={"theme":{"light":"github-light","dark":"github-dark"}}
export OPENLIT_ALLOWED_ORIGINS=https://app.example.com
```

> [!NOTE]
>
> `NEXTAUTH_URL` is also treated as an allowed same-site origin for Vault CORS checks. Browser requests from other domains must be listed in `OPENLIT_ALLOWED_CORS_ORIGINS` or `OPENLIT_ALLOWED_ORIGINS`.

## Environment file placement

Environment variables can be configured in multiple ways depending on your deployment method:

### Development setup

**1. Client-side .env**

Create a `.env` file in the `src/client/` directory for development:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
src/client/.env
```

This file is automatically loaded by Next.js during development.

**2. Docker Compose .env**

Create a `.env` file in the same directory as your `docker-compose.yml` file:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# In the root directory with docker-compose.yml
.env
```

This file is automatically loaded by Docker Compose.

**3. Development Docker Compose .env**

For development Docker setup, create a `.env` file alongside `src/dev-docker-compose.yml`:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
# In the src/ directory with dev-docker-compose.yml
src/.env
```

### Production setup

For production deployments, set environment variables directly in your hosting platform or container orchestration system (Kubernetes, Docker Swarm, etc.).

### Applying changes at runtime

OpenLIT reads environment variables once when the server process starts - there's no hot-reload, so a config change (editing a `.env` file, updating a Kubernetes Secret, etc.) only takes effect after you restart the container or process.

A restart is also all you need for the cron-driven features (Auto Evaluation, Auto Pricing, Agents materialization, telemetry snapshot): their scheduled jobs are re-created from the current environment on every startup, so there's no separate step to "re-save" settings after changing something like `API_URL`, `CRON_JOB_SECRET`, or `AGENTS_MATERIALIZE_SCHEDULE`.

## Sample environment file (.env)

```.env.example .env theme={"theme":{"light":"github-light","dark":"github-dark"}}
# ClickHouse bootstrap ONLY — seeds the first Database Config at install.
# Day-2 host/password/environment changes: Organisation → Database Config.
INIT_DB_HOST="127.0.0.1"
INIT_DB_PORT="8123"
INIT_DB_DATABASE="default"
INIT_DB_USERNAME="default"
INIT_DB_PASSWORD="OPENLIT"
SQLITE_DATABASE_URL="file:/app/client/data/data.db"

# NextAuth Configuration (Optional)
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your-secret-here"

# OAuth Providers (Optional)
GOOGLE_CLIENT_ID="your-google-client-id"
GOOGLE_CLIENT_SECRET="your-google-client-secret"
GITHUB_CLIENT_ID="your-github-client-id"
GITHUB_CLIENT_SECRET="your-github-client-secret"
AZURE_AD_CLIENT_ID="your-azure-client-id"
AZURE_AD_CLIENT_SECRET="your-azure-client-secret"
AZURE_AD_TENANT_ID="your-directory-id"   # optional, defaults to common
OKTA_CLIENT_ID="your-okta-client-id"
OKTA_CLIENT_SECRET="your-okta-client-secret"
OKTA_ISSUER="https://your-domain.okta.com/oauth2/default"

# Server Configuration (Optional)
# PORT is for Docker Compose; use DOCKER_PORT instead for Kubernetes or a raw container run
PORT="3000"
API_URL="http://localhost:3000"

# Agents Materialization (Optional)
AGENTS_MATERIALIZE_SCHEDULE="* * * * *"

# Telemetry (Optional)
TELEMETRY_ENABLED="true"

# Security Configuration (Optional)
OPENLIT_VAULT_ENCRYPTION_KEY="your-vault-encryption-key"
OPENLIT_ALLOWED_CORS_ORIGINS="https://app.example.com,https://admin.example.com"
CRON_JOB_SECRET="your-cron-secret"
```

***

> [card] [Create a dashboard](https://docs.openlit.io/latest/openlit/dashboards/overview.md)
>
> Create custom visualizations with flexible widgets, queries, and real-time AI monitoring

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

> [card] [LLM playground](https://docs.openlit.io/latest/openlit/prompts-experiments/openground/overview.md)
>
> Compare cost, duration, and response tokens across different LLMs to find the most efficient model


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