Retrieved article excerpt
Open article · Retrieved 2026-10-25T04:30:40.555466+00:00
github.com
web signal
# Anthropic Open-Sources Claude Code Sandbox Under Apache 2.0
By [Alexis Dufresne](https://aiweekly.co/about#alexis-dufresne)
·
Published
October 24, 2026 at 12:37 UTC
·
Updated
October 24, 2026 at 13:30 UTC
[Anthropic](https://aiweekly.co/ai-news-today/anthropic-news)
[Safety](https://aiweekly.co/ai-news-today/safety-ai-news)
[Open Source](https://aiweekly.co/ai-news-today/open-source-ai-news)
[Agents](https://aiweekly.co/ai-news-today/agents-ai-news)
ai-business
AI Weekly Pro
Want only the AI that hits your stack?
Build an agent that tracks your companies and topics, and skips everything else.
[Build your agent →](https://aiweekly.co/intelligence/wizard-v2?src=alert-pro-top)
## TL;DR
- Anthropic released sandbox-runtime (srt), the OS-level sandbox used in Claude Code, as the @anthropic-ai/sandbox-runtime npm package under Apache-2.0.
- The runtime uses sandbox-exec with Seatbelt profiles on macOS, bubblewrap on Linux, and an alpha Windows build backed by Windows Filtering Platform filters and NTFS ACLs.
- Documented features include allow-only network policies, Unix-socket allowlisting, experimental TLS termination, credential masking, AWS SigV4 signing, and drop-in sandboxing of MCP servers.
Editor's note
Anthropic is handing agent teams a reusable, process-level isolation primitive and signaling that native OS sandboxes, not containers, are its answer for running arbitrary agent-generated commands.
Anthropic has released the sandbox that runs behind Claude Code as an open-source npm package, [`@anthropic-ai/sandbox-runtime`](https://github.com/anthropics/sandbox-runtime), under the Apache-2.0 license. The project README describes srt as "a lightweight sandboxing tool for enforcing filesystem and network restrictions on arbitrary processes at the OS level, without requiring a container."
The runtime wraps each platform's native primitives. On macOS it uses `sandbox-exec` with dynamically generated Seatbelt profiles. On Linux it uses `bubblewrap` with network namespace isolation. The Windows build combines a Windows Filtering Platform egress fence with a write-restricted token and explicit NTFS ACLs, and ships a bundled `srt-win.exe` helper for x64 and arm64. A one-time elevated `windows-install` step provisions a dedicated `srt-sandbox` local user account and the machine-wide WFP filter set.
Features called out in the README include an allow-only network policy with wildcard domain support, Unix-socket allowlisting, experimental TLS termination for MITM inspection of HTTPS, credential masking for environment variables and files, and AWS SigV4 request signing with masked keys. The docs show drop-in MCP server sandboxing by swapping the `command` field in an `.mcp.json` entry from `npx` to `srt`.
The repo frames the release as "a research preview developed for Claude Code to enable safer AI agents" and cautions that "APIs and configuration formats may evolve." The Windows backend documents specific holes. Tools built on the system TLS stack (Schannel), including `System32\curl.exe`, PowerShell's `Invoke-WebRequest`, .NET `HttpClient`, and `winget`, cannot be used, and traffic routed through system services such as Windows Update escapes the WFP fence.
AI Weekly Pro
We scan all of AI. You track a slice of it.
Build an agent that watches only the companies, topics and people you choose. It reads everything our scanners pull and sends you an edition made of just your matches.
[Build your agent →](https://aiweekly.co/intelligence/wizard-v2?src=alert-pro-inline)
$7/month for the first 2,000 members.
Originally reported by
**github.com**
[Read the original article →](https://github.com/anthropics/sandbox-runtime)
Original headline:
Anthropic Open-Sources Claude Code's sandbox-runtime Under Apache 2.0 With Linux, macOS, Windows Support
AI Weekly Pro
This one found you. The next one might not.
Name the companies, topics and people you follow. Your agent watches them across every source we scan and sends you an edition when something lands.
[Build your agent →](https://aiweekly.co/intelligence/wizard-v2?src=alert-pro-eoa)
$7/month for the first 2,000 members.