Git-native history
Every change is a commit. Review, diff and roll back, and let gopass auto-sync in the background.
gopass history work/db/prodgopass keeps every secret as an encrypted file in a Git repo you own. Find it with a fuzzy search, pipe it into a script, share it with your team, sync it everywhere. No server. No account.
brew install gopass
Illustrative session. Click a tab to explore.
Three steps. Everything below is copy-paste, and every command works the same on Linux, macOS, Windows and the BSDs.
brew install gopass
# or, on macOS with MacPorts
sudo port install gopass
gopass package from the official Debian/Ubuntu repositories. It is an unrelated project. Use our repository below.
curl https://packages.gopass.pw/repos/gopass/gopass-archive-keyring.gpg | sudo tee /usr/share/keyrings/gopass-archive-keyring.gpg >/dev/null
cat << EOF | sudo tee /etc/apt/sources.list.d/gopass.sources
Types: deb
URIs: https://packages.gopass.pw/repos/gopass
Suites: stable
Architectures: all amd64 arm64 armhf
Components: main
Signed-By: /usr/share/keyrings/gopass-archive-keyring.gpg
EOF
sudo apt update
sudo apt install gopass gopass-archive-keyring
dnf install gopass
dnf copr enable daftaupe/gopass first.pacman -S gopass
# WinGet (includes Git & GnuPG prerequisites)
winget install -e --source winget --id Git.Git
winget install -e --source winget --id GnuPG.Gpg4win
winget install -e --source winget --id gopass.gopass
# or with Scoop
scoop install gopass
apk add gopass
cd /usr/ports/security/gopass && make install
go install github.com/gopasspw/gopass@latest
# Download the archive for your platform from GitHub Releases, then:
tar -xzf gopass-*.tar.gz gopass
sudo mv gopass /usr/local/bin/
gopass itself has no hard dependencies. The default setup uses gpg for encryption and git for history.
Full setup guide ↗
gopass setup
A short wizard: pick (or create) a key, optionally add a Git remote. Your store is created in ~/.local/share/gopass/stores/root.
--crypto=age
use age instead of GPG
--storage=fs
plain files, no Git
gopass clone [email protected]:platform/secrets.git work
gopass ls
Ask an existing member to run gopass recipients add [email protected] and push. Clone once and your team's secrets appear under work/.
gopass ls
Nothing to migrate. gopass automatically picks up ~/.password-store on first run and stays compatible with pass.
gopass generate web/example.com 24 # create a random 24-character password
gopass show -c web/example.com # copy it (the clipboard clears itself)
gopass web/example.com # short form of `gopass show`
gopass insert work/db/prod # store a value you already have
gopass otp -c work/github # current one-time code
gopass find github # search all entries
gopass edit work/db/prod # open in $EDITOR
gopass sync # pull and push every remote
gopass # no args: interactive shell with tab-completion
No proprietary vault format and no lock-in. A secret is a file in a repo; gopass is the fast, scriptable, team-friendly way to work with it.
Every change is a commit. Review, diff and roll back, and let gopass auto-sync in the background.
gopass history work/db/prodType a fragment, get the entry. Or run bare gopass for an interactive shell with tab-completion.
gopass awsMount many stores into one tree. Each has its own recipients, managed with a single command.
gopass recipients add [email protected]Battle-tested GPG by default, age if you prefer simpler keys. Store on Git, pure-Go Git or plain files.
gopass setup --crypto=ageKeep the seed next to the password and get codes from the terminal, even from a QR code on screen.
gopass otp -c work/githubPassword-only output, per-field access, secrets as env vars or stdin, and documented exit codes.
gopass show -o ci/github-tokenNo server, no account, no network needed. Works air-gapped, and audits run locally.
gopass auditPoint gopass at your existing password store. Same layout, same keys, nothing to migrate.
gopass lsOne Go binary for Linux, macOS, Windows and the BSDs, plus a doctor command to debug your setup.
gopass doctorMost password managers force a choice: personal or shared. gopass mounts as many stores as you need into a single tree, each encrypted to exactly the people who should read it.
gopass recipients add re-encrypts the store for the new member. Remove access the same way.
New members import teammates' keys from the repo itself. No out-of-band key exchange.
Mount a store per team, client or family. A single gopass ls shows everything you can reach.
# join the team store and mount it at work/
gopass clone [email protected]:platform/secrets.git work
# add a colleague (re-encrypts the store)
gopass recipients add --store=work [email protected]
gopass sync
Everything is a command with predictable output and documented exit codes. Pull a secret into a script, a process or a pipeline without it ever touching disk or shell history.
# password only, safe inside $( )
export GITHUB_TOKEN=$(gopass show -o ci/github-token)
# a single field of a key/value secret
gopass show work/db/prod username
# pipe a value in; nothing lands in your shell history
printf '%s' "$NEW_TOKEN" | gopass insert -f ci/github-token
-o prints just the password. No decoration to strip, no prompt to fight.# inject secrets as environment variables
gopass env db/prod psql -U admin mydb
# pass a secret over stdin (never enters the environment)
gopass env --stdin ci/registry docker login -u bot --password-stdin ghcr.io
# expose secrets as a temporary file cleaned up on exit
gopass env --file ci/tls ./run.sh
--stdin or --file when that matters.# use gopass as Git's credential helper globally
git-credential-gopass configure --global
# or scope a single repo to a team store
git-credential-gopass configure --local --store=ci-team
//registry.npmjs.org/:_authToken={{ gopass "dev/npm-token" }}
gopass template function out of the box.Keep your secrets in one encrypted store and connect browsers, editors, launchers and CI pipelines around it.
Autofill logins and TOTP codes in Firefox, Chrome and Chromium browsers.
Store and retrieve HTTPS tokens directly through Git's credential helper.
Read and write Kubernetes secrets straight from your gopass store.
Reference encrypted store entries directly inside Terraform modules.
Native template function to inject secrets into your managed dotfiles.
Feed gopass secrets into build and deployment steps via Summon.
Check your store against Have I Been Pwned dumps, online or offline.
D-Bus daemon backing the freedesktop Secret Service API with gopass.
Search entries and copy passwords straight from Alfred.
Fuzzy-find credentials and one-time codes without leaving Raycast.
Optional cross-platform desktop UI for teammates who prefer a window.
Compatible with Pass for iOS and Password Store for Android.
No custom vault crypto, no hosted backend, and no surprise compromises. Read our threat model and security docs ↗.
GnuPG by default or age (experimental). gopass wraps the cryptographic tools you already audit and trust instead of inventing a new format.
Private keys stay local (or on your YubiKey). Secrets live in a Git repo you control. There is no gopass cloud and no account to breach.
MIT licensed, monitored via OpenSSF Scorecard, and every release archive ships with an SBOM so you can verify exactly what you run.
We'd rather tell you now than after you've migrated.
Install, run gopass setup, and store your first secret before your coffee cools.
brew install gopass && gopass setup