Latest release v1.17.5 drop-in replacement for pass

The password manager that lives in your terminal.

gopass 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

Showing macOS. Debian, Fedora, Arch, Windows & more →

  • GPG or age
  • Git-synced
  • Works offline
  • Linux · macOS · Windows · BSD
The gopass gopher wearing a gold padlock
$gopass find aws
work/aws/console
work/aws/deploy-key
$gopass show -c work/aws/console
✔Copied work/aws/console. Clipboard clears in 45s.

Illustrative session. Click a tab to explore.

MIT licensed
free and open source
GPG or age
your choice of crypto
Git-native
history and sync built in
Runs everywhere
Linux, macOS, Windows, BSD
Drop-in for pass
reads ~/.password-store
Quick start

From zero to your first secret in about two minutes.

Three steps. Everything below is copy-paste, and every command works the same on Linux, macOS, Windows and the BSDs.

Install

One binary. Use the package manager you already have.

brew install gopass

# or, on macOS with MacPorts
sudo port install gopass

gopass itself has no hard dependencies. The default setup uses gpg for encryption and git for history. Full setup guide ↗

Set up

Create a new store, join your team's, or reuse your pass store.

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

Use it

The nine commands you'll use every day.

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
Why gopass

Plain files, encrypted. Everything else is a command.

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.

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/prod

Fuzzy by default

Type a fragment, get the entry. Or run bare gopass for an interactive shell with tab-completion.

gopass aws

Teams & mounts

Mount many stores into one tree. Each has its own recipients, managed with a single command.

gopass recipients add [email protected]

GPG or age

Battle-tested GPG by default, age if you prefer simpler keys. Store on Git, pure-Go Git or plain files.

gopass setup --crypto=age

TOTP built in

Keep the seed next to the password and get codes from the terminal, even from a QR code on screen.

gopass otp -c work/github

Made for scripts

Password-only output, per-field access, secrets as env vars or stdin, and documented exit codes.

gopass show -o ci/github-token

Offline-first

No server, no account, no network needed. Works air-gapped, and audits run locally.

gopass audit

Drop-in for pass

Point gopass at your existing password store. Same layout, same keys, nothing to migrate.

gopass ls

Runs everywhere

One Go binary for Linux, macOS, Windows and the BSDs, plus a doctor command to debug your setup.

gopass doctor
Built for teams

One tree. Many stores. The right people in each.

Most 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.

  • Onboard in one command

    gopass recipients add re-encrypts the store for the new member. Remove access the same way.

  • Public keys travel with the store

    New members import teammates' keys from the repo itself. No out-of-band key exchange.

  • One person, many teams

    Mount a store per team, client or family. A single gopass ls shows everything you can reach.

Offboarding, honestly: re-encryption protects everything from now on, but it can't make someone forget what they already read. Rotate the secrets they could access. Team workflow reference ↗
$gopass ls 3 mounts
gopass
personal/
only you
A
work/
platform team · git.example.org
A B C D
clients/acme/
shared with one contractor
A E
# 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
For power users

Scriptable to the bone.

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.

show -o
password-only output
env
inject as env, stdin or file
JSON API
native messaging for browsers
# 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.
Security

Trust the boring parts.

No custom vault crypto, no hosted backend, and no surprise compromises. Read our threat model and security docs ↗.

Boring, proven crypto

GnuPG by default or age (experimental). gopass wraps the cryptographic tools you already audit and trust instead of inventing a new format.

You hold the keys

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.

Open and inspectable

MIT licensed, monitored via OpenSSF Scorecard, and every release archive ships with an SBOM so you can verify exactly what you run.

gopass is a great fit if…

  • You live in the terminal and want secrets one keystroke away
  • Your team already shares code through Git
  • You need to script, template or inject credentials
  • You want history, offline use and no vendor in the middle

Look elsewhere if…

  • You need SSO, a hosted admin console or central audit logs
  • Secret names must be hidden too (paths are plain text)
  • Nobody on the team is comfortable with Git or keys

We'd rather tell you now than after you've migrated.

Ready when your shell is.

Install, run gopass setup, and store your first secret before your coffee cools.

brew install gopass && gopass setup