Cloudflare 出了个 computer,免费给 AI 代理配了 Linux 环境和 10GB 持久盘,不用再租沙箱,3 分钟就能接好。
Cloudflare 发布开源包 computer,让 AI 代理在 Workers 中直接运行 Linux 命令。它提供 SQLite 持久文件系统,每个工作区容量 10GB,重启后数据不丢失。开发者通过 npm 安装,调用 exec 工具即可读写文件和执行 shell,无需 VPS、Docker 或沙箱 API。整个设置约 3 分钟,还内置 git 客户端和 R2 文件共享。
相当于 Cloudflare 免费给每个 AI agent 发了一台"随身小电脑"?能运行 Pi 吗,那可就太方便了。
相当于 Cloudflare 免费给每个 AI agent 发了一台"随身小电脑"?能运行 Pi 吗,那可就太方便了。 Alan @Alan_Earn how to give your ai agent a computer for $0 cloudflare just released computer, an open source package that gives your agent a persistent filesystem, shell access, and code execution inside cloudflare workers. no vps, no docker, no api bill what you get for free: - a linux environment with real binaries, npm and node - sqlite-backed filesystem that survives restarts, 10gb per workspace - shell execution via just-bash, no container required - built-in git client and r2 file sharing - ai sdk tools (read, write, edit, ls, exec) ready to hand to any agent setup (3 min): step 1: npm install @cloudflare /computer step 2: add withWorkspace to a durable object and set compatibility_flags to nodejs_compat in wrangler.jsonc step 3: call exec from your agent ```ts const ws = await getWorkspace(env.Agent.get(id)) await ws.fs.writeFile("/hello.txt", "world") const run = await ws.runtime.exec("cat /hello.txt") ``` use it for agents that need to read files, run commands, clone repos, build and test code, or store state between sessions no more ssh keys, no more dockerfiles, no more paying for sandbox apis 🔗 View Quoted Tweet 💬 1 🔄 0 ❤️ 1 👀 606 📊 1 ⚡
- IT之家01:17原文