op-pinentry

Retrieve your GnuPG signing-key passphrase from 1Password when it's needed on Windows.

View repository

Signing a commit shouldn't mean copying your GPG passphrase out of your password manager each time GnuPG asks for it. If you already keep that passphrase in 1Password, op-pinentry lets GnuPG ask for it there instead.

It's a small Windows replacement for GnuPG's pinentry. When gpg-agent requests a passphrase, op-pinentry reads the configured 1Password secret through the op CLI and returns it to the agent. It doesn't fetch the passphrase ahead of time; the agent's normal passphrase cache still applies afterwards.

What to know before using it

You'll need Windows, GnuPG, the 1Password desktop app with CLI integration enabled, the 1Password CLI on your PATH, and a 1Password item containing your passphrase. The desktop app needs to be running and unlocked when GnuPG requests the passphrase. If it isn't, the request fails rather than falling back to a manual prompt.

Getting started

Download a binary for Windows x64 or ARM64 from the releases page, or build it from source. The installation instructions cover configuration, checksums and build provenance.

GitHub - jessehouwing/op-pinentry: GnuPG pinentry replacement for Windows that fetches passphrases from 1Password on demand
GnuPG pinentry replacement for Windows that fetches passphrases from 1Password on demand - jessehouwing/op-pinentry