I figured it'd be nice to have a Bitwarden Script for use outside of browsers, and it made for a good first mini project. It uses @bitwarden/cli via NPM, though I'm looking at doing an API version as well.

Code/gist here

Enter copies password Ctrl+Enter copies username Ctrl+Shift+Enter pastes username, then tabs once, then pastes password (won't work for all use cases, but figured it's nice to have)

This script does not save user credentials, but saves a session key to prevent frequent logging in.

Currently missing 2FA via email and YubiKey.