Skip to content

Vaultwarden for Mere Mortals

Every password you own lives somewhere. For most people that somewhere is a company's cloud: convenient, polished, and entirely somebody else's computer. Vaultwarden is the other shape — a small server, written in Rust, that speaks the Bitwarden protocol and runs on a machine of yours: a home server, a spare Raspberry Pi, a cheap VPS. The apps your family already knows — Bitwarden's own phone, desktop, and browser clients, plus its web vault — point at your server instead of Bitwarden's, and can't tell the difference. Your passwords live in one folder on your disk, encrypted before they ever reach it.

That last clause is the idea the whole guide hangs on, and chapter 1 takes it apart slowly: the server is a blind landlord. It stores sealed boxes, checks your key at the door, and genuinely cannot read what's inside — which also means it cannot rescue you when you lose the key. Both halves of that sentence get their due.

The lab is honest about its machinery. There was no Docker daemon to be had on the build bench (it stopped mid-pull and stayed stopped), so the server's official binary was lifted out of the project's own Docker image — the only place Vaultwarden publishes builds — and run directly: accounts registered through the real client flow, an item created and read back, an organisation sharing it, the admin page opened, registration closed and refused, a backup restored into a fresh server, an update from 1.37.3 to 1.37.4 with the data untouched, and an nginx reverse proxy answering over HTTPS in front of it. Every quoted output is a capture from that lab. What the lab could not do — a browser actually logging in, a phone app against a public domain, Let's Encrypt issuing a real certificate — is described from the project's documentation and labelled as such; criteria.md keeps the full ledger.

What this guide covers

  • The idea — a vault you host: the zero-knowledge bargain, what the server sees and can't see, who wrote Vaultwarden and who didn't
  • Installing — the three shapes (a container, a bare binary, somebody else's package), the one folder that matters, and the web vault as a separate build
  • First run — start it, prove it's alive, and walk the account flow a client really makes: prelogin, the verification token, register, login, first item, sync
  • HTTPS and your domain — why the padlock is not decoration: the web vault's cryptography needs a secure context, the DOMAIN setting, and a reverse proxy doing TLS for you
  • Who can join — registration is open until you close it; invitations; the admin token, its Argon2 hash, and the page it unlocks
  • Sharing — organisations and collections, the sharing unit; what "plan" means on a server that gives itself everything
  • Backup and recovery — the four files that are your vault, the built-in backup command, a restore rehearsed for real, and the one loss no backup can fix
  • Updating — stop, swap, start; why this server's releases make updating a habit rather than a project; what the version numbers mean
  • Security and limits — the threats this design answers, the ones it doesn't, and the single point of failure shaped like you
  • Recipes — the household setup end to end, the closing checklist, moving machines, and the two-minute health check
  • Troubleshooting — the 404 at the vault address, refused registrations, old clients against new servers, and the admin lockout
  • Glossary — the terms, collected in one place

What it doesn't cover

Running Vaultwarden for a business or a strangers-facing public service — the trust questions change and this guide's household assumptions stop applying. SSO and directory sync, SCIM, the secrets manager, and organisation policies beyond naming that they exist. Migrating from Bitwarden's cloud in bulk (the clients' own import tools do that job, and the server doesn't care). And nothing here makes a weak master password strong: chapter 9 is blunt about the arithmetic.

How to use this guide

Read chapter 1 before installing anything; the bargain only makes sense whole. Chapters 2–4 get a server running and reachable. Chapter 5 is the one to finish before anyone else's passwords move in. Chapters 6–8 are the steady state: sharing, backups, updates. The transcripts the chapters quote live in vaultwarden-lab/transcripts/; the lab's own notes are examples/lab-notes.txt.


Part of the series

This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.

Related guides:

License

The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.