Bitwarden Server
The backend infrastructure of the Bitwarden open-source password manager.
Why consider Bitwarden Server?
Bitwarden Server is the backend infrastructure for Bitwarden password management. It provides end-to-end encrypted vault storage, organization credential sharing, and directory sync.
Learn Bitwarden Server by building
Practical setup notes, real use cases, and copy-ready examples in one focused guide.
In this guide10 sections
What is Bitwarden Server?
Bitwarden Server is the open-source backend infrastructure that powers the Bitwarden password management ecosystem. Written in C# and .NET Core, it operates as a self-hosted, zero-knowledge alternative to proprietary cloud password managers like 1Password, LastPass, and Dashlane.
Bitwarden Server handles encrypted vault storage, real-time device synchronization, organizational team collections, enterprise directory syncing (LDAP/Active Directory), emergency access, and administrative policy enforcement while ensuring all cryptographic encryption and decryption operations occur strictly on the user's local client devices (Zero-Knowledge Architecture).
Who Is It For?
- Enterprise IT & Security Teams: Hosting organization-wide password vaults on private servers with single sign-on (SSO) and mandatory two-factor policies.
- Engineering Teams: Sharing API keys, database credentials, and server secrets securely within role-based team collections.
- Privacy Advocates & Families: Managing family password vaults on personal infrastructure with official desktop, browser, and mobile client apps.
Key Features
- End-to-end Zero-Knowledge encryption: AES-256 bit encryption, PBKDF2 SHA-256 / Argon2id password hashing computed strictly on client devices.
- Seamless multi-client synchronization across official iOS, Android, browser extensions (Chrome, Firefox, Safari), and desktop apps.
- Organization and Team vault sharing with granular collection permissions and read-only access flags.
- Built-in two-factor authentication (TOTP authenticator, FIDO2 WebAuthn keys, Duo Security).
- Directory Connector tool for automated synchronization of users and groups from Active Directory, LDAP, Azure AD, and Okta.
Deploying Bitwarden Server with Docker
Bitwarden provides an official installation script that configures Docker containers, databases (MSSQL), and SSL certificates:
# 1. Download official installation scriptcurl -s -o bitwarden.sh https://raw.githubusercontent.com/bitwarden/server/master/scripts/bitwarden.shchmod +x bitwarden.sh# 2. Run the installer./bitwarden.sh installFollow the interactive prompts to enter your domain name (vault.example.com), choose Let's Encrypt automated SSL certificate generation, and supply your Bitwarden installation ID and key from https://bitwarden.com/host.
Start the server:
./bitwarden.sh startOpen https://vault.example.com in your browser to create your primary account and access your vault.
Practical Use Cases
1. Enterprise Team Password Sharing
A corporate department shares credentials for shared software licenses and cloud services through role-based Organization Collections, automatically revoking access when employees leave the company.
2. Secure Developer API Token Storage
An engineering team stores production database passwords and API tokens in Bitwarden, accessing them securely via the Bitwarden CLI (bw login && bw get item database) in automated scripts.
3. Emergency Account Access Setup
A user designates a trusted family member as an Emergency Contact in Bitwarden settings, allowing vault access after a 7-day confirmation waiting period in case of an emergency.
Troubleshooting and Limitations
- MSSQL Database Memory Requirement: The official Bitwarden Server container suite utilizes Microsoft SQL Server (MSSQL), requiring a server with at least 3–4 GB of RAM; for ultra-lightweight environments (e.g. Raspberry Pi), consider Vaultwarden (Rust implementation).
- HTTPS Enforcement: Bitwarden clients and browser Web Crypto APIs enforce secure contexts (HTTPS); Bitwarden will not synchronize vaults over plain unencrypted HTTP.
Official Resources
- Official Website: https://bitwarden.com
- GitHub Repository: https://github.com/bitwarden/server
- Self-Hosting Documentation: https://bitwarden.com/help/hosting-faqs/
Related tools
More options with a similar category or technology profile.
boringproxy
Simple, self-hosted reverse proxy and tunnel manager for exposing private web services securely.
OWASP ModSecurity
Open-source Web Application Firewall (WAF) engine providing cross-platform HTTP security inspection.
OpenCTI
Open-source platform for managing cyber threat intelligence knowledge and STIX2 relationships.
Maltrail
Malicious traffic detection system utilizing public blacklists and heuristic traffic behavior analysis.