Varlock brings its environment-config toolkit under Cloudflare's roof

Varlock, the open-source toolkit for managing environment variables and secrets, is joining Cloudflare. The project stays MIT-licensed, actively developed and vendor-neutral, and the team is framing the move as an investment in an open standard for environment configuration — one that will also feed back into Cloudflare Secrets Store and the wider Developer Platform.

Why a schema for environment variables

Working out which variables an application needs typically means stitching together a stale .env.example, a README, custom validation code and repository comments. Real API keys sit in plaintext .env files on laptops, travel through chat messages and get copied into multiple dashboards; rotation is postponed until something leaks. Coding agents, the team argues, turned this fragile routine into an immediate security risk.

Varlock replaces .env.example with a committed .env.schema file. JSDoc-style decorator comments such as # @required declare types and rules, and a new function syntax loads secrets securely from external vaults or encrypted local files:

# @plugin(@varlock/1password-plugin)
# ---
# @type=url
API_URL=https://api.example.com

# @required @sensitive @type=string(startsWith=sk_)
# @docs(https://docs.stripe.com/keys)
STRIPE_SECRET_KEY=op("op://prod/stripe/secret-key")

The schema layer delivers validation, type safety, declarative and secure loading, and a single source of truth, plus guardrails that let agents work with environment variables without exposing values.

What changes — and what doesn't

Most of the roadmap is unchanged: better agentic workflows, deeper language support beyond JavaScript, improved native encryption utilities, and SOPS-style team vaults that need no external backend. Varlock remains an open, flexible toolkit with first-party plugins for popular secret vaults and frameworks. Cloudflare's earlier acquisitions of Astro and VoidZero are cited as evidence that the company supports open-source developer tools and stays neutral.

The one redirected effort is hosting: work earmarked for a hosted Varlock solution (which the team says would have been built on Cloudflare anyway) now goes into Secrets Store and into config and secret handling across Cloudflare's platform.

The .env.schema format and the @env-spec syntax are intended to outgrow Varlock itself and become an open standard adopted across a wide range of technologies. That requires participation from outside Cloudflare, and the team is inviting interested parties to get in touch.

Secrets under agents and AI development

These problems predate AI, but agent-driven development has amplified them: more code and more secrets, new exploit classes such as prompt injection, faster traditional vulnerabilities and supply-chain attacks, and a wave of builders meeting API keys for the first time. The team's position is that secrets management, identity and access need rethinking for an agentic era. Items in progress include credential brokering, OpenID Connect (OIDC) and bot identity, better machine flows for issuing and rotating secrets, stronger guardrails and boundaries, and human-in-the-loop approvals. Getting away from most long-lived secrets is a possible endpoint, but a long and bumpy road.

Getting started

Existing users can keep filing issues and pull requests on GitHub. Newcomers can follow the Cloudflare Workers integration guide or point their agent at the docs. Further updates are promised for both the Varlock project and Cloudflare Secrets Store in the coming months.