Share feedback
Answers are generated based on the documentation.

sbx create

DescriptionCreate a sandbox for an agent
Usagesbx create [flags] AGENT PATH [PATH...]

Description

Create a sandbox with access to a host workspace for an agent.

Use "sbx run SANDBOX" to attach to the agent after creation.

Commands

CommandDescription
sbx create claudeCreate a sandbox for claude
sbx create codexCreate a sandbox for codex
sbx create copilotCreate a sandbox for copilot
sbx create docker-agentCreate a sandbox for docker-agent
sbx create geminiCreate a sandbox for gemini
sbx create kiroCreate a sandbox for kiro
sbx create opencodeCreate a sandbox for opencode
sbx create shellCreate a sandbox for shell

Options

OptionDefaultDescription
--branchCreate a Git worktree on the given branch
-m, --memoryMemory limit in binary units (e.g., 1024m, 8g). Default: 50% of host memory, max 32 GiB
--nameName for the sandbox (default: <agent>-<workdir>, letters, numbers, hyphens, periods, plus signs and minus signs only)
-q, --quietSuppress verbose output
-t, --templateContainer image to use for the sandbox (default: agent-specific image)

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

# Create a sandbox for Claude in the current directory
sbx create claude .

# Create a sandbox with a custom name
sbx create --name my-project claude /path/to/project

# Create with additional read-only workspaces
sbx create claude . /path/to/docs:ro

# Create with a Git worktree for isolated changes
sbx create --branch=feature/login claude .