Varlock joins Cloudflare to advance open environment-variable schema standards
Varlock, the open-source toolkit for managing environment variables and secrets, is joining Cloudflare. The project will continue active development under the MIT license and remain vendor-neutral for all users. Together, the teams are investing in an open standard for environment configuration and bringing Varlock’s first-principles approach to Cloudflare Secrets Store and the rest of Cloudflare’s Developer Platform. This move follows Cloudflare’s recent acquisitions of Astro and VoidZero, which demonstrated a track record of supporting open-source developer tools for the common good.
Traditional environment-variable management often relies on stale .env.example files, repository READMEs, custom validation code, and scattered comments, leaving sensitive API keys exposed in plaintext on developer laptops, chat messages, and multiple dashboards. Rotating keys becomes a task teams postpone until a leak occurs. Varlock replaces .env.example with a committed .env.schema file that uses JSDoc-style decorator comments to declare types and rules, and a new function syntax to securely load secrets from external vaults or encrypted local files, providing validation, type safety, and a single source of truth.
The new schema layer adds significant value by enabling secure declarative loading, type safety, and guardrails that prevent secrets from being leaked to agents or multiple dashboards. All of this benefits both humans and their agents by giving agents a safe way to interact with environment variables without exposing values. The approach is especially valuable for teams managing numerous secrets across complex applications.
Varlock is not going anywhere; with the recent acquisitions of Astro and VoidZero (the team behind Vite, Oxc, and more), Cloudflare has a proven track record of supporting open-source dev tools for the common good and staying neutral. Varlock will remain open source (MIT license) and is committed to being a flexible open toolkit, with first-party plugins for the most popular secret vaults and frameworks. Much of the Varlock roadmap will not change, including better agentic workflows, deeper language support outside of JavaScript, better native encryption utilities, and SOPS-style team vaults without any external backend.
The effort that would have gone into a hosted Varlock solution, which was obviously going to be built on Cloudflare, will now be redirected into Cloudflare Secrets Store and improving config and secret handling across Cloudflare’s platform. The teams have big plans in store and cannot wait to ship them. Additionally, the team wants .env.schema and the @env-spec syntax to outgrow Varlock itself and be pushed as an open standard integrated into a wide range of technologies, requiring help from outside Cloudflare.
While these problems are not new, the rise of agents and AI-powered development has amplified them to the point they cannot be ignored. Using AI introduces whole new classes of exploits, like prompt injection, while also accelerating the pace of traditional vulnerabilities and supply chain attacks. A new wave of builders using AI tools is encountering API keys for the first time. This means that secrets management, identity, and access all need to be rethought entirely for this new agentic era. Credential brokering, OpenID Connect (OIDC) and bot identity, better machine flows for issuing and rotating secrets, more guardrails and stronger boundaries, and human-in-the-loop approvals are just some of the things the teams are working on. The aim is to help the industry get there smoothly, though it is a long, bumpy road ahead.
Source credits
By Theo Ephraim from Cloudflare Blog. Edited by SetuGeo.