跳到正文

Cloudflare Computer

热门趋势活跃
cloudflare/computer

为你的 AI 智能体提供一台“电脑”:存储在 Durable Object 中的虚拟文件系统,支持容器、隔离 Shell 和 codemode 三种执行后端。

在 GitHub 查看
星标
9919
Fork
590
关注
9919
未关闭 Issue
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.

按共同分类和标签排序的同类开源项目。

全部 AI 项目 →