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

PostgreSQL

SQLite needs nothing set up and is the default. Use PostgreSQL when you want more than one replica, or when your team already runs and backs up Postgres.
Point DATABASE_URL at it:
DATABASE_URL='postgres://qubit:<password>@db.example.com:5432/qubit?sslmode=require'
Both postgres:// and postgresql:// work, and so do Postgres TLS options such as ?sslmode=require. The server creates its tables itself on first start.
SettingDefault
QUBIT_DB_MAX_CONNECTIONS10Pool size per replica. Keep replicas × pool below the database's max_connections.

Several replicas

  • Migrations take an advisory lock, so replicas starting at once are safe: one migrates, the others wait.
  • Sign-in rate limits are kept in memory per replica. With N replicas an attacker gets up to N times QUBIT_LOGIN_ATTEMPTS_PER_15MIN. Argon2id keeps each guess expensive; add limits at your proxy if that matters to you.
  • Every replica needs the same QUBIT_SECRET_KEY.

Moving from SQLite

Qubit has no tool that copies a SQLite database into PostgreSQL, so choose the database before your team signs up. One replica on SQLite is plenty for most teams.
With Docker Compose, deploy/docker-compose.postgres.yml adds a postgres:17-alpine service and sets DATABASE_URL for you. See Docker Compose.