Self-hosting
The same code runs as a single-user self-host on a laptop backed by PostgreSQL (local mode is supported indefinitely).
Prerequisites
- PostgreSQL 17 reachable, e.g.
postgresql+asyncpg://invincible@127.0.0.1:5433/invincible. Provision locally withinvincible dev-dbordocker compose up db. INVINCIBLE_OWNER_SECRETset (account sessions fail closed without it),INVINCIBLE_CREDENTIAL_KEYset (BYOK refuses to run without it).
Migrate
invincible db upgrade
Migrations run only via this command — never auto-run at startup.
Startup warns and doctor fails loudly on stale schemas.
Run
Single instance (cooldowns, staged approvals, and the agent registry
are in-process). Bind 0.0.0.0:$PORT behind TLS, forward proxy
headers, expose /health for healthchecks. See Deployment for the
two-role database model and go-live checklist.