Skip to content

Environment variables

All server configuration is environment-driven. .env.example in the repo mirrors this page.

Core

VariableDefaultDescription
OPENLOCALE_DB_URLfile:./openlocale.dbfile: path (SQLite) or postgres://… URL
OPENLOCALE_AUTH_SECRET(dev fallback)Session signing secret — required in production (openssl rand -hex 32)
OPENLOCALE_BASE_URLhttp://localhost:5199Public URL of the instance; used for auth callbacks and cookies
PORT3000Listen port (production build)

Delivery

VariableDefaultDescription
OPENLOCALE_CDN_RATE_LIMIT300Per-IP requests/minute on /api/v1/cdn/*; 0 disables

SSO

VariableDefaultDescription
OPENLOCALE_TRUSTED_ORIGINSComma-separated origins allowed for OIDC discovery on non-public hosts (internal IdPs, local dex)

AI (licensed)

VariableDefaultDescription
ANTHROPIC_API_KEYEnables the server-side translation engine
OPENLOCALE_AI_MODELclaude-opus-4-8Claude model for translation and semantic dedupe
OPENLOCALE_MT_PROVIDERclaudeProvider id; custom providers register under their own id

Licensing

VariableDefaultDescription
OPENLOCALE_LICENSE_PUBLIC_KEY(embedded)Override the license verification public key (PEM) — for forks selling their own licenses

Client-side (SDK / CLI / example app)

VariableUsed byDescription
OPENLOCALE_ENDPOINTCLIServer URL
OPENLOCALE_TOKENCLIAPI token
VITE_OPENLOCALE_ENDPOINT / _PROJECT / _TOKENexample appDemo configuration

MIT licensed core. AI features unlock with a license key.