ScriptsApr 13, 2026·3 min read

Bitwarden — Open Source Password Manager for Teams

Bitwarden is the leading open-source password manager with cloud sync. It provides end-to-end encrypted credential storage across all devices — web, desktop, mobile, browser, and CLI — with free personal use and affordable team/enterprise plans.

TL;DR
Bitwarden provides end-to-end encrypted password management across all devices, free and open-source.
§01

What it is

Bitwarden is an open-source password manager that provides end-to-end encrypted credential storage synchronized across all devices. It offers clients for web, desktop, mobile, browser extensions, and CLI. Personal use is free. Teams and enterprise plans add shared vaults, RBAC, and SSO integration.

This tool is for anyone who manages passwords, but especially developers and teams who need secure credential sharing, CLI access for automation, and self-hosting options.

§02

How it saves time or tokens

Bitwarden eliminates password reuse and insecure credential sharing. The CLI client integrates with scripts and CI pipelines to inject secrets without hardcoding them. Browser extensions auto-fill credentials, saving time on repeated logins. For AI-assisted workflows, the CLI can programmatically retrieve credentials that agents need for API authentication.

§03

How to use

  1. Create a Bitwarden account or deploy a self-hosted instance.
  2. Install clients on your devices.
  3. Import existing passwords or add them manually.
  4. Use the browser extension for auto-fill and the CLI for automation.
# Install Bitwarden CLI
npm install -g @bitwarden/cli

# Login
bw login

# Unlock vault
export BW_SESSION=$(bw unlock --raw)

# Get a password by name
bw get password 'My API Key'

# List items in a folder
bw list items --folderid <folder-id>

# Use in scripts
API_KEY=$(bw get password 'production-api-key')
curl -H "Authorization: Bearer $API_KEY" https://api.example.com
§04

Example

Using Bitwarden CLI in a CI pipeline:

# GitHub Actions example
steps:
  - name: Install Bitwarden CLI
    run: npm install -g @bitwarden/cli

  - name: Unlock vault
    run: |
      bw login --apikey
      export BW_SESSION=$(bw unlock --raw --passwordenv BW_PASSWORD)
      echo "BW_SESSION=$BW_SESSION" >> $GITHUB_ENV
    env:
      BW_CLIENTID: ${{ secrets.BW_CLIENTID }}
      BW_CLIENTSECRET: ${{ secrets.BW_CLIENTSECRET }}
      BW_PASSWORD: ${{ secrets.BW_PASSWORD }}

  - name: Deploy with secrets
    run: |
      DB_PASS=$(bw get password 'prod-db-password')
      deploy --db-password "$DB_PASS"
§05

Related on TokRepo

§06

Common pitfalls

  • The master password cannot be recovered if lost. Bitwarden uses zero-knowledge encryption, so even Bitwarden cannot reset your password.
  • Self-hosting requires maintaining the server, database, and SSL certificates. Use the cloud version unless you have specific compliance requirements.
  • The CLI session token expires. Scripts that run for long periods need to handle re-authentication.
  • Browser extension conflicts with other password managers. Disable competing managers to avoid auto-fill confusion.
  • Free personal accounts support unlimited passwords but limit sharing. Team features require a paid plan.

Frequently Asked Questions

Is Bitwarden truly open-source?+

Yes. Bitwarden's client applications and server are open-source. The client code is available on GitHub under GPL-3.0. The server code is available under AGPL-3.0. You can audit the code and self-host the entire stack.

Can I self-host Bitwarden?+

Yes. Bitwarden provides Docker-based self-hosting. You can also use Vaultwarden, a community-maintained alternative server implementation written in Rust that is lighter on resources.

Does Bitwarden support two-factor authentication?+

Yes. Bitwarden supports TOTP authenticator apps, email codes, hardware security keys (FIDO2/WebAuthn), and Duo Security for two-factor authentication on your vault.

How does the CLI work for automation?+

The Bitwarden CLI lets you login, unlock, and retrieve credentials programmatically. Use it in scripts, CI pipelines, or automation tools. Session tokens authenticate requests, and all operations are encrypted.

Can teams share passwords securely?+

Yes. Bitwarden Organizations allow teams to share credentials through shared vaults with role-based access control. Admins manage who can view or edit specific credential collections.

Citations (3)

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets