Skip to content

How do I stop sharing .env files over Slack?

Put the values in a secrets manager and give each teammate access instead of a file. With Envshed you import your .env once with envshed init, commit .envshed.json, and each invited teammate runs envshed login and envshed run, so no .env file travels. For a value that must reach someone outside the team, envshed share creates an expiring, encrypted link.

Envshed is a hosted secrets manager for dev teams. It stores environment variables encrypted with AES-256-GCM and delivers them through a web app, CLI, API and Node.js SDK. AI coding agents run commands with secrets through envshed run, which masks values in the output. No MCP tool returns a secret value.

What does the new workflow look like?

Four steps, the first two done once by whoever owns the project.

  1. Import the .env. Run this in the app folder. envshed init finds your .env files, shows a plan, and asks before it creates a project or changes anything. It shows names and counts, never values, and it does not change or delete your .env files.
npx envshed@latest init
git add .envshed.json && git commit -m "Add .envshed.json"
  1. Invite the team. An owner or admin invites each person. The invite stays pending until they sign in with that address; the link works once and expires in 7 days.
envshed member invite ana@example.com --role member
  1. Each teammate signs in once. Because .envshed.json is committed, the CLI already knows the organization, project and environment.
npm install -g envshed
envshed login
envshed run -- npm run dev
  1. Delete the old copies. Once envshed run works, remove the .env files from chats and from the repository.

What if the .env was already committed to git?

Removing the file does not remove its values from the repository history. When an imported file is tracked by git, envshed init warns in red: remove it with git rm --cached and rotate those secrets at the provider. Envshed does not undo a leak that already happened.

Can I still get a .env file when a tool needs one?

Yes. envshed pull writes a .env from the environment's values. By default it checks the existing file first and aborts if it would modify or delete values; --force skips that check. envshed push goes the other way and also stops if remote values would change.

envshed pull             # writes .env, aborts if it would modify or delete values
envshed push             # sends local changes, aborts if remote values would change

How do I send a value to someone outside the team?

Use a share link instead of pasting the value. A link is a snapshot of the values you choose, it expires (up to 30 days), it can be one-time or limited to a number of opens, and the recipient does not need an Envshed account. The decryption key lives in the part of the URL after the #, which browsers do not send to the server, and Envshed stores only a hash of it. You can revoke a link at any time, and the audit log records link events, never values.

envshed share DATABASE_URL --expires 1h --burn
envshed share open "https://app.envshed.com/s/<id>#<key>"

Who can see what, and how much does it cost?

Access follows roles per project and environment, and the audit log records changes and CLI or API reads. The Developer plan is free for 2 members and 3 projects. Team is $5 per user per month with unlimited members and projects, and Business is $9 per user per month with SAML SSO. Paid plans have a 14-day trial.

FAQ

Do my teammates still need a .env file?

Not for running the app. envshed run injects the values into the program's environment, so no .env file is written to disk. If a tool insists on a file, envshed pull writes one from the same source. Either way, nobody has to send the file in chat or email.

What happens when someone changes a value?

Everyone who runs envshed run gets the current value the next time they run it. A .env written earlier by envshed pull keeps the old value until it is pulled again. The audit log records who changed the value and when, and never stores the value in plain text.

How does a new developer get started without anyone sending anything?

An owner or admin invites them to the organization. After they accept, they install the CLI, run envshed login once, and run envshed run in the repository, which already has .envshed.json. On paid plans the seat is billed from the moment the invite is accepted, not when it is sent.

How are share links protected?

The link carries a random key after the # that browsers never send to the server, and Envshed keeps only a hash of it. The values are encrypted with AES-256-GCM, links expire, and on links with a password, 10 wrong attempts lock the link. Anyone who has the full link (and the password, if one is set) can still read it.