Cloudflare announced on 2 December that Varlock, the open-source tool for managing environment variables and secrets, is joining it. Varlock stays MIT-licensed and vendor-neutral, and the effort that would have gone into a hosted Varlock product moves to Cloudflare Secrets Store instead. The announcement doesn’t give a price or a headcount.
I installed Varlock 1.25.0, the current release, and ran it on throwaway projects. It validated a schema, masked secrets in logs, caught a hardcoded key and stopped a Worker from leaking one. It also showed where its protection ends, and I couldn’t get the new credential proxy to swap a key on the wire from my machine.
What Varlock is
Most projects keep their configuration in a .env file with no stated rules, next to a stale .env.example. Varlock replaces the example file with a .env.schema that’s committed to Git. Comments above each variable declare its type and rules, and a function syntax pulls values from a vault or an encrypted local file. The schema is what a coding agent can read: names, types, validation rules and descriptions, with the values kept elsewhere.

DMNO Inc. builds Varlock. Its README sums it up as “AI-safe .env files: Schemas for agents, Secrets for humans.” It has plugins for 1Password, Bitwarden, Dashlane, Doppler, Infisical, HashiCorp Vault, the AWS, Azure and Google Cloud secret stores and Kubernetes, among others, plus integrations for Next.js, Vite, Astro, Nuxt, Expo and Cloudflare Workers.
What Cloudflare said
The announcement is bylined to Theo Ephraim and Brendan Irvine-Broque, and its first-person voice is Ephraim’s. Cloudflare says Varlock will stay open source and committed to being a flexible toolkit with first-party plugins for popular vaults and frameworks. The roadmap carries on: better agentic workflows, languages beyond JavaScript, better native encryption, and team vaults in the style of SOPS with no external backend.
The part that changes is the hosted product. The post says the effort that would have gone into a hosted Varlock solution, which it notes was always going to be built on Cloudflare, is redirected into Secrets Store and into config and secret handling across the Developer Platform. It also wants .env.schema and the @env-spec syntax to become an open standard that other tools adopt.
The AI section of the post is a list of work in progress: credential brokering, OpenID Connect and bot identity, machine flows for issuing and rotating secrets, stronger boundaries and human approvals. Its closing line on the subject is “We may eventually get away from most long-lived secrets altogether.”
Another developer tool for Cloudflare
Cloudflare points to Astro and VoidZero as proof it keeps acquired open-source tools neutral. Astro’s team joined in January and VoidZero, the company behind Vite and Oxc, followed in June. In October the Deno team joined too, and Deno Deploy was given a shutdown date six months out. That’s the other thing a hosted product can face after an acquisition, and Varlock’s hosted product is the part that never shipped.

What I ran
Everything below ran on Linux with Node 22, Varlock 1.25.0 and wrangler 4.170.0, using fake Stripe-shaped keys. I didn’t put a coding agent through it. These are the CLI’s own checks.
Validation
I started with a schema of five variables: an environment flag, a port, a URL built from that port, a Stripe-style key that must start with sk_ and a database password with a minimum length. I set the port to the word eighty in the .env file. The load failed with exit code 1, named the port, and failed the URL too because it depends on the port. After I fixed the port, the load passed and printed the secrets masked.
npx varlock load

The terminal images in this piece are re-typeset from the real output I captured, with the text left as printed.
What redaction covers
varlock run starts a child process with the variables injected. When the child printed the Stripe key with console.log, the output showed sk followed by block characters. But the child itself held the real key. It measured 32 characters, it wrote the full value to a file when I asked it to, and it printed the key in base64 without any masking. Varlock redacts what the child prints. It doesn’t stop the child from holding the value, and a process that wants to leak a key can encode it first. That gap is what the credential proxy is meant to close.

Scanning for hardcoded keys
I left the key in a plaintext .env file with no .gitignore, then added a file that does what AI-generated code often does, pasting the key into a Stripe constructor.
npx varlock scan
It found both, matched against the real resolved values, and printed them masked. It exits with 1 when it finds anything, so it works as a gate in CI. It also has an –install-hook flag for a git pre-commit hook, which I didn’t run.

Agent mode, init and audit
For an existing project I ran varlock init –agent against a .env.example. It wrote a .env.schema, added Varlock to package.json and printed instructions for the agent that ran it. One line reads: “Schema file is safe to read, do not look directly at values in .env / .env.local files – tell user to edit those files if necessary.” The generated schema also contained a placeholder item marked to be deleted. varlock audit then compared the code to the schema and found that the code read SENTRY_DSN, which the schema didn’t declare. varlock load –agent prints plain JSON with sensitive values masked.
Local encryption
Varlock can also encrypt values on the device. varlock encrypt on my machine reported that no Secret Service was found and that TPM tools weren’t installed, then used a file-based backend. The output was a varlock(“local:…”) value to paste into a git-ignored file. The documentation says the file-based fallback has no biometric check, and that macOS and Windows use the Secure Enclave and TPM. I had neither.
Cloudflare Workers
I installed wrangler, varlock and the Cloudflare integration, set the nodejs_compat flag and swapped wrangler for varlock-wrangler. A dry-run deploy printed that it was deploying with Varlock, one var and one secret, and wrangler listed the bindings as hidden. In dev, a Worker that logged the Stripe key printed it masked. When I changed the Worker to return the key in its response body, the request came back as a 500 with a detected-leak error naming the variable.

The credential proxy
The proxy is the newest piece, and Varlock’s docs call it an early preview. You mark a secret with a proxy rule and a placeholder, then start the agent with varlock proxy run. The agent holds a placeholder that looks like a real key, and the proxy substitutes the real value on the wire for requests to the named host. I set up a rule for httpbin.org. The agent’s environment held the placeholder, which I confirmed by encoding the output past the redaction. But the request that reached httpbin.org carried the placeholder too, and the audit log was empty. The summary line counted the request as matched. I didn’t get the swap to happen.
My sandbox sends outbound traffic through its own egress proxy, and I didn’t isolate whether that stopped it. The docs say injection happens only over TLS verified against public certificate authorities.

Varlock’s own documentation is direct about the limits. The proxy runs as the same user as the agent, so on its own it raises the bar and isn’t a sandbox. Response scrubbing is described as defence in depth, because compressed or large bodies pass through unscanned. Local encryption protects against casual reading, and the docs say plainly that code already running as your user can unseal a TPM-bound value. Telemetry is on by default and can be switched off.
Where it sits in the market
Varlock isn’t a vault. It sits in front of one. The plugin list backs that up: 1Password, Doppler, Infisical and the cloud secret stores stay where the values live, and Varlock handles the schema, validation and delivery. What it displaces is the dotenv-style habit of a bare .env file plus an example file, and its docs include a migration guide from dotenv.
The AI angle isn’t unique to it. Doppler and Infisical both publish pages on keeping coding agents away from plaintext .env files, and both are vendors with products to sell. 1Password covers a different slice: signing agents in to websites without handing over passwords, and it published a five-step credential checklist for developers.
Cloudflare’s own Secrets Store is account-level secrets storage, currently in open beta and usable from Workers and AI Gateway. The obvious fit is a Varlock plugin that reads from it. Cloudflare hasn’t announced one.
What the announcement leaves out
The announcement doesn’t state a price, a headcount or a date for any Secrets Store feature, and it doesn’t name a body that would own @env-spec. The licence is MIT, which means anyone can fork Varlock regardless of what Cloudflare does next.
Source: Cloudflare, “Varlock joins Cloudflare”. Product details checked against Varlock’s documentation and the npm release.




