<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Envshed</title>
    <description>The latest articles on DEV Community by Envshed (@envshed).</description>
    <link>https://dev.to/envshed</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4285728%2F683da219-a49c-4b28-a793-95912fda976c.jpg</url>
      <title>DEV Community: Envshed</title>
      <link>https://dev.to/envshed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/envshed"/>
    <language>en</language>
    <item>
      <title>Stop sharing .env files over Slack: a practical setup for small teams (and AI coding agents)</title>
      <dc:creator>Envshed</dc:creator>
      <pubDate>Sun, 06 Dec 2026 03:28:46 +0000</pubDate>
      <link>https://dev.to/envshed/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai-coding-agents-2pjf</link>
      <guid>https://dev.to/envshed/stop-sharing-env-files-over-slack-a-practical-setup-for-small-teams-and-ai-coding-agents-2pjf</guid>
      <description>&lt;p&gt;&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;A new developer joins. Someone pastes a &lt;code&gt;.env&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;Here is a setup that removes the file from the loop for a small team, what it costs, and where the limits are.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should you look for in a tool?
&lt;/h2&gt;

&lt;p&gt;Five questions are enough to compare options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Where do the values live?&lt;/strong&gt; One place you control, not a file per laptop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can you separate environments?&lt;/strong&gt; Development, staging and production should not share one list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is there a CLI that fits your workflow?&lt;/strong&gt; If it takes five steps, people go back to pasting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is there an audit trail?&lt;/strong&gt; After a rotation, you want to know who read the new value.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How does an AI agent get values?&lt;/strong&gt; It should not need them in the chat to run your app.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What are the options?
&lt;/h2&gt;

&lt;p&gt;Prices below come from each vendor's own pricing page, checked on December 5, 2026. They change, so follow the link before you decide.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dotenvx&lt;/strong&gt; encrypts your &lt;code&gt;.env&lt;/code&gt; 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 (&lt;a href="https://dotenvx.com/pricing/" rel="noopener noreferrer"&gt;dotenvx.com/pricing&lt;/a&gt;). 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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Doppler&lt;/strong&gt; 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 (&lt;a href="https://www.doppler.com/pricing" rel="noopener noreferrer"&gt;doppler.com/pricing&lt;/a&gt;). It may fit a team that prefers per-seat billing and expects many machines or agents to read secrets.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Infisical&lt;/strong&gt; 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 (&lt;a href="https://infisical.com/pricing" rel="noopener noreferrer"&gt;infisical.com/pricing&lt;/a&gt;). 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.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Envshed&lt;/strong&gt;, 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 (&lt;a href="https://envshed.com/en#pricing" rel="noopener noreferrer"&gt;envshed.com&lt;/a&gt;, 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.&lt;/p&gt;

&lt;p&gt;For five people with machines in CI, the arithmetic differs by billing unit, so count your machines before you compare.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I move a team off &lt;code&gt;.env&lt;/code&gt; files with Envshed?
&lt;/h2&gt;

&lt;p&gt;These are the real commands. Replace the example names with yours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Import the file.&lt;/strong&gt; Run this in the app folder. It finds your &lt;code&gt;.env&lt;/code&gt; 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 &lt;code&gt;.env&lt;/code&gt; files.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx envshed@latest init
git add .envshed.json &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; git commit -m &lt;span class="s2"&gt;"Add .envshed.json"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If an imported file is tracked by git, &lt;code&gt;init&lt;/code&gt; warns you: its values are already in the repository history, so remove it with &lt;code&gt;git rm --cached&lt;/code&gt; and rotate those secrets at the provider. No tool can undo a leak that already happened.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Invite people instead of sending files.&lt;/strong&gt; An owner or admin sends the invite. It stays pending until the person signs in with that address.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;envshed member invite ana@example.com --role member
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Each person signs in once and runs the app.&lt;/strong&gt; Because &lt;code&gt;.envshed.json&lt;/code&gt; is committed, the CLI already knows the organization, project and environment. The values go into the process environment, and no &lt;code&gt;.env&lt;/code&gt; file is written.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm install -g envshed
envshed login
envshed run -- npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Need a file for a tool that insists on one? &lt;code&gt;envshed pull&lt;/code&gt; writes it, and it stops if it would overwrite changed values unless you pass &lt;code&gt;--force&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. For someone outside the team, use an expiring link.&lt;/strong&gt; A share link is a snapshot of the values you pick. It expires, it can be one-time, and the recipient needs no account.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;envshed share DATABASE_URL --expires 1h --burn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The decryption key sits after the &lt;code&gt;#&lt;/code&gt; 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 &lt;code&gt;--password&lt;/code&gt; for a second factor.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes when an AI agent is in the loop?
&lt;/h2&gt;

&lt;p&gt;The agent should run your app without reading the values. With Envshed the agent runs commands through &lt;code&gt;envshed run --redact&lt;/code&gt;, which replaces known secret values in the output with &lt;code&gt;[ENVSHED:KEY_NAME]&lt;/code&gt;. Masking is on by default when Claude Code launches the command and with &lt;code&gt;--oidc&lt;/code&gt;; elsewhere, use &lt;code&gt;--redact&lt;/code&gt; or set &lt;code&gt;ENVSHED_AGENT_MODE=1&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;envshed run --redact -- npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the agent lacks a key, it does not ask you to paste it. It asks through the MCP server or &lt;code&gt;envshed request STRIPE_KEY --reason "billing job"&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;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 &lt;code&gt;envshed run&lt;/code&gt;, run &lt;code&gt;envshed secret get&lt;/code&gt; or copy &lt;code&gt;.env&lt;/code&gt; to another name and read the copy. Limits that must hold belong on the server: roles and scoped tokens. After a session, &lt;code&gt;envshed scan&lt;/code&gt; searches local agent history for your vault's values and for known token formats, and never shows a value.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the checklist?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] No &lt;code&gt;.env&lt;/code&gt; file in chat, in a wiki or in git history. If one was committed, rotate those secrets.&lt;/li&gt;
&lt;li&gt;[ ] One source of truth per environment, with access by role.&lt;/li&gt;
&lt;li&gt;[ ] New people join by invite, not by file.&lt;/li&gt;
&lt;li&gt;[ ] Agents run commands through &lt;code&gt;envshed run --redact&lt;/code&gt; (or your tool's equivalent) and ask for missing keys through a link.&lt;/li&gt;
&lt;li&gt;[ ] CI uses a short-lived identity such as OIDC instead of a long-lived token.&lt;/li&gt;
&lt;li&gt;[ ] You know who read a value after a rotation. Envshed's audit log is tamper-evident: each entry's hash covers the previous one, so an edited entry is detected.&lt;/li&gt;
&lt;li&gt;[ ] You wrote down what you gave up, such as self-hosting or open source, so the choice is deliberate.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The setup guide is at &lt;a href="https://envshed.com/en/guides/share-env-with-team" rel="noopener noreferrer"&gt;envshed.com/guides/share-env-with-team&lt;/a&gt;, and the CLI reference is at &lt;a href="https://docs.envshed.com" rel="noopener noreferrer"&gt;docs.envshed.com&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>devops</category>
      <category>security</category>
      <category>productivity</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
