🤖 AI Hot

Cloudflare OS: Open-Source Agent Workspace for Teams

A
Alex Chen

Cloudflare open-sourced their internal AI agent platform on August 5, 2026. They’re calling it Cloudflare OS, and despite the name, it’s not an operating system. It’s an agent workspace — a platform where teams can build apps, automate workflows, and run AI agents, all with access controls that don’t require handing credentials to the LLM.

I’ve been digging through the repo and the architecture docs since the release. What Cloudflare built internally and then open-sourced is worth understanding because it solves a problem that most enterprise AI agent deployments are currently fumbling: how do you let agents act on internal systems without giving them the keys to the kingdom?

The architecture: three layers

Cloudflare OS runs entirely on Cloudflare Workers. If you know Workers, you know the pitch: isolate-based compute at the edge, cold starts measured in milliseconds, pay-per-request pricing. What Cloudflare OS adds is a layered architecture with three distinct components.

The first is the agent workspace itself — a web UI where employees can create documents, build apps, and interact with agents. The interface is clean, deliberately simple. Agents can write and execute code inside isolated sandboxes, and every action an agent takes is recorded and attached to its workspace.

The second layer is Gatekeepers. Every external system that Cloudflare OS connects to — databases, APIs, internal tools, SaaS platforms — gets a Gatekeeper, which is itself a Cloudflare Worker. The Gatekeeper holds the credential. The agent never sees it. When an agent wants to query a database or call an API, it sends a request to the Gatekeeper, which authenticates, authorizes, and proxies the call. The agent gets back data, not access.

The third layer is the sandboxed application platform. When agents build apps inside Cloudflare OS, those apps run on Dynamic Workers — ephemeral, isolated runtime environments. A non-technical user can ask an agent to “build me a dashboard for our Q3 sales data” and the agent generates code, deploys it to a Dynamic Worker, and serves the result. If the generated code has a security hole, it’s contained. It can’t reach production systems, internal networks, or other users’ data.

Why the Gatekeeper pattern matters

Most enterprise AI agent deployments today follow one of two patterns, and both are broken.

Pattern one: give the agent a service account with broad permissions. The agent can do whatever it wants, including things nobody intended. This is how you end up with an agent that was supposed to summarize support tickets accidentally deleting the customer database because a prompt somewhere got misinterpreted.

Pattern two: build a custom middleware layer that maps agent intents to specific API calls with whitelists. This works but takes months to build and breaks every time someone adds a new internal tool. It’s also the kind of infrastructure that only large engineering organizations can afford to build and maintain.

Cloudflare’s Gatekeeper approach is a third option. Each Gatekeeper is a small, self-contained Worker that knows how to talk to one specific system. The credential lives inside the Gatekeeper’s environment variables. The agent sends natural language requests to the Gatekeeper — “get me the last 30 days of sales data for the enterprise tier” — and the Gatekeeper translates that into the appropriate API call, executes it, and returns structured data.

The agent never touches credentials. It never makes raw API calls. It can’t, because the network boundary is enforced at the platform level. This is zero-trust for agents, and it’s the first open-source implementation I’ve seen that doesn’t feel like a prototype.

How they use it internally

Cloudflare has been dogfooding this platform for a while. According to their blog post, a large portion of their workforce — engineering, sales, support, marketing — uses Cloudflare OS daily.

One internal use case they described: the sales team uses agents to generate customized proposals. The agent pulls CRM data through a Gatekeeper, references product documentation, and generates a draft. The Gatekeeper ensures the agent can only read specific CRM fields — it can’t modify deals, can’t see other reps’ pipelines, can’t access compensation data.

Another use case: the engineering team uses Cloudflare OS to build internal tools. An engineer describes a dashboard they want, the agent generates it, and it deploys to a Dynamic Worker. If the generated code has a bug, the sandbox contains it. If the engineer wants to productionize it, they export the code and go through normal review.

This pattern — agents as internal tool builders, not autonomous decision-makers — is where I think the real enterprise value lives right now. Autonomous agents making business decisions is still too risky for most organizations. Agents that help employees build things faster, with guardrails, is a much more practical starting point.

Running it yourself

Cloudflare OS is self-hostable. You deploy it to your own Cloudflare account, connect it to your internal systems through Gatekeepers, and shape it around your organization’s terminology and policies. The code is on GitHub under what appears to be a permissive license, though I’d verify the exact terms before commercial deployment.

The deployment model matters because it means your data stays in your infrastructure. Agents process information inside your Workers account. Gatekeepers run on your edge. Nothing routes through Cloudflare’s servers in a way that exposes your internal data to a third party. For organizations with compliance requirements — healthcare, finance, legal — this is the difference between “we can use this” and “legal will never approve this.”

