Disclosure: I work on Envshed, one of the tools below. I tried to describe the others from their own pricing pages, and every price has a source and a date.
A new developer joins. Someone pastes a .env into a DM, someone else remembers the staging key is missing, and three weeks later nobody knows which copy is current. Then you start using an AI coding agent, and the file that sat in a chat now also sits in a model's context.
Here is a setup that removes the file from the loop for a small team, what it costs, and where the limits are.
Five questions are enough to compare options:
Prices below come from each vendor's own pricing page, checked on December 5, 2026. They change, so follow the link before you decide.
Dotenvx encrypts your .env files. On the free plan you keep the private keys; the paid Armor plans offer managed key custody. The User plan is $0. Member is $5 a month for 1 seat, with extra seats at $15 each, and Business is $90 a month for 10 seats (dotenvx.com/pricing). On the free plan it may fit a solo developer or a small team that is happy to distribute keys itself and keep everything in its own repository.
Doppler bills per seat: the Developer plan is free for 3 users, then $8 a month per additional user, with 3 days of activity logs. Team is $21 per user per month and lists SAML SSO and 90 days of logs. Its pricing page says AI agents and non-human identities are free (doppler.com/pricing). It may fit a team that prefers per-seat billing and expects many machines or agents to read secrets.
Infisical bills per identity, and an identity is a person or a machine. The Free plan allows up to 5 identities with 3 environments, and Pro is $20 per identity per month billed annually, or $23 billed monthly (infisical.com/pricing). Its core is open source under the MIT license, some features need an enterprise license when you self-host, and its docs describe how to run it yourself. It may fit a team that wants to self-host, with a machine count small enough for per-identity billing.
Envshed, the one I work on, is a hosted secrets manager: it stores environment variables encrypted with AES-256-GCM and delivers them through a web app, CLI, API and Node.js SDK. The Developer plan is free for 2 members and 3 projects, Team is $5 per user per month and Business is $9 with SAML SSO (envshed.com, same date). It is hosted only, it is not open source (the CLI is source-available under FSL-1.1-MIT), and it has no SOC 2 or ISO 27001 certification.
For five people with machines in CI, the arithmetic differs by billing unit, so count your machines before you compare.
.env files with Envshed?
These are the real commands. Replace the example names with yours.
1. Import the file. Run this in the app folder. It finds your .env files, shows a plan and asks before it creates anything. It shows names and counts, never values, and by default it does not change or delete your .env files.
npx envshed@latest init
git add .envshed.json && git commit -m "Add .envshed.json"
If an imported file is tracked by git, init warns you: its values are already in the repository history, so remove it with git rm --cached and rotate those secrets at the provider. No tool can undo a leak that already happened.
2. Invite people instead of sending files. An owner or admin sends the invite. It stays pending until the person signs in with that address.
envshed member invite ana@example.com --role member
3. Each person signs in once and runs the app. Because .envshed.json is committed, the CLI already knows the organization, project and environment. The values go into the process environment, and no .env file is written.
npm install -g envshed
envshed login
envshed run -- npm run dev
Need a file for a tool that insists on one? envshed pull writes it, and it stops if it would overwrite changed values unless you pass --force.
4. For someone outside the team, use an expiring link. A share link is a snapshot of the values you pick. It expires, it can be one-time, and the recipient needs no account.
envshed share DATABASE_URL --expires 1h --burn
The decryption key sits after the # in the URL, which browsers do not send to the server, and Envshed stores only a hash of it, so anyone who has the full URL can read the values until the link expires or is revoked. Add --password for a second factor.
The agent should run your app without reading the values. With Envshed the agent runs commands through envshed run --redact, which replaces known secret values in the output with [ENVSHED:KEY_NAME]. Masking is on by default when Claude Code launches the command and with --oidc; elsewhere, use --redact or set ENVSHED_AGENT_MODE=1.
envshed run --redact -- npm start
When the agent lacks a key, it does not ask you to paste it. It asks through the MCP server or envshed request STRIPE_KEY --reason "billing job" and gets a link. You open it and type the value in the dashboard, so the value never passes through the chat. No MCP tool returns a secret value. Key names and reasons are free text, and the server refuses only known token formats, so never paste a secret into a tool call.
Be clear about the limit. This reduces accidental leaks; it does not stop an agent with shell access. Such an agent can print its environment inside envshed run, run envshed secret get or copy .env to another name and read the copy. Limits that must hold belong on the server: roles and scoped tokens. After a session, envshed scan searches local agent history for your vault's values and for known token formats, and never shows a value.
In CI on GitHub Actions, OIDC avoids a stored token: the job proves which repository it runs in and gets a read-only session of at most an hour. Pin the trust policy to a protected branch.
envshed run --redact (or your tool's equivalent) and ask for missing keys through a link.
The setup guide is at envshed.com/guides/share-env-with-team, and the CLI reference is at docs.envshed.com.