cd /news/ai-agents/external-sandboxes-for-coding-agents · home › topics › ai-agents › article
[ARTICLE · art-171398] src=simonwillison.net ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

External sandboxes for coding agents

Prime Radiant, the AI research lab behind Superpowers, released three sandbox server implementations demonstrating an "external sandbox" pattern in which code run by a coding agent executes inside a dedicated sandbox while the agent itself lives outside it. All three implementations expose the same localhost API, letting users configure Pi, Claude Code, or Codex to route code-execution calls to the sandbox, and they include an optional HTTP/HTTPS allow-list proxy for controlling which hosts agent code can reach plus a credential replacement mechanism for making authenticated API calls without sharing a secret with the agent. The release targets the challenge of safely running untrusted code from coding agents.

key takeaway

Route coding-agent code execution to an external sandbox exposing a shared localhost API, and use its HTTP/HTTPS allow-list proxy with credential replacement so the agent never holds the secret.

read1 min views2 publishedNov 17, 2026
[External sandboxes for coding agents](https://blog.primeradiant.com/external-sandboxes-for-coding-agents/)

I worked on this project with [Prime Radiant](https://primeradiant.com), the AI research lab behind Superpowers and [other projects](https://github.com/orgs/prime-radiant-inc/repositories).

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:

Each of these implementations offers the same localhost API. You can then configure Pi, Claude Code, or Codex to send API calls to that sandbox any time they want to execute code.

The sandboxes also include an optional HTTP/HTTPS allow-list proxy, so you can control exactly which hosts your agent's code is allowed to communicate with - plus a credential replacement mechanism to make authenticated API calls without sharing a secret with the agent. Here's the UI you can use to reconfigure that proxy while the sandbox is still running:

I continue to be fascinated by the challenge of safely running untrusted code. This external sandbox pattern provides a neat way to experiment with different approaches.

Tags: sandboxing, security, ai, webassembly, generative-ai, llms, coding-agents, claude-code, codex, pi

── more in #ai-agents 4 stories · sorted by recency
── more on @prime radiant 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/external-sandboxes-f…] indexed:0 read:1min 2026-11-17 · —