Self-host

Configuration

A self-hosted instance reads its settings from .env at the repository root on each start. After editing .env, recreate the stack with docker compose down && docker compose up -d --build (rebuilding is required whenever COMMA_API_URL changes).

Owner account

Set COMMA_OWNER_EMAIL before the first start. That address becomes the owner with access to the Admin console at http://localhost:8082. COMMA_ALLOW_SIGNUP defaults to false so public registration stays closed on hosted deployments.

For public HTTPS deployments, set COMMA_PUBLIC_URL, COMMA_ADMIN_URL, COMMA_API_URL and COMMA_SALIX_URL to HTTPS origins on the same registrable domain (for example https://app.example.com, https://admin.example.com, https://api.example.com and https://salix.example.com). Session cookies use SameSite=Lax, so cross-site domains are not supported. Also configure a real SMTP relay with COMMA_SMTP_HOST, COMMA_SMTP_PORT, COMMA_SMTP_FROM, COMMA_SMTP_USERNAME, COMMA_SMTP_PASSWORD, and either COMMA_SMTP_TLS=always (STARTTLS) or COMMA_SMTP_SSL=true (implicit TLS).

Model provider

Setting What it holds
COMMA_LLM_BASE_URL Your provider's endpoint (for example https://api.openai.com/v1)
COMMA_LLM_PROTOCOL The API it speaks, such as chat_completions
COMMA_LLM_MODEL The exact model ID
COMMA_LLM_API_KEY Your provider API key
COMMA_LLM_CONTEXT_TOKENS Model context budget (default 128000)
COMMA_LLM_MAX_TOKENS Output token limit (default 8192)

Without these settings, each person can add a private model in Settings after signing in. Calls use that provider account directly and may incur provider charges.

COMMA_EXA_API_KEY turns on web search and page reading through Exa.

Keep .env private: it holds your provider and SMTP credentials.