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

Self-hosting

Qubit syncs through qubit-server. You can use Qubit Cloud at cloud.usequbit.app, or run the same server yourself. A self-hosted server has every team feature and no billing: organizations can have as many members as they like.
The server is zero-knowledge for vault contents. Everything is encrypted on your Mac before it is uploaded, and the server never sees your master password or your keys. It does see some metadata, and it holds one secret of its own, each organization's SSH certificate authority. See What the server can see.

What you run

Imageghcr.io/loopyreviews/qubit-server, for linux/amd64 and linux/arm64
TagsThe full git commit SHA of every build of main, plus latest. Pin a SHA in production.
DatabaseSQLite (one instance, nothing to set up) or PostgreSQL (several replicas)
Ports8787 for the app, the API and the web dashboard. 9787 for Prometheus metrics; keep it private.
Required settingQUBIT_SECRET_KEY, base64 of 32 random bytes
The image is distroless, runs as uid 65532, works with a read-only root filesystem and writes only to /data. It includes the web dashboard, so the same address serves the first-run setup, sign-in and the admin Server page.

Pick a way to run it

Docker
One container and a volume.
Docker Compose
SQLite or PostgreSQL, from the files in deploy/.
Kubernetes
The Helm chart in deploy/helm/qubit-server.

The steps

  1. Generate the secret key
    openssl rand -base64 32 # or: docker run --rm ghcr.io/loopyreviews/qubit-server gen-secret
    Keep it in your password manager and in your backups. It is the one value you can't lose: see Backups.
  2. Start the server
    With Docker, Docker Compose or Helm. Set QUBIT_PUBLIC_URL to the address people will use, for example https://qubit.example.com.
  3. Put TLS in front
    The server speaks plain HTTP. Terminate TLS at a reverse proxy, ingress or load balancer, and set QUBIT_TRUST_PROXY=true so audit logs and rate limits see real client IPs. Always use HTTPS on the public internet: payloads are end-to-end encrypted, but session tokens and metadata are not.
  4. Create the admin account
    The server prints a one-time setup link in its log. Open it and follow the first-run setup: your account, your recovery key, and email.
  5. Connect the app
    In Qubit, sign in with Self-hosted and your server's address. See Your account.
When everyone has an account, set QUBIT_ALLOW_SIGNUPS=false. Invited people can still join an organization, but they need an existing account, so create accounts before you turn sign-ups off.

Endpoints

PortPathPurpose
8787GET /healthzLiveness: the process is up.
8787GET /readyzReadiness: 200 when the database answers and QUBIT_SECRET_KEY matches it, 503 otherwise.
8787/setup, /signin, /admin, /account, /orgs/…The web dashboard, when the server serves it (QUBIT_WEB_DIR).
8787GET /invite/<token>Landing page for emailed invite links.
8787/api/v1/…The API the app and the dashboard use.
8787GET /api/v1/orgs/<org>/ca.pubAn organization's SSH CA public key. No sign-in needed.
8787POST /webhooks/stripeStripe's webhook, only when billing is on (Qubit Cloud).
9787GET /metricsPrometheus metrics: requests by status class, sign-ins, pushes, certificates issued.
Sync request bodies are limited to 32 MB; other requests to 2 MB.
On SIGTERM the server stops accepting connections and gives requests in flight up to 25 seconds to finish. Give it a grace period of at least 30 seconds; the compose file and the Helm chart already do. The server never closes idle keep-alive connections itself, so your proxy decides when pooled connections end.