A terminal utility to quickly search and copy Bitwarden vault items using fzf.
- Fuzzy search through the Bitwarden vault.
- Copy passwords or usernames directly to the clipboard.
- Non-persistent session management.
brew tap yozlog/tap
brew install bw-fzf-copyAfter installation, the tool can be executed using the bwfzfcp command.
mkdir -p ~/scripts
git clone https://github.com/yozlog/bw-fzf-copy.git ~/scripts/bw-fzf-copychmod +x ~/scripts/bw-fzf-copy/main.shThis script depends on the Bitwarden CLI (bw), fzf, and jq. If installed manually, these dependencies must be installed separately.
Can be installed via Homebrew:
brew install bitwarden-cli fzf jqWarning
This script caches the Bitwarden session key in a temporary file (/tmp/bw_session_global_${USER}) to avoid repeated password prompts. For security reasons, only use this script on private and secure machines.
If installed via Homebrew, simply run:
bwfzfcpNavigate to the script directory (adjust the path to match the storage location):
cd ~/scripts/bw-fzf-copy
./main.shFor more convenient access, an alias can be added to the shell configuration.
Add to the .zshrc:
alias bwfzfcp='~/scripts/bw-fzf-copy/main.sh'
# You can change `bwfzfcp` to a preferred aliasA global keybinding can be configured to trigger the script.
Add to the config file:
keybind = ctrl+shift+b=text:bwfzfcp\n
# Use 'bwfzfcp' if installed via Homebrew, or the full path to the script if installed manually