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

| Setting | What it does |
|---|---|
| `ORBIK_OPENAI_API_KEY` | **Required.** 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_KEY` | Optional. 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](https://orbik.io/docs/architecture/ai-execution.md#keeping-the-catalog-current)). |
| `ORBIK_AI_PROVIDER` | Which provider makes the reasoning calls: `anthropic` or `openai`. Unset: Anthropic when its key is set, otherwise OpenAI. Embeddings use OpenAI either way. |
| `ORBIK_URL` | The 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_PORT` | Ports published on the host. Default 8080 and 8443. Change them when something else has them ([When port 8080 is taken](https://orbik.io/docs/self-hosting.md#when-port-8080-is-taken)). |
| `COMPOSE_PROJECT_NAME` | Docker 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](https://orbik.io/docs/self-hosting.md#a-second-install-on-the-same-machine)); changing it on an install that has data starts an empty one. |
| `ORBIK_BIND_ADDRESS` | The 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_ADDRESS` | A domain name, for HTTPS ([A domain with HTTPS](https://orbik.io/docs/self-hosting/https.md)). Default `:80`, plain HTTP. |
| `ORBIK_TRUSTED_PROXIES` | The proxy in front of the install, when something else handles HTTPS — nginx on the same server, a load balancer ([Behind another proxy](https://orbik.io/docs/self-hosting/https.md#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_EMAILS` | Comma-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_ADMIN` | `on` (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](https://orbik.io/docs/guides/accounts-and-admin.md#no-install-admin)). Needs `SMTP_URL`, and `ORBIK_ADMIN_EMAILS` unset. |
| `ORBIK_FIRST_RUN_SETUP` | `on` (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](https://orbik.io/docs/guides/accounts-and-admin.md#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_SECRET` | **Continue with Google** on the sign-in page, for accounts that exist ([Signing in with Google](https://orbik.io/docs/guides/accounts-and-admin.md#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_FROM` | Email 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_URL` | The 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](https://orbik.io/docs/orbikbot.md) page, which explains that the crawler is self-hosted and how to block it. |
| `ORBIK_TELEMETRY` | `on` sends anonymous usage statistics ([Usage statistics](https://orbik.io/docs/self-hosting/usage-statistics.md)). Default `off`. |
| `SESSION_SECRET`, `ORBIK_ASSET_URL_SECRET` | Generated 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.
