I created a workflow that allows to list the entries of a KeePassXC database and retrieve the password for an entry.
You can find it here: https://github.com/Angoll/KPass
I've been using Alfred for a while, basic functions without entering into the workflows world, but recently I'm switching to KeePassXC to store my passwords and I created the workflow to help with the change. I saw that there is some demand of a workflow that this one but no one created it.
It uses the keepassxc-cli to access password database and Keychain to secure store the password for the keychain.
All code is written in bash and AppleSript (JS) for the configuration setup.
Keychain Tip: if you create a new keychain and enable the auto-lock after X time, it will prompt for the password. Or modify the Access Control of the KPass_AlfredWorkflow to ask for key always.
Any feedback is welcome ☺️
Apart from Alfred and KeePassXC no external dependencies are required.
- Regarding Security:
Security is a big concert for all, so all code of this workflow is plain text, you are welcome to check it. Feel free to reach me if you improve it.
Example of listing entries of a database
KPass Configuration Script, this will prompt to select the database, keychain and password to configure the integration.