该介绍目前仅提供英文版本。
Overview
Cloudflare Computer is a virtual filesystem that lives inside a Durable Object. The Durable Object holds the authoritative state in SQLite and exposes a pluggable execution surface through workspace.runtime, so an AI agent gets a persistent workspace it can run code in.
Execution backends
- Container — projects the SQLite state into a sandbox container as a real FUSE mount; a daemon (
computerd) syncs changes back over a capnweb RPC channel. Full Linux userland, real binaries and network. - Isolate shell — runs
just-bashin a Dynamic Worker that talks to the Workspace over Workers RPC, with no second store to sync. - Codemode — runs an ECMAScript module in a fresh Dynamic Worker with Workspace-backed
node:fs/promisesand host modules such ascodemode:gitandcodemode:container.
A Workspace can register several backends; workspace.runtime.exec(source, { backend }) is the single entry point. It can also be used without any backend, as a plain filesystem.
Status
The @cloudflare/computer package is described as suitable for production, but some components — such as ContainerBackend — are experimental and not meant for production yet.