/all-skills:sbxfrom all-skills
Guides installation and usage of sbx CLI for running AI coding agents in isolated microVMs. Use when installing sbx, launching sandboxes, managing lifecycle, port-forwarding, or copying files.
Ships in all-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Docker Sandboxes runs AI coding agents in microVMs backed by a KVM hypervisor. The binary is sbx — not docker sbx. Each sandbox gets its own kernel, its own Docker daemon, and an isolated network namespace. Only the workspace directory is mounted into the VM. A credential proxy injects API keys host-side so secrets never enter the VM filesystem.
Requires Homebrew.
brew install docker/tap/sbx
Requires Hypervisor Platform enabled in Windows Features.
winget install Docker.sbx
Requires KVM and user in the kvm group.
curl -fsSL https://get.docker.com | sudo REPO_ONLY=1 sh
sudo apt-get install docker-sbx
mise's github backend extracts the platform tarball, preserves the bin/sbx + libexec/ layout, and verifies SLSA provenance. See templates/mise.toml.
[tools]
"github:docker/sbx-releases" = "0.30.0"
mise install
sbx version
Apple silicon and Linux x86_64 are confirmed. Windows is not packaged as a tarball asset — use winget above.
sbx login
Prompts for an API key and stores credentials locally.
# Create and immediately run a sandbox with Claude Code
sbx run claude
Available agents: Claude Code, Codex, Copilot, Cursor, Droid, Gemini, Kiro, OpenCode, Docker Agent, Shell (agent-less).
Create a sandbox in the background without attaching:
sbx create claude
--branch auto creates a Git worktree for the sandbox, keeping branch changes isolated from the main working tree. Worktrees live under .sbx/ in the repo root. Add .sbx/ to .gitignore (or global gitignore) to keep it out of git status.
# Auto-create a worktree branch (with trailing path)
sbx run claude --branch auto .
# Target an existing branch
sbx run claude --branch my-feature
# Suggested gitignore entry
echo '.sbx/' >> .gitignore
--branch is the recommended pattern for any agent that writes code — it keeps every agent edit on a reviewable branch the operator can diff and merge deliberately.
# List all sandboxes
sbx ls
# Pause a running sandbox
sbx stop my-sandbox
# Delete a sandbox (VM filesystem wiped; workspace directory preserved)
sbx rm my-sandbox
sbx rm wipes the VM filesystem. The workspace directory on the host is not deleted.
# Copy a file from host into the sandbox
sbx cp ./local-file.txt my-sandbox:/workspace/local-file.txt
# Copy a file out of the sandbox to the host
sbx cp my-sandbox:/workspace/output.txt ./output.txt
# Publish host port 8080 → sandbox port 3000
sbx ports my-sandbox --publish 8080:3000
# Remove an existing publish
sbx ports my-sandbox --unpublish 8080:3000
sbx exec -it my-sandbox bash
-it keeps the shell interactive. Without it, exec runs the command and exits.
sbx ships a deny-by-default network policy. Add explicit allow rules per host or wildcard:
# Allow a global host for all sandboxes
sbx policy allow network -g registry.npmjs.org
# Inspect current policy
sbx policy ls
** matches multiple subdomain levels in the rule grammar.
Running sbx with no subcommand opens a terminal dashboard. Key shortcuts:
| Key | Action |
|---|---|
c | Create a sandbox |
s | Start or stop the selected sandbox |
Enter | Attach to the agent session |
x | Open a shell (same as sbx exec) |
r | Remove the selected sandbox |
Tab | Switch between sandbox and network governance panels |
? | Show all shortcuts |
Four isolation layers:
The workspace directory is shared between the host and the VM. An agent running inside the sandbox can modify Git hooks, CI configuration files, and build scripts in that shared workspace. Those files execute on the host the next time the host invokes them (e.g., on the next git commit or CI run). Review workspace-written hooks and scripts before executing them on the host.
Code that an agent writes to the workspace and that you then execute on the host runs with host privileges. The microVM boundary does not extend to host-side execution of workspace artifacts.
See references/security-model.md for the full four-layer breakdown and network policy detail.
# Print installed sbx version
sbx version
# Collect diagnostic information
sbx diagnose
For release history, see https://github.com/docker/sbx-releases.
Each sandbox runs its own Docker daemon, so the agent can spin up service containers (Postgres, Redis, etc.) inside the VM without touching the host's Docker. The workspace dir is mounted into the VM, so a compose.yaml in the repo works as-is.
See templates/elixir-tidewave/ for a worked example: Phoenix app + Postgres container + Tidewave runtime introspection, all inside a single sandbox where Claude is the running agent.
references/commands.md — confirmed subcommands and flags with canonical invocationsreferences/security-model.md — four-layer isolation model, network policy, credential injection, workspace caveattemplates/mise.toml — mise github backend pin for sbxtemplates/elixir-tidewave/ — Docker-in-sbx workflow with Phoenix + Postgres + TidewaveRelated: /core:container — Apple Container CLI (lightweight Linux VMs on Apple silicon via Virtualization.framework; different layer from sbx microVMs). /elixir:tidewave (elixir plugin) — Tidewave MCP setup detail used by the elixir-tidewave template.
This skill follows core:anti-fabrication. The subcommand list, flags, install commands, and security model are extracted verbatim from the upstream docs cited in sources.md. The introduction version is not stated upstream and is not fabricated here — release history lives at https://github.com/docker/sbx-releases.
references/commands.md (opens in a new tab)references/security-model.md (opens in a new tab)templates/elixir-tidewave/README.md (opens in a new tab)templates/elixir-tidewave/compose.yaml (opens in a new tab)templates/elixir-tidewave/config-dev.exs.snippet (opens in a new tab)templates/elixir-tidewave/endpoint.ex.snippet (opens in a new tab)templates/elixir-tidewave/mise.toml (opens in a new tab)templates/elixir-tidewave/mix.exs.snippet (opens in a new tab)templates/mise.toml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sbx, docker-sandboxes, microvm, agent-isolation, credential-proxy
npx claudepluginhub vinnie357/claude-skills --plugin all-skills108 skills in this plugin
/accessibilityGuide for implementing web accessibility (WCAG). Use when designing UI components, reviewing interfaces for accessibility, or ensuring compliance with W3C WAI standards./actTest GitHub Actions locally using act. Use when debugging workflows locally, testing workflow changes before pushing, or troubleshooting action failures./actionsCreate and configure GitHub Actions. Use when building custom actions, setting up runners, implementing security practices, or publishing to the marketplace./agent-loopGeneric epic-to-PR agent workflow (codename Forge) with 4-phase execution, a 6-tier hierarchy, and paired-team fan-out. Use when coordinating any feature delivery, working an issue or epic ("work epic <id>", "work issue <id>", "use Forge on the next bees ready item", "forge <id>"), picking up an epic in a fresh session (decomposing path) or with pre-existing issues (dispatching path), implementing a multi-step task that benefits from plan→test→implement→review phases, asking clarifying questions before decomposing, forming a team and assigning models per tier, or orchestrating multi-agent workflows. Loads on casual feature requests too — not only when the word "epic" appears.2 plugins in one repository ship this exact skill · first indexed Jul 4, 2026
Other plugins' skills for the same job