Strands Box, the open-source agent sandbox from AWS, gained native support for Claude Code, Codex and Kiro CLI on 23 November. One command starts an agent inside the sandbox. A developer can then turn off permission prompts and leave the decisions to a policy that the agent can't edit. The original developer preview dates from 7 October, and the command-line tool is still in preview.
Anyone weighing up promptless mode should read the defaults and the documented gaps first. Some of those defaults are looser than the word "sandbox" suggests.
How Box separates an agent from your machine
Box uses two layers of control. The operating system sandbox decides which paths each process may open, and the policy engine plays no part in those checks. On Linux, the sandbox relies on namespaces, capability removal and a seccomp filter, which are kernel features that restrict what a process can see and which system calls it can make.
The policy engine handles requests that pass through Box's trusted process, including shell commands, outbound network requests and calls to declared MCP servers. MCP is the Model Context Protocol, a standard way for agents to call external tools. Rules are written in Dogwood, a policy language where a request with no matching permit is refused and a forbid overrides a permit.
Dogwood rules can also count earlier events. AWS's on-call example refuses the 61st AWS MCP tool call completed within an hour. When a rule denies a request, Box returns the rule's reason to the agent, which gives the agent grounds to stop or ask for help.
Credentials use routes, which are configuration tables that tie a secret to named hosts. The agent sees a placeholder, and Box inserts the real key as the request leaves for a listed host. Only routed keys get that protection, so a key sitting in a project file stays readable.
Starting a session
Box supports Apple silicon Macs on macOS 15 or later, plus Linux on ARM64 and x86-64, under the Apache 2.0 licence. The announcement gives these commands for installing Box, creating a scoped Claude Code profile and running it:
curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/install.sh | sh
box profile create coding --with claude,bedrock --tools git,npm --policy scoped
box run codingA profile combines packs (bundles that describe one agent, model provider or tool) with policy files and settings. Running box profile show prints what a run will receive before anything starts, and box runs history followed by a box ID lists what that run allowed and denied. Box also has a documented log_only enforcement setting that records what a policy would refuse while letting most requests through.
Why the policy flag matters
Pressing Enter at the policy menu selects Open by default. Open lets the agent send HTTP requests to any host, apart from blocked loopback and link-local addresses, and hosts on the local network stay reachable. A new profile also lets the agent read project files, including keys and .env files.
Combined, those two defaults leave a route for data theft. An agent steered by malicious text in a web page or dependency could read a project's .env file and post the contents to an outside server. Scoped closes most of that route because it has no general network rule and reaches only hosts allowed by the packs and profile. Locked goes further by making the project read-only and refusing built-in shell commands such as cat, at the cost of breaking tools that write into the project, such as npm install.
A Dogwood rule forbidding reads of .env gives partial cover. File rules bind Box's own shell and its Python, while Claude Code's Read tool and programs such as git follow separate filesystem lists. The same page documents a setting in profile.toml that hides a file from every process:
[filesystem]
deny = ["${{ workspace }}/.env"]The setting needs an exact path, because the lists accept no wildcards. If git tracks the file, earlier copies remain readable through git history.
Documented gaps to plan around
The limitations page is unusually candid. An agent with project write access can change git hooks, package.json scripts or editor settings, and those files may run code on the host the next time a developer uses the project. The docs recommend checking hooks and git status --ignored after a run, or giving untrusted work a fresh clone.
Programs inside Box can't listen on any network port, including 127.0.0.1. Local dev servers fail, and Jupyter kernels can't run cells. All projects that use one profile also share its storage, so instructions picked up in one repository can influence an agent in another. Separate profiles for each client avoid that leak.
Routes aren't assigned to individual programs either, since every process in a box can use every route. A build script can therefore use the same GitHub route as the agent.
Two details are unsettled. The limitations page says hosts with an internal certificate authority can't be reached through Box, while the network guide says the gateway accepts roots the machine already trusts. Unite.AI's report includes no independent testing of the sandbox, and it treats whether policies can replace manual approvals as an open question.
What to change for New Zealand use
Box runs locally, but prompts still go to the model provider. The Bedrock setup defaults to us-west-2 and its sample model ID starts with global.. AWS says global profiles can process requests in any supported commercial region. Teams with client commitments on data location should choose the region and inference profile deliberately, and AWS advises checking the destinations with GetInferenceProfile because the ID prefix alone isn't proof.
Developers who sign in to AWS through SSO need one extra step, which is exporting temporary keys in each new terminal. A sensible trial would use a disposable clone, the Scoped policy and a denied .env, followed by a read of the denials before any promptless run on client code.
Sources
- Strands Box adds native support for Claude Code, Codex, and Kiro CLI
- How Box works
- Box quickstart
- Box limitations
- Box security: what Box governs, and what you own
- Where file rules apply
- Box policy language reference
- Box network and credentials guide
- Box starters
- Box command reference
- Box Linux requirements
- strands-agents/box repository
- Open policy rules
- Scoped policy rules
- Locked policy rules
- Unite.AI: AWS Releases Strands Decider V2 and Sandboxes More Coding Agents
- Amazon Bedrock: global cross-Region inference
- Amazon Bedrock: supported Regions and models for inference profiles
Build with people working on the same things
Join the Auckland Society for AI: NZ$599 a year with a ForgeBox and the members' projects area. Our Auckland meetups are open to everyone.