While Bitwarden is much more friendly on Android and iOS devices, Pass can be so much more convenient in the computer.
This tool was created to have the best of both worlds with Linux Pass.
A command-line interface tool to synchronize your Bitwarden to Linux Pass.
usage: main.py [-h] -user USER [--password PASSWORD] -gnupg_home GNUPG_HOME -public_gpg PUBLIC_GPG -pass_storage PASS_STORAGE [--notification_url NOTIFICATION_URL]
optional arguments:
-h, --help show this help message and exit
--password PASSWORD Password for your Bitwarden account. If not
provided, the user will be prompted for the password.
--notification_url NOTIFICATION_URL
URL for apprise integration. More at
https://github.com/caronc/apprise
required arguments:
-user USER Email to your Bitwarden account
-gnupg_home GNUPG_HOME
Path to your .gnupg
-public_gpg PUBLIC_GPG
Path to your public gpg key file
-pass_storage PASS_STORAGE
Path to your Pass .password-storage
-
bitwarden-cli
is a must. You can install it from here. -
pip3 install -r requirements.txt
Thats all!
- Clone the repository by
git clone https://github.com/d3vv3/bitpass.git
- Change
Dockerfile
environment variables for your valuesBW_USER
: your Bitwarden userBW_PASSWORD
: your Bitwarden passwordPUBLIC_GPG
: your exported public key which you can get bygpg --armor --export your_email > your_public_key.pub
NOTIF_URL
: your url for notifications with apprise
- Run
docker build -t local/bitpass:latest .
- Run
docker run -v /home/<your_user>/.gnupg:/gpg_home -v /home/<your_user>/.password-store:/password-store local/bitpass
- Create a cron job to execute step 4 whenever you want
- Clone the repository by
git clone https://github.com/d3vv3/bitpass.git
- Change
docker-compose.yml
environment variables for your valuesBW_USER
: your Bitwarden userBW_PASSWORD
: your Bitwarden passwordPUBLIC_GPG
: your exported public key which you can get bygpg --armor --export your_email > your_public_key.pub
NOTIF_URL
: your url for notifications with apprise
- Change
docker-compose.yml
volumes for your values/home/<you_user>/.gnupg/:/gpg_home
being the path where your GPG home/home/<your_user>/.password-store/:/password-store
being the path where your passpassword-store
is.
- Run
docker-compose up
Please feel free to open issues or collaborate!
- I am currently using a workaround for a gnupg python issue, as can be seen here.