External sandboxes for coding agents
Source: https://simonwillison.net/2026/Nov/17/external-sandboxes-for-coding-agents/
Author: Simon Willison
Published: 2026-11-17
Ingested: 2026-11-18 daily-intake-evening
Obsidian evidence: OpenClaw定时任务/AK-RSS-Digest(89源精选)/source/2026-11-18-02-willison-external-sandboxes.md
Summary (zh): Simon Willison 与 Prime Radiant 发布「external sandbox」模式:agent 本体在沙箱外,执行的代码跑在专用沙箱里,让本地跑模型的人不必担心手滑或提示注入毁掉机器。三份实现共用同一套 localhost API:v86 在 WebAssembly 跑 Alpine(Node.js)、container 用 Apple Containers(Python)、quicksand 接微软 Quicksand 库(QEMU+Alpine 打包成 Python 包)。沙箱自带 HTTP/HTTPS 允许列表代理与凭据替换,agent 调需认证的 API 不必看到密钥;
原文摘录
External sandboxes for coding agents. I've been exploring new ways to sandbox code that is executed by agents, with a focus on making it safer to try out local models without worrying that a mistake or prompt injection attack might cause them to take damaging actions on a machine.
I worked on this project with Prime Radiant, the AI research lab behind Superpowers. My post on the Prime Radiant blog introduces the external sandbox pattern, where code executed by the agent runs inside a dedicated sandbox while the agent itself lives outside of that sandbox.
To demonstrate this pattern we've released three sandbox server implementations:
- external-sandbox-v86 runs a Node.js server which then uses v86 to run Alpine Linux inside WebAssembly.
- external-sandbox-container is a Python web server which runs the sandbox in Alpine Linux inside an Apple Containers instance.
- external-sandbox-quicksand is another Python web server, using Microsoft's Quicksand library which packages QEMU and Alpine Linux as a Python package.
当日消化判断
这篇本身很短,价值在链接出去的三份实现和那张代理配置截图——对想在自己机器上跑本地模型的人来说,可选项从「先学 Docker」变成「挑一个现成实现」,而允许列表加凭据替换,正好覆盖了 agent 场景里最容易漏掉的两项配置。