{"slug": "stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai", "title": "Stop sharing .env files over Slack: a practical setup for small teams (and AI coding agents)", "summary": "A developer at Envshed published a practical setup for small teams to stop passing .env files through Slack and instead manage secrets through a hosted manager, comparing Dotenvx, Doppler, Infisical and Envshed on billing units and pricing checked December 5, 2026. The walkthrough uses Envshed's CLI to import .env files, invite members, and inject values into the process environment via `envshed run` so no .env file is written, while warning that secrets already committed to git must be rotated because no tool can undo an existing leak.", "body_md": "*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.*\n\nA 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.\n\nHere is a setup that removes the file from the loop for a small team, what it costs, and where the limits are.\n\nFive questions are enough to compare options:\n\nPrices below come from each vendor's own pricing page, checked on December 5, 2026. They change, so follow the link before you decide.\n\n**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](https://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.\n\n**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](https://www.doppler.com/pricing)). It may fit a team that prefers per-seat billing and expects many machines or agents to read secrets.\n\n**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](https://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.\n\n**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](https://envshed.com/en#pricing), 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.\n\nFor five people with machines in CI, the arithmetic differs by billing unit, so count your machines before you compare.\n\n`.env` files with Envshed?\nThese are the real commands. Replace the example names with yours.\n\n**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.\n\n```\nnpx envshed@latest init\ngit add .envshed.json && git commit -m \"Add .envshed.json\"\n```\n\nIf 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.\n\n**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.\n\n```\nenvshed member invite ana@example.com --role member\n```\n\n**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.\n\n```\nnpm install -g envshed\nenvshed login\nenvshed run -- npm run dev\n```\n\nNeed 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`.\n\n**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.\n\n```\nenvshed share DATABASE_URL --expires 1h --burn\n```\n\nThe 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.\n\nThe 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`.\n\n```\nenvshed run --redact -- npm start\n```\n\nWhen 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.\n\nBe 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.\n\nIn 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.\n\n`envshed run --redact` (or your tool's equivalent) and ask for missing keys through a link.\nThe setup guide is at [envshed.com/guides/share-env-with-team](https://envshed.com/en/guides/share-env-with-team), and the CLI reference is at [docs.envshed.com](https://docs.envshed.com).", "url": "https://wpnews.pro/news/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai", "canonical_source": "https://dev.to/envshed/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai-coding-agents-2pjf", "published_at": "2026-12-06 03:28:46+00:00", "updated_at": "2026-12-06 03:44:35.833297+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools"], "entities": ["Envshed", "Dotenvx", "Doppler", "Infisical"], "also_reported_by": [], "takeaway": "Committing a .envshed.json lets the CLI resolve org, project and environment so `envshed run -- npm run dev` injects secrets into the process environment without writing a .env file, and any .env already tracked by git must be removed with `git rm --cached` and its secrets rotated.", "recommendation": {"advice": "Move secrets out of chat and model context into a secrets manager, commit only the non-secret config file, and rotate any keys already tracked in git history.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai", "markdown": "https://wpnews.pro/news/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai.md", "text": "https://wpnews.pro/news/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai.txt", "jsonld": "https://wpnews.pro/news/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai.jsonld"}}