VaultWarden: Your local password manager
Tags: passwordmanager, security, docker, homelab
Published: 2024-07-10 18:03:22

![](https://blog.disane.dev/content/images/2024/07/vaultwarden-dein-lokaler-passwortmanager_banner.jpeg)Vaultwarden offers a lightweight, resource-efficient and free alternative to Bitwarden. Discover the advantages and learn how to install Vaultwarden! 🛠️

---

If you're looking for a secure and cost-effective password manager, then Vaultwarden could be just the thing for you. Vaultwarden, formerly known as Bitwarden\_RS, is a lightweight and efficient implementation of the popular password manager Bitwarden that specifically aims to be light on resources and run on a variety of platforms. In this article, we will highlight the benefits of Vaultwarden, explain how to install Vaultwarden and discuss its compatibility with Bitwarden extensions.

## What is Vaultwarden? 🤔

Vaultwarden is an implementation of the Bitwarden server written in Rust. It offers all the essential functions of the official Bitwarden service, but without the associated overhead. Vaultwarden can run on various platforms, including small ARM devices such as the Raspberry Pi, while requiring minimal resources. This makes it an ideal choice for home networks or small businesses that want to take their password management into their own hands.

[GitHub - dani-garcia/vaultwarden: Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden\_rs![Preview image](https://opengraph.githubassets.com/e694abf34577322e4c4759cbc3656182a82250b78a3eeface52813e9f0919ea0/dani-garcia/vaultwarden)Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden\_rs - dani-garcia/vaultwarden](https://github.com/dani-garcia/vaultwarden)

## Advantages of Vaultwarden 🌟

### Free and open-source 💸

Vaultwarden is completely free and the source code is publicly available. This means you can customize it as you wish and ensure that there are no hidden features or backdoors. The active community continuously contributes to improvements and provides support.

### Low system requirements 🖥️

Unlike other password managers, Vaultwarden requires very few resources. It even runs smoothly on a Raspberry Pi or an old PC, which makes it particularly attractive for home networks and small businesses.

### Full control over your data 🔒

With Vaultwarden, you host your own password server. This means you have full control over your data and don't have to entrust it to a third-party provider. This significantly increases security and data protection.

### Compatibility with Bitwarden clients and extensions 🧩

Vaultwarden is fully compatible with the official Bitwarden clients and browser extensions. This means you can use the same apps and extensions as Bitwarden, making the transition very easy.

### Easy to install and manage 🛠️

Vaultwarden is easy to install and manage, even if you're not an IT expert. There are numerous guides and an active community to help you with any questions.

## Installing Vaultwarden 🚀

Installing Vaultwarden is straightforward and can be done on different platforms. Here is a step-by-step guide for installing on a Linux server.

### Prerequisites 📋

* A Linux server (Ubuntu, Debian or CentOS)
* Docker installed
* A working web server (e.g. Nginx or Apache).e.g. Nginx or Apache)

### Install Docker 🐋

If Docker is not yet installed, you can install it with the following commands:

```bash
sudo apt update
sudo apt install docker.io -y
sudo systemctl start docker
sudo systemctl enable docker

```

### Install docker-compose 🛠️

Docker-Compose is a tool that allows you to define and run multi-container Docker applications. Install it with:

```bash
sudo apt install docker-compose -y
```

### Download and launch Vaultwarden 📦

Create a new directory for Vaultwarden and create a `docker-compose.yml` file:

```bash
mkdir vaultwarden
cd vaultwarden
nano docker-compose.yml
```

Insert the following content into the `docker-compose.yml` file:

```yaml
version: '3'

services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    environment:
      - ADMIN_TOKEN=your_admin_token # Replace 'your_admin_token' with a secure token
    volumes:
      - ./vw-data:/data
    ports:
      - 80:80
    restart: unless-stopped

```

Save the file and close the editor. Then start Vaultwarden with:

```bash
docker-compose up -d
```

### Setting up the web server 🌐

To make access to Vaultwarden more secure, you can set up a reverse proxy with Nginx or Apache and use HTTPS. Here is an example of the configuration with Nginx:

```nginx
server {
    listen 80;
    server_name your_domain_name; # Replace 'your_domain_name' with your domain

    location / {
        proxy_pass http://localhost:80;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}
```

Save the configuration file and activate it:

```bash
sudo ln -s /etc/nginx/sites-available/vaultwarden /etc/nginx/sites-enabled/
sudo systemctl restart nginx
```

### Set up HTTPS with Let's Encrypt 🔒

To use HTTPS, you can use Let's Encrypt and Certbot. Install Certbot with:

```bash
sudo apt install certbot python3-certbot-nginx -y

```

Request a certificate and configure Nginx automatically:

```bash
sudo certbot --nginx -d your_domain_name
```

## Compatibility with Bitwarden🧩

Vaultwarden is fully compatible with the official Bitwarden clients and browser extensions. This means you can continue to use the Bitwarden app on your smartphone, the browser extensions and the web interface without having to make any changes. All features such as autofilling passwords, saving new logins and synchronizing between devices work seamlessly.

For iOS, you can use the Bitwarden app:

[Bitwarden password manager![Preview image](https://is1-ssl.mzstatic.com/image/thumb/Purple211/v4/bd/8f/11/bd8f1160-0ac7-e235-c7d8-132df2fa7148/AppIcons-0-0-1x_U007emarketing-0-7-0-0-85-220.png/1200x630wa.png)bitwarden offers you the easiest and most secure way to store all your usernames and passwords and synchronize them between your devices. Password theft is a real problem. The websites and apps you use are attacked every day and often...](https://apps.apple.com/en/app/bitwarden-passwordmanager/id1137397744)

Or as an extension for Chrome or Edge:

[Bitwarden Password Manager![Preview image](https://lh3.googleusercontent.com/J_l8abQyJgx7POjRoDfGaFYWFnYQNpRSy4kH5IlbwSdM-l_gZf2rJlk2NLSQTY8g-U2vrclpb0EZApHyOe6sjzbKcUc=s128-rj-sc0x00ffffff)At home, at work, or on the go, Bitwarden easily secures all your passwords, passkeys, and sensitive information](https://chromewebstore.google.com/detail/bitwarden-passwordmanager/nngceckbapebfimnlniiiahkandclblb)

[Bitwarden Password Manager - Microsoft Edge AddonsNo image availableMake Microsoft Edge your own with extensions that help you personalize the browser and be more productive.](https://microsoftedge.microsoft.com/addons/detail/bitwarden-free-p/jbkfoedolllekgbhcbcoahefnbanhhlh?hl=en)

Or for Android from the Play Store:

[Bitwarden password manager - Apps on Google Play![Preview image](https://play-lh.googleusercontent.com/-jz18EgBYlmeHlnsq_iltq6uLnYFtXAVR_gi_d0qEj0pANQ1MtrJIstJoCQtImlWKwc)Bitwarden - a login and password manager that protects you while surfing.](https://play.google.com/store/apps/details?id=com.x8bit.bitwarden&hl=en)

## Vaultwarden vs. Bitwarden: A comparison 🆚

### Costs

Bitwarden offers both free and paid plans. The free version offers basic features, while the premium version offers additional features such as 2FA and more storage space. Vaultwarden, on the other hand, is completely free as you host your own server.

### Resource consumption

Vaultwarden is considerably more resource-efficient than the official Bitwarden server. It is specifically designed to run with minimal memory and CPU consumption, making it ideal for smaller devices and servers.

### Security

Both systems offer a high level of security as they use the same basic architecture. The main difference lies in control: with Vaultwarden you have full control over your data and its storage, while with Bitwarden you rely on their infrastructure.

### Customizability

Vaultwarden offers more customization options, as you can change and extend the source code as you wish. This is especially useful for advanced users who have specific requirements.

## Conclusion 🎯

Vaultwarden is a powerful and flexible alternative to Bitwarden that is particularly suitable for users who want to manage their data themselves. It offers all the essential functions of the official Bitwarden service, but requires significantly fewer resources and is completely free. Compatibility with Bitwarden clients and browser extensions makes the transition easy and seamless.

If you're looking for a secure, cost-effective and customizable password manager that runs on a variety of platforms, then Vaultwarden is definitely worth a look. Get started today and secure your passwords with Vaultwarden!

---

If you like my posts, it would be nice if you follow my [Blog](https://blog.disane.dev) for more tech stuff.