With box, you run a coding agent such as Claude Code, Codex, Kiro CLI, or pi in a box on your own
machine. The agent can work in your project and reach whatever you allow. Your other files, your
keys, and services that listen only on localhost stay out of its reach. You use the agent the way
you always do, with its permission prompts off if you like.
Underneath box is Box Core, an engine you can also use on its own. box itself is in
preview, and it works on Apple silicon Macs with macOS 15 or later and on Linux ARM64 and x86-64.
curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/install.sh | shThen open a new terminal and run box --version to check that it worked. For the Linux
requirements, upgrading, and uninstalling, see Install Box.
You set up each agent once, in a profile, and then start it from any of your projects. For Claude Code on Amazon Bedrock, install Claude Code with its native installer, then create the profile:
box profile create claude --with bedrockPress Enter to take each default, then choose Save profile and Exit. You'll need to connect to Bedrock, and choose a model if Claude Code doesn't already name one, before the first run. Then start Claude Code from the folder you want it to work in:
cd ~/src/my-app
box run claudeFor the full walkthrough, see Get started.
The agent runs in an operating system sandbox, so its own reads and writes stay within the files you grant it. Box checks each shell command, network request, and MCP tool call against your policy before it happens, and it does that outside the model, where nothing the agent reads can change the answer.
You write policies in Dogwood, or start from one that
comes with box. A rule can even depend on what the agent already did, such as a limit of 60 calls
to a server in an hour.
Your keys stay outside the box, too. When the agent calls its model or another service you've set up, it only sees a placeholder, and Box puts in the real key as the request leaves.
To see how it all fits together, read How Box works.
- Box CLI guide: common tasks, and every page about
box. - Profiles: set up another agent or model provider, or change what the agent can reach.
- Get help from a coding agent: tell your
agent
Run box help agent and follow it to create a profile. - Troubleshooting: what an error means, and how to fix it.
- Command reference: every command and flag.
- Limitations: what a box doesn't protect you from. Read this before you trust a run with work that matters.
- Design guide: how Box works inside, and why.
Box Core is the engine under box. You can run it yourself, on your own machine or a cloud host, or
embed it in a Rust application. Instead of a profile, you describe each box in box.toml and its
policy in policy.dw. To download Box Core into ./box-core:
curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/download.sh | sh
./box-core/box --versionStart with Run an agent with box.toml. After that, you'll find the
box.toml reference, the policy guides, and cloud deployments in the
Box Core guide, and finished setups you can run in the
examples. To embed Box Core in your own application, see
Use Box as a Rust library.
To build box yourself, you need rustup and
just:
git clone https://github.com/strands-agents/box.git
cd box
just build-cliYou'll find box and the Box Core programs it runs in target/debug. For the tests and the other
builds, see CONTRIBUTING.md.
If something goes wrong, open an issue with the
command you ran, what you expected, what happened instead, and the output of box --version. If
you think you've found a security problem, read SECURITY.md first.
Apache License 2.0.
