cloudflare/computer
Give your agent a computer 👾
https://skillcdn.ai/gh/cloudflare/computerConnect this address to your AI to use these skills. How to connect
- Unverified
- Default branch
main - Commit
5bae5c4 - License
MIT - Searchwords
Explore this repository
Searches the original text of skills and documents, and the translations of skills when you search in their language.
The @cloudflare/computer package provides an out of the box virtual filesystem for use in any Durable Object — it's persistent and backed by SQLite. It's primarily designed for agents that need small…
Folders
Documents
- 01. Directory structureThe workspace exposes a single absolute path namespace rooted at /. The host-side VFS root is always / (ROOT_INODE); it is not configurable on the Workspace constructor. By convention user data lives…docs/01_vfs.md
- 02. Sync ProtocolThe workspace keeps two copies of the filesystem tree in sync:docs/02_sync_protocol.md
- 03. Filesystem SchemaThe VFS lives in the Durable Object's SQLite. Every read and write ultimately hits one of these tables. All tables are prefixed with vfs (or vfs for internal bookkeeping) so they don't collide with a…docs/03_filesystem_schema.md
- 04. Filesystem InterfaceWorkspace.fs is the file API. It's inspired by node:fs/promises for familiarity — same method names, similar option shapes — but it's a much smaller surface and it leans on ReadableStream<Uint8Array>…docs/04_filesystem_interface.md
- 05. Runtime InterfaceWorkspace exposes one execution router:docs/05_runtime_interface.md
- Mount InterfaceA mount populates a subtree of the workspace from an external source — R2, a GitHub repository, an artifact bundle, or anything custom. Mounts are configured once at construction and live for the lif…docs/06_mount_interface.md
- 07. Injected ServiceThe "injected service" is the workspace daemon that runs inside the sandbox container. It owns the FUSE mount, the in-container VFS, the exec runner, and the capnweb RPC endpoint the DO talks to.docs/07_injected_service.md
- 08. Capnweb Interfacecapnweb is the RPC framing used between the Durable Object and the in-container computerd computerd. The wire format is text JSON over a single WebSocket. The interface served is WorkspaceRPC, define…docs/08_capnweb_interface.md
- 09. Tool interface (agents)Computer ships a ready-made tool set for agents that use a Workspace, once for each of three agent libraries:docs/09_tool_interface.md
- 10. Project LayoutThe workspace ships as a monorepo. Each published package lives under packages/; runnable examples sit under examples/. The repo-root package.json declares the workspaces glob:docs/10_project_layout.md
- 11. LifecycleA workspace pairs one Durable Object with one container instance running computerd. The DO owns the source-of-truth VFS in its SQLite storage; the container owns a transient in-memory mirror exposed…docs/11_lifecycle.md
- 12. Worker backendThe worker backend is the second WorkspaceBackend shape the package ships. It pairs a Workspace with a just-bash shell running in a Dynamic Worker minted through env.LOADER. The shell reaches the hos…docs/12_worker_backend.md
- 13. Git interfaceworkspace.git is a major typed surface on Workspace, alongside fs, runtime, Assets, and Artifacts. It is opt-in: pass createGitClient() from @cloudflare/computer/git as WorkspaceOptions.git to enable…docs/13_git_interface.md
- Assets interfaceThe assets module shares a file from the workspace with the outside world. You give it a path inside the virtual filesystem and it uploads the bytes to an R2 bucket, then hands back a presigned URL t…docs/14_assets_interface.md
- 15. Artifacts interfaceCloudflare Artifacts is versioned, Git-speaking repository storage. A Worker reaches it through a namespace binding (env.ARTIFACTS) that can create, inspect, import, and delete repositories and mint…docs/15_artifacts_interface.md
- Workspace execution runtimesWorkspace exposes one execution namespace:docs/16_code_execution.md
- Isolate JavaScript runtimeCodemodeBackend runs an ECMAScript module in a fresh Cloudflare Dynamic Worker:docs/17_isolate_javascript.md
- 18. Migrating to `workspace.runtime`This change is a breaking preview-API migration. Public execution now uses one router, while filesystem, Git, Assets, and Artifacts remain separate Workspace capabilities.docs/18_runtime_migration.md
- 19. PerformanceNumbers from script/fs-bench.sh and a full npm install of cloudflare/sandbox-sdk (854 packages, 36,675 files), running examples/container-legacy on a Cloudflare Containers standard-2 instance (1 vCPU…docs/19_performance.md
- 20. Remote execRemote exec lets code running on a CodemodeBackend run commands in a container. Before a command runs, the Workspace files it names are pushed into the container. After it exits, the files it changed…docs/20_remote_exec.md
- `@cloudflare/computer`The @cloudflare/computer package provides an out of the box virtual filesystem for use in any Durable Object — it's persistent and backed by SQLite. It's primarily designed for agents that need small…docs/README.md
Skipped (11)
These manifests were not served. Fix them and push: the next commit is indexed again.
.agents/skills/cloudflare/SKILL.mdlink_missing2 links name no file of the repository (../../../examples/think, ../../../examples/container-legacy)README.mdlink_missing16 links name no file of the repository (examples, examples/container, examples/container-legacy, ...)docs/06_mount_interface.mdlink_missinga link names no file of the repository (../examples/vite-bundle)docs/19_performance.mdlink_missinga link names no file of the repository (../examples/container-legacy)docs/20_remote_exec.mdlink_missinga link names no file of the repository (../examples/remote-exec)docs/README.mdlink_missinga link names no file of the repository (../examples/container)examples/codemode/README.mdlink_missinga link names no file of the repository (../worker-shell)examples/vite-bundle/README.mdlink_missinga link names no file of the repository (../worker-shell)examples/worker-shell/README.mdlink_missinga link names no file of the repository (../container-legacy)packages/computer/README.mdlink_missing7 links name no file of the repository (../../examples/codemode, ../../examples/worker-shell, ../../examples/container, ...)packages/computer-computerd-linux-x64/README.mdlink_missing2 links name no file of the repository (../computer, ../../docs)