Prerequisites
Before you begin, make sure Docker Desktop (or a Docker daemon) is running on your machine. No other software is required.Install the OpenShell CLI
1
Choose an install method
Install the CLI using the binary install script (recommended) or via PyPI with Both methods install the latest stable release by default.
uv.To install a specific version, set the
OPENSHELL_VERSION environment variable before running the install script, or pin the version with uv tool install openshell==<version>.2
Verify the installation
Run the following command to confirm the CLI is installed and see the full command reference:
Create your first sandbox
Create a sandbox and launch an agent inside it. Choose the tab for your agent:- Claude Code
- OpenCode
- Codex
- GitHub Copilot
- Community Sandbox
yes to continue.If ANTHROPIC_API_KEY is set in your environment, the CLI picks it up automatically. If not, you can configure it from inside the sandbox after it launches.See network policy in action
Every sandbox starts with minimal outbound access. You open additional access with a short YAML policy that the proxy enforces at the HTTP method and path level — no restart required.1
Create a sandbox
2
Try a blocked request from inside the sandbox
Inside the sandbox, outbound traffic is denied by default:
3
Apply a read-only GitHub API policy
Exit the sandbox and apply a policy that allows GET requests to the GitHub API:
4
Reconnect and verify
Reconnect to the sandbox and test the policy:GET is now allowed:POST is still blocked by the L7 policy:
Deploy a gateway (optional)
Runningopenshell sandbox create without a gateway auto-bootstraps a local one. To start the gateway explicitly or deploy to a remote host:
- Local
- Remote SSH
- Cloud
What’s next
Introduction
Learn what OpenShell is, the problems it solves, and its protection layers.
Sandbox policies
Write YAML policies to control exactly what each sandbox can access.
Architecture
Understand the gateway, policy engine, and privacy router in depth.
Community sandboxes
Browse pre-built sandbox images for common agent setups.