# Cloudflare OS

> An open-source AI productivity environment built on Cloudflare Workers, where agents build per-user sandboxed apps under a capability-based security layer

- Category: Agents & Automation / Agent Frameworks & Builders
- Language: TypeScript
- Licence: Apache-2.0
- Repository: https://github.com/cloudflare/cloudflare-os
- Website: https://os.cloudflare.app
- Canonical page: https://ai-tldr.dev/tools/cloudflare-os/
- Updated: 2026-08-05

## In short

Cloudflare OS is an "operating system" for AI productivity that Cloudflare originally built for its own staff, from engineering through sales, and then released as open source. It sits in the Agent Frameworks & Builders category of the Agents & Automation tools and is open-source, written in TypeScript and licensed Apache-2.0.

## Overview

Cloudflare OS is an "operating system" for AI productivity that Cloudflare originally built for its own staff, from engineering through sales, and then released as open source. The name is used in two senses: an operating system for a company to be productive with AI safely enough that the security team can sleep, and an operating system for AI workloads in the sense that a traditional OS manages compute. It provides three things — an agent chat UI preloaded with knowledge of how your company operates, sandboxed application development, and a security framework called Gatekeepers. The stated intent is not that you run Cloudflare's instance but that you fork it into "Your Company OS".

The unit of software is a gadget: a private instance of a productivity app that belongs to one user. When you create a slide deck, the system does not call out to shared SaaS — it creates your own copy of the slide-deck software in its own sandbox. Two things follow. The app cannot leak your slides through a bug in someone else's instance, because the sandbox mediates all access; and you can freely modify the code, asking an agent to add a missing feature, because the blast radius stays inside your own instance.

Gatekeepers are the security layer, described as supercharged MCP servers. Introducing an agent or gadget to an external resource creates a Gatekeeper for that service: it wraps the native API in a clean Cap'n Web API, handles authorization such as OAuth, narrows access to the specific resource the user intended, logs every action for review, and puts a human in the loop on side effects. Its notable trick is asynchronous approval — the Gatekeeper simulates the outcome locally so the agent can keep queueing work, returning simulated results if the agent reads back, and the user approves or rejects in bulk later instead of blocking the agent mid-task. Each Gatekeeper is a separate Worker. The repository is version 2, a complete rewrite, and Cloudflare labels the August 2026 release early access with rough edges.

## What it does

- An agent chat UI grounded in company context, with GitHub and Google integrations
- Gadgets: per-user private instances of productivity apps, each in its own sandbox and freely modifiable by prompting an agent
- Gatekeepers, a capability-based security layer that wraps each external service in a Cap'n Web API, handles OAuth and narrows access to the intended resource
- Asynchronous human-in-the-loop approval — actions are simulated so the agent keeps working, and the user approves or rejects in bulk later
- Full action logging per gadget and agent for after-the-fact review
- Runs entirely on Cloudflare Workers, deployable into your own Cloudflare account or runnable locally on wrangler and workerd

## Getting started

The whole stack runs locally on wrangler and workerd, which is the fastest way to see what it does; deploying to your own Cloudflare account is the other path.

1. Run it locally

   Install pnpm, then run the local stack and open the app in a browser. This is a quick look at the product, not a production setup.

```bash
pnpm run-local
# then visit http://localhost:8787
```

2. Deploy to your own account

   The hosted deploy flow at os.cloudflare.app/deploy installs Cloudflare OS into your own Cloudflare account, which is where a real company instance belongs.

```text
https://os.cloudflare.app/deploy
```

3. Try the built-in blueprints

   The README suggests prompts that exercise different paths: the slides blueprint, an app built from scratch, and an interactive game.

```text
Make slides for my upcoming meeting with a customer.
Make a collaborative whiteboard app.
Make a tic tac toe game.
```

4. Connect an external system

   Attaching a GitHub repo or a Google Doc requires the matching integration to be configured; access then runs through that service's Gatekeeper, which logs actions and queues side effects for your approval.

```text
Make an issue dashboard for this GitHub repo.
Fix the typos in this Google Doc.
```

## When to use it

- Give non-engineers a safe way to build and modify their own internal tools by prompting an agent
- Ground an internal assistant in company systems while keeping every external action logged and approvable
- Replace shared SaaS instances of simple productivity apps with per-user sandboxed copies
- Fork a working reference implementation of capability-based agent security rather than designing one from scratch

## Version history

- 2026-08-05: Cloudflare open-sourced Cloudflare OS, the Apache-2.0 agent workspace it runs internally, so companies can deploy and customise it in their own Cloudflare account.
