---
title: "Install the official Bitwarden server on Linux · CloudSat"
description: "Install the official Bitwarden server with bitwarden.sh: sizing, DNS and certificates, SMTP, the admin portal, closed sign-ups, nightly backups and updates."
url: https://cloudsat.io/learn/install-the-official-bitwarden-server
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

# Install the official Bitwarden server on Linux

Install the official Bitwarden server with bitwarden.sh: sizing, DNS and certificates, SMTP, the admin portal, closed sign-ups, nightly backups and updates.

CloudSat team November 18, 2026 7 min read

Bitwarden publishes its own server for self-hosting, and it is a different piece of software from the community-built Vaultwarden. The official server is heavier: a set of containers with Microsoft SQL Server underneath. In exchange you get the vendor's code, its support channels, and the business features (single sign-on, SCIM, event logs) tied to Bitwarden's paid plans. If you are still choosing between tools, start with [choosing a self-hosted password manager](https://cloudsat.io/learn/choose-a-self-hosted-password-manager). This guide assumes you picked Bitwarden's server and want it installed properly on Linux.

## Standard or lite deployment

Bitwarden ships two deployments. Decide before you install, because they differ in more than size.

|  | Standard | Lite |
| --- | --- | --- |
| Meant for | Businesses and teams | Personal use and home labs, not business use |
| Database | MSSQL in its own container | SQLite, PostgreSQL, MySQL or MariaDB, or MSSQL |
| Memory | 2 GB minimum, 4 GB recommended | At least 200 MB |
| Storage | 12 GB minimum, 25 GB recommended | At least 1 GB |
| Installer | `bitwarden.sh`, with Let's Encrypt built in | One container (`ghcr.io/bitwarden/lite`) configured with variables |
| Backups | Nightly database backups, kept 30 days | None built in; you manage them |
| Defaults | All services | Events, SCIM and SSO switched off |

Lite was renamed from Bitwarden Unified in December 2025 and also runs on ARM boards. For a company vault, the standard deployment is the supported route, and it is what the rest of this guide installs.

## Prepare the server

The standard deployment needs an x64 CPU (2 GHz dual core recommended), the memory and disk above, and Docker Engine 26 or newer with the Compose plugin. Install Docker from Docker's own apt repository rather than an old distribution package. Then line up four things:

1. **A DNS name.** Create an `A` record (and `AAAA` if you use IPv6) such as `vault.example.com` pointing at the server. Clients connect to this name, and the Let's Encrypt certificate is issued for it.
2. **An installation ID and key.** Request them at `bitwarden.com/host`. They identify your instance and are needed even if you never buy a plan.
3. **SMTP credentials.** Invitations, verification mails and the admin portal login all depend on mail. A relay with port 587 is simplest.
4. **A firewall with three openings.** SSH, plus 80 and 443 for the web vault and the certificate challenge.

```bash
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable
```

## Run the installer as a dedicated user

Bitwarden's instructions are explicit: do not install as root. Create a `bitwarden` user, give it the Docker group, and own the install directory with it. Membership in the `docker` group is effectively root on that machine, so use this account for Bitwarden only and give it a strong password.

```bash
sudo adduser bitwarden
sudo usermod -aG docker bitwarden
sudo mkdir /opt/bitwarden
sudo chmod -R 700 /opt/bitwarden
sudo chown -R bitwarden:bitwarden /opt/bitwarden

sudo -iu bitwarden
cd /opt/bitwarden
curl -Lso bitwarden.sh "https://func.bitwarden.com/api/dl/?app=self-host&platform=linux" && chmod 700 bitwarden.sh
./bitwarden.sh install
```

The installer asks for the domain name, whether to request a Let's Encrypt certificate (answer yes and give an email for expiry notices), the installation ID and key, your licensing region (US or EU) and whether you have an existing certificate. A self-signed certificate is only acceptable for a lab. Everything lands in `./bwdata`.

## Configure mail, administrators and sign-ups

Before the first start, edit `./bwdata/env/global.override.env`. Keep the generated lines and fill in these:

```ini
globalSettings__mail__replyToEmail=no-reply@example.com
globalSettings__mail__smtp__host=smtp.example.net
globalSettings__mail__smtp__port=587
globalSettings__mail__smtp__ssl=false
globalSettings__mail__smtp__username=vault@example.com
globalSettings__mail__smtp__password=use-a-long-random-value
adminSettings__admins=it@example.com
```

Two traps here. In this file `ssl=false` means STARTTLS (TLS), and `true` means implicit SSL, which suits port 465. And dollar signs are not supported in SMTP passwords, so generate one without them.

`adminSettings__admins` lists who may open the System Administrator Portal at `https://vault.example.com/admin`. There is no password: the portal emails a login link that is valid for 15 minutes, so it only works once SMTP does. From there you can check versions and configuration and view or delete users and organizations, but never read vault data.

Start the instance and check the containers:

```bash
./bitwarden.sh start
docker ps
```

Open the web vault, create your own account, and turn on two-step login for it. Then close public sign-ups by adding `globalSettings__disableUserRegistration=true` to the same file and applying it with `./bitwarden.sh restart`. Test how invitations behave on your version before you rely on them for onboarding new staff. Point the desktop apps, mobile apps and browser extensions at your URL through the self-hosted option on their login screen.

## Paid features and the license file

Self-hosting is free for the core vault. Premium and organization features are switched on with a license file tied to your installation:

- **Personal Premium:** download the license from the Bitwarden cloud web vault under **Settings > Subscription**, then upload it on your server under the same menu. Use the same email address on both.
- **Organizations (Families or Enterprise):** an owner downloads the license from the cloud Admin Console under **Billing > Subscription**, entering your installation ID, then creates the organization on your server with **Add organization** and uploads the file. Later renewals sync automatically or by manual upload.

## Backups that cover the whole vault

The standard deployment backs up its database every night while the `mssql` container runs, into `./bwdata/mssql/backups`, and keeps 30 days. That is a local copy only. The rest of `./bwdata` matters too: `env` holds database and certificate passwords, `core/attachments` holds file attachments, and `core/aspnet-dataprotection` holds the keys that protect authentication tokens.

```bash
# from an administrator account with sudo
sudo docker exec -i bitwarden-mssql /backup-db.sh
sudo tar czf /root/bwdata-$(date +%F).tar.gz \
  -C /opt/bitwarden --exclude='bwdata/mssql/data' bwdata
```

The archive includes the fresh `.BAK` file and skips the live database files. Encrypt it before it leaves the server, since `env` holds plaintext secrets, and copy it to another machine. To restore, Bitwarden's procedure opens `sqlcmd` inside the `bitwarden-mssql` container with the credentials from `global.override.env`, runs `RESTORE DATABASE vault` from the `.BAK` file with `REPLACE`, then restarts the instance. Practice it once on a spare server before you need it.

## Updates and certificates

Bitwarden releases server updates regularly, and a password server should get them within days. Take a backup, then update the script first and the containers second:

```bash
./bitwarden.sh updateself
./bitwarden.sh update
```

Certificates requested through the installer are renewed with `./bitwarden.sh renewcert`. Add the vault URL to your uptime monitor with a certificate expiry check, so a missed renewal shows up as an alert instead of locked-out users.

## The Windows Server route

Bitwarden also documents a Windows Server install with `bitwarden.ps1 -install`, but it needs more: Docker Desktop on Hyper-V (not WSL2), nested virtualization, at least 6 GB of RAM (8 GB or more recommended) and 4 GB allocated to Docker. Unless your team only manages Windows, Linux is the lighter path.

On CloudSat, the 4 GB Cloud VPS at $11.58/mo on the [Cloud VPS](https://cloudsat.io/cloud-vps) line matches Bitwarden's recommended memory for a Linux install, and nested virtualization for the Windows route is available on plans with 8 GB or more.

## FAQ

### Do I need a paid plan to self-host Bitwarden?

No. You need a free installation ID and key. Premium features for individuals and organization features need a license file from a matching paid plan.

### Can I move from Bitwarden's cloud to my own server?

Yes. Export the vault from the cloud, import it into your server, check a sample of items and attachments, then delete the export: it contains every password in plaintext. Organizations need a license file first, then members join the new instance.

### Standard or lite for a family?

Lite. Bitwarden positions it for personal use and home labs, and it runs in a fraction of the memory. Remember that it has no built-in nightly backups.

### Can my own reverse proxy sit in front?

Yes. The installation can use alternate ports and skip its own certificate, and then you must front it with an HTTPS proxy. Make those changes in `./bwdata/config.yml` and apply them with `./bitwarden.sh rebuild`.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

- [Choose a self-hosted password manager for you or your team](https://cloudsat.io/learn/choose-a-self-hosted-password-manager): Self-hosting Choose a self-hosted password manager for you or your team 7 min read
- [Caddy or Nginx as a reverse proxy for self-hosted apps](https://cloudsat.io/learn/caddy-or-nginx-reverse-proxy): DevOps Caddy or Nginx as a reverse proxy for self-hosted apps 8 min read
- [Nginx Proxy Manager on a VPS: setup and lockdown](https://cloudsat.io/learn/nginx-proxy-manager-setup-and-lockdown): Self-hosting Nginx Proxy Manager on a VPS: setup and lockdown 8 min read
- [Install Nextcloud on Ubuntu: All-in-One or manual](https://cloudsat.io/learn/install-nextcloud-on-ubuntu-aio-or-manual): Self-hosting Install Nextcloud on Ubuntu: All-in-One or manual 7 min read
