The Idea¶
Scope: the mental model — a password vault whose server is yours, why the server can't read it, and what that buys and costs. Plus whose software this is, said plainly, because it matters.
The one-paragraph version¶
Vaultwarden is a server program. It keeps password vaults — yours, your household's — in a folder on a machine you control, and serves them to the ordinary Bitwarden clients: the phone apps, the desktop apps, the browser extensions, and the web vault that runs in a browser tab. You install the clients from the usual stores, tell them your server's address once (chapter 3), and from then on they talk to your machine instead of Bitwarden's cloud. Everything they store arrives already encrypted. The server is storage, a door check, and a postbox. It was written in Rust by an independent project (its lead author is Daniel García) and is not Bitwarden's software, not endorsed by Bitwarden, and not supported by them — the server says so itself, in its startup banner and on its 404 page (transcripts t03, t04). It is an unofficial reimplementation of Bitwarden's server protocol that the official clients happen to speak to perfectly well.
The vault is sealed before it travels¶
Here is the fact the whole design stands on. When a client saves a login — a site, a username, a password — it does not send those words to the server. It encrypts them first, on your device, with a key derived from your master password, and sends the scrambled result. The server stores the scramble. When you open the app on another device, the scramble travels back and the unscrambling happens there, again on your device. The professionals' name for this is zero-knowledge, and it is not a metaphor. The database on the server's disk — this guide's lab read it back, chapter 3 — contains, for each item, an opaque string where the name and password live. The server cannot tell a password item from a note, or either from noise.
Three consequences follow, and the guide returns to each:
- A stolen server is a small loss. Whoever copies the data folder gets sealed boxes and the machinery of the door (chapter 9 is precise about what else they get — email addresses, timestamps, sizes — because "sealed" is not "invisible").
- A forgotten master password is a total loss. There is no reset button, no support desk, no back door — the key exists only in your head and in the copies your memory makes. The server's admin (you) can delete an account, but cannot open it. Chapter 7 says this again with its boots on.
- The server's honesty barely matters for secrecy, and entirely matters for availability. A misbehaving server can't read your vault, but it can refuse to hand it back — which is why backups (chapter 7) are part of the design and not an appendix.
The lab demonstrates consequence 1 the honest way round: the item it created was sent unencrypted, on purpose, with readable stand-in text in the fields a real client would have encrypted first (t09). The server accepted and returned them without blinking, because to the server they are all just strings — which is exactly the point. A real client's strings happen to be ciphertext.
The two keys in your pocket¶
The account flow in chapter 3 will keep meeting two derived values, so meet them now:
- The stretched master key: your master password, run through a deliberately slow, expensive function (a KDF — key derivation function; the current choices are PBKDF2 and Argon2id) together with your email address as the salt. Slowness is the feature: it prices a guessing attack. The server assigns each new address its settings before the account exists (t05) — including, some of the time, a decoy set, so that asking can't reveal whether an address is registered.
- The master password hash: the stretched key run once more, quickly, with the password itself. This is what the client actually sends to log in, and what the server checks. The server never sees the master password, nor the stretched key that could unseal the vault. A login answer (t08) hands back the sealed vault key, which only the stretched key in the client's memory can open.
One server, many vaults¶
An account is a person: an email address, a master password, a private vault. A household server holds several accounts without mixing them — in the lab, two accounts (Maren and Jae) coexist, and Jae's sync is provably empty of Maren's things until sharing says otherwise (t15). Sharing is not done by merging vaults; it is done by organisations, a separate container with its own sealed key, handed to members — chapter 6. If you have used Bitwarden's cloud, all of this will feel familiar, because it is the same model, reimplemented.
What Vaultwarden is not¶
- Not a Bitwarden product. Bugs go to the Vaultwarden project, never to Bitwarden's support; the banner in t04 asks exactly that. Client bugs are the reverse.
- Not the only self-host shape. The official Bitwarden server exists and can be self-hosted too; it is a fleet of services built for scale, where Vaultwarden is one program and one folder. This guide is about the small one — the one a household can actually operate.
- Not a backup, a password generator, or a password. It stores what the clients give it. The clients do the generating; you do the remembering of exactly one password — which had better be a good one (chapter 9).