What you will set up
Vaultwarden is a small password manager server that works with the Bitwarden apps: the browser extensions, the phone and desktop apps, and the command-line client. The apps encrypt your passwords before they leave your device, so the server only ever stores encrypted data.
Here it runs as one container, under a user of its own called vaultwarden, with Caddy from the Podman guide in front for HTTPS.
Every step below was run on a Melonslab VC-P Alloy (2 vCPU, 8 GB) with Debian 13. An account was created, and the official Bitwarden command-line client 2026.9.1 logged in, stored a login and read it back after a sync. Failed logins were recorded with the visitor's real IP address and sign-ups were closed. With sign-ups closed, two people were invited to an organisation, one without email and one with, created their accounts, were confirmed and read a shared login. A backup was restored, and a reboot was checked. At idle, Vaultwarden used under 10 MB of memory, so the smallest of our Standard plans has room to spare.
Before you start
You need:
- a server set up as in the Podman guide, with Caddy running;
- a name for it, such as
vault.example.com, with an A record and an AAAA record pointing at your server.
The examples use vault.example.com for the name and 203.0.113.10 for your server's IPv4 address. Replace them with your own throughout.
1. Create the user
As root:
useradd -m -s /bin/bash vaultwarden
loginctl enable-linger vaultwarden
machinectl shell vaultwarden@
2. Describe the container
mkdir -p ~/.config/containers/systemd
Create ~/.config/containers/systemd/vaultwarden.container:
[Unit]
Description=Vaultwarden, a password manager server
[Container]
ContainerName=vaultwarden
Image=docker.io/vaultwarden/server:latest
Volume=vaultwarden-data:/data
# Only Caddy, on this server, can reach Vaultwarden: the port is not open to the internet.
PublishPort=127.0.0.1:8083:80
Environment=DOMAIN=https://vault.example.com
Environment=SIGNUPS_ALLOWED=true
Environment=IP_HEADER=X-Forwarded-For IP_HEADER_TRUSTED_PROXIES=203.0.113.10
AutoUpdate=registry
[Service]
Restart=always
[Install]
WantedBy=default.target
DOMAIN is the address you will open it at. Sign-ups are open for now, so you can create your own account in step 4, and closed right after.
Vaultwarden slows down password guessing per IP address, so it needs each visitor's real one. Caddy passes it on in the X-Forwarded-For header, but Vaultwarden only trusts that header from private addresses by default, and Caddy's connections reach the container from the server's own IPv4 address. IP_HEADER_TRUSTED_PROXIES names that address.
Start it:
systemctl --user daemon-reload
systemctl --user start vaultwarden
podman logs -f vaultwarden
When the log says Rocket has launched, press Ctrl+C.
3. Put Caddy in front
Go back to root with exit, and switch to Caddy's user with machinectl shell caddy@. Add this block to the end of ~/Caddyfile:
vault.example.com {
reverse_proxy 127.0.0.1:8083
}
And restart Caddy, which briefly interrupts every site it serves:
systemctl --user restart caddy
Caddy gets a certificate for vault.example.com and renews it by itself. The web vault only works over HTTPS.
4. Create your account, then close sign-ups
Open https://vault.example.com and choose to create an account. Pick a long master password you will remember: your data is encrypted with it, so nobody, including Vaultwarden, can reset it for you.
Then go back to Vaultwarden's user (exit, then machinectl shell vaultwarden@) and close sign-ups:
sed -i 's/^Environment=SIGNUPS_ALLOWED=true/Environment=SIGNUPS_ALLOWED=false/' ~/.config/containers/systemd/vaultwarden.container
systemctl --user daemon-reload
systemctl --user restart vaultwarden
Nobody can now create an account on their own. People you invite to an organisation still can, as step 6 shows, so sign-ups can stay closed.
5. Connect your apps
In a Bitwarden app or browser extension, choose a self-hosted server before you log in, and enter https://vault.example.com.
The Bitwarden command-line client 2026.9.1 logged in to Vaultwarden 1.37.4 in our test. Version 2026.9.0 could not log in to Vaultwarden 1.37.3, so if a new client fails, check that Vaultwarden is up to date (step 8).
6. Share with your team
Bitwarden apps share passwords through an organisation. Logged in to https://vault.example.com:
- Choose New organisation in the menu on the left. Give it a name and your email address, and choose Submit.
- In the organisation's Admin Console, open Members and choose Invite member. Enter the person's email address, and under Collections pick what they get to see, such as Default collection. Choose Save.
- Without email (step 7), Vaultwarden sends nothing and accepts the invite itself. Tell the person to open
https://vault.example.com, choose Create account with the address you invited, and pick a master password. Only invited addresses get past the closed sign-ups. - Their row under Members now says Needs confirmation. Open the row's menu, choose Confirm, and Confirm again. Vaultwarden shows their fingerprint phrase first: comparing it with them, by phone for example, makes sure you share with the right account.
Until you confirm them, they see none of the organisation's passwords. Afterwards they see the collections you picked, which you can change with Collections in the row's menu.
7. Email
Vaultwarden sends email for invites, emergency access, two-step login by email and new logins. Without email:
- invites send no link, and Vaultwarden accepts them itself, as in step 6;
- Email is missing from the methods under Settings > Security > Two-step login;
- emergency contacts are accepted the same way, but nobody gets an email when one of them asks for access, so the waiting time can run out without you knowing.
To send email, use your email provider's SMTP server. As vaultwarden, store the SMTP password as a secret:
printf %s 'the-smtp-password' | podman secret create vaultwarden-smtp-password -
Add these lines to vaultwarden.container, under [Container], with your own server, account and sender address:
Environment=SMTP_HOST=mail.example.com SMTP_PORT=587 SMTP_SECURITY=starttls
Environment=SMTP_USERNAME=vault@example.com SMTP_FROM=vault@example.com SMTP_FROM_NAME=Vaultwarden
Secret=vaultwarden-smtp-password,type=env,target=SMTP_PASSWORD
Port 587 with starttls is what most providers offer. For port 465, use SMTP_PORT=465 SMTP_SECURITY=force_tls. Then restart:
systemctl --user daemon-reload
systemctl --user restart vaultwarden
With email on, an invite sends a Join link. The person sets their master password from it, and you confirm them as in step 6. We tested this against a test mail server on the server itself, not a real provider.
8. Keep it up to date
Switch on Podman's daily updates for this user:
systemctl --user enable --now podman-auto-update.timer
9. Back up and restore
umask 077
mkdir -p ~/backup
systemctl --user stop vaultwarden
podman volume export vaultwarden-data > ~/backup/vaultwarden-data.tar
systemctl --user start vaultwarden
Stopping Vaultwarden for the few seconds it takes gives a consistent copy of its database. The archive holds the database, attachments and the key the server signs logins with. The passwords in it are encrypted with each user's master password, but keep the archive private anyway, and copy ~/backup to another machine: a backup on the same server does not survive losing the server. The SMTP password from step 7 is not in it.
To restore, copy the archive to ~/backup as vaultwarden. On a new server, do steps 1 to 4 first, without creating an account, and the secret and lines from step 7 if you use email. Then:
systemctl --user stop vaultwarden
podman volume rm vaultwarden-data
podman volume create vaultwarden-data
podman volume import vaultwarden-data ~/backup/vaultwarden-data.tar
systemctl --user start vaultwarden
podman volume rm deletes what Vaultwarden holds now, so check that the archive is the one you want first. In our test, everything saved before the backup came back, including the organisation and its members, and a login saved after it was gone.
Troubleshooting
Every failed login in the log shows your server's own address. IP_HEADER_TRUSTED_PROXIES in step 2 must be the server's IPv4 address, the one Caddy's connections arrive from.
Signing up says "Registration not allowed or user already exists". Sign-ups are closed, which is what step 4 does, and the address has not been invited, or it already has an account. Invite it as in step 6.
A new member sees no shared passwords. Confirm them under Members (step 6), and check that they have the collection.
The app cannot connect. Check that it points at https://vault.example.com, and read the log with podman logs vaultwarden as the vaultwarden user.
Your passwords, in Sweden
With Vaultwarden on a Melonslab server, your encrypted vault is stored in Sweden, under Swedish and EU law, on a server you control.