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
- Verify CLI installation:
bw --version - Create a dedicated tmux session:
tmux new-session -d -s bw-session - Attach and authenticate:
bw loginorbw unlockinside the session - Export session key:
export BW_SESSION=<session_key> - 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 lockwhen finished with vault operations