Anthropic launches open‑source sandbox-runtime to secure AI agents without containers
Anthropic released sandbox-runtime, an OS‑level sandbox that isolates AI agents, limiting file and network access on macOS and Linux.

What is Anthropic’s sandbox-runtime and why was it created?
Anthropic announced the open‑source release of sandbox-runtime (srt), a lightweight OS‑level sandbox that sits behind the Claude Code assistant. According to the MarkTechPost article, the runtime’s purpose is to constrain the file system and network capabilities of autonomous AI agents, command‑line tools, and internal micro‑service servers. By enforcing strict access policies, developers can run code‑generating agents without exposing the host system to arbitrary reads, writes, or outbound connections. The move reflects growing concerns in the AI community about agents that can unintentionally or maliciously interact with external resources, a risk that traditional container solutions do not always address cleanly.
How does the OS‑level sandbox differ from container‑based approaches?
Containerization, typically powered by Docker or Kubernetes, packages an application together with its dependencies and a thin OS layer. While containers isolate processes, they still rely on a user‑space runtime and often require heavyweight orchestration. Sandbox‑runtime, by contrast, leverages native OS security primitives: Seatbelt on macOS and bubblewrap on Linux. These tools create a restricted execution environment at the kernel level, removing the need for a separate container daemon. The MarkTechPost piece notes that srt achieves isolation without the overhead of image building, network namespace management, or the extra surface area that container engines introduce. For developers focused on rapid prototyping of AI agents, this translates into faster start‑up times and a smaller attack surface.
Which platforms and tools does it support?
The sandbox‑runtime is currently built for two major desktop operating systems. On macOS it wraps the Seatbelt sandbox, a native macOS security framework that enforces file‑system and network policies via entitlements. On Linux it uses bubblewrap, a user‑space tool that creates a minimal chroot‑like environment with fine‑grained namespace controls. Both implementations expose a simple command‑line interface that can be invoked by any executable, including the Claude Code binary, custom Python agents, or other MCP (Model‑Control‑Plane) services. The MarkTechPost article emphasizes that the runtime works with any language or framework as long as the process is launched through the srt wrapper, making it agnostic to the underlying AI model or inference library.
What are the security implications for AI agents and developers?
By default, sandbox‑runtime denies read/write access to the broader file system and blocks outbound network traffic unless explicitly permitted. This means an AI agent that attempts to download data, exfiltrate credentials, or modify system files will encounter a permission error instead of silently succeeding. For developers, the model reduces the need for extensive code reviews focused on security, because the OS enforces the policy at runtime. According to the source, Anthropic’s own internal testing showed that many common attack vectors—such as path traversal or DNS‑based data leaks—are mitigated automatically. However, the article also cautions that developers must still define a whitelist of allowed resources; an overly permissive sandbox could re‑introduce the same risks containers aim to prevent.
How can Grafy users experiment with sandbox-runtime?
Grafy creators who build AI‑driven tools can integrate sandbox‑runtime into their workflows through the Grafy Code studio. By invoking the srt wrapper in a code cell, developers can safely execute generated scripts, test autonomous agents, or run third‑party CLI tools without exposing their workspace. For example, a user could write a Python agent that queries a local knowledge base, then run it inside the sandbox to confirm it never reaches out to the internet. The Grafy platform also offers Grafy Chat for model‑to‑model comparisons; developers can feed the same prompt to a sandboxed Claude instance and a non‑sandboxed baseline to observe any differences in behavior. Links to the relevant apps are provided below for quick access:
- /code – AI coding studio where you can launch sandbox‑runtime commands.
- /operator – Browser‑based agent that could benefit from OS‑level restrictions.
- /chat – Multi‑model chat interface for side‑by‑side testing.
Where can developers find the code and contribute?
The sandbox‑runtime repository is hosted publicly on GitHub under the Anthropic organization. The MarkTechPost post includes a link to the source, and the README contains step‑by‑step instructions for installing Seatbelt or bubblewrap, configuring policy files, and running the srt command. Because the project is open source, contributors are invited to submit enhancements—such as additional policy templates, Windows support, or tighter integration with popular AI orchestration tools. Anthropic encourages community feedback to refine the default security posture and to address edge‑case scenarios that arise in production deployments.
What does this mean for the broader AI ecosystem?
Anthropic’s decision to publish an OS‑level sandbox signals a shift toward security‑by‑design for generative agents. As AI assistants become more autonomous, the line between a harmless helper and a potential vector for data leakage blurs. By offering a lightweight, container‑free alternative, Anthropic gives developers a pragmatic tool that can be adopted early in the development cycle, rather than retrofitted after a breach. The approach may also inspire other AI labs to release similar runtimes, fostering a shared baseline for safe agent execution. For Grafy’s community, the availability of sandbox‑runtime opens new possibilities for building and sharing agent‑driven projects that respect user privacy and system integrity.
Frequently asked questions
How do I install sandbox-runtime on macOS?
Download the latest release from the GitHub page, then run the provided installer which registers the Seatbelt profile. After installation, you can launch any command with srt to execute it inside the sandbox.
Can I whitelist specific network endpoints for an agent?
Yes. Sandbox‑runtime accepts a JSON policy file where you list allowed hostnames or IP ranges. The runtime will permit outbound connections only to those entries, blocking everything else.
Is sandbox-runtime compatible with Windows machines?
The current open‑source version supports macOS and Linux only. Anthropic has not announced Windows support, but contributions are welcome on the repository.
Source: MarkTechPost — Meet Anthropic’s sandbox-runtime: OS-Level Sandboxing for AI Agents, No Containers


