External sandboxes for coding agents
Simon Willison, with AI research lab Prime Radiant, introduces the external sandbox pattern: the coding agent (e.g. Claude Code, Codex, Pi) lives outside a sandbox, while code it executes runs in a dedicated one—reducing risk from mistakes or prompt injection attacks when trying local models. Three open-source sandbox servers with a common localhost API demonstrate the pattern: external-sandbox-v86 (Node.js + v86 running Alpine Linux in WebAssembly), external-sandbox-container (Python server using Apple Containers with Alpine), and external-sandbox-quicksand (Python server using Microsoft's Quicksand library bundling QEMU + Alpine). All include an optional HTTP/HTTPS allow-list proxy for controlling network destinations and a credential replacement mechanism for authenticated API calls without exposing secrets to the agent; the proxy can be reconfigured via UI while the sandbox runs.