@vikingmute: Cloudflare just released a library called computer with a very interesting concept: https://github.com/cloudflare/computer… A virtual file system in Durable Object, persisted with SQLite…
Summary
Cloudflare released a preview library called computer that provides a SQLite-based virtual file system in Durable Objects, with support for multiple runtime backends (container, isolated shell, isolated JavaScript), offering persistent workspaces for Agents.
View Cached Full Text
Cached at: 08/03/26, 11:54 PM
Cloudflare just released a library called “computer” with a very interesting concept: https://github.com/cloudflare/computer…
A virtual filesystem inside a Durable Object, persisted with SQLite, providing different types of runtimes through workspace.runtime:
- Container – mounts the SQLite state via FUSE into a real Linux sandbox container
- Isolate Shell – a simulated, lightweight fake shell that runs just-bash in a Dynamic Worker
- Isolate JavaScript – supports a JS runtime in an isolated Dynamic Worker
It gives every Agent its own persistent workspace and allows dynamic switching between different runtimes. Different tasks can use different runtimes, balancing performance and speed. Very interesting and imaginative.
cloudflare/computer
Source: https://github.com/cloudflare/computer
Cloudflare Computer
Cloudflare Computer is a virtual filesystem that lives inside a
Durable Object. The Durable Object holds the authoritative state in
SQLite and exposes one pluggable execution surface through
workspace.runtime. Three backends ship today:
- Container projects the SQLite state into a sandbox container as
a real FUSE mount. A sandbox-side daemon (
computerd) mounts the state as a filesystem and syncs changes back over a capnweb RPC channel. Full Linux userland, real binaries, real network. - Isolate shell runs just-bash (https://github.com/vercel-labs/just-bash) in a Dynamic Worker. It reaches the authoritative Workspace over Workers RPC, so there is no second store or sync round trip.
- Isolate JavaScript runs an ECMAScript module in a fresh Dynamic
Worker with structured input/results, durable relative imports,
configured libraries, Workspace-backed
node:fs/promises, and trustedws:gitandws:artifactsmodules.
A Workspace may register multiple backends under stable IDs.
workspace.runtime.exec(source, { backend }) is the single execution
entry point; the selected backend defines whether source is a shell
command or an ECMAScript module. Backends connect lazily on first use.
Workspace can also be constructed without a backend at all, giving callers the filesystem on its own.
PREVIEW ONLY This package is provided as a preview for feedback only. APIs are unstable and the design is subject to change.
Suitable for experiments, exploration and prototypes. It is NOT suitable for production use at this time.
The specification under
docs/is forward-looking — read it for intent, not as description of the code today.
Using it
If you want to build on Cloudflare Computer, install
@cloudflare/computer and follow that
package’s README — it has the installation steps, the entrypoint map,
and worked examples of the fs and runtime surfaces.
To work on this repository itself, see
CONTRIBUTING.md for setup, build, and test
instructions.
Examples
The examples/ directory holds runnable consumers of the
public surface. Each is a Worker workspace with its own README.
examples/container— runscomputerdinside a container, mounts a workspace, and talks to a Durable Object over capnweb. Awrite/read/execHTTP surface.examples/worker-shell— same HTTP surface as the container example, but the shell runs just-bash (https://github.com/vercel-labs/just-bash) in a Dynamic Worker loaded throughenv.LOADER. No container.examples/worker-javascript— mirrorsworker-shell, butexecevaluates an ECMAScript module in a Dynamic Worker instead of running a shell command.examples/think— a@cloudflare/think(https://www.npmjs.com/package/@cloudflare/think) chat agent that uses the workspace as its working directory, reachable from a terminal.examples/think-compare-runtimes— a web UI that runs the same agent task against the container and worker runtimes side by side.examples/tutorial— a step-by-step build: one endpoint, one agent that writes a markdown recipe card on the host and runspandocon it in the container to produce a PDF.examples/artifacts— generates a Worker project in a workspace and publishes it to Cloudflare Artifacts as a clone-ready repo.examples/assets— turns a prompt into an image with Workers AI, writes it to the workspace, and returns a shareable link through@cloudflare/computer/assets.
Repository layout
The repo is a small monorepo. Each package has its own README with package-specific status and usage notes.
packages/dofs(@cloudflare/dofs) — Durable Object SQLite-backed virtual filesystem, sync protocol building blocks, and a@platformatic/vfsprovider for Node.packages/rpc(@cloudflare/computer-rpc) — capnweb wire types and server/client helpers shared between the Durable Object andcomputerd.packages/computerd(@cloudflare/computerd) — thecomputerddaemon: a FUSE mount plus HTTP/WebSocket RPC server that runs inside the sandbox container.packages/computer(@cloudflare/computer) — the top-level Computer package consumed by Durable Objects. Work in progress.packages/computer-computerd-linux-x64(@cloudflare/computer-computerd-linux-x64) — the prebuiltcomputerdbinary for linux-x64, distributed for use in container images.
Performance
computerd’s FUSE mount beats real disk on metadata-heavy work and
trails it on large sequential I/O. See
docs/19_performance.md for the full fs-bench
numbers, a cloudflare/sandbox-sdk npm install comparison, and how
to reproduce them.
Documentation
docs/— design specification. Forward-looking; treat as intent.docs/19_performance.md— filesystem benchmarks.
Contributing
See CONTRIBUTING.md for setup, formatting,
testing, commit message, and pull request conventions.
If you’re working in this repo as an agent, start with
AGENTS.md and the skills under
.agents/skills/.
License
MIT. See LICENSE.
Similar Articles
@geekbb: Cloudflare releases a "computer" for AI agents — Giving agents a workspace that never disappears. Files stored in SQLite, with three environments (full container / shell / JS) available anytime; switch environments without switching files.
Cloudflare Computer is a virtual filesystem inside a Durable Object that gives AI agents a persistent workspace, using SQLite for storage and pluggable runtimes (container, shell, JavaScript). It's a preview-only open-source package.
cloudflare/computer
Cloudflare Computer is a preview virtual filesystem built on Durable Objects, with pluggable runtimes for containers, shell, and JavaScript, enabling stateful serverless compute on Cloudflare Workers.
@realchendahuang: I feel that everyone is still using less than 1% of Cloudflare's capabilities. It now has way too many features. Object storage: use R2. Backend API: use Workers. AI gateway: use AI Gateway. Heavy computation: use Containers. Cache: use KV. Database...
This tweet introduces various development features provided by Cloudflare, including object storage R2, backend API Workers, AI gateway AI Gateway, containers, cache KV, database D1, and PostgreSQL connection HyperDrive, emphasizing their low cost, rich features, and generous free tier.
celld — Durable Objects, self-hosted
celld is a self-hosted, distributed server that runs Cloudflare Workers and Durable Objects code unchanged, using your own S3 bucket for storage and coordination. It claims significantly lower costs and sub-millisecond warm latencies at scale, with data stored in SQLite/LTX format.
@geekbb: This is great — an open-source memory layer that lets Claude, ChatGPT, Cursor, and Codex share a single brain. It's deployed on Cloudflare Workers, storing memory in your own Cloudflare account, using MCP externally, with data landing on the user…
Second Brain is an open-source memory layer that lets Claude, ChatGPT, Cursor, and Codex share persistent, semantic searchable memory, deployed on Cloudflare Workers for user-controlled storage.