- name
- bitwarden-bw
- description
- Access and manage Bitwarden passwords securely using the official bw CLI.
- metadata
- {"clawdbot":{"emoji":"🔒","os":["linux","macos"],"requires":{"bins":["bw"]}}}
Bitwarden Skill
Interact with Bitwarden vaults using the official bw CLI.
Prerequisites
bwCLI installed:npm install -g @bitwarden/cliBW_SESSIONenv var set (saved in~/.zshrc)
Usage
Get a password
bw get password "site_name"Get username
bw get username "site_name"Get full item (JSON)
bw get item "site_name" --prettySearch
bw list items --search "query" | python3 -c "import json,sys; [print(f'{i[\"name\"]} ({i.get(\"login\",{}).get(\"username\",\"\")})')for i in json.load(sys.stdin)]"Sync vault
bw sync*Always sync before getting details to ensure accuracy.*
TOTP code
bw get totp "site_name"Notes
- Session key is in
BW_SESSIONenv var (persisted in ~/.zshrc) - If session expires, user must re-login interactively (
bw loginrequires OTP) bw unlockcan refresh an expired session without full re-login