Install
openclaw skills install bitwarden-credentialStore or retrieve credentials in Bitwarden via CLI. Use when asked to save, store, or add a password/API key/OAuth token/secret/credential to Bitwarden. Triggered by phrases like "save to bitwarden", "store credential", "add api key to bitwarden", "save password", or when given a name/username/password triplet to persist. Requires user to have run `bw unlock` first and provide BW_SESSION env var.
openclaw skills install bitwarden-credentialStore credentials (passwords, API keys, OAuth tokens, etc.) in Bitwarden via the CLI.
The user must unlock their Bitwarden vault once per session in their terminal:
bw unlock
After unlocking, the user gets a session key. There are two ways to provide it:
Option A — Export the session (user does in their terminal):
export BW_SESSION="<session-key-from-unlock>"
Then just tell me "unlocked" and I can run commands directly.
Option B — Pass session directly to script:
BW_SESSION="<session-key>" ./bitwarden-credential.sh <name> <username> <password> [notes]
Once vault is unlocked, provide me with:
Example user message:
"Save to Bitwarden: name=Grafana, username=admin, password=xyz123, notes=prod server"
Use the bundled script or run directly:
# With BW_SESSION set
./scripts/bitwarden-credential.sh "<name>" "<username>" "<password>" "[notes]"
# Or via bw CLI directly
echo -n '{"name":"...","login":{"username":"...","password":"..."},"type":1}' | bw create item
brew install bitwarden-clibw login --apikey with client_id + client_secret, but vault still requires master password to unlockBW_SESSION) is session-scoped; it expires when the vault locks again