Bitwarden CLI

An Alfred Workflow

Short Description

Get passwords, username and TOTP from Bitwarden

Last Updated

22 Jul 2018


Mountain Lion
Snow Leopard
Yes Yes Yes No No



Bundle ID



Simple Bitwarden Workflow for Alfred

Simple yet powerful integration with the Bitwarden CLI so you can now get your passwords out of your Bitwarden vault and straight into the clipboard from within Alfred.

Version 1.0.0 update - Please Read

Ladies and gents, I am happy to present v1.0.0 of the workflow. Before I continue, this workflow has not been developed from scratch. The LastPass CLI workflow was the start and was remodeled to fit the Bitwarden CLI. Nonetheless it was a SIGNIFICANT amount of work for me so if you like it and use it, please say thank you by donating towards my organic food. Any amount will do, whatever you feel the value is for you/your business/your time :)

I have never used LastPass, I prefer to selfhost my applications. From the day I heard about Bitwarden I loved it - that was at the beginning of this year (2018).

If you haven't used Bitwarden before... you are crazy and you should! Say bye to LastPass and hello to selfhosting. It is the single greatest password manager package out there :D so check it out at


This workflow represents many many hours effort of development and testing. So if you love the workflow, and get use out of it every day, if you would like to donate as a thank you to buy me some healthy organic food (or organic coffee), or to put towards a shiny new gadget you can donate to me via Paypal.

PayPal — The safer, easier way to pay online.


  1. Ensure you have Alfred installed with the Alfred Powerpack License
  2. Install Homebrew (if you do not have it already installed)

    1. You should be able to just run the command in a terminal window (as your own user account NOT with sudo)
    2. ruby -e "$(curl -fsSL"
    3. Alternatively visit for further instructions.
  3. Install Bitwarden CLI command line interface

    1. In a terminal window run brew install bitwarden-cli
  4. Download the .alfredworkflow file
  5. Open the .alfredworkflow file to import into Alfred
  6. Run 'bwsetemail [email protected]' in Alfred to set your Bitwarden username.
  7. Run 'bwsetserver' in Alfred to set your Bitwarden URL. Use for the hosted bitwarden.


  • bwsetemail [email protected] - must be run when you first install/upgrade to version 1.0 or higher
  • bwsetemail - Set the Bitwarden user account email
  • bwsetserver - Set the Bitwarden server to connect to
  • bwlogin - Log in to Bitwarden
  • bwlogout - Log out of Bitwarden
  • bwunlock - Unlock the Bitwarden vault in case in case it is locked
  • bwsync - Syncronize bitwarden with the remote server
  • bw Search Bitwarden vault for item containing , press return to copy the password to clipboard.
  • Shift modifier can be used on bw to copy the username.
  • Alt modifier can be used on bw to copy the totp (if available).


  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D


  • Version 1.0.0 - Initial Release
  • Version 1.0.1 - Fixed logout / not logged in warning


Created by Claas Lisowski. If you would like to get into contact you can do so via: * @blacs30 on Twitter * Claas Lisowski on LinkedIn


Released under the GNU GENERAL PUBLIC LICENSE Version 2, June 1991


NOTE: This Alfred Workflow is not affiliated in any way with Bitwarden. The Bitwarden trademark and logo are owned by The Bitwarden logo and product name have been used with permission of the Bitwarden team.

My thanks go out to Bitwarden for their awesome product and the new CLI!