Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

First-run setup

A new server has no accounts. Until it has one, it guards itself with a one-time setup token and prints a link to the setup page in its log. The first account created there is the server's admin.
When it starts with an empty database, the server logs:
First-run setup: open https://qubit.example.com/setup#token=qbsetup_… to create the administrator account
docker logs qubit 2>&1 | grep 'First-run setup'
Lost it? qubit-server setup-link prints it again (see Server commands).
The link's address is QUBIT_WEB_URL, else QUBIT_PUBLIC_URL, else http://localhost:8787. The token is in the part after #, which browsers never send to a server, so it doesn't end up in proxy logs. It stops working as soon as the admin account exists.
Anyone with the link can create the admin account. Open it yourself, soon after the first start, and don't paste it anywhere shared.

The steps

  1. Open the link
    The dashboard checks the token. If it says the token is invalid, copy the whole link again; if it says setup is already done, someone has created the admin account, so sign in instead.
    The setup page, checking the token from the link
    The setup page, checking the token from the link
  2. Create the admin account
    Enter your name, email and a master password. Your browser creates the account's keys with the same Rust code the Mac app uses, compiled to WebAssembly: the password is stretched with Argon2id and the keys are made and wrapped in the page. The server receives what the app would send at sign-up, and never your password.
    This works even when QUBIT_ALLOW_SIGNUPS=false.
    The setup page's account form: name, email and master password
    The setup page's account form: name, email and master password
  3. Save the recovery key
    The page shows your recovery key (QBT1-…). It is the only way back into your vault if you forget the master password, and the server can't recover it for you. Store it somewhere safe and separate from the password. See Recovery key.
    The recovery key, shown once after the account is created
    The recovery key, shown once after the account is created
  4. Set up email
    Choose a provider: Amazon SES with a region and an access key, or any SMTP server. The server signs in to the provider before it saves anything, so a typo shows up here, with the provider's own error. You can skip this and do it later from the Server page.
    See Email and the Amazon SES guide.
    The email step with Amazon SES chosen: region, access key ID, secret access key and from address
    The email step with Amazon SES chosen: region, access key ID, secret access key and from address
  5. Send a test email
    Send one to yourself. If it arrives, invites and sign-in links will too.
    The test email step, after a test email was sent
    The test email step, after a test email was sent
You're signed in to the dashboard as the admin. Next, install the Mac app and sign in to your server from it to create your first organization.

The dashboard and the server

The official image includes the web dashboard and serves it itself (QUBIT_WEB_DIR, set to /usr/share/qubit/web in the image). Setup, sign-in and the admin pages then live on the same address as the API, and the server sets the browser's session cookie itself.
If you build your own image without the dashboard, the server logs a second line after the setup link: either use the official image or set QUBIT_WEB_URL to wherever you serve the dashboard.

A server that already has accounts

On a server that was already in use before this version, its first account becomes the admin when the server upgrades. The app also makes the first account on a server without the dashboard its admin. Add more admins from the command line:
qubit-server make-admin [email protected]