🔐

Bitwarden Vault CLI

Verified

by startupbros

Set up and use Bitwarden CLI (bw). Install, authenticate, and read secrets from your vault. Supports email/password, API key, and SSO.

bitwardenvaultpasswordssecretscli
View on GitHub

Bitwarden CLI Skill

The Bitwarden command-line interface provides full access to your Bitwarden vault for retrieving passwords, secure notes, and other secrets programmatically.

Workflow Requirements

CRITICAL: Always run bw commands inside a dedicated tmux session.

Required Workflow

  1. Verify CLI installation: bw --version
  2. Create a dedicated tmux session: tmux new-session -d -s bw-session
  3. Attach and authenticate: bw login or bw unlock inside the session
  4. Export session key: export BW_SESSION=<session_key>
  5. Execute vault commands: bw get, bw list, etc.

Reading Secrets

bw get password "GitHub"
bw get username "GitHub"
bw get totp "GitHub"
bw get item "GitHub"
bw list items
bw list items --search "github"

Security Guardrails

  • NEVER expose secrets in logs, code, or command output visible to users
  • NEVER write secrets to disk unless absolutely necessary
  • ALWAYS use bw lock when finished with vault operations