Jump to content

Bitwarden Accelerator


Recommended Posts

Posted (edited)

I assume something must be terribly wrong with my setup. I have approx. 1500 items in my vault.

 

Listing items on my M1 mini takes somewhere between 48 seconds—1m 12s

 

This is from either

 

curl -s http://127.0.0.1:8087/list/object/items

OR

bw list items

 

Edited by luckman212
  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Hello @luckman212!

 

The workflow looks in a few specific directories for the bw executable, in this order:

 

/usr/local/bin
/opt/homebrew/bin
/opt/local/bin
/usr/local/Cellar/bitwarden-cli/*/bin
/opt/homebrew/Cellar/bitwarden-cli/*/bin

 

If it finds one it creates a symbolic link to it in the workflow's cache directory.  You can work around this by creating the symlink manually:

 

ln -s ~/.n/bin/bw ~/Library/Caches/com.runningwithcrayons.Alfred/Workflow\ Data/org.mlfs.corp.bw/bw

 

You may need to do the same for jq if it's not installed in one of the directories listed above.

Posted

@luckman212 For your second point, it is confusing but the workflow enables/disables the launch agent by loading or unloading it.  The only way I know of to check is by running launchctl list.  If you see

 

-    0    org.mlfs.corp.bw

 

in the output, the launch agent is loaded.  If you don't, it's not.

 

But wait!  There's a bug!  The launch agent is incorrectly labeled BUNDLEID, not org.mlfs.corp.bw.  I'll publish a fix shorly.

 

One thing to keep in mind is that configuring the workflow is not enough to affect changes.  You need to do a search for any changes to be saved.

Posted
On 5/13/2024 at 3:00 PM, luckman212 said:

I assume something must be terribly wrong with my setup. I have approx. 1500 items in my vault.

 

Listing items on my M1 mini takes somewhere between 48 seconds—1m 12s

 

This is from either

 

curl -s http://127.0.0.1:8087/list/object/items

OR

bw list items

 

 

Does the desktop app and/or browser extension perform better?  I have about 600 items in my vault.  My M1 Air takes about 0.3 seconds (curl) and 3.2 seconds (bw list).

 

If rebooting doesn't help you might want to open an issue with Bitwarden on GitHub here.

Posted

Thanks Andy, I appreciate the help. Truthfully I've grown weary of Bitwarden's glacial pace of rolling out fixes and features. This week was the last straw, somehow @blacs30's workflow broke for me in some strange way that I couldn't fix, and then I couldn't get yours to work either. I played around with some bleeding edge versions ripped straight from the build artifacts in GitHub Actions/CI area... didn't help much. I even started building my own BW workflow based on bw serve. I opened an issue on their GitHub, which was closed immediately as a "wontfix". I feel like they didn't even bother to test or look at it at all which was annoying.

 

I paused and started thinking, why am I doing all of this. I've spent many hours debugging and working around Bitwarden's rough edges and watched them deflect and delay critical features or fixes for sometimes months or even years. Anyone who reads through their forums will get the idea pretty quickly.

 

So I made the difficult decision to back up my vaults and shut the whole thing down, I switched to 1Password yesterday and am enjoying it so far! It definitely has its own quirks and some shortcomings (right now the main one is that it doesn't have the advanced domain matching algorithms that Bitwarden does, like regex or matching on different TCP ports) but overall, it just feels light years ahead of Bitwarden as far as integration with the OS, speed (I can list my entire vault of over 1500+ items in JSON format in <0.4 seconds via the CLI vs minutes with Bitwarden). They seem to have a more vibrant development team. That. combined with better Alfred support, has convinced me to switch for now.

 

Bitwarden has served me well for probably close to 8 years now, so I am sad to wind it down. I may give it another shot if I see things perk up over there. But, I am afraid the $100MM in VC funding they got a couple of years ago may end up being the nail in their coffin.

 

I know 1Password is VC funded too, so in the back of my mind I still think one day I may end up using KeePassXC + Syncthing. But for now I'm giving this a try... sorry for the rant.

Posted

I totally understand.  I switched from LastPass to Bitwarden for similar reasons.  It seemed development had stopped, especially the CLI, and it was too expensive to live with its flaws.  I don't quite remember why I originally settled on LastPass over 1Pasword; too long ago.

  • 2 weeks later...
  • 5 weeks later...
  • 3 weeks later...
Posted

Hi @Andy Rosen, I tried this workflow (Edge browser), and it is working fine. Thanks for the workflow.

 

Can I request some features or improvement based on my previous workflow usage - https://github.com/blacs30/bitwarden-alfred-workflow
1) Button changing (QoL)

  a) CMD key ⌘ -X-> Notes
  b) CMD key ⌘ -> open URL (first item)
  c) ctrl + CMD key ⌘ -> open bitwarden URL (?)  

2) Show More Items 

  a) Change Notes field to here

  b) Included ItemId, Type, Revisiondate
(I use ItemId a lot due to some scripting for kubernetes external secret 😅
  c) Add a return button to navigate previous page

3) Hints UI - show all button key on items after account name

 

 

Posted

Hi @jk-alfred, thanks for using the workflow!

 

If I understand the first request (1.a and 1.b), you'd like to change the Command modifier to open an item's URL instead of copying its Notes field?  I'm reluctant to change modifier settings, as there may be people who have gotten used to the current ones.  I can offer to add a new one.

 

For 1.c, in my testing, opening an item in the web vault requires me to login, even if I'm already logged in.  This is true at least for Firefox and Safari.  That's why I've left it out.

 

I can add ItemId, Type, and RevisionDate to Show all fields and Navigate item in Alfred.  And I like the idea of a Return to Previous Page line; I would probably use that myself.

 

For the last one, I don't think there's enough room to show all the buttons.  The subtitle/tooltip does change when you hold a modifier key down.

  • 2 weeks later...
Posted
On 7/16/2024 at 2:27 PM, Andy Rosen said:

DO NOT UPGRADE BITWARDEN-CLI PAST 2024.6.0

 

A bug was introduced in version 2024.6.1 of the Bitwarden CLI that prevents you from unlocking your vault.  Version 2024.7.0, released yesterday, does not fix it.  Homebrew currently has 2024.6.1.

 

https://github.com/bitwarden/clients/issues/9919

 

 

FYI, 2024.7.1 was released a few days ago.  It's been working well for me, but there are still reports that it's not working, mostly on Windows.  Caveat emptor.

  • 2 weeks later...
Posted

Version 5.0.0

 

Pretty significant release!

 

Download link

  • Edit an item directly in the workflow
    • Choose Edit Item from the More Actions menu
    • You can edit an item's Username, Password, and Name
  • Navigate an item without leaving Alfred
  • Added "return to" item in all menus to navigate to the previous menu in the workflow
  • Use Control + Command from the search menu to open an item's URL in your default browser
  • Include an item's ID, type, and Revision Date in the Show all fields window
  • Show No items found if the search list is empty
  • 2 weeks later...
  • 3 weeks later...
Posted

Version 6.0.0

 

Download link

  • Add a new login item to your vault
    • You will be prompted for the item's Name, Username, and Password.
    • If your web browser is the front-most window, the default Name will be the active tab's domain name.
    • The default Username will be your Bitwarden email address.
    • The default Password will be a random password generated by Bitwarden.  It is 20 characters and includes uppercase letters, lowercase letters, numbers, and special characters.
  • Add vault timeout like the desktop app and browser extension
  • Performance improvements
  • Bug fixes

 

Posted

Version 6.1.0

 

Download link

  • Search deleted items and restore them
  • Add support for Zen browser
  • Use --connect-timeout 3 --max-time 5 on all calls to curl
  • Clean up some outputs and log messages
  • Bug fixes
    • Unlock vault with two different payload formats
  • 4 weeks later...
  • 2 months later...
Posted

Apparently I've been forgetting to update this thread on new releases 🙁.  We're up to 6.2.1 now.

 

Download link

 

6.2.1

  • Fix opening an item's URL when there is more than one

6.2.0

  • Cleanup subtitles for inactive modifiers
  • Add cmd+control and cmd+alt modifiers
  • Comment out Add item (currently broken, probably a bug in the Bitwarden CLI)
  • Look for jq in /usr/bin (for Sequoia 15.1+)
  • Expanded README

6.1.3

  • Create alfred_workflow_cache directory every time, not just when checking dependencies
  • Don't display notification when not restoring an item from trash

6.1.2

  • Fix setting default collection
  • Add logging to jq scripts
  • Check for workflow version changes

6.1.1

  • Fix setting default organization
  • Performance improvements

 

  • 3 weeks later...
Posted

If I want to use this with 2 different accounts how would I set this up?

 

I've tried to copy the workflow for business / private 

Sign in BW  privately works - I do get to see my passwords. > Sign out also works. 

 

Now I would like to start using my work bitwarden account, so I want to switch. I've sign out my private BW, then I disable the private workflow. Activate the Business Workflow, reload the app, but then the workflow just doesn't work. 

 

So when I start with 1 workflow, either private or business, both DO work, but when I want to switch, they stop functioning till I reboot my mac... 

 

Either I am doing it way too complicated or is there another way to work this out? 

 

 

Posted
On 1/3/2025 at 6:43 AM, logix247 said:

If I want to use this with 2 different accounts how would I set this up?

 

I've tried to copy the workflow for business / private 

Sign in BW  privately works - I do get to see my passwords. > Sign out also works. 

 

Now I would like to start using my work bitwarden account, so I want to switch. I've sign out my private BW, then I disable the private workflow. Activate the Business Workflow, reload the app, but then the workflow just doesn't work. 

 

So when I start with 1 workflow, either private or business, both DO work, but when I want to switch, they stop functioning till I reboot my mac... 

 

Either I am doing it way too complicated or is there another way to work this out?

 

I was actually just thinking about this today.  It should work by changing the port number in one of the workflows.  I thought it was a configuration option, but you can do it by changing the 8087 in line 17 in lib/env.sh to some other, unused port number.

 

bwport=${bwport:-8087}

 

You probably need to change the workflow and search keywords as well.

Posted

I got Add item working again.  Also fixed logging into Bitwarden in EU.  The Login to Bitwarden menu item shows which Bitwarden server you're logging in to.

 

Download link

 

6.3.0

  • Fix and reintroduce Add item
  • Show which Bitwarden server is being used in the Login to Bitwarden title
  • Fix server URL for bitwarden.eu again

6.2.2

  • Fix server URL for bitwarden.eu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...