Cloudflare Acquires Varlock to Secure AI Agent Environment Variables
Cloudflare acquires open-source toolkit Varlock to standardize environment variable validation and mitigate security risks for AI agents.
US cloud infrastructure company Cloudflare announced on December 2, 2026, that it has acquired Varlock, an open-source toolkit for managing environment variables and secrets. The acquisition aims to address the growing security risks associated with AI coding agents accessing sensitive configuration data. Varlock will remain open source under the MIT license and continue to be developed as a vendor-neutral tool.
The core of Varlock's approach is replacing the traditional .env.example file with a committed .env.schema file. This schema uses JSDoc-style decorator comments to declare types and validation rules, providing a single source of truth for application configuration. It also introduces a function syntax to securely load secrets from external vaults or encrypted local files, reducing the reliance on bespoke logic and plaintext storage.
Cloudflare stated that the rise of AI-powered development has amplified the fragility of traditional secrets management. Coding agents can inadvertently expose API keys or fall victim to prompt injection if they interact with unstructured environment variables. By integrating Varlock's first-principles approach into Cloudflare Secrets Store and its Developer Platform, the company intends to provide safer boundaries for human developers and their AI agents.
This move follows Cloudflare's recent acquisitions of Astro and VoidZero, reinforcing its strategy of supporting open-source developer tools. While the hosted version of Varlock will be redirected into Cloudflare's platform services, the team plans to push the .env.schema and @env-spec syntax as an open standard for broader industry adoption.