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/meta

Serverless 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.

ComponentRole in zero-knowledge syncCloudflare 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 D1Global 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:

ModeWho can registerRecommended 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.
inviteEvery existing member on the server can mint invite codes for new users.Small trusted teams or friend groups.
openAnyone who knows your Worker URL can register an account without an invite code.Public test instances only (not recommended for personal use).

Self-hosting FAQ

Answers about Cloudflare free limits, optional R2 file storage, registration security, and unlocked features.

How much does it cost to self-host Liso on Cloudflare?

A personal or family Liso sync server fits inside Cloudflare's Workers Free plan (100,000 requests/day, D1 up to 500 MB for global indexes, and Durable Object hibernation so idle WebSocket connections incur no duration charges). If you enable Cloudflare R2 for encrypted file storage, R2 includes 10 GB/month free storage with $0 egress.

How do I stop strangers from registering on my self-hosted Liso server?

Set REGISTRATION_MODE in wrangler.selfhost.jsonc. The default mode is 'owner': deployment prints a one-time setup code that creates your admin account, and after that nobody else can register unless you mint an invite code. You can also choose 'invite' (any member can mint invites) or 'open'.

Do I need Cloudflare R2 to self-host Liso?

No. R2 is completely optional. Without an R2 binding, the server reports files: false and all password, 2FA, sharing, CLI, MCP, and sync features work normally. Bind an R2 bucket whenever you want encrypted file storage.

Are any features paywalled when self-hosting Liso?

None. Self-hosted servers use the open-source AGPL-3.0 PolicyHook default (unrestricted). Built-in 2FA codes, Password Health, breach checks, Emergency Access, unlimited vaults, unlimited sharing, and R2 file storage are all unlocked with zero license keys.