How to connect pass with proton mail-bridge --cli

I have been following tutorials for protonmail-bridge --cli including creating and exporting a ProtonMail Bridge key using:

gpg --batch --passphrase '' --quick-gen-key 'ProtonMail Bridge' default default
gpg --export -a "ProtonMail Bridge"
// pass was already installed so that command was skipped
pass init "ProtonMail Bridge"

// then I tried to run protonmail-bridge --cli and get the following errors
root@IHC:~# protonmail-bridge --cli
WARN[0000] Failed to add test credentials to keychain    error="failed to create item: Object does not exist at path “/org/freedesktop/secrets/collection/login”" helper="*keychain.SecretServiceDBusHelper"
WARN[0000] Failed to add test credentials to keychain    error="Object does not exist at path “/org/freedesktop/secrets/collection/login”" helper="*secretservice.Secretservice"
INFO[0000] Migrating keychain helper                    

            Welcome to Proton Mail Bridge interactive shell
    ^^                __..-:'':__:..:__:'':-..__
                  _.-:__:.-:'':  :  :  :'':-.:__:-._
                .':.-:  :  :  :  :  :  :  :  :  :._:'.
             _ :.':  :  :  :  :  :  :  :  :  :  :  :'.: _
            [ ]:  :  :  :  :  :  :  :  :  :  :  :  :  :[ ]
            [ ]:  :  :  :  :  :  :  :  :  :  :  :  :  :[ ]
   :::::::::[ ]:__:__:__:__:__:__:__:__:__:__:__:__:__:[ ]:::::::::::
   !!!!!!!!![ ]!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![ ]!!!!!!!!!!!
   ^^^^^^^^^[ ]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[ ]^^^^^^^^^^^
            [ ]                                        [ ]
            [ ]                                        [ ]
      jgs   [ ]                                        [ ]
    ~~^_~^~/   \~^-~^~ _~^-~_^~-^~_^~~-^~_~^~-~_~-^~_^/   \~^ ~~_ ^

>>> info
>>> No active accounts.  Please add account to continue.

What the heck am I doing wrong, and how can I fix it? I had it installed and added an account, but it kept not recognizing my keychain helper.

I DO have a paid business account with ProtonMail.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
June 1, 2023

Hi there,

Did you try running pass init <GPG-ID>, where <GPG-ID> is one of your gpg key IDs? You can create a new gpg key gpg --full-generate-key or reuse an existing one that you own, you can use gpg -k to check what keys you already have.

If this does not help, I’ve seen this before reported on the ProtonMail repository here:

I could suggest following the suggestions from the answer to that issue.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel