A self-hosted, end-to-end encrypted sync server for Kemlock, inspired by Vaultwarden.
Self-hosting · Cryptography · Federation · Push relay (optional) · Contributing · Security policy · Kemlock app
A self-hosted sync server for Kemlock, the post-quantum encrypted authenticator and password manager. It is inspired by Vaultwarden:
- End-to-end encrypted. Every item is sealed on the device that wrote it. The server stores ciphertext, wrapped keys, sizes and dates, and never holds a key that opens a vault.
- Two APIs in one binary. The Kemlock API carries every Kemlock kind with ML-KEM-1024 + X25519 key sharing. The Bitwarden® API answers as Vaultwarden does, so Bitwarden apps and Amethystora Vault keep syncing.
- Moves in from Vaultwarden. A Vaultwarden data folder is copied as stored, nothing decrypted, and apps notice nothing.
- Federation. Servers can copy chosen vaults to each other as ciphertext, and Kemlock apps fall back to a replica when a vault's home server is down.
- SSO without key escrow. OpenID Connect decides who signs in; a trusted device, an approval from another device or the master password opens the vault.
- Homelab friendly. One static binary and multi-arch images for every architecture Vaultwarden supports, SQLite by default, PostgreSQL or MySQL when wanted.
Written in Rust (axum, SeaORM) in clean-architecture crates, with a React and TypeScript web vault built into the binary.
| Page | What it covers |
|---|---|
| Self-hosting | Installing on each platform, reverse proxies, checking downloads |
| Cryptography | The byte formats every client and the server agree on |
| Federation | The formats two servers agree on to copy vaults to each other |
| Push relay | The contract with the optional hosted relay, a fallback for iPhones on a server with no Apple key |
| Custom fields and trusted devices | The fields an admin offers for items, and stopping trust in a device: what the apps read |
| Security policy | Reporting a vulnerability |
The design is done and implementation is starting. Nothing here is ready to run yet.
Bug reports, fixes and docs are welcome. CONTRIBUTING.md covers the Docker-based
dev setup, the checks CI runs, Conventional Commits and the DCO sign-off (git commit -s). Please
follow the code of conduct. For questions, see SUPPORT.md; the
project is run as described in GOVERNANCE.md, and changes are listed in the
changelog.
Report a vulnerability privately, with a GitHub security advisory, never in a public issue. SECURITY.md says what to include and what to expect.
AGPL-3.0. Anyone who runs a modified server for others must offer them its source.
Bitwarden® is a registered trademark of Bitwarden Inc. Vaultwarden is a project by Daniel García and its contributors. Kemlock is not affiliated with, endorsed by or sponsored by Bitwarden Inc. or the Vaultwarden project; the names are used only to say which apps and servers Kemlock works with.