This page covers creating sandboxes and managing them. For background on what sandboxes are and how isolation works, refer to Architecture.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/NVIDIA/OpenShell/llms.txt
Use this file to discover all available pages before exploring further.
Create a sandbox
Run the create command
Create a sandbox with a single command. To create a sandbox with Claude:Every sandbox requires a gateway. If none exists, the CLI auto-bootstraps a local gateway.
Choose your agent
Pass any supported agent as the trailing command:Use the --from flag
Create a sandbox from a community package, a local directory, or a container image:
Run on a remote gateway
If you plan to run sandboxes on a remote host or a cloud-hosted gateway, set up the gateway first, then create the sandbox as normal. Refer to Gateways for deployment options.Request GPU resources
Add--gpu to request GPU resources:
Apply a policy at creation
Pass a policy YAML file with--policy:
--policy every time, set the OPENSHELL_SANDBOX_POLICY environment variable. Refer to Policies for the full policy workflow.
Forward a port at creation
Connect to a sandbox
- SSH session
- Editor (VS Code / Cursor)
- SSH config
Open an SSH session into a running sandbox:
Monitor and debug
List all sandboxes:| Flag | Purpose | Example |
|---|---|---|
--tail | Stream logs in real time | openshell logs my-sandbox --tail |
--source | Filter by log source | --source sandbox |
--level | Filter by severity | --level warn |
--since | Show logs from a time window | --since 5m |
Terminal UI
OpenShell Terminal combines sandbox status and live logs in a single real-time dashboard:Tab to switch panels, j/k to move through lists, Enter to select, and : for command mode. Use it to spot blocked connections marked action=deny and inference-related proxy activity. If a connection is blocked unexpectedly, add the host to your network policy — refer to Policies.
Port forwarding
Forward a local port to a running sandbox to access services inside it, such as a web server or database:Transfer files
Upload files from your host into the sandbox:You can also upload files at creation time with the
--upload flag on openshell sandbox create.Delete sandboxes
Deleting a sandbox stops all processes, releases resources, and purges injected credentials:Next steps
Providers
Supply API keys and tokens to sandboxes.
Policies
Control what the agent can access on the network and filesystem.
Community sandboxes
Use a pre-built environment from the community catalog.
GitHub sandbox tutorial
End-to-end walkthrough with scoped GitHub repo access.