Ever Imagined an AI Agent With Its Own Computer? Cloudflare Just Made It Real!
Hey, it's Shii-chan! Today I've got a bigger announcement that should get agent builders excited.
Cloudflare ChangelogWhat was announced?
According to the Cloudflare Changelog (Agents / Workers category), there's now a preview release of @cloudflare/computer, an open-source agent runtime. True to its name, it gives every single agent its own "computer."
Why it matters
If you're running an agent that needs to read and write files, run shell commands, and work with Git — like a coding agent — picking the right execution environment gets tricky. A lightweight sandbox is fast, but it can't run native binaries or package managers. A full VM or container gives you all of that, but it's heavier and slower to spin up every time. @cloudflare/computer automatically switches between the two based on what the task actually needs. On top of that, every operation is gated, audited, and observed, so you're not just handing an agent unrestricted power — you keep it under control the whole time.
What changes
- Creating a
Workspaceinside a Durable Object is enough to give an agent a virtual filesystem and an execution runtime - The filesystem is backed by SQLite, and you can populate it from cloud storage, source control, or any files you choose
- Agents can read, write, and edit files, run shell commands, and interact with Git repositories
- Every operation is gated, audited, and observed, so you can grant an agent real power without losing control over it
Dive Deep
Installation is a single npm command.
npm install @cloudflare/computer
Instantiate a Workspace inside a Durable Object to give your agent a filesystem and execution runtime:
import { Workspace } from "@cloudflare/computer";
export class Agent {
workspace = new Workspace({
storage: this.ctx.storage,
});
}
There are two execution backends included, and you can write your own too:
- Isolate runtime — fast, horizontally scalable execution via just-bash and Dynamic Workers, ideal for file manipulation and data processing
- Container runtime — a full Linux environment via Cloudflare Containers, mounted through FUSE, for tasks that need native binaries, package managers, or a complete userland
There's also an AI SDK-compatible toolkit that ships with common agent tools — read, write, edit, ls, and exec — and it guides the model toward picking the right backend for each task.
Wrap-up
- Cloudflare released a preview of @cloudflare/computer, an open-source agent runtime
- It automatically switches between fast isolates and full Linux containers depending on the task
- A SQLite-backed virtual filesystem supports reading, writing, editing files, running shell commands, and Git operations
- Every operation is gated, audited, and observed, so agents can be given real power safely
- It installs with a single npm command and ships with an AI SDK-compatible toolkit
If you're building your own coding agent or operations agent, or you want to give an agent safe file and shell access, this is worth trying out this weekend!