Vaultwarden Hosting: Self-Hosted Passwords
Vaultwarden is a lightweight, unofficial server for the Bitwarden password manager, written in Rust. It works with the official Bitwarden apps and browser extensions, and individuals, families and small teams self-host it to keep their encrypted vault on a server they control.
The one-click install puts Docker on Ubuntu 24.04 and runs the vaultwarden/server:latest image as a container named vaultwarden, restarted automatically, with its data in /opt/vaultwarden/data and the web vault on port 8080 of the server.
Vaultwarden is not affiliated with Bitwarden, Inc. It implements the Bitwarden client API, so the official apps connect to it once you enter your server's URL. Documentation is on GitHub and in its wiki.
Prefer to set it up yourself? The Vaultwarden self-host guide covers the manual route on Ubuntu 24.04: install, first login, HTTPS, backups and updates.
What it needs
Very little. Vaultwarden is a single Rust binary with a SQLite database by default, and its documentation sets no hardware minimum. The app's minimum here is 1 vCPU and 256 MB; the recommended 1 GB leaves room for Docker. That is the Veloxa Nano size: 1 vCPU, 1 GB RAM and 25 GB of disk for $4 a month, billed at $0.01 an hour and capped at the monthly price.
Reaching it, and why HTTPS matters
Every server gets a block of ports on the region's shared IPv4 address. Under How to connect on the server's page, forward one port of the block to 8080 and the vault answers on http://<shared-ip>:<port>. Plain HTTP is not enough: the project's README says the web vault requires HTTPS, because the browser's Web Crypto API only works in a secure context.
Two ways to get HTTPS:
- A dedicated IPv4 address (a paid add-on with limited availability). Point your domain at it and put Caddy in front of port 8080; Caddy gets a Let's Encrypt certificate on its own. IPv6 is not available in US East yet.
- A certificate on a forwarded port. Get a certificate with a DNS challenge (your DNS provider's API, through Caddy's DNS plugins or
certbot), then serve HTTPS on a port of your block, for examplehttps://vault.example.com:20002. Bitwarden clients accept a server URL with a port.
Locking it down
By default anyone who can reach the server can register. Before sharing the address, set SIGNUPS_ALLOWED=false, and set ADMIN_TOKEN to enable the /admin page for inviting users. The wiki recommends an Argon2 hash for the token; docker exec -it vaultwarden /vaultwarden hash makes one. Set DOMAIN to your HTTPS URL too.
Backups and updates
Everything is in /opt/vaultwarden/data. The project's backup guide names db.sqlite3 and the attachments folder as essential, and config.json and the rsa_key* files as recommended. For a consistent copy of the database while it runs, use docker exec vaultwarden /vaultwarden backup. Turn on automatic snapshots on the server page (hourly up to weekly, kept for 1 to 30 days) and a backup schedule (every 6 hours up to weekly, keeping 1 to 10), and download a backup now and then to keep a copy elsewhere.
To apply these settings, or to update, take a snapshot, pull the image and recreate the container; the data folder is kept:
docker pull vaultwarden/server:latest
docker stop vaultwarden && docker rm vaultwarden
docker run -d --name=vaultwarden --restart=always -p 8080:80 \
-e DOMAIN=https://vault.example.com -e SIGNUPS_ALLOWED=false \
-e ADMIN_TOKEN='<hash>' \
-v /opt/vaultwarden/data:/data vaultwarden/server:latest
The browser terminal on the server's page runs these without SSH.
FAQ
How much RAM does Vaultwarden need?
Very little, and its documentation sets no minimum. It runs comfortably on the 1 GB Veloxa Nano, with Docker; the 256 MB minimum suits a single user.
Can I use my own domain?
Yes. Point a DNS record at a dedicated IPv4 address and proxy with Caddy, or keep the shared address and serve HTTPS on a forwarded port with a certificate from a DNS challenge. Either way, enter the full URL as the self-hosted server in each Bitwarden app.
What license is Vaultwarden under?
Vaultwarden is released under the AGPL-3.0 license. It is a community project, unofficial and not supported by Bitwarden, Inc., so report problems to the Vaultwarden project rather than to Bitwarden.
How do I move from Bitwarden's cloud or another password manager?
Export your vault from the old service, log in to your Vaultwarden web vault and use Tools, Import data. The Bitwarden import accepts exports from Bitwarden, LastPass, 1Password, KeePass, Dashlane, Keeper and the major browsers. It does not check for duplicates, so import once, and delete the unencrypted export file afterwards.
Can Vaultwarden send invitation and verification emails?
Yes, with the SMTP_* settings and an email provider. VeloxaHost blocks outbound TCP port 25 by default, so use your provider's port 587 or 465.
Which VeloxaHost size fits Vaultwarden?
The recommended 1 vCPU and 1 GB of RAM is a Veloxa Nano: 1 vCPU, 1 GB RAM and 25 GB of disk for $4 a month, billed at $0.01 an hour and capped at that price.
How that compares with 1Password's individual, family and business plans: Vaultwarden vs 1Password.