Cloudflare Buys Varlock to Keep Secrets Away From Coding Agents
Cloudflare has acquired the team behind Varlock, an open-source .env toolkit built so AI coding agents can work on an app without seeing its real API keys.
By Anish Prashun · · 6 min read · Developer Tools
Table of Contents
Cloudflare has acquired the team behind Varlock, a small open-source toolkit for environment variables and secrets, built so AI coding agents can work on an app without reading its real API keys. The deal is small, but the problem it targets is not. Every team that lets an agent loose in a repository with a plaintext .env file has a credential leak waiting to happen, and Cloudflare is betting that secrets handling becomes a platform feature rather than a chore each team solves alone.
What happened
On 2 December 2026, Cloudflare published “Varlock is joining Cloudflare”, written by Varlock creator Theo Ephraim and Brendan Irvine-Broque, whom The New Stack identifies as Cloudflare’s senior director of product. Neither the post nor The New Stack’s report gives a price.
The commitments in the announcement:
- Varlock stays open source under the MIT license and vendor-neutral, with first-party plugins for popular secret vaults and frameworks. The post says plainly: “Varlock isn’t going anywhere.”
- Varlock had not launched a hosted product. The work that would have gone into one now goes into Cloudflare Secrets Store, which The New Stack describes as a central service for storing and sharing credentials across applications, launched in April last year.
- Cloudflare lists future directions for secrets in the AI era: credential brokering, OpenID Connect (OIDC) and bot identity, better machine flows for issuing and rotating secrets, stronger guardrails, and human-in-the-loop approvals. The post gives no dates and says more Secrets Store news will come “in the coming months”.
The New Stack adds background. DMNO, the company behind Varlock, was founded in 2024 by Ephraim and Phil Miller, and released Varlock as a simpler, .env-based successor to its first configuration tool. Miller left in September. Varlock already had a Cloudflare Workers integration from March, and early integrations for Vite and Astro.
That last detail matters because of who now owns those projects. Cloudflare acquired the Astro team in January, VoidZero (the company behind Vite, Vitest, Rolldown and Oxc) in June, and Deno in October. The New Stack notes that Deno’s standalone runtime is being wound down, which is worth remembering when reading any “stays open source” promise. Full disclosure: this blog runs on Astro.
Why it matters
The announcement names the shift directly: “Coding agents turned this fragile chore into an immediate security risk.”
Before agents, a plaintext .env file on a laptop was a quiet risk. It leaked when someone committed it, pasted it into chat or left it in a log. Now there is a new reader sitting in that folder. A coding agent opens files to build context, runs commands that print the environment, reads stack traces and test output, and sends all of it to a model provider. Any of those steps can carry a live key out of the machine. Prompt injection makes it worse, since a malicious README or dependency can ask the agent to read and send secrets on purpose.
The winners here are teams already on Workers, who get a secrets story that fits how they now write code. Standalone secrets startups lose a little room, because a large cloud platform now backs free developer-side tooling that feeds into its own secrets service. Cloudflare’s Steve Faulkner told The New Stack the goal is “the best end-to-end solution for building and deploying applications, for both humans and agents.” Secrets are an obvious gap in that picture.
How Varlock keeps keys away from agents
Varlock separates the description of your config from its values, and then tries to stop the values from showing up where they shouldn’t.
- A schema instead of an example file. You commit a
.env.schemafile in place of the usual.env.example. It lists each variable, its type, validation rules and decorators such as@requiredand@sensitive. An agent can read it and know exactly what the app needs, without seeing a single real value. - Values come from a vault. The schema can say where a secret lives, for example in 1Password, so the real key is fetched at runtime instead of sitting in plaintext on disk.
varlock runinjects the resolved values into any process, so it isn’t limited to JavaScript. - Leak checks. Varlock’s site describes redacting sensitive values from logs and console output, detecting leaks in client bundles and server responses, and a
varlock scancommand you can run as a git hook. - A credential proxy. This is the agent-specific piece. You start an agent through
varlock proxy run -- claudeand mark secrets with@proxy(domain=...). The agent gets placeholder keys. When it makes a request to an approved host, the proxy checks that host’s TLS identity and swaps in the real key on that connection only. The docs put it this way: “Secrets are injected only onto connections whose TLS identity is verified against public CAs.”
The proxy docs are honest about the limits, and I’d read them before relying on it. It is labelled an early preview with an unstable API. It runs as the same user as the agent and is not a sandbox, so a determined agent could reach the secret’s source directly. Response scrubbing only covers small, uncompressed text bodies. Clients that ignore proxy settings or pin their own certificates go around it. In the default permissive mode, the agent can still connect anywhere.
My take
I think this is the right problem and a sensible acquisition, and I’m glad the founders were candid about the proxy’s limits.
Placeholder credentials with injection at the network edge are the pattern I trust most for agents. Building an agent platform at Assistable AI, the rule I keep coming back to is that the model should never hold anything it could be tricked into repeating. A key the agent never sees cannot leak through a prompt, a log or a transcript. That is the same instinct behind the client-side encryption and key management work at BlockWill: keep the secret on the narrowest path possible, and make every other component work with a reference to it.
Where I’m less convinced is the “stays neutral” promise. Astro and Vite are healthy so far, but Deno’s runtime is being wound down, and Cloudflare is the one deciding which projects are “complementary”. Faulkner’s explanation is reasonable. Still, the hosted secrets product is now Cloudflare’s, and the open toolkit’s best integrations will likely point there. I’d use Varlock for the schema and leak checks on any platform, and treat the Secrets Store tie-in as a Cloudflare product decision, not a standard.
The longer goal in the post, moving away from long-lived secrets, is the real fix. Short-lived, scoped credentials issued per task would make most leaks boring.
What to do about it
For builders using coding agents:
- Check what your agent can read today. If a
.envwith production keys sits in the repo folder, assume its contents may already have reached a model provider. - Commit a schema or example file, and load real values from a vault at runtime. Varlock does this; so does any vault CLI with a
runwrapper. - Give agents development keys with tight scopes and spending limits, never production ones.
- If you try Varlock’s proxy, pair it with a container or VM, use strict egress, and pin the version, as the docs advise.
For teams:
- Treat agent sessions like a new class of CI job: separate credentials, short lifetimes, and logs that record which key was used without recording its value. My notes on audit logs after redaction cover why that last part is harder than it sounds.
- Rotate anything that has ever lived in a plaintext
.envon a laptop where an agent has run.
What to watch next
- Secrets Store announcements. Cloudflare promised news “in the coming months”. Credential brokering and OIDC-based bot identity would be the meaningful ones.
- Vite+ integration. Ephraim told a developer on X he would be talking with the Vite+ team soon. Native support there would put schema-based config in front of a large share of JavaScript projects.
- Proxy leaving preview. A stable API, plus sandbox defaults, would make it usable for teams beyond early adopters.
- Varlock’s non-Cloudflare plugins. If they keep getting the same attention as the Workers integration over the next year, the neutrality promise is holding.
Sources
- Varlock is joining Cloudflare · Cloudflare Blog
- Cloudflare's open source shopping spree has netted Astro, VoidZero, and Deno. Now it's going for secrets management. · The New Stack
- Credential proxy · Varlock
- Varlock - AI-safe .env files · Varlock
Software engineer and engineering lead with 7+ years building AI platforms, voice systems and privacy-first products. Publishes independent research on AI agent reliability. Opinions are my own.
- cloudflare
- varlock
- secrets management
- ai coding agents
- open source