# dotsafe > A local-first, open source secret manager for developers and AI agents. Keep .env secrets encrypted on your Mac and synced through iCloud, Dropbox, S3 or storage you own. dotsafe is an open source, local-first, zero-knowledge secret manager for developers and their AI agents. Secrets are encrypted on your Mac and synced through storage you already own (iCloud Drive, Google Drive, Dropbox, an S3 or R2 bucket, or WebDAV). There is no dotsafe server holding your vault. It ships as an app for macOS and Linux and a `dotsafe` CLI that share one vault, and AI agents can run commands with your secrets through its MCP server after you approve them, without dotsafe ever handing them a value. - [Download for macOS and Linux](https://dotsafe.dev/download.md) - [Docs](https://dotsafe.dev/docs.md) - [Pricing](https://dotsafe.dev/pricing.md) - [Changelog](https://dotsafe.dev/changelog.md) - [Source on GitHub](https://github.com/starc007/dotsafe) (MIT license) ## What it does - **Projects and environments.** Variables per environment, with inheritance and `${{ NAME }}` references. `dotsafe run -- ` injects them, so there's no .env file to leak. - **Secrets and rotation.** Link one secret into every environment that uses it and rotate it once, through OpenAI, Cloudflare or AWS, with pushes to Vercel and Cloudflare Workers. - **AI agents.** Claude Code, Cursor and other MCP agents can list names and run commands you approve with Touch ID. Output comes back with values replaced by `[dotsafe:NAME]`, and OpenAI and Anthropic keys go through a local proxy so the process never holds them. - **Storage you own.** iCloud Drive, Google Drive, Dropbox, any synced folder, S3-compatible buckets or WebDAV. Works offline. - **Devices.** Touch ID unlock, adding a Mac with a one-time code, and removing a lost one (the vault is re-keyed). ## Security Names and values are encrypted with XChaCha20-Poly1305 under keys derived from your master password with Argon2id. The only dotsafe server handles licenses and never sees a vault. See [Security](https://dotsafe.dev/docs/security.md). ## Pricing $49 one-time (instead of $79). Everything dotsafe does, on up to 2 computers. Pay once, every update included. - Up to 2 computers, Mac or Linux - Unlimited projects, variables and environments - The dotsafe CLI - iCloud, Google Drive, Dropbox, S3 and WebDAV - Imports from .env, Doppler, Infisical and 1Password - Secrets linked across environments - Key rotation through OpenAI, Cloudflare and AWS - Agent access approved with Touch ID - Lifetime updates Buy on the [pricing page](https://dotsafe.dev/pricing). The license key arrives by email; activate it in the app or with `dotsafe license activate `. There is no free version. ## FAQ ### Where are my secrets stored? In a vault in storage you pick: iCloud Drive, Google Drive, Dropbox, an S3 or R2 bucket, or a WebDAV server. Everything is encrypted on your Mac before it gets there. ### Can dotsafe see my secrets? No. There's no dotsafe server holding your vault. The only server we run handles licenses, and it sees your license key and your computer's name, nothing else. ### What if I forget my password? You get a recovery key when you create a vault. It's the only way back in, so keep it somewhere safe. We can't reset it for you. ### Is dotsafe a secret manager for AI agents? Yes. Claude Code, Cursor, Codex and other MCP agents can list your variable names and run commands with your secrets, but only after you approve them with Touch ID. dotsafe never hands an agent a value, and values are taken out of anything it reads back. OpenAI and Anthropic keys go through a local proxy, so the command never holds them. ### Does it work offline? Yes. Your vault lives on your Mac. If the license can't be checked for 30 days, the app asks you to go online. It never locks you out. ### Is there a free version? No. dotsafe is $49, paid once, for up to 2 computers (Mac or Linux). You enter your license key the first time you open the app or the CLI. ### Can I move my license to another Mac? Yes. Remove it in Settings on the old Mac to free the slot, then activate it on the new one. ### Can I bring my existing .env files? Yes. Drop them into the app, or import from Doppler, Infisical and 1Password with the CLI. ### Is it open source? Yes. dotsafe is an open source secret manager under the MIT license. The app, the CLI and the vault format are all on GitHub, so you can read every line. ### How is dotsafe different from Doppler or Infisical? Doppler and Infisical are team services: your secrets live on their servers (or your own, with Infisical), and paid plans are priced per user. dotsafe keeps them encrypted on your Mac, syncs through storage you already own, costs one payment, and is built for AI agents. Import from Doppler, Infisical or 1Password in one command.