Self-Hosted Password Manager Alternatives (2026)

Close-up of a steel padlock on a mesh fence, symbolizing protection and security.
Photo by Connor Scott McManus on Pexels
SOPSSpectre / Master PasswordVaultwardengopassLessPassPasskyInfisicalAutheliaBitwarden ServerPassboltAliasVaultPsono

Self-hosted password managers let you keep every credential, secret, and API key on infrastructure you control — no vendor can lock you out, raise prices, or suffer a breach that exposes your vault. This category covers personal vaults for individuals, team-sharing solutions for small businesses, and developer-grade secrets engines for CI/CD pipelines, spanning difficulty levels 1 through 4. Whether you are fleeing LastPass after its breach history, resisting 1Password's per-seat subscription creep, or replacing HashiCorp Vault after its BSL relicensing, there is an open-source alternative that fits your threat model and ops budget.

LastPass's repeated breaches and a shrinking free tier that limits you to one device type made clear that trusting a third party with your entire credential store carries real risk. 1Password's per-user subscription model compounds indefinitely as teams grow, while Dashlane charges premium prices for a vault product whose core function is commodity. Self-hosting with a project like Vaultwarden gives you Bitwarden-compatible apps, end-to-end encryption, and zero recurring SaaS costs — all on a single Docker container you can spin up in under ten minutes.

Best password managers & secrets for…

个人用户 / 家庭共享
Vaultwarden
Self-host: Easy

难度仅为 2,单个 Docker 容器即可运行;与全平台 Bitwarden 官方客户端兼容(iOS、Android、浏览器插件),迁移成本极低。62 000+ Star 证明社区活跃、漏洞响应迅速,是 1Password 和 LastPass 最直接的平替。

需要精细权限管控的中小团队
Passbolt
Self-host: Moderate

基于 PGP 的客户端加密确保服务端无法读取明文密码,文件夹级分享权限适合多部门场景;提供 Docker Compose 一键部署,也有官方托管版可降低运维门槛。

注重隐私、同时需要匿名邮件别名的高级个人用户
AliasVault
Self-host: Moderate

内置一次性邮件别名生成,在存储密码的同时屏蔽真实邮箱,将密码管理器与 SimpleLogin 类功能合二为一;端对端加密,Docker Compose 部署,难度 3。

DevOps / 平台工程团队(应用级 Secrets 管理)
Infisical
Self-host: Moderate

面向开发者设计:SDK 注入、CI/CD 集成、细粒度 API 密钥轮换,可替代 HashiCorp Vault 的核心用例;难度 3,支持 Kubernetes Helm Chart,同时提供云托管版便于快速验证。

How to choose

Start with your audience: personal vault users should look at difficulty-2 options like Vaultwarden, which requires only Docker and a reverse proxy; teams that need granular folder sharing and audit logs should evaluate Passbolt or Psono (both difficulty 3, with managed-hosting fallbacks if self-op is too much). Developers managing application secrets rather than human passwords need a different mental model — SOPS (difficulty 1, no server required) solves encrypted-secrets-in-Git, while Infisical and OpenBao address dynamic secrets, leasing, and SDK injection for CI/CD workflows. Check the deploy column: if Kubernetes is already in your stack, Infisical or OpenBao fit naturally; if you only have a single VPS, Docker Compose projects like Vaultwarden or AliasVault are far easier to operate. Finally, verify whether the project offers a managed cloud tier — Bitwarden Server, Infisical, Passbolt, Padloc, and Psono all do, so you can start cloud-managed and migrate to self-hosted later without changing clients.

How we score self-host difficulty

All 15 self-hostable password managers & secrets tools

Ranked easiest-to-host first — one-click and single-container options at the top.

Encrypt files in Git with KMS/age/PGP — secrets management without a server

23k Go MPL-2.0 2 days ago
1/5

Algorithm-based stateless password generation with no sync required

16 C GPL-3.0 1 year ago
1/5

Lightweight Bitwarden-compatible server written in Rust, perfect for self-hosting

64k Rust AGPL-3.0 5 days ago
2/5

Team-oriented CLI password manager built on GPG and Git

7.1k Go MIT 19 days ago
2/5

Stateless password manager that derives passwords instead of storing them

6k JavaScript GPL-3.0 4 days ago
2/5

Lightweight self-hosted password manager with a clean web UI

243 PHP GPL-3.0 8 months ago
2/5

Open-source secrets management platform for developers and teams

28k TypeScript MIT 2 days ago
3/5

