Anthropic Sandbox Runtime
$ srt Official Med RiskAnthropic Sandbox Runtime (srt) isolates untrusted agent commands and MCP servers at the OS level using macOS sandbox-exec (Seatbelt) and Linux bubblewrap (bwrap) plus socat network proxy filtering. Configured via --settings <path> (default ~/.srt-settings.json), with -c, -d/--debug, and --control-fd.
npm install -g @anthropic-ai/sandbox-runtime srt wraps agent commands and MCP servers as an OS sandbox launcher (srt --settings ... <cmd>); it enforces boundaries around tools rather than exposing MCP tools itself.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive CLI (--settings, -c, -d/--debug, --control-fd JSONL policy updates) wrapping any command cleanly.
--settings <path>,-c <command>,-d/--debug, and--control-fd <fd>
Deny-all network and strict filesystem write defaults using native OS primitives (macOS Seatbelt / Linux bubblewrap), with zero Docker daemon required.
- OS-level Seatbelt /
bubblewrapisolation with deny-all default network
Installable via npm (@anthropic-ai/sandbox-runtime), limited to macOS and Linux (requires bubblewrap + socat on Linux; no Windows support).
- macOS and Linux only (
bubblewrapandsocatprerequisites on Linux)
Millisecond OS sandboxing for wrapping untrusted MCP servers or agent shell commands without container image overhead.
- Lightweight containerless filesystem + domain-filtered network proxy
Official Anthropic repository (anthropics/sandbox-runtime, powering Claude Code sandboxing) under Apache-2.0.
- Official
anthropics/sandbox-runtimerepo under Apache-2.0
Detailed README documenting JSON settings schema, platform dependencies, and security boundaries.
- GitHub README documents flags and
~/.srt-settings.jsonschema
Security, Auth & Guardrails
Requires no auth; reads filesystem/network allowlists from --settings <path> or ~/.srt-settings.json.
100% free and Apache-2.0 open-source.
# Anthropic Sandbox Runtime (srt) Rules - Always pass an explicit `--settings <path>` JSON policy when allowing network domains or write paths. - On Linux, verify `bubblewrap` (`bwrap`) and `socat` are installed before invoking `srt`.
Agent-Ready Command Recipes
Safe Read-Only Queries
srt -c "ls -la && env"
Executes an inspection command under default strict filesystem write and network-deny isolation.
Controlled Writes & Previews
srt --settings ./srt-settings.json -c "npm test"
Runs npm test confined to filesystem paths and domains whitelisted in ./srt-settings.json.
Strengths for Agents
- + Enforces filesystem and domain-level network rules without Docker or VM startup latency.
- + Secure defaults block all network access and unauthorized disk writes out-of-the-box.
- + Powers Anthropic's own Claude Code sandbox architecture.
Caveats & Pitfalls
- ! Supports only macOS and Linux (no Windows support), and Linux requires
bubblewrapandsocat. - ! Domain proxy filtering cannot inspect inside encrypted HTTPS payloads or prevent all kernel-level escape vectors like full VMs.