Bitwarden self-hosting: official server vs Vaultwarden
You can self-host Bitwarden in two ways. The official server from Bitwarden, Inc. runs as a set of Docker containers installed by its bitwarden.sh script, or as the single-container Bitwarden Lite. Vaultwarden is an unofficial, much lighter server written in Rust that the same Bitwarden apps can talk to. Pick the official server if you want vendor support or paid organization features, and Vaultwarden if you want something small for yourself or your family.
At a glance
| Official standard | Bitwarden Lite | Vaultwarden | |
|---|---|---|---|
| Who makes it | Bitwarden, Inc. | Bitwarden, Inc. | Independent project, not affiliated |
| Packaging | Several containers via bitwarden.sh |
One container | One container |
| Minimum hardware | x64 1.4 GHz, 2 GB RAM, 12 GB disk | 200 MB RAM, 1 GB disk, ARM supported | No minimum stated; images for x86-64 and ARM |
| Database | Bundled MSSQL Express | Your own MariaDB/MySQL, PostgreSQL, MSSQL or SQLite | SQLite by default |
| Built-in HTTPS | Let’s Encrypt option in installer | Self-signed or your own cert; else a proxy | Reverse proxy recommended |
| Automatic backups | Nightly database backups, kept 30 days | None | None |
| Intended for | Any size, including business | Personal use and home labs | Self-hosters for whom the official server is too heavy |
Requirements and features from each project’s documentation, checked 2026-12-02.
If you are not sure you should run a password manager at all, read whether to self-host a password manager first, and the general overview of what self-hosting involves.
The official deployment options
Bitwarden documents three ways to run its server:
- Standard Linux deployment. The
bitwarden.shscript pulls and runs a set of containers, including a Microsoft SQL Server Express database. Bitwarden lists a minimum of an x64 processor at 1.4 GHz, 2 GB of RAM and 12 GB of storage, and recommends a 2 GHz dual-core CPU, 4 GB of RAM and 25 GB. It needs Docker Engine 26 or later with the Compose plugin. The bundled MSSQL Express has a 10 GB database limit; you can point the server at an external database instead. - Bitwarden Lite. Formerly called Bitwarden Unified, it left beta in December 2025. It is one image,
ghcr.io/bitwarden/lite, that needs at least 200 MB of RAM and 1 GB of storage, runs on ARM, and works with MariaDB/MySQL, PostgreSQL, MSSQL or SQLite. Bitwarden states that Lite “is intended for personal use and home-labs, not for use in business contexts.” Lite does not include or back up a database for you. - Helm on Kubernetes. For teams that already run Kubernetes. You need
kubectl, Helm 3, an ingress controller or Gateway API, and ReadWriteMany storage on multi-node clusters. Bitwarden notes that Ingress NGINX has reached end of life and is no longer supported for this chart.
Every option needs an installation ID and key. Request them at bitwarden.com/host with an admin email and a data region (US or EU). Your Bitwarden account and your installation must be in the same region if you ever add a paid licence.
Installing the standard deployment with Docker
These steps follow Bitwarden’s Linux standard deployment guide. Start with a Linux server, ideally a VPS with a public IP (see choosing a VPS for self-hosting), Docker Engine 26 or later, a DNS record such as vault.example.org pointing at it, and ports 80 and 443 open.
Bitwarden says not to install as root. Create a dedicated user, add it to the docker group and give it a locked-down install directory:
sudo adduser bitwarden
sudo passwd bitwarden
sudo groupadd docker
sudo usermod -aG docker bitwarden
sudo mkdir /opt/bitwarden
sudo chmod -R 700 /opt/bitwarden
sudo chown -R bitwarden:bitwarden /opt/bitwarden
Bitwarden’s guide says to create the docker group only if it does not already exist.
As the bitwarden user, in /opt/bitwarden, download the installer script:
curl -Lso bitwarden.sh "https://func.bitwarden.com/api/dl/?app=self-host&platform=linux" && chmod 700 bitwarden.sh
Before you run it, know what it does. bitwarden.sh is a wrapper that manages the whole deployment. Its install command asks you questions, then creates a ./bwdata directory next to the script that holds your settings, such as ./bwdata/env/global.override.env and ./bwdata/config.yml, and any certificates. Later commands use the same script to start, stop, update and rebuild the containers; the first start downloads their images from GitHub Container Registry. You can open the file in a text editor first; it is plain shell.
Run the installer:
./bitwarden.sh install
It asks for:
- Domain name - your DNS record, for example vault.example.org.
- Let’s Encrypt - answer
yto get a free trusted certificate; it then asks for an email for expiry reminders. - Installation ID and key - from bitwarden.com/host.
- Region - US or EU, which only matters for paid licences.
- If you declined Let’s Encrypt: whether you have your own certificate, which goes in
./bwdata/ssl/your.domain, or want a self-signed one, which is only suitable for testing. If you choose neither, you must put an HTTPS proxy in front, or the clients will not work.
Then start it and check the containers:
./bitwarden.sh start
docker ps
The first start downloads all images and can take a while. Open your domain in a browser and create your account.
SMTP and sign-ups
The server needs email to send verification and invitation messages, and to log you into the System Administrator Portal. Edit ./bwdata/env/global.override.env and fill in the SMTP keys from Bitwarden’s environment variables reference:
globalSettings__mail__replyToEmail=no-reply@example.org
globalSettings__mail__smtp__host=smtp.example.org
globalSettings__mail__smtp__port=587
globalSettings__mail__smtp__ssl=false
globalSettings__mail__smtp__username=CHANGE_ME
globalSettings__mail__smtp__password=CHANGE_ME
adminSettings__admins=you@example.org
globalSettings__disableUserRegistration=true
Set globalSettings__disableUserRegistration=true once your own accounts exist, so strangers cannot register. In Bitwarden’s reference, smtp__ssl=false means TLS and true means SSL, and $ characters are not supported in SMTP passwords. Apply changes with ./bitwarden.sh restart.
Keep /admin private
The System Administrator Portal lives at /admin on your domain. Login is by a one-time email link, sent only to addresses listed in adminSettings__admins, and the link expires after 15 minutes. That is reasonable, but the page is still on the open internet by default. Block /admin at your firewall or reverse proxy and reach it over a VPN or SSH tunnel, or allow only your own IP address. The same applies to Vaultwarden.
Backups and updates for the official server
Bitwarden’s backup guide says to back up the whole ./bwdata directory. At minimum you need:
./bwdata/env- environment variables, including database and certificate passwords./bwdata/core/attachments- file attachments./bwdata/mssql/data- the database files./bwdata/core/aspnet-dataprotection- keys that protect tokens and some database columns
The mssql container also makes nightly database backups in ./bwdata/mssql/backups and keeps them for 30 days. To take one on demand:
docker exec -i bitwarden-mssql /backup-db.sh
Those backups sit on the same disk as the server, so copy them, and the rest of bwdata, to another machine. Bitwarden Lite makes no nightly backups; back up its database yourself.
To update, back up first, then run:
./bitwarden.sh updateself
./bitwarden.sh update
Run them in that order, with the same script you installed with. Bitwarden warns that newer client apps may stop supporting old server versions, so do not let updates lapse.
Which features need a paid licence
Self-hosting the server costs nothing. Paid features need a licence file from a subscription on Bitwarden’s cloud, uploaded to your server:
- Premium for an individual (built-in TOTP codes, file attachments, emergency access, vault health reports). Download the licence in the cloud web vault under Settings, Subscription, and upload it on your server after verifying your email, which needs the SMTP settings above.
- Organizations. Bitwarden’s plans page says only Families and Enterprise organizations can be self-hosted. Free and Teams organizations cannot. SSO and enterprise policies are Enterprise-only.
The installation ID is how Bitwarden ties a licence to your server. Plan prices change often; check Bitwarden’s pricing page before buying.
Vaultwarden
Vaultwarden was called Bitwarden_RS until it was renamed. It is “an alternative server implementation of the Bitwarden Client API, written in Rust,” licensed AGPL-3.0, and it ships a modified web vault in its container. Its README states the project “is not associated with Bitwarden or Bitwarden, Inc.” and asks you to report problems to Vaultwarden, not Bitwarden support. Bitwarden in turn says it cannot guarantee official clients work perfectly with non-official servers.
It implements most of the API, including organizations, collections, groups, policies, Send, attachments, emergency access and two-step login. You do not buy licences. The latest release at the time of checking was 1.37.5, published November 1, 2026, which fixed two security issues; update promptly when releases appear.
Running it
The README’s Docker Compose file:
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
environment:
DOMAIN: "https://vw.domain.tld"
volumes:
- ./vw-data/:/data/
ports:
- 127.0.0.1:8000:80
Replace vw.domain.tld with your domain. The port binding listens on localhost only, which is deliberate: put a reverse proxy on the same host in front of it.
HTTPS is not optional
The web vault uses the browser’s Web Crypto API, which browsers only expose in secure (HTTPS) contexts. The wiki’s HTTPS page recommends a reverse proxy that terminates TLS, suggesting Caddy for beginners because it fetches Let’s Encrypt certificates automatically. Vaultwarden’s built-in TLS is marked not recommended, and self-signed certificates cause trouble with mobile apps.
Admin token and sign-ups
The admin page at /admin is off until you set ADMIN_TOKEN. The wiki recommends storing an Argon2 hash rather than a plain token. Generate one inside the container; it prompts for a password twice and prints a PHC string:
docker exec -it vwcontainer /vaultwarden hash
Replace vwcontainer with your container name (vaultwarden in the compose file above). If you paste the hash into the environment section of a compose file, escape each $ as $$. Settings saved in the admin page go into config.json and override environment variables.
By default anyone can register. After creating your accounts, add SIGNUPS_ALLOWED: "false" to the environment section and recreate the container. Organization admins and the admin page can still invite people. The hardening guide also suggests hiding password hints and using fail2ban if users skip two-step login. Keep /admin behind a VPN, SSH tunnel or IP allowlist, as with the official server.
Backups
Per the wiki’s backup page, back up db.sqlite3 and attachments/ (required), plus config.json and the rsa_key* files (recommended). Use SQLite’s online backup rather than copying a live database file, running sqlite3 on the host because the image does not include it:
sqlite3 data/db.sqlite3 ".backup '/path/to/backups/db-$(date '+%Y%m%d-%H%M').sqlite3'"
Since 1.32.1 there is also a built-in command:
docker exec -it vaultwarden /vaultwarden backup
Copy backups off the host and test a restore now and then. To update, the wiki’s update page gives two commands for Compose:
docker compose pull
docker compose up -d
The wiki recommends the latest tag for most people and warns that auto-updating apps and extensions can break against an outdated server.
When not to self-host
Your password vault is the one service where downtime or data loss locks you out of everything else. Do not self-host it if you will not keep up with updates, cannot keep off-site backups, or would be the only person who knows how to restore it. Bitwarden’s own cloud, which offers a free plan, is a sound default. A small Vaultwarden or Lite install on a Raspberry Pi home server behind a VPN is a reasonable middle ground for a household. For a comparison with other options, see the self-hosted password manager guide, and browse the rest of the hosting section.
Frequently asked questions
- Is self-hosting Bitwarden free?
- Running the server is free, and you need a free installation ID and key from bitwarden.com/host. Premium features for an individual, and Families or Enterprise organizations, need a paid subscription whose licence file you upload to your server.
- Is Vaultwarden the same as Bitwarden?
- No. Vaultwarden is an independent server written in Rust that implements the Bitwarden client API, so the official apps and browser extensions can connect to it. Its README states it is not associated with Bitwarden, Inc., and bugs go to the Vaultwarden project, not Bitwarden support.
- Can I run Bitwarden on a Raspberry Pi?
- The standard deployment needs an x64 processor, so no. Bitwarden Lite runs on ARM and lists the Raspberry Pi as an option, but Bitwarden says Lite is meant for personal use and home labs. Vaultwarden publishes multi-architecture images that cover arm64 and older 32-bit ARM boards.
- Do I need HTTPS for a self-hosted password manager?
- Yes. Bitwarden says SSL is required for the server to work properly, and Vaultwarden's web vault relies on the browser's Web Crypto API, which browsers only expose over HTTPS. Use a trusted certificate, for example from Let's Encrypt.
- What happens if my server goes down?
- Your vault is only as available as the server you run. Keep tested, off-site backups and a written way to restore onto new hardware, because a lost server without backups means lost passwords.
Sources, checked December 2, 2026
- Bitwarden Help: Linux Standard Deployment
- Bitwarden Help: Install and Deploy Lite
- Bitwarden self-host repository: Lite settings.env example
- Bitwarden Help: Self-host with Helm
- Bitwarden: Request a hosting installation ID and key
- Bitwarden Help: Configure Environment Variables
- Bitwarden Help: System Administrator Portal
- Bitwarden Help: Backup your Hosted Data
- Bitwarden Help: Update your Bitwarden Server
- Bitwarden Help: Licensing for Paid Features
- Bitwarden Help: Password Manager Plans
- Bitwarden Help: Hosting FAQs
- Vaultwarden README
- Vaultwarden release 1.37.5
- Vaultwarden wiki: Enabling HTTPS
- Vaultwarden wiki: Enabling admin page
- Vaultwarden wiki: Disable registration of new users
- Vaultwarden wiki: Backing up your vault
- Vaultwarden wiki: Which container image to use
- Vaultwarden wiki: Updating the vaultwarden image
- Vaultwarden wiki: Hardening Guide