AI product Open source

Cloudflare Computer

Cloudflare Computer is an open-source library that provides AI agents with a virtual filesystem backed by a Cloudflare Durable Object. The Durable Object stores the authoritative state in SQLite, while the workspace exposes a single execution interface through `workspace.runtime.exec(source, { backend })`.

View repository Mentioned in 2 videos ↓

Overview

It supports three execution backends: Container projects the SQLite state into a sandbox container through a FUSE mount and synchronizes changes over capnweb RPC; Isolate shell runs `just-bash` in a Dynamic Worker; and Isolate JavaScript runs an ECMAScript module in a fresh Dynamic Worker with structured inputs and results, durable relative imports, configured libraries, workspace-backed `node:fs/promises`, and trusted `ws:git` and `ws:artifacts` modules. Workspaces can register multiple backends under stable identifiers, connect to them lazily, or be used solely as a filesystem without an execution backend.

The repository includes examples for container, Worker shell, Worker JavaScript, egress policies, MCP, agent workspaces, tutorials, artifacts, and assets. The package is marked preview-only: its APIs are unstable and the repository says it is intended for experiments, exploration, and prototypes rather than production use.

What Cloudflare Computer is used for

2 uses taken from transcripts — each links to the moment in the video.

  • An open-source library that gives AI agents a real computer inside a Cloudflare Durable Object, with a virtual file system and pluggable execution backends.

  • Gives an agent a filesystem whose authoritative copy lives in a durable-object SQLite database, projecting it into containers, shells, or ECMAScript workers.

Videos mentioning Cloudflare Computer

2 in the library.