Setup requires some Cloudflare platform knowledge. You’ll need to configure Workers, set up Access for authentication, and write Gatekeepers for each system you want to connect. The repo includes templates for common integrations — Google Workspace, Slack, Salesforce, GitHub — but connecting to a custom internal API means writing a Gatekeeper Worker from scratch. That’s a few hours of work per integration, not a weekend project.

What’s missing

The platform is two days old as I write this, so some gaps are expected. The documentation is thin — there’s a README, a blog post, and some architecture notes, but no comprehensive guide for building custom Gatekeepers or debugging agent behavior. The community hasn’t had time to produce tutorials or best practices.

The agent framework itself is functional but basic. Agents can write code, call Gatekeepers, and generate documents. They don’t have native support for multi-step planning, reflection, or tool composition patterns that more advanced agent frameworks provide. If you want an agent that breaks down a complex task into subtasks and executes them in order, you’ll need to build that yourself on top of the platform. That said, for the internal tool-building use case Cloudflare is targeting, basic agents that follow instructions are often exactly what you want.

There’s also no built-in evaluation framework. How do you know if your agent is doing the right thing? How do you catch regressions when you update prompts or Gatekeeper behavior? For now, you’re relying on human review of agent output and the audit trail that Cloudflare OS automatically maintains. That’s fine for low-stakes internal tools. It’s not sufficient for anything customer-facing.

Who should adopt this

If your organization is already on Cloudflare and you’ve been wanting to experiment with AI agents internally, Cloudflare OS is the most practical starting point I’ve seen. The deployment model aligns with existing Cloudflare infrastructure. The Gatekeeper pattern maps to security reviews in a way that “just give the agent an API key” doesn’t. And because it’s open source, you can inspect exactly what’s happening rather than trusting a vendor’s assurances.

If you’re a startup that wants to give non-technical team members the ability to build internal tools without hiring a frontend engineer for every dashboard, the Dynamic Workers model is genuinely useful. I’ve seen teams spend weeks building internal dashboards that an agent could generate in minutes, and Cloudflare OS makes that workflow safe enough to actually try.

If you’re building an agent platform yourself, the architecture is worth studying even if you don’t deploy. The Gatekeeper pattern, the sandboxed execution model, the per-observation access control — these are design decisions that every agent platform is going to need to make, and Cloudflare has battle-tested them internally before open-sourcing.

Who should wait

If your organization has zero Cloudflare footprint, the setup cost is higher. You’ll need to onboard onto Workers, understand Access, and configure DNS — not impossible, but not trivial either. If you’re already on AWS Lambda or Vercel, the switching cost may not justify the benefit.

If you need an agent that handles complex, multi-step reasoning with autonomous decision-making, Cloudflare OS isn’t that yet. It’s an agent workspace, not an agent framework. The agents it runs are relatively simple — they generate code, they query systems through Gatekeepers, they produce documents. If your use case is “autonomously manage our cloud infrastructure,” you’re looking for something else entirely.

Why this release matters

What strikes me about Cloudflare OS isn’t the technical novelty — Workers, isolate-based sandboxing, and zero-trust access patterns are all established Cloudflare products. It’s that Cloudflare open-sourced something they use internally and made it deployable by anyone.

That’s a different strategy from what we’ve seen from most enterprise AI platform launches. Microsoft Copilot, Google Vertex AI Agent Builder, Salesforce Agentforce — these are proprietary, API-metered, and designed to increase platform stickiness. Cloudflare OS is open source, self-hosted, and designed to work with whatever infrastructure you already have.

There’s a pragmatic logic to this. Cloudflare doesn’t make money from AI API calls — they make money from Workers, from Access, from their network. If Cloudflare OS drives more organizations onto Workers, that’s good for their business. If it becomes the default way teams deploy internal AI agents, even better. The open-source play isn’t altruism, but the incentives happen to align with what developers actually want.

I also think the timing is sharp. The enterprise AI agent market is in that chaotic phase where everyone knows agents are coming but nobody has figured out the security model. Cloudflare shipped an opinionated answer — agents never see credentials, every access goes through a Gatekeeper, everything runs in isolated sandboxes — and made it free to adopt. That’s going to force competitors to explain why their approach is different, and just saying “trust us” won’t cut it anymore.

I don’t know if this will become the default way enterprises deploy AI agents. But it’s the most practical answer I’ve seen to the question “how do we let agents access internal systems safely?” And if you’re building anything that involves agents and enterprise data, you should understand how it works.

Disclosure: CarCare Guide is reader-supported. When you buy through links on our site, we may earn an affiliate commission at no extra cost to you. Learn more.
A
Alex Chen