Alternatives

HashiCorp Vault alternative for developers: dotsafe vs Vault

Vault is built for running secrets infrastructure across a company. If you need your own app secrets on your Mac, dotsafe is simpler.

HashiCorp Vault (now part of IBM) is a secrets server: you run it, unseal it, write policies, and connect apps to it. It's the right tool for dynamic credentials and access control across many teams and machines. For a developer who wants their API keys out of .env files and safely in reach of their AI agents, it's a lot to operate.

dotsafe takes the other approach. There's no server: your secrets are encrypted on your Mac and synced through storage you already have.

At a glance

dotsafeHashiCorp Vault
Where secrets liveEncrypted on your Mac, synced through iCloud, Dropbox, S3 or WebDAVOn a Vault server you run, or HCP Vault Dedicated
EncryptionEnd to end: only your Macs can decryptOn the server, which holds the keys once unsealed
Source codeOpen source, MITBusiness Source License 1.1 (since 1.15); the OpenBao fork is MPL 2.0
Price$49 once, up to 2 MacsCommunity edition free to self-host; HCP Vault Dedicated billed per cluster hour plus per client
Something to runNothingA Vault server, unsealing, storage, upgrades
AI agentsMCP server; agents run approved commands and never get valuesOfficial MCP server (beta) whose tools can read and write secret values
Local devdotsafe run -- npm run devVault Agent in process supervisor mode, or vault kv get
Teams and policiesOne person per license, no team sharing yetFine-grained policies, identities, audit devices

Where Vault is the better choice

  • Dynamic secrets. Vault creates short-lived database and cloud credentials on demand and revokes them when their lease ends.
  • Access control at scale. Identity-based policies and audit across many teams, services and machines.
  • Infrastructure. Runs on Linux, Windows and Kubernetes, with high availability and replication.

If you run a platform team, use Vault (or OpenBao). If you want your own app secrets encrypted and usable by your agents today, use dotsafe.

A note on HCP Vault Secrets

HCP Vault Secrets, HashiCorp's hosted secrets service for developers, reached end of sale in June 2025 and has since been shut down. If you used it for app secrets, dotsafe covers the same need without a cloud account.

Switching from Vault

dotsafe has no direct Vault importer. Export a path as .env lines, import it, and delete the file:

vault kv get -format=json secret/my-app \  | jq -r '.data.data | to_entries[] | "\(.key)=\(.value)"' > .envdotsafe importrm .env

Then run your app with dotsafe run -- <command>, and give your agents access with dotsafe for Claude Code.

Sources

Checked on November 5, 2026.

Keep your secrets yours.

Set up a vault in a minute and bring your .env files with you.