sbx
| Description | Manage AI coding agent sandboxes. |
|---|---|
| Usage | sbx COMMAND |
Description
Docker Sandboxes creates isolated sandbox environments for AI agents, powered by Docker.
Run without a command to launch interactive mode, or pass a command for CLI usage.
Commands
| Command | Description |
|---|---|
sbx attach | Attach to a running cloud sandbox |
sbx completion | Generate the autocompletion script for the specified shell |
sbx cp | Copy files or directories between a sandbox and the host |
sbx create | Create a sandbox for an agent |
sbx daemon | Manage sandboxd daemon |
sbx diagnose | Diagnose common issues with your sbx installation |
sbx env | experimental Manage sandboxes declaratively from an sbxenv.yaml file |
sbx exec | Execute a command inside a sandbox |
sbx kit | experimental Manage kit artifacts |
sbx login | Sign in to Docker |
sbx logout | Stop all running sandboxes and sign out of Docker |
sbx ls | List sandboxes |
sbx mcp | Manage MCP servers |
sbx policy | Manage sandbox policies |
sbx ports | Manage sandbox port publishing |
sbx prune | Remove all stopped sandboxes |
sbx reset | Reset all sandboxes and clean up state |
sbx rm | Remove one or more sandboxes |
sbx run | Run an agent in a sandbox |
sbx secret | Manage stored secrets |
sbx setup | experimental Detect host configuration and prepare Docker Sandboxes |
sbx skills | experimental Manage skills available in sandboxes |
sbx stop | Stop one or more sandboxes without removing them |
sbx template | Manage sandbox templates |
sbx ttl | Inspect or extend a cloud sandbox's TTL |
sbx tui | Open the interactive TUI dashboard |
sbx version | Show Docker Sandboxes version information |
sbx volume | Manage persistent volumes (cloud-only) |
Options
| Option | Default | Description |
|---|---|---|
--cloud | Dispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list) | |
--cloud-api-url | https://api.sandboxes-cloud.docker.com | Cloud Sandboxes API base URL; only used with --cloud. Defaults to prod (https://api.sandboxes-cloud.docker.com). Set DOCKER_CLOUD_API_URL or pass this flag to override; a legacy value ending in /v1 is accepted. |
-D, --debug | Enable debug logging |