Who it is forA developer on a Mac with Apple silicon who wants an AI coding agent to work on local files without open access to the machine or network.
The problemAn agent with unrestricted shell and network access can read secrets, change files outside the project, or call hosts you did not intend.
The outcomeThe agent runs in an OS sandbox with direct grants set in Box.toml and checked operations decided by policy.dw.
What you need first
- A Mac with Apple silicon running macOS 15 or later
- Node.js 22.21 or later from Homebrew, if you follow the getting-started guide
- Access to Claude Opus 5 on Amazon Bedrock in us-west-2, if you follow the getting-started guide
- A Rust toolchain via rustup, only if you build from source
Steps
- Confirm you have a Mac with Apple silicon and macOS 15 or later.
- Run
curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/download.sh | sh - Run
./box-core/box --versionto confirm the binaries unpacked into ./box-core. - Edit Box.toml to set the agent command and direct file and network grants, and edit policy.dw to set rules for operations Box checks.
- Follow the getting-started guide in docs/user/getting-started.md to run the Box.
Prompt for your agent
Using the strands-agents/box repository, download the binaries with its download.sh script, then write a box.toml that gives <agent-name> read access only to <project-folder>. Expected output: `./box-core/box --version` prints a version string and the box starts with the configured grants reported at startup. Verify that the agent cannot read a file outside <project-folder>.
Caveat. Box is in preview and currently runs locally only on macOS with Apple silicon, so Linux users must wait for planned support.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for strands-agents/box and "Run a coding agent inside a restricted Box sandbox"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer