Self-hosting

Configuration

Every setting of the Docker install, in the .env file beside compose.yaml. Only ORBIK_OPENAI_API_KEY is required for the full product; without any of them the install still starts and crawls.

Copy .env.example to .env to start from the commented list. After changing it, run docker compose up -d again.

SettingWhat it does
ORBIK_OPENAI_API_KEYRequired. Embeddings for search, Ask and content_search over MCP; without it nothing is indexed. With no Anthropic key, it also makes every reasoning call: agent runs, the Library's knowledge base, Ask.
ORBIK_ANTHROPIC_API_KEYOptional. With it set, Claude makes every reasoning call instead of OpenAI. With neither key, the install still crawls, keeps a word-for-word copy of every page in the Library and runs the agents that need no model. With Claude as the provider, the scheduler also reads Anthropic's list of models once a day, with this key, and logs a warning when the install's model catalog is missing a newer model or offers one Anthropic no longer lists; docker compose exec scheduler node src/cli/checkModels.js makes the same check now (Keeping the catalog current).
ORBIK_AI_PROVIDERWhich provider makes the reasoning calls: anthropic or openai. Unset: Anthropic when its key is set, otherwise OpenAI. Embeddings use OpenAI either way.
ORBIK_URLThe address people and AI clients reach the install at, exactly as in the address bar. Default http://localhost:<ORBIK_HTTP_PORT>, so http://localhost:8080 unless the port is changed.
ORBIK_HTTP_PORT, ORBIK_HTTPS_PORTPorts published on the host. Default 8080 and 8443. Change them when something else has them (When port 8080 is taken).
COMPOSE_PROJECT_NAMEDocker Compose's own setting: the name the install's containers, images and volumes are made under. Default orbik. Only for a second install on the same machine (A second install on the same machine); changing it on an install that has data starts an empty one.
ORBIK_BIND_ADDRESSThe host address those ports are published on. Default 127.0.0.1: only this machine reaches the install. 0.0.0.0 opens it to the network, as a server needs.
ORBIK_SITE_ADDRESSA domain name, for HTTPS (A domain with HTTPS). Default :80, plain HTTP.
ORBIK_TRUSTED_PROXIESThe proxy in front of the install, when something else handles HTTPS — nginx on the same server, a load balancer (Behind another proxy). private_ranges for nginx on the same server, or that proxy's addresses. Required there: without it nobody can stay signed in on an HTTPS address. Default: none.
ORBIK_ADMIN_EMAILSComma-separated addresses of the install's admins, who answer access requests and make password reset links under Settings → Admin (/admin leads there). Unset: the install's first account.
ORBIK_INSTALL_ADMINon (default): the install has admins, as ORBIK_ADMIN_EMAILS says. off: nobody is the install's admin, for a deployment administered another way: no Admin page and no Request access form, so people join by invite (No install admin). Needs SMTP_URL, and ORBIK_ADMIN_EMAILS unset.
ORBIK_FIRST_RUN_SETUPon (default): while the install has no account, the API prints a one-time setup code and the web app opens the setup page (The first account). off: no code and no setup page, for an install whose first account is made another way (seed:user).
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRETContinue with Google on the sign-in page, for accounts that exist (Signing in with Google). An OAuth client of the Web application type from Google Cloud's console, with the authorised redirect URI <ORBIK_URL>/v1/auth/google/callback. Both or neither; without them there is no Google button.
SMTP_URL, EMAIL_FROMEmail invites, approved access requests and password reset links as well as showing them, and tell admins about a new access request. Without it, a forgotten password is reset by a link the admin makes (Settings → Admin, or docker compose exec api node src/cli/resetPassword.js --email …). smtp://user:pass@host:587 or smtps://…:465.
ORBIK_CRAWLER_CONTACT_URLThe page the crawler's User-Agent names, so a site owner who sees OrbikBot in their logs can find you. Default: https://orbik.io/docs/orbikbot, the OrbikBot page, which explains that the crawler is self-hosted and how to block it.
ORBIK_TELEMETRYon sends anonymous usage statistics (Usage statistics). Default off.
SESSION_SECRET, ORBIK_ASSET_URL_SECRETGenerated on first start and kept in the database unless you set them.

Without Docker, the processes read backend/.env and agents/.env instead; their .env.example files describe every setting.