Highlights
Declarative sandbox environments. Define a complete, reproducible sandbox in a .sbxenv.yaml file, including the agent, workspace, kits, environment variables, secrets, registry credentials, ports, and resource limits. Commit the file with your project so contributors can launch the same environment with sbx env run. This feature is experimental.
What's New
Sandbox environments
- Use
sbx env runto provision an environment from.sbxenv.yamland open an interactive session. - Use
sbx env create,sbx env exec, andsbx env rmto manage the environment lifecycle. - Combine multiple environment files for shared configuration and local overrides.
- Reference host environment variables in environment files for machine-specific paths and credentials.
- See the sandbox environment files documentation.
CLI
- Add an experimental
--usbflag tosbx createbehind theDOCKER_SANDBOXES_FEATURE_SANDBOX_USBenvironment variable to re-attach the specified USB devices. They will be available inside a sandbox via usbfs. Linux x86_64/ARM64 only. - sbx run --model now selects the Ollama backend via a new
--provider ollamaflag instead of anollama/prefix on the model name. - Stopped sandboxes can now be cleaned up in bulk with
sbx prune, which never removes a running sandbox and can filter on how long each has been stopped. sbx runandsbx createnow accept-e/--envand--env-fileto set environment variables in a sandbox, followingdocker runprecedence rules.
Secrets
sbx secret setandsbx secret set-customcan now configure dynamic secrets that resolve values from a reference or command, with options to control refreshing, verification, and error output.
Daemon
- Sandboxes now expose their own identity as
SANDBOX_NAMEandSANDBOX_IDenvironment variables, matching the name and id shown bysbx ls --json; the olderSANDBOX_VM_IDstill carries the sandbox name but is deprecated.
Networking
- Claude Code's
/remote-controlcan now be used inside sandboxes by enablingclaude.remoteControlsetting:sbx settings set claude.remoteControl true.
Bug Fixes
- sandboxd now removes the sandbox container immediately when container startup fails, so an interrupted
sbx create/sbx runis less likely to leave the sandbox name unusable. - Agent kits that declare a persistent volume without a size now get a 512 MB volume instead of a 50 GB one, which significantly reduces sandbox disk usage on the host.
sbxnow reports a clear error for an unrecognized command, subcommand, orsbx helptopic instead of printing help and succeeding, and reports a mistyped command without first asking an unauthenticated user to sign in.- Claude sandboxes now use around 3.9 GB less disk space on the host.
- Claude sandboxes can connect to required Anthropic services when using the locked-down network policy.
sbx kit inspectnow describes kits using kit-spec v2 field names and lists any deprecated fields a kit still relies on, andsbx kit validatenow rejects OAuth credentials missing sentinels, a service, or a credential-file body.- DNS lookups in a sandbox now succeed for any host that network policy allows on any port, including hosts allowed only on a non-standard port such as
myhost:2222. sbx template loadnow fails with an error when an image import does not complete, instead of reporting success.- Correct the
sbx create --namehelp text and CLI reference, which incorrectly listed plus signs as valid sandbox-name characters and omitted the leading-alphanumeric and two-character-minimum rules. sbx resetnow removes the Docker Sandboxes-managed block from~/.ssh/config.sbxnow reports the exit code when a sandbox container dies at startup, and rejects a template image built for a different CPU architecture with a clear message instead of failing after a 30-second wait.- Signing in to Claude Code with an Anthropic Console API key now succeeds on repeat logins instead of failing with a 401 error.
- Fixed
sbx cpfailing on Windows when the local path has no directory component (e.g.sbx cp file.txt sandbox:/tmp/). sbx daemon restartnow starts the daemon again after a stop that reports a failure but leaves no daemon running.
Other
sbx diagnosenow reports free disk space on the volume holding sandbox data, and diagnostics bundles include host disk totals.sbx diagnosenow detects broken, shadowed, or stale SSH client configuration.sbx mcp auth <server>can now authorize Docker MCP catalog servers by name without a priorsbx mcp add; container-only variants point at their-remotesibling.- Add a
platform.images.registryMirrorsetting that redirects Docker Hub-resolving sandbox template and kit images to an organization's registry mirror. - Filesystem policy denials now include the organization's support contact message, matching network denials.
- sbx now reports when the host cannot provide a hypervisor — including a Windows installation running inside a virtual machine without nested virtualization — instead of a generic "failed to run sandbox container" error, and
sbx diagnosenow checks host virtualization support. - Kits can now be signed and verified with cosign-compatible Sigstore signatures via
sbx kit sign/sbx kit verify, with optional policy enforcement at load time. - OAuth kits can declare their credential file with the declarative
credentialFile.structureform, rendered to well-formed JSON, instead of a free-form Go template. - Ubuntu 25.10 packages are no longer published; Ubuntu 25.10 is end-of-life.