AGPL-3.0-only · Cloudflare Workers · Zero Paywalls
Self-Host Liso for Free on Cloudflare Workers
The Liso sync server (server/sync) is a zero-knowledge, AGPL-3.0 Cloudflare Worker powered by Durable Objects, D1, and optional R2 storage. A personal or family server fits inside Cloudflare's free tier with no VPS to patch, no license keys, and every Liso feature unlocked free.
Deploy in 4 commands (under 5 minutes)
Prerequisites: Node.js 24+, pnpm 12, and a free Cloudflare account. Run selfhost/deploy.sh from the public repository to create D1, run migrations, deploy your Worker, and print your server URL, setup code, and scannable QR code.
# 1. Clone the open-source Liso repository
git clone https://github.com/Liso-Vault/liso.git && cd liso
pnpm install
# 2. Authenticate Wrangler with your Cloudflare account
pnpm --dir server/sync exec wrangler login
# 3. Provision D1, apply migrations, deploy Worker, and print setup QR
selfhost/deploy.sh
# Optional flags: selfhost/deploy.sh --name my-liso --dry-run
# 4. Run locally for testing or development
cp server/sync/.dev.vars.example server/sync/.dev.vars
pnpm --dir server/sync migrate:local
pnpm --dir server/sync dev # http://localhost:8787/v1/metaServerless architecture & Cloudflare free-tier fit
Unlike Docker-based password manager servers that require an always-on Linux VPS, reverse proxy, TLS certificate renewal, and database backups, Liso runs natively on Cloudflare's edge with per-account and per-vault SQLite Durable Objects.
| Component | Role in zero-knowledge sync | Cloudflare tier fit |
|---|---|---|
| Cloudflare Worker (Hono) | HTTPS & WebSocket router, CORS allowlist, Workers Rate Limiting, and AGPL-3.0 PolicyHook (unrestricted default). | 100,000 requests/day included on Workers Free |
| AccountDO (Durable Object, 1 per account) | Wrapped key slots, Ed25519 device registry, 5-minute sessions, invites inbox, and 1 hibernated WebSocket per device. | Hibernation = zero idle duration charges |
| VaultDO (Durable Object, 1 per vault) | SQLite ciphertext records, 20-version / 90-day revision history, memberships, key epochs, and atomic optimistic locking. | SQLite-backed DOs on Cloudflare Free |
| PairingDO (Ephemeral Durable Object) | 120-second ephemeral X25519 QR device pairing channel with 3-attempt HMAC confirmation. | Ephemeral; self-cleaning TTL |
| Cloudflare D1 | Global lookup indexes only (recovery_auth_pubkey → account_id, liso_id → account_id, vault list). Never on the hot sync path. | Up to 500 MB per database on Free |
| Cloudflare R2 (Optional) | Encrypted 64 KiB file chunks streamed in 8 MiB multipart parts through the Worker. Omit to run passwords/2FA without files. | 10 GB/month free storage, $0 egress |
Locking down sign-ups with REGISTRATION_MODE
A personal sync server should never accept arbitrary strangers. Configure REGISTRATION_MODE in selfhost/wrangler.selfhost.jsonc:
| Mode | Who can register | Recommended for |
|---|---|---|
| owner (default) | Deploy prints a one-time setup code. The first account registered with it becomes the server admin, who can mint invite codes via POST /v1/registration-invites. | Personal and family self-hosted servers. |
| invite | Every existing member on the server can mint invite codes for new users. | Small trusted teams or friend groups. |
| open | Anyone who knows your Worker URL can register an account without an invite code. | Public test instances only (not recommended for personal use). |