Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Anthropic Sandbox Runtime

$ srt Official Med Risk
Anthropic · Agent Bridges & Meta · Apache-2.0 · macos / linux

Anthropic 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.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @anthropic-ai/sandbox-runtime
CLI vs MCP Decision CLI Only

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

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>
Trust & Safety 23 / 25

Deny-all network and strict filesystem write defaults using native OS primitives (macOS Seatbelt / Linux bubblewrap), with zero Docker daemon required.

  • OS-level Seatbelt / bubblewrap isolation with deny-all default network
Setup & Portability 11 / 15

Installable via npm (@anthropic-ai/sandbox-runtime), limited to macOS and Linux (requires bubblewrap + socat on Linux; no Windows support).

  • macOS and Linux only (bubblewrap and socat prerequisites on Linux)
Utility & Efficiency 14 / 15

Millisecond OS sandboxing for wrapping untrusted MCP servers or agent shell commands without container image overhead.

  • Lightweight containerless filesystem + domain-filtered network proxy
Maintenance & Lineage 9 / 10

Official Anthropic repository (anthropics/sandbox-runtime, powering Claude Code sandboxing) under Apache-2.0.

  • Official anthropics/sandbox-runtime repo under Apache-2.0
Docs & Verifiability 8 / 10

Detailed README documenting JSON settings schema, platform dependencies, and security boundaries.

  • GitHub README documents flags and ~/.srt-settings.json schema

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Requires no auth; reads filesystem/network allowlists from --settings <path> or ~/.srt-settings.json.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and Apache-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Run a read-only probe inside default deny-all sandbox
srt -c "ls -la && env"

Executes an inspection command under default strict filesystem write and network-deny isolation.

Controlled Writes & Previews

Execute a build command under explicit JSON policy
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 bubblewrap and socat.
  • ! Domain proxy filtering cannot inspect inside encrypted HTTPS payloads or prevent all kernel-level escape vectors like full VMs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI