Bitwarden
Set up and use Bitwarden CLI (bw). Use when installing the CLI, unlocking vault, or reading/generating secrets via bw. Handles session management with BW_SESSION.
Set up and use Bitwarden CLI (bw). Use when installing the CLI, unlocking vault, or reading/generating secrets via bw. Handles session management with BW_SESSION.
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Manage passwords and secrets via the Bitwarden CLI.
references/get-started.md (install + login + unlock flow)references/cli-examples.md (real bw examples)bw --version.bw status (returns JSON with status field).bw login (stores API key, prompts for master password).bw commands.bw unlock (outputs session key).export BW_SESSION="<key>".bw sync then bw list items --search test.The Bitwarden CLI requires the BW_SESSION environment variable for authenticated commands. To persist the session across commands, always run
bw inside a dedicated tmux session.
Example (see
tmux skill for socket conventions):
SOCKET_DIR="${CLAWDBOT_TMUX_SOCKET_DIR:-${TMPDIR:-/tmp}/openclaw-tmux-sockets}" mkdir -p "$SOCKET_DIR" SOCKET="$SOCKET_DIR/openclaw-bw.sock" SESSION="bw-auth-$(date +%Y%m%d-%H%M%S)"tmux -S "$SOCKET" new -d -s "$SESSION" -n shell
Unlock and capture session key
tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'export BW_SESSION=$(bw unlock --raw)' Enter tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'bw sync' Enter tmux -S "$SOCKET" send-keys -t "$SESSION":0.0 -- 'bw list items --search github' Enter
Capture output
tmux -S "$SOCKET" capture-pane -p -J -t "$SESSION":0.0 -S -200
Cleanup when done
tmux -S "$SOCKET" kill-session -t "$SESSION"
| Command | Description |
|---|---|
| Check login/lock status (JSON) |
| Login with email/password or API key |
| Unlock vault, returns session key |
| Lock vault |
| Sync vault with server |
| List all items |
| Search items |
| Get specific item (JSON) |
| Get just the password |
| Get just the username |
| Get TOTP code |
| Generate password |
bw get password over parsing full item JSON when only password needed.bw unlock inside tmux.bw commands outside tmux; the session won't persist.bw lock.This skill includes a Docker Compose setup for local testing with Vaultwarden (self-hosted Bitwarden-compatible server).
# Install mkcert and generate local certs (one-time) brew install mkcert mkcert -install cd /path/to/openclaw-bitwarden mkdir -p certs && cd certs mkcert localhost 127.0.0.1 ::1 cd ..Start Vaultwarden + Caddy
docker compose up -d
Configure bw CLI to use local server
bw config server https://localhost:8443
Create a test account via web UI at https://localhost:8443
Or run the setup script:
./scripts/setup-test-account.sh
Test the skill workflow
./scripts/test-skill-workflow.sh
test-admin-token-12345)The bw CLI requires the mkcert CA to be trusted. Export before running bw commands:
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
Or add to your shell profile for persistence.
docker compose down -v # Remove container and data
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.