Self-hosted authentication server with TOTP, WebAuthn, and SSO

28k Go Apache-2.0 2 days ago
3/5

Official open-source server for the Bitwarden password manager

20k C# AGPL-3.0 2 days ago
3/5

Open-source password manager for teams with granular sharing and PGP encryption

6k PHP AGPL-3.0 9 days ago
3/5

E2E-encrypted password manager with built-in email alias generation

3k Docker MIT 2 days ago
3/5

Self-hosted password manager for teams and enterprises with client-side encryption

104 Python Apache-2.0 6 days ago
3/5

Open-source secrets management forked from HashiCorp Vault under the Linux Foundation

6.8k Go MPL-2.0 2 days ago
4/5

Open-source, end-to-end encrypted password manager for individuals and teams

2.9k TypeScript AGPL-3.0 1 year ago
4/5

On-premise collaborative password manager for teams

1.8k PHP GPL-3.0 3 days ago
4/5

Standouts

  • Vaultwarden62 000+ Star 的社区王者。用 Rust 重写 Bitwarden 服务端,内存占用低于 10 MB,可在树莓派上流畅运行;完全兼容官方客户端生态,是从 1Password / LastPass 平迁成本最低的选择。
  • Infisical开发者秘钥管理的新标杆。27 000+ Star,原生支持 GitHub Actions、GitLab CI、Kubernetes External Secrets,以及 Node/Python/Go SDK,填补了 HashiCorp Vault BSL 改许可后留下的开源空白。
  • SOPS零服务器架构的极简方案。22 000+ Star,把秘钥加密直接嵌入 Git 仓库,支持 AWS KMS、GCP KMS、Azure Key Vault 以及本地 age/PGP 密钥;难度 1,无需任何常驻进程,适合只想安全提交配置文件的小团队。

这一分类里的所有项目均可完全免费自托管——Vaultwarden、Passbolt CE、Infisical、SOPS 无一需要付费许可证,唯一成本是运行它们的服务器资源。

Replacing a specific tool?

Frequently asked questions

最好的自托管密码管理器是什么?

对个人用户和家庭来说,Vaultwarden(难度 2)是最成熟的选择:兼容全平台 Bitwarden 客户端、单 Docker 容器运行、62 000+ Star 的活跃社区。团队场景下 Passbolt(难度 3)提供更精细的权限管控,Infisical(难度 3)则专为开发者秘钥管理设计。

自托管密码管理器安全吗?

安全性取决于两点:一是所选项目是否实现端对端加密(Vaultwarden、Passbolt、AliasVault、Padloc 均是),即服务端永远无法读取明文;二是你的服务器是否保持及时更新、启用 HTTPS 和防火墙。自托管意味着你对基础设施拥有完全控制权,不依赖第三方服务商的安全实践,但同时也意味着运维责任由你承担。

有免费的 1Password 替代品吗?

有。Vaultwarden 提供与 1Password 功能对等的体验(密码生成、自动填充、多设备同步、密码共享),完全免费,只需一台能运行 Docker 的 VPS 或本地服务器;官方 Bitwarden Server(难度 3)则是 Bitwarden 公司自己发布的开源版本,同样免费自托管。

Vaultwarden 和官方 Bitwarden Server 有什么区别?

Vaultwarden 是社区用 Rust 编写的兼容实现,资源占用极低(适合低配 VPS 或树莓派),但并非官方出品。Bitwarden Server 是 Bitwarden 公司的官方开源版本,功能更全(含目录同步、SSO 等企业特性),但对硬件要求更高,难度同为 3。两者均与 Bitwarden 官方客户端完全兼容。

SOPS 和 Infisical 有什么本质区别?

SOPS 是一个命令行工具,把加密秘钥直接存入 Git 仓库的文件中,无需任何服务器,难度 1;适合小团队把配置文件安全提交到代码库的场景。Infisical 是一个完整的秘钥管理平台,提供 Web UI、SDK、动态秘钥、审计日志和 CI/CD 原生集成,难度 3;适合需要集中管控、支持多个应用和环境的中大型研发团队。

OpenBao 和 HashiCorp Vault 有什么关系?

OpenBao 是 HashiCorp Vault 的开源分叉,在 HashiCorp 将 Vault 改为 BSL 商业许可证后,由 Linux 基金会于 2024 年接管并以 MPL 2.0 许可证继续维护。如果你已经熟悉 Vault 的操作逻辑,可以直接迁移到 OpenBao,API 和配置文件基本兼容,难度 4。

Explore other categories