Skip to content

Cloudflare Computer

TrendingActive
cloudflare/computer

Give your AI agent a computer: a virtual filesystem stored in a Durable Object, with container, isolate-shell and codemode execution backends.

View on GitHub
Stars
9.9k
Forks
590
Watchers
9.9k
Open issues
18

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-bash in 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/promises and host modules such as codemode:git and codemode: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.

Similar open-source projects, ranked by shared categories and tags.

All AI projects →