A Bitwarden cli wrapper with fzf
bitwarden-cli
fzf
jq
oathtool
(optional, for OTP code generation)
git clone https://github.com/radityaharya/bw-fzf.git
cd bw-fzf
Make sure the script is executable:
chmod +x bw-fzf.sh
If you want to make the script available globally, you can install it by running:
sudo bw-fzf.sh --install
Setup Bitwarden CLI:
bw login
optionally, for self-hosted Bitwarden:
bw config server https://your.bitwarden.domain
bw login
Run the script:
./bw-fzf.sh
- Prompts you for your Bitwarden password.
- Unlocks your Bitwarden vault.
- Loads all your Bitwarden items.
- Uses
fzf
to allow you to search and preview items interactively.
- Type to search for items.
- Use arrow keys or
Ctrl+N
/Ctrl+P
to 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 jq
brew install bitwarden-cli fzf jq
Refer 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 oathtool
Please 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.