Strands Box
About this Install Guide
| Reading time: | 15 min |
| Last updated: | 3 Dec 2026 |
| Reading time: |
| 15 min |
| Last updated: |
| 3 Dec 2026 |
This guide shows you how to install and use the tool with the most common configuration. For advanced options and complete reference information, see the official documentation. Some install guides also include optional next steps to help you explore related workflows or integrations.
Strands Box is an open-source local sandbox for running AI coding agents such as Claude Code, Codex CLI, and Kiro CLI. It combines Linux operating system isolation with default-deny policies written in the Dogwood policy language. Strands Box keeps API credentials outside the agent environment.
You’ll install Strands Box on an Arm Linux host and learn its key commands and configuration files. You’ll verify sandboxing and Dogwood policy enforcement. You don’t need to install any AI agent, use any API key, or log into any cloud. Strands Box runs directly with Linux namespaces and doesn’t need Docker or kernel-based virtual machine (KVM) support.
Before you begin
You need an Arm Linux system such as Ubuntu 24.04 LTS or later, Debian 12 or later, or Amazon Linux 2023. Older releases such as Amazon Linux 2, Ubuntu 20.04, and Debian 11 aren’t supported.
Confirm that your system reports the Arm 64-bit architecture:
uname -m
The expected output on an Arm Linux system is:
aarch64
Make sure that curl is installed to run the install script.
If you need to install curl on Ubuntu or Debian, use:
sudo apt update
sudo apt install -y curl
On Amazon Linux 2023, use:
sudo dnf install -y curl
You also need glibc 2.34 or later, libgcc, Python 3, and the following GNU utilities:
coreutilsdiffutilsfindutilstargzipawksedgrep
Install Strands Box
Run the official install script to download the aarch64 Linux release, verify its checksums, and place the box CLI in ~/.local/bin:
curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/install.sh | sh
The installer unpacks Strands Box under ~/.strands/box/ and adds a box launcher in ~/.local/bin/box.
The install script downloads the latest stable release by default. To install a specific version, pass BOX_VERSION to the shell:
curl -fsSL https://raw.githubusercontent.com/strands-agents/box/main/install.sh | BOX_VERSION=0.3.3 sh
To find available releases, see the
Strands Box GitHub releases
. The installation steps were verified with version 0.3.3.
The installer adds ~/.local/bin to your shell configuration file automatically, unless you set BOX_NO_MODIFY_PATH=1.
Open a new terminal window or update PATH in your current shell, then check the installed version:
export PATH="$HOME/.local/bin:$PATH"
box --version
The output is similar to:
box 0.3.3
Usage telemetry is enabled by default. If you prefer to disable it, run:
box telemetry off
(Optional) Configure AppArmor user namespace access
Some Linux distributions, including Ubuntu 24.04 LTS and later, restrict unprivileged user namespaces using AppArmor. Without an AppArmor rule permitting the Strands Box sandbox launcher to create user namespaces, the box run command fails.
Check whether AppArmor user namespace restriction is active on your system:
sysctl -n kernel.apparmor_restrict_unprivileged_userns 2>/dev/null || echo 0
If the output is 0, your kernel doesn’t restrict unprivileged user namespaces. Skip to
Understand profiles, policies, and key commands
.
If the output is 1, add an executable-specific AppArmor profile for strands-box-contain-trampoline and load it:
sudo tee /etc/apparmor.d/strands-box-contain-trampoline << 'EOF'
abi <abi/4.0>,
include <tunables/global>
profile strands-box-contain-trampoline /home/*/.strands/box/packages/*/strands-box-contain-trampoline flags=(unconfined) {
userns,
}
EOF
sudo apparmor_parser -r /etc/apparmor.d/strands-box-contain-trampoline
The profile keeps the AppArmor restriction active system-wide, while allowing the Strands Box launcher to set up its isolated namespaces.
Understand profiles, policies, and key commands
Strands Box organizes each sandbox setup into a profile. The profile is either stored globally under ~/.strands/box/profiles/<name>/, or locally inside the .box/ directory of a project for sharing in source control.
Each profile combines the following two main files:
profile.toml: Declares the workload command or agent, model provider, and tool packs to load. Also defines policy files, project access, and provider options.policy.dw: Defines default-deny rules in the Dogwood policy language. Every shell command, file operation, network connection, and model context protocol (MCP) tool call is blocked unless permitted. A matchingforbidrule always overrides apermitrule.
The following table summarizes the box commands that you’ll use most often:
| Command | Purpose |
|---|---|
box profile list | List your local profiles and built-in starters. |
box profile create <name> | Create a new agent profile interactively, or with flags such as --with. |
box profile show <name> | Preview resolved packs, options, and compiled policies (--full) without starting a sandbox. |
box profile edit <name> | Change settings or policies on an existing profile. |
box run <profile> | Start a sandboxed workload scoped to the current project directory. |
box runs list | List previous sandbox runs and their box IDs. |
box runs history <box-id> | Inspect actions allowed or denied (--deny) during a run. |
box explain <code> | Look up a Box error code and view suggested fixes. |
Verify the installation
Start by listing your local profiles and built-in starters:
box profile list
Confirm that the command completes cleanly and lists built-in starters such as claude, codex, and kiro.
To verify box run without installing an AI coding agent or configuring model credentials, create a small test workspace. Create a minimal profile that runs the Strands Box policy-enforced shell strands-shell.
Create a test workspace directory containing a regular file and a placeholder .env file:
mkdir -p ~/strands-box-test
cd ~/strands-box-test
echo "hello from arm64" > hello.txt
echo "API_SECRET=example-value" > .env
Create a shell-demo profile directory and write profile.toml:
mkdir -p ~/.strands/box/profiles/shell-demo
cat << 'EOF' > ~/.strands/box/profiles/shell-demo/profile.toml
packs = ["@box/base"]
policies = ["policy.dw"]
[banner]
enabled = false
[project]
access = "write"
[agent]
command = ["/usr/bin/env", "bash", "-c"]
EOF
Box Core prepends its sandbox shell directory to PATH at runtime. Invoking /usr/bin/env bash -c launches Strands Shell inside the Linux namespace sandbox and routes commands through your Dogwood policy.
Create the matching policy.dw file, permitting shell commands and /dev/null while forbidding reads of .env files:
cat << 'EOF' > ~/.strands/box/profiles/shell-demo/policy.dw
@id("shell_commands")
permit (principal, action == Box::Action::"shell:exec", resource);
@id("dev_null")
permit (principal, action in [Box::Action::"fs:read", Box::Action::"fs:write"], resource)
when { context.input.path == "/dev/null" };
@id("no_env")
forbid (principal, action == Box::Action::"fs:read", resource)
when { context.input.path like "*/.env" };
EOF
Preview the resolved configuration from your test workspace before starting a sandbox:
box profile show shell-demo
The output is similar to:
box: Profile shell-demo
✓ Resolves for this directory
packs @box/base 1
policies policy.dw
storage /home/ubuntu/.strands/box/storage/shell-demo/default
project read and write
Options
terminal.colorterm "truecolor" (default)
terminal.term "xterm-256color" (default)
Full configuration: box profile show shell-demo --full
The box profile show command validates the profile against the current working directory without starting a sandbox or modifying state. Append --full to inspect the generated box.toml and complete compiled Dogwood policy, including auto-generated project_read and project_write rules.
Run a test command inside the sandbox to verify the following details in one step:
- Architecture reporting
- Permitted workspace reads
- Custom
forbidrules - Default-deny filesystem isolation
- Default-deny network egress
box run shell-demo -- "uname -m; cat hello.txt; cat .env; cat /etc/passwd; curl -s https://example.com"
After the startup notes, the output ends with:
aarch64
hello from arm64
strands-shell: cat: policy denied this operation on '~/strands-box-test/.env' [policy: no_env].
strands-shell: cat: policy denied this operation on '/etc/passwd' [default-deny]: No permit policy matched this request.
curl: policy denied this operation on 'example.com:443' [default-deny]: No permit policy matched this request.
List your recorded runs to retrieve the box ID:
box runs list
Inspect the policy denials recorded during that run, replacing <box-id> with the ID that’s returned by box runs list:
box runs history <box-id> --deny
The output is similar to:
TIME (UTC) RESULT ACTION RESOURCE RULE REASON
2026-12-02T19:06:36Z deny fs:read ~/strands-box-test/.env no_env a forbid rule matched
2026-12-02T19:06:36Z deny fs:read /etc/passwd <default-deny> no permit matched
2026-12-02T19:06:36Z deny net:connect example.com:443 <default-deny> no permit matched
Omit --deny to view every permitted and denied action recorded during the run.
Clean up test resources
Remove the test profile and its associated sandbox data:
box profile delete --no-ask shell-demo
To keep a profile while removing older runs, use box profile clean <profile>. To wipe saved agent sessions and memory while keeping the configuration, use box profile reset <profile>.
Remove the test project directory:
cd $HOME
rm -rf ~/strands-box-test
Next steps
You’re now ready to run AI coding agents in policy-governed sandboxes on Arm Linux. Install a supported agent and create a profile from one of the built-in starters.
Give feedback
How would you rate this tool quick-install guide?
What is the primary reason for your feedback ?
Thank you! We're grateful for your feedback.
- Have more feedback? Log an issue on GitHub.
- Want to collaborate? Join our Discord server.