Preview: @cloudflare/computer agent runtime
Cloudflare released an early preview of @cloudflare/computer, an open-source agent runtime that provides agents with dynamic compute orchestration between efficient isolates and full Linux containers, plus a virtual filesystem backed by SQLite for file operations and shell command execution.
We're releasing an early preview of @cloudflare/computer ↗, an open-source agent runtime that gives every agent its own computer. The runtime dynamically orchestrates between fast, efficient isolates and full Linux containers, so the agent always runs on the right compute primitive for the task at hand.
@cloudflare/computer provides a virtual filesystem backed by SQLite, which you can populate 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. All operations are gated, audited, and observed.
Install the package via npm:
npm install @cloudflare/computer
Instantiate a Workspace inside any 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,
});
}
Several execution backends are included or you can write your own:
- Isolate runtime — fast, horizontally scalable execution via
just-bashand Dynamic Workers, ideal for file manipulation and data processing. - Container runtime — full Linux environment via Cloudflare Containers, mounted through FUSE, for tasks that need native binaries, package managers, or a complete userland.
The AI SDK-compatible toolkit provides common agent tools (read, write, edit, ls, exec) and guides the model to choose the appropriate backend for each task.
For more examples, including a step-by-step tutorial, visit the @cloudflare/computer repository ↗.
Read the announcement blog post for more details: Your agent needs a computer, not a container ↗.
Source: original entry ↗
More from Cloudflare
Follow Cloudflare to get its new changes in your feed and email digest.
Cloudflare One Client for Windows hotfix - trusted certificate chains
A new GA release for Windows Cloudflare One Client is available, addressing an issue with building trusted certificate chains.
Cloudflare One Client for macOS - Trusted Certificate Chain Fix
A new GA release of the macOS Cloudflare One Client is available. This hotfix addresses an issue with building trusted certificate chains.
Cloudflare One Client for Linux
A new GA release of Cloudflare One Client for Linux is now available. This hotfix addresses an issue with building trusted certificate chains.