pw is a small collection of scripts for picking passwords or other values from your Bitwarden / Vaultwarden items, directly in your terminal.
Under the hood it uses rbw as the password manager CLI, fzf as the picker / fuzzy finder, jq for the preview window and fx for more detailed inspection of items in your vault (which can then be used to copy values which don't have pre-set shortcut keys)
- rbw
- fzf
- jq
- fx
- A clipboard CLI utility
For information on how to install each required program, please refer to their respective pages.1
$ git clone git@github.com/daghemberg/pw.git
$ cd pw
$ chmod +x ./pw.sh
$ sudo ln -s "$(pwd -P)/pw.sh" /usr/local/bin/pw
# on macOS:
$ sudo chmod -h +x /usr/local/bin/pw# open the picker
$ pw
# specify RBW_PROFILE
$ pw --profile work
$ pw -p workWhile in the picker, the following keybinds apply:
| Key | Action |
|---|---|
enter |
Copy password2 |
ctrl+u |
Copy username |
ctrl+t |
Copy TOTP code |
ctrl+p |
Open item in fx |
Footnotes
-
Depending on your DE / WM / OS, a clipboard CLI utility should likely already come preinstalled -- this script checks for
wl-copy(Wayland),xclip(X11),pbcopy(macOS) andclip.exe(WSL, through Windows interop) ↩ -
This has slightly different behaviour depending of the type of the item; for normal login items the password is copied, but for cards it's instead the card number, and for identities it's the full name. ↩
