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

Server commands

qubit-server with no arguments serves. Every other command reads the same environment as the server, so run it with the same variables and volume.
CommandWhat it does
qubit-server or qubit-server serveRun the server.
qubit-server migrateApply database migrations and exit. The server also migrates at startup.
qubit-server setup-linkPrint the first-run setup link again, while the server has no accounts.
qubit-server make-admin <email>Make an existing account a server admin.
qubit-server rotate-secret-keyRe-encrypt server-held secrets under the current QUBIT_SECRET_KEY. See Rotating the secret key.
qubit-server billing-plan <org-id> business|noneGive an organization the paid plan by hand, ahead of Stripe, or hand it back to Stripe with none. Only matters with billing on.
qubit-server gen-secretPrint a fresh QUBIT_SECRET_KEY. Needs no environment.
qubit-server healthcheck [URL]Exit 0 if URL (default http://127.0.0.1:8787/healthz) answers 200. The image's HEALTHCHECK uses it, because the distroless image has no curl.
qubit-server --versionPrint the version.
qubit-server --helpPrint usage and the main variables.

Running them

docker run --rm -v qubit-data:/data \ -e QUBIT_SECRET_KEY='<your secret key>' \ ghcr.io/loopyreviews/qubit-server:<tag> setup-link
With SQLite, prefer exec into the running container over a second container on the same volume, except for rotate-secret-key, which you run while the server is stopped or quiet.