<?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: Orel Damari</title>
    <description>The latest articles on DEV Community by Orel Damari (@oreldamari).</description>
    <link>https://dev.to/oreldamari</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%2F4276792%2Fa54fd567-e49a-47c5-8bca-8672edad5620.jpg</url>
      <title>DEV Community: Orel Damari</title>
      <link>https://dev.to/oreldamari</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oreldamari"/>
    <language>en</language>
    <item>
      <title>Your coding agent doesn't need your whole .env</title>
      <dc:creator>Orel Damari</dc:creator>
      <pubDate>Tue, 01 Dec 2026 15:37:13 +0000</pubDate>
      <link>https://dev.to/oreldamari/your-coding-agent-doesnt-need-your-whole-env-4dof</link>
      <guid>https://dev.to/oreldamari/your-coding-agent-doesnt-need-your-whole-env-4dof</guid>
      <description>&lt;p&gt;Most coding-agent setups end the same way: the agent runs with every key in your &lt;code&gt;.env&lt;/code&gt;, for as long as the session lives. A preview builder that needs two staging variables for ten minutes ends up holding your production keys indefinitely.&lt;/p&gt;

&lt;p&gt;I built &lt;a href="https://envs.ai" rel="noopener noreferrer"&gt;EnvsAI&lt;/a&gt; to make the opposite the default: &lt;strong&gt;a worker gets only the env vars it needs, for one job, and you can see every read.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The flow
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Put your variables in an EnvsAI project, split by environment (development, staging, production).&lt;/li&gt;
&lt;li&gt;The orchestrator (or the agent itself) asks for named keys and a lifetime:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node .envsai/envs-access.mjs request preview-builder DATABASE_URL,REDIS_URL 15
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;You approve the request in the Agents page. For sensitive variables you can require a code from your authenticator app.&lt;/li&gt;
&lt;li&gt;The worker runs with exactly those two values injected into its process. Nothing is written to disk:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;node .envsai/envs-access.mjs run-approved REQUEST_ID -- python worker.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;When the command exits, the grant is revoked. It also expires on its own.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What you get as the owner
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;An activity feed per project&lt;/strong&gt;: which credential read which variable, when, and from which environment.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One-time delivery for protected values&lt;/strong&gt;: a second read of a protected key is denied (HTTP 403) and shows up in the feed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One-click revoke&lt;/strong&gt; for any grant.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;p&gt;From a repository root with Node.js 20+:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSLo envs-init.mjs https://envs.ai/downloads/envs-init.mjs
node envs-init.mjs --project preview --environment staging
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It reads names from &lt;code&gt;.env.example&lt;/code&gt;, writes the project connection under &lt;code&gt;.envsai/&lt;/code&gt;, and gives you a runner. There are recipes for Node.js, Python, Go, Java, .NET, Ruby, PHP and Rust, plus Jenkins and GitHub Actions. An MCP server lets agents discover which keys exist without ever seeing values.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it doesn't do (yet)
&lt;/h2&gt;

&lt;p&gt;Once a value is delivered to a worker, the worker has it. Today EnvsAI limits &lt;em&gt;which&lt;/em&gt; values and &lt;em&gt;for how long&lt;/em&gt;, and records every read. Next on the roadmap: connectors, where the agent gets a short-lived EnvsAI token and EnvsAI adds the real API key to the outgoing request, so the agent never holds the secret at all.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;Free for 2 projects, $9/month for 25 projects and reusable grant templates: &lt;a href="https://envs.ai" rel="noopener noreferrer"&gt;envs.ai&lt;/a&gt;. The &lt;a href="https://envs.ai/agent-secrets.html" rel="noopener noreferrer"&gt;agent guide&lt;/a&gt; has every command.&lt;/p&gt;

&lt;p&gt;I'd love feedback, especially from anyone running several agents against shared staging environments. What would you need before you'd trust a tool like this?&lt;/p&gt;

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