selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Bitwarden logo

Self-host Bitwarden

v2026.10.1

Open-source backend that runs your own password vault

ReleaseOpen CoreOther
Updated2 weeks ago
LanguageC#
Setup difficultyAdvanced
Stars
20 639
Rating
5.0 (1)
Requires
Microsoft SQL Server
Install with Docker Compose
Bitwarden screenshot 1Bitwarden screenshot 2

What is Bitwarden?

This repository holds the backend every Bitwarden client talks to: the APIs, the database layer and the rest of the core infrastructure, so you can run a password vault of your own instead of relying on the hosted service. It is built with C# on ASP.NET Core against a T-SQL/SQL Server database and splits into independently runnable services — Api, Identity, Admin, Billing, Notifications, Events and EventsProcessor, plus Icons, SCIM and SSO. The Identity service answers on an OpenID Connect configuration endpoint, Redis can be added for distributed caching (with in-memory or database fallbacks), and there is a System Management Portal alongside the vault API. Operators deploy it with Docker Compose using the installer scripts bitwarden.sh or bitwarden.ps1, pulling published container images from GitHub's container registry. Docker and Docker Compose are the stated prerequisites, and the stack builds and runs on Windows, macOS and Linux. Licensing is open-core: most code falls under AGPL-3.0, while the commercial modules in /bitwarden_license use the separate Bitwarden License and must be unlocked with a license file.

Bitwarden alternatives

Should you self-host Bitwarden?

Bitwarden scores 75/100 on selfhost.directory (how scoring works) and ranks #2 of 29 in Password Managers. It has 20 639 GitHub stars, +362 in the last 30 days.

It shipped 23 stable releases in the past year. The latest, v2026.10.1, came out on 28 October 2026. New versions land roughly every 2 weeks.

Setup is advanced: plan for several services and some ongoing maintenance. It is Other-licensed and written mostly in C#.

Its closest alternative on selfhost.directory is Vaultwarden (89/100, 70 745 stars). It scores higher overall, so compare the two before you pick. See Bitwarden vs Vaultwarden side by side.

Features

  • Billing service
  • Cross-platform deployment
  • Distributed caching
  • Event Logging
  • Icon / asset service
  • Identity / authentication service
  • Licensed enterprise modulesRequires a license file registered in a cloud instance to enable.
  • Push notifications service
  • SCIM user provisioning
  • Single sign-on (SSO) service
  • System Management Portal (Admin)
  • Vault sync REST API

Bitwarden README

How to install Bitwarden

Install Bitwarden with Docker Compose

Docker; Docker Compose (already included with some Docker installations)
curl -s -L -o bitwarden.sh \
    "https://func.bitwarden.com/api/dl/?app=self-host&platform=linux" \
    && chmod +x bitwarden.sh
./bitwarden.sh install
./bitwarden.sh start

Linux and macOS; images come from GitHub Container Registry.

How to configure Bitwarden

  • MSSQL_PASSWORDEnvironment variable in dev/.env holding the SQL Server password used by the Docker Compose dependency stack.
  • sqlServer > connectionStringUser-secret setting where the SQL Server password is inserted for the server projects.
  • installation > id and keyHosting installation Id and key requested from Bitwarden and stored in secrets.json.
  • licenseDirectoryAbsolute path of an empty directory where uploaded license files are stored.
  • Database:PasswordAppHost user secret used as the sa password of its SQL Server container.

Bitwarden releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Password Managers

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…