Skip to main content
This page gets you from zero to a running, policy-enforced sandbox.

Prerequisites

Before you begin, make sure Docker Desktop (or a Docker daemon) is running on your machine. No other software is required.
For a full list of supported platforms and kernel requirements, see the Support Matrix.

Install the OpenShell CLI

1

Choose an install method

Install the CLI using the binary install script (recommended) or via PyPI with uv.
Both methods install the latest stable release by default.
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:
The CLI prompts you to create a provider from local credentials. Type 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.
A gateway is created automatically on first use. The sandbox container includes the following tools by default:

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:
You can run the full automated demo with bash examples/sandbox-policy-quickstart/demo.sh.

Deploy a gateway (optional)

Running openshell sandbox create without a gateway auto-bootstraps a local one. To start the gateway explicitly or deploy to a remote host:

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.