All environment variables are read by the API server at startup. There is no hot-reload — restart the server after changing any variable. TheDocumentation Index
Fetch the complete documentation index at: https://docs.lumiqtrace.com/llms.txt
Use this file to discover all available pages before exploring further.
.env.example file in the repository root documents all variables with example values.
Required variables
These variables must be set for the server to start.PostgreSQL connection string. Format:
postgresql://user:password@host:port/databaseClickHouse HTTP endpoint. Include the protocol and port.
ClickHouse username.
ClickHouse password. Can be empty for local development.
ClickHouse database name.
Redis connection string.
Random secret used to sign authentication tokens. Must be at least 32 characters.Generate a suitable value:
openssl rand -hex 32The base URL of the API server, used for auth callback URLs.
Allowed CORS origins. Comma-separate multiple values.
AI model providers
At least one AI provider key is required to use LumiqPilot, Cost Optimizer, Anomaly Detection, and Root Cause Analysis.Anthropic API key. Used for LumiqPilot (cost optimization reasoning) and root cause analysis.
Google Generative AI API key. Used for LumiqPilot (function calling), anomaly explanations, and NLQ.
OpenAI API key. Used as a fallback AI provider for some features.
OpenRouter API key. Used for overview summaries via free models.
Resend API key for transactional email (account verification, alert notifications, team invitations). Without this, emails will not be sent.
The sender address for transactional emails.
Payments (Polar.sh)
These variables are only required if you want to use the billing integration.Polar.sh API access token.
Your Polar.sh organization ID.
Webhook signing secret from Polar.sh. Used to verify that webhook payloads originate from Polar.
Polar product ID for the Free plan.
Polar product ID for the Pro plan.
Polar product ID for the Team plan.
Polar product ID for the Scale plan.
LumiqPilot self-tracing
A LumiqTrace project API key used to trace LumiqPilot’s own AI calls. When set, Pilot’s model calls appear in your traces under the
lumiqpilot agent tag.The project ID to associate with LumiqPilot self-traces.
Web app (frontend)
These variables are read by the Next.js web app container (apps/web). Create a separate .env.web or .env.local file for the web app.
Base URL of the API server, used by the frontend for all API calls.
Public URL of the web app itself. Used for auth callback URLs and email links.
Stripe publishable key for the billing UI. Only required if you are using the Polar/Stripe billing integration.
Optional server configuration
Port the API server listens on.
Logging verbosity. Accepted values:
fatal, error, warn, info, debug, trace.Maximum ingest requests per minute per API key.
Session token lifetime in seconds. Default is 7 days.
How long to cache API key lookups in Redis before re-validating against the database.