ChengRang

Anthropic sandbox-runtime

AI Coding Open Source

Apache-2.0 OS-level agent sandbox using Seatbelt and bubblewrap isolation

Anthropicsandboxopen sourceClaude Codeisolation
Visit Anthropic sandbox-runtime

Disclaimer: Review content represents our editorial team's views and experience, not commercial recommendation or investment advice. Product info and pricing may change; refer to official sources.

Overview

sandbox-runtime is Anthropic open source process sandbox, kept at anthropics/sandbox-runtime, published as @anthropic-ai/sandbox-runtime on npm with a command line tool called srt. What it does is plain: no container, just the isolation primitives the operating system already has, applied to put file and network access for any process inside an allowlist. The sandbox that runs bash commands inside Claude Code sits on top of it.

The design is secure by default. Reads are open unless a path is denied; writes are limited to the current working directory with everything else added explicitly. Network access is off completely, and all traffic must pass through proxies on the host, HTTP and HTTPS through an HTTP proxy and other TCP through SOCKS5, where domain allow and deny lists are enforced. Linux uses bubblewrap with a network namespace, macOS uses sandbox-exec with a generated Seatbelt profile, and Windows, still in alpha, runs the process under a dedicated local account behind a Windows Filtering Platform egress fence.

On October 24, 2026, MarkTechPost reported the npm package at v0.0.81 under Apache-2.0, which turns it from an internal Claude Code component into a tool anyone can use on its own. Beyond wrapping bash commands, its most practical use is wrapping local MCP servers: prefix the launch command in .mcp.json with srt and that server can only touch the directories and domains you set. Anthropic labels it a Beta Research Preview, so APIs and configuration formats may still change.

Key Features

Use Cases

Pros

Pricing

sandbox-runtime is open source under Apache-2.0 and free to use, installed with npm install -g @anthropic-ai/sandbox-runtime. Running it costs only local resources; paired with Claude Code or the Anthropic API, model calls are billed under those subscriptions and usage terms separately. The project is marked Beta Research Preview, so APIs and configuration formats may change, and pinning a version before production rollout is worth the effort.

Summary

sandbox-runtime extracts the most practical layer of agent safety: rather than asking a model not to misbehave, it fixes which directories can be read and which domains reached at the operating system level. No container, one command to wrap anything, and local MCP servers can be locked down in the same move. For teams running coding agents, it is a route from permission prompts to structural limits. It remains a research preview with a shifting config format, so pinning versions and writing minimal allowlists matter more than the feature list.

Version History

Category
AI Coding
Pricing
Open Source
Tags
Anthropic · sandbox · open source
Website

Related Tools