gopass

gopasspwMIT活跃维护

基于 Git 和 GPG 的命令行密码管理器,把密码库当作 Git 仓库管理,支持多人协作共享密钥,兼容标准 Unix 密码管理流程。

The slightly more awesome standard unix password manager for teams

v1.17.4发布于 2026-10-10 09:01 UTC7,317star +1 / 7 天569fork同步于 2026-11-10 23:33 UTC

怎么上手

由 README 提炼,执行前请确认
brew install gopass
gopass setup
硬件要求按 README 说明

README 未说明硬件要求;可在 Linux、macOS、*BSD、Windows 上运行,无需联网即可离线使用

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

兼容 pass 的命令行密码管理器,用 GPG 加密、git 版本化,方便团队共享凭据

基于 Git 和 GPG 的命令行密码管理器,把密码库当作 Git 仓库管理,支持多人协作共享密钥,兼容标准 Unix 密码管理流程。

核心能力

  • 作为 pass 的 drop-in 替代,沿用原有使用习惯
  • 默认用 GPG 加密凭据,并用 git 做版本化存储
  • 可切换 age 加密与 fossil 等存储后端
  • 支持 gopass clone 克隆团队共享密码库
  • 提供 find、show -c、sync 等命令与 REPL 交互

容易踩的坑

Debian 官方源里的 gopass 包是完全无关的另一个项目,需按 README 添加官方仓库安装;gopass edit 需要额外配置外部编辑器;go install 的 latest 不是稳定版,建议只用正式发布版本

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.17.4
  1. v1.17.4最新正式版2026-10-10 · 2026-10-10 09:01 UTC

    [1.17.4] - 2026-10-10

    Added

    • age: Add hello capability negotiation to the age agent protocol (#3624)
    • age: Report the time left until auto-lock in gopass age agent status
    • age: add hello capability negotiation to the age agent (#3634)
    • age: log received identities via out.Secret (#3630) (#3625)
    • age: report auto-lock countdown in age agent status (#3656)
    • age: support hardware-backed keyring unlocking (#3648) (#3644)
    • secret-service: add Linux Secret Service daemon (#3434) (#3607)
    • show: Add show.password config option to display only the password by default (#3621)
    • show: add show.password config option (#3621) (#3623)

    Fixed

    • Mitigate path-traversal gap in Store.Link (#3649)
    • Remove capslock (#3647)
    • age-agent: redact sensitive protocol lines from debug logs (#3625) (#3508)
    • age: cache unlocked SSH identities in agent (#3646)
    • age: honor preferred identity order during decryption (#3643) (#3632)
    • age: prevent agent panic when decrypting plugin identities (#3633)
    • ls: Hide template-only folders from flat listing (#3650)
    • msi: add install dir to user PATH (#3588) (#3622)

    Security

    • fs: reject symlinked store entries escaping the store root (#3654)
  2. v1.17.32026-09-22 · 2026-09-22 18:24 UTC
    查看更新说明

    [1.17.3] - 2026-09-22

    Changed

    • deps: move HIBP client into pkg/hibp to break the module cycle (#3603)

    Fixed

    • age: send waiting on plugin message to stderr (#3613)
    • config: Avoid overwriting the config when there is no need (#3602) (#3593)
    • tempfile: avoid hdiutil deprecation warning on macOS 27 (#3610)
  3. v1.17.22026-09-10 · 2026-09-10 14:49 UTC
    查看更新说明

    [1.17.2] - 2026-09-10

    Fixed

    • Remove GPG_FINGERPRINT from goreleaser config
    • Revert to goreleaser 2.11.2 so we can keep on Go 1.25
    • ci: Fix broken script snippet in release workflow
  4. v1.17.2-rc.0pre-release2026-09-10 · 2026-09-10 06:45 UTC
    查看更新说明

    [1.17.2-rc.0] - 2026-09-10

    Fixed

    • Remove GPG_FINGERPRINT from goreleaser config
    • ci: Fix broken script snippet in release workflow
  5. v1.17.12026-09-09 · 2026-09-09 20:57 UTC
    查看更新说明

    [1.17.1] - 2026-09-09

    Added

    • api: Add new AuditList method (#3594)
    • create: support passwordless / SSO login profiles (#3493)

    Fixed

    • ctxutil: restore password callback hook for embedded age prompts (#3590)
    • store: Fix reencrypt when adding recipients (#3595) (#3473)

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Overview

    OpenSSF Scorecard Build Status Lint Status Packaging Status MIT License Github All Releases Gopass Slack

    The slightly more awesome standard UNIX password manager for teams.

    Manage your credentials with ease. In a globally distributed team, on multiple devices or fully offline on an air-gapped machine.

    • Works everywhere - The same user experience on Linux, macOS, *BSD or Windows
    • Built for teams - Built from our experience working in distributed development teams
    • Full autonomy - No network connectivity required, unless you want it

    How Does It Work?

    Gopass is a drop-in replacement for pass, the standard UNIX password manager. By default your credentials are encrypted with GPG and versioned in git. This can be customized easily. Other backends for encryption (e.g. age) and storage (e.g. fossil) are also available. The primary interface is the command line, making it an excellent choice for CLI fans, CI/CD systems or anything you can hook it up with. Gopass can also integrate with your browser so you can largely avoid the command line - if you want.

    Installation

    Necessary prerequisites for running gopass

    gopass can operate without any dependencies but most users will use it with gpg and git. An external editor is required to use gopass edit.

    Installation through package managers

    Homebrew (Linux/macOS)

    homebrew version

    brew install gopass
    

    MacPorts (macOS)

    macports version

    sudo port install gopass
    

    Debian (Ubuntu, Debian, Raspbian, ...)

    Warning: Do not install the gopass package from the official repositories. That is a completely different project that has no relation to us.

    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
    

    Fedora / RedHat / CentOS

    Fedora version

    dnf install gopass
    

    Note: You might need to run dnf copr enable daftaupe/gopass first.

    Arch Linux

    Arch version

    pacman -S gopass
    

    Windows

    Scoop version

    # WinGet
    winget install -e --source winget --id Git.Git
    winget install -e --source winget --id GnuPG.Gpg4win
    winget install -e --source winget --id gopass.gopass
    # Chocolatey
    choco install gpg4win
    choco install gopass
    # Alternatively
    scoop install gopass
    

    FreeBSD / OpenBSD

    cd /usr/ports/security/gopass
    make install
    

    Alpine Linux

    apk add gopass
    

    Other installation options

    Please see docs/setup.md for other options.

    From Source

    go install github.com/gopasspw/gopass@latest
    

    Note: latest is not a stable release. We recommend to only use released versions.

    Manual download

    Download the latest release and add the binary to your PATH.

    Quick start guide

    Initialize a new gopass configuration:

    gopass setup
    
       __     _    _ _      _ _   ___   ___
     /'_ '\ /'_'\ ( '_'\  /'_' )/',__)/',__)
    ( (_) |( (_) )| (_) )( (_| |\__, \\__, \
    '\__  |'\___/'| ,__/''\__,_)(____/(____/
    ( )_) |       | |
     \___/'       (_)
    
    🌟 Welcome to gopass!
    🌟 Initializing a new password store ...
    🌟 Configuring your password store ...
    🎮 Please select a private key for encrypting secrets:
    [0] gpg - 0xFEEDBEEF - John Doe <[email protected]>
    Please enter the number of a key (0-12, [q]uit) (q to abort) [0]: 0
    ❓ Do you want to add a git remote? [y/N/q]: y
    Configuring the git remote ...
    Please enter the git remote for your shared store []: [email protected]:john/passwords.git
    ✅ Configured
    

    By default gopass setup will use gpg encryption and git storage. This will create a new password store in $HOME/.local/share/gopass/stores/root and a configuration in $HOME/.config/gopass/config using gpg encryption and git for versioned storage. Users can override these with e.g. --crypto=age to use age encryption instead or opt out of using a versioned store with --storage=fs.

    An existing store can be cloned with e.g. gopass clone [email protected]:john/passwords.git.

    Create a new secret:

    gopass create
    

    List all existing secrets:

    gopass ls
    

    Copy an existing password to the clipboard:

    gopass show -c foo
    

    Remove an existing secret:

    gopass rm foo
    

    Other examples:

    # Command structure
    gopass [<command>] [options] [args]
    # Shortcut for gopass show [<key>]
    gopass [<key>]
    
    # Enter the gopass REPL
    gopass
    
    # Find all entries matching the search string
    gopass find github
    
    # List your store
    gopass ls
    
    # List all mounts
    gopass mounts
    
    # List all recipients
    gopass recipients
    
    # Sync with all remotes
    gopass sync
    
    # Setup a new store
    gopass setup
    

    Screenshot

    screenshot

    Support

    Please ask on Slack.

    Contributing

    We welcome any contributions. Please see CONTRIBUTING.md for more information.

    Credit & License

    gopass is licensed under the terms of the MIT license. You can find the complete text in LICENSE.

    Please refer to our Contributors page for a complete list of our contributors.