What is Agent sandbox?
An agent sandbox is an operating-system-enforced boundary that limits which files and network destinations the commands run by an AI agent can reach.
Also written: sandboxing, sandboxed execution, sandboxed Bash tool
Explained
There is no single specification for agent sandboxes. This entry describes one vendor's implementation, the sandboxed Bash tool in Claude Code, as documented by Anthropic. Other products implement the idea differently.
In that documentation, the operating system enforces the sandbox around the commands Claude runs and any processes those commands launch. In auto-allow mode the agent can run sandboxed commands without a prompt each time; in the regular permissions mode the normal prompts still appear. Filesystem writes are allowed in the working directory and a temp directory, while protected paths stay write-denied. Reads cover most of the machine by default and can be restricted with settings. Network access goes through a proxy on the user's machine that checks each hostname against an allowlist, which starts empty.
The implementation is built on the open-source sandbox-runtime package, using Seatbelt on macOS and bubblewrap on Linux and WSL2. The feature is off by default and does not run on native Windows.
The page lists limits. The page says the sandbox applies to shell commands only; Claude's file tools, MCP servers and hooks are not inside it, and commands on the excluded list run unsandboxed. Traffic that ignores proxy settings, such as plain ssh, UDP, and ICMP, cannot connect.
Primary source
Configure the sandboxed Bash tool (code.claude.com), read Oct 26, 2026
This entry paraphrases the page above. Sources change; check it for the current wording.
Listings that use this
The 5 top-ranked listings tagged for Agent sandbox. Rank weighs adoption, freshness, documentation and publisher identity; how we rank and grade. Money never changes the order.
- 0.874score
vercel-sandbox
vercel-labsOfficial
Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app.
SkillAFreshness: A★ 44.5KClaude Code +9 - 0.840score
sandbox-next
cloudflareOfficial
Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview).
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.834score
sandbox-migrate-to-next
cloudflareOfficial
Migrate Cloudflare Sandbox apps from stable @cloudflare/sandbox to @cloudflare/sandbox@next (SDK 1.0 preview).
SkillAFreshness: A★ 3.2KClaude Code +9 - 0.832score
holoscan-install-wheel
Holoscan Team <holoscan-team@nvidia.com>
Install Holoscan SDK 5.x CUDA 13 Python wheels in an isolated environment, choosing the full stack or version-matched components.
SkillAFreshness: A★ 3.7KClaude Code +9 - 0.830score
LLM Sandbox
vndee
Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends.
ConnectorAFreshness: ALocal★ 1.1K↓ 101.7K/wkClaude Code +5
Related
Cite this page
What is Agent sandbox?. Agent Mart. https://agentmart.dev/glossary/sandbox (last updated 2026-10-26)
Written Oct 26, 2026, updated Oct 26, 2026. All glossary terms