doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
611 stars 84 forks source link

Multiple instances #48

Closed Frando closed 1 year ago

Frando commented 3 years ago

Hi, thanks for this tool. I have two instances of bitwarden (through bitwarden-rs) that I use frequently (personal and work). Is there a way to switch between accounts in rbw? Maybe like running two agents and passing an environment variable or option to rbw to chose the right one?

doy commented 3 years ago

you can switch between two different instances with rbw config, but running multiple agents isn't currently supported (so you'd have to re-enter your password each time you switch). this would be a useful feature, though!

melissaboiko commented 2 years ago

I tried using the other config with a different Unix user via sudo, but then you hit problems with pinentry/tty permissions. I tried to change to pinentry-curses, and the ensuing error message confuses the parser:

$ rbw ls
rbw list: failed to read password from pinentry: failed to parse pinentry output ("S ERROR curses.open_tty_for_read 83918849 \nERR 83918849 Permission denied \n\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0}\u{0} […repeats]

Workaround is to open tmux (or screen, or a terminal window) after sudo'ing to the other user, to get a new pty.

ptman commented 2 years ago

28