Provides a stateful virtual filesystem and execution runtime inside Cloudflare Durable Objects for running shell commands and JavaScript modules.
Cloudflare Computer is a virtual filesystem framework for Cloudflare's serverless platform, built by Cloudflare. It provides a stateful, persistent filesystem within a Durable Object, solving the problem of managing state and running complex processes in an otherwise stateless environment. The system holds its state in SQLite and exposes it to different execution backends, such as containers or isolated workers, enabling developers to run standard Linux binaries and manage files programmatically.
As an NPM package, developers integrate Cloudflare Computer into their Workers projects. It operates using a Durable Object to manage a virtual filesystem backed by SQLite. Users call an exec function with either a shell command or a JavaScript module. The system then routes the job to a configured backend, such as a sandbox container or another Worker, for execution. The tool is open-source under an MIT license.
Developers on the Cloudflare platform who need to add a persistent, stateful filesystem to their serverless applications for tasks like running build tools or providing a working directory for AI agents.
This package is a preview release intended for feedback and experimentation only. Its APIs are unstable, the design is subject to change, and it is not suitable for production use at this time.