A Bitwarden cli wrapper with fzf
bitwarden-clifzfjqoathtool(optional, for OTP code generation)xcliporwl-copy(optional, for copying items to clipboard)
git clone https://github.com/radityaharya/bw-fzf.git
cd bw-fzfMake sure the script is executable:
chmod +x bw-fzf.shIf you want to make the script available globally, you can install it by running:
sudo bw-fzf.sh --installSetup Bitwarden CLI:
bw loginoptionally, for self-hosted Bitwarden:
bw config server https://your.bitwarden.domain
bw loginRun the script:
./bw-fzf.sh- Prompts you for your Bitwarden password.
- Unlocks your Bitwarden vault.
- Loads all your Bitwarden items.
- Uses
fzfto allow you to search and preview items interactively.
- Type to search for items.
- Use arrow keys or
Ctrl+N/Ctrl+Pto navigate through items.
Ensure you have bitwarden-cli (bw), fzf, and jq installed. You can install them via your package manager:
sudo snap install bw
sudo apt install fzf jqbrew install bitwarden-cli fzf jqRefer to Bitwarden Cli for installation instructions.
OTP code generation is supported, it uses oathtool to generate the code, and falls back to bw get totp if oathtool is not available.
To install oathtool:
sudo apt install oathtoolPlease remember to keep your terminal secure when running this script, as sensitive information such as passwords and OTP codes will be displayed in plain text.