Varlock Joins Cloudflare: Open-Source Secrets Tool Stays MIT-Licensed, Hosted Plans Shift to Secrets Store
On December 2, 2026, Cloudflare announced that Varlock, an open-source tool for environment variables and secrets, is joining the company. Cloudflare says Varlock will stay MIT-licensed, vendor-neutral and actively developed, while resources planned for a hosted version move to Cloudflare Secrets Store.
News date: About 6 min read
Contents
On December 2, 2026, Cloudflare announced on its official blog that Varlock, an open-source toolkit, is joining Cloudflare. Varlock manages "environment variables" (configuration values a program reads at runtime) and "secrets" (data that must not leak, such as API keys and passwords). Cloudflare says Varlock remains open source under the MIT license, in active development and vendor-neutral (not tied to Cloudflare's own products), and is available to use now, but it did not disclose the deal's price or terms. Teams that keep API keys in .env files (plain-text files holding configuration values), especially when AI coding agents take part in development, should pay attention to this change.
What is Varlock, and how does it differ from the traditional .env approach?
According to Cloudflare, finding out which environment variables an application needs often means piecing together clues from an outdated .env.example, a README, custom validation code and scattered comments. Sensitive API keys sit in plain-text .env files on developers' laptops, get passed around in chat messages, and are copied into multiple dashboards. Cloudflare notes that rotating keys (replacing them with new ones periodically) therefore often gets put off until something goes wrong.
Varlock replaces .env.example with a .env.schema file committed to Git. A schema here is a file that describes which settings exist and what they must look like. It uses JSDoc-style decorator comments (a way of marking up code comments), such as # @required, to declare types and rules, and new function syntax to load secrets safely from external vaults or encrypted local files. Cloudflare's example uses a 1Password plugin and marks STRIPE_SECRET_KEY as @required @sensitive, restricted to strings starting with sk_.
Cloudflare says this layer of structure brings validation, type safety (checking in advance that each value is correctly formatted), declarative secure loading and a single source of truth (one place that defines every setting). It also provides extra guardrails so agents can interact with environment variables without leaking their values.
Will Varlock's open-source status and roadmap change after the acquisition?
Cloudflare says Varlock will remain open source (MIT license) and aims to be a flexible, open toolkit, continuing to offer first-party plugins for popular secrets vaults and frameworks. Cloudflare also points to its recent acquisitions of Astro and VoidZero (the team behind Vite, Oxc and others) as evidence of a record of supporting open-source developer tooling and staying neutral.
Cloudflare says most of the roadmap is unchanged, including better agent workflows, deeper support for languages beyond JavaScript, better native encryption tooling, and a SOPS-style team vault that needs no external backend. SOPS is an approach that stores encrypted configuration files directly inside a project. However, the effort that would have gone into a hosted Varlock will instead shift to Cloudflare Secrets Store and to improvements in how the Cloudflare platform handles configuration and secrets.
| Area | Cloudflare's statement |
|---|---|
| License and governance | Stays open source (MIT) and vendor-neutral |
| Roadmap | Agent workflows, non-JavaScript language support, native encryption tooling, SOPS-style team vault |
| Hosted Varlock | Resources shift to Cloudflare Secrets Store and the platform as a whole |
| Format standardization | Wants .env.schema and @env-spec to become an open standard; needs outside help |
| Plugins | First-party plugins for popular vaults and frameworks continue |
Why do AI agents make secrets management more urgent?
Cloudflare says AI-assisted development produces more code and more secrets, brings new kinds of attacks such as prompt injection (hiding instructions in content to trick an AI into following them), and speeds up traditional vulnerabilities and supply-chain attacks. A new group of developers is also handling API keys for the first time. Cloudflare argues that secrets management, identity and access all need rethinking for the agent era, and lists things it is working on: credential brokering, OIDC (an identity authentication standard) and bot identity, better secret issuance and rotation, more guardrails and stronger boundaries, and human-in-the-loop approvals. Cloudflare also says that in the long run we may be able to move away from most long-lived secrets (keys that go unchanged for long periods), but the road is long.
Where do you start if you want to try Varlock?
Cloudflare suggests the Cloudflare Workers integration guide, or simply letting an agent read the Varlock documentation to get started. Cloudflare also says more updates for Varlock and Cloudflare Secrets Store are coming in the next few months, and encourages people to follow @theozero, @cloudflaredev and @varlockdev on X and to join the Varlock Discord.
Frequently asked questions
Will Varlock stay open source after the acquisition?
Cloudflare says Varlock will remain open source (MIT license), keep being actively developed and stay vendor-neutral. Cloudflare did not mention any pricing arrangements.
Will Varlock be integrated with Cloudflare Secrets Store?
Cloudflare says it will bring Varlock's first-principles approach into Cloudflare Secrets Store and its developer platform, and will redirect the effort once meant for a hosted Varlock to Secrets Store. Specific features and timing have not been announced.
What problem does Varlock's .env.schema solve?
Per Cloudflare, it is a schema file you commit to Git that declares variable types and rules. It provides validation, type safety and a single source of truth, and can load secrets from external vaults or encrypted local files, replacing outdated .env.example files and scattered documentation.
I already use Varlock. Do I need to change anything now?
Cloudflare says most of the roadmap is unchanged. Varlock stays MIT-licensed and keeps first-party plugins, and Cloudflare encourages users to keep reporting issues and submitting changes on GitHub.
Found this guide helpful? Share it with someone who needs it
Google Cloud Gets NATO D32 Approval for NATO Restricted Workloads (In-Scope Services Only)
Google Cloud says Spain's ONS and CCN approved it under NATO D32 to support NU and NR workloads on in-scope Google Cloud services, with NATO Data Boundary controls.
AMD and HPE Expand Partnership: HPE Ships Helios Racks, Four ProLiant Gen13 Servers Use 6th Gen EPYC
NVIDIA Unveils Nemotron 4 Open Model Plans: Super Due Early 2027, Nemotron 3.5 Decision Set for December 15
Amazon Ergo Open-Weights Coding Model: 1.1 Trillion Parameters, Live on Bedrock, Downloadable on Hugging Face
Sources
Compiled from the references and verification dates listed above; fares, schedules, product features, and terms can change, so please confirm the latest details on the relevant official website before travelling, booking, or purchasing.