Repository navigation
Releases: docker/sbx-releases
Release list
v0.48.0
Highlights
Docker Sandboxes v0.48.0 updates the CLI across all commands, with consistent terminal output and JSON/YAML formats. This changes flags, structured output, and prompts used by existing scripts. Review the migration details below before upgrading automated workflows.
The release also adds managed Codex and Claude Desktop SSH targets on macOS and Windows, additional v3 kit capabilities, and support for adding kits with startup commands to existing sandboxes.
Breaking changes
CLI flags, output, and automation
The CLI refactor changes both interactive use and scripting interfaces. Existing --json parsers may need updates even if their command lines still work. Scripts that parse human-readable output must switch to --format json or --format yaml.
Update command flags
| Command | Previous spelling | Replacement or behavior |
|---|---|---|
sbx run, sbx env run |
--detached |
Use --detach or -d. --detached is rejected. |
sbx logout |
--yes, -y |
Use --force or -f. |
sbx env plan, sbx env create, sbx env run |
--auto-approve, -y |
Use --force or -f. |
sbx create |
--quiet, -q |
Use --no-progress. This suppresses progress, but still prints the creation summary. |
sbx template save |
-d for the description |
Use --description. |
sbx diagnose |
--output, -o |
Use --format table, --format json, --format yaml, or --format github-issue. |
sbx secret ls, sbx secret rm |
--env |
Use --env-name. |
sbx policy log |
--quiet, -q |
Removed; there is no replacement. |
--format, --json, and -q are mutually exclusive on commands that use the shared output flags. Even --json --format json is rejected. Unsupported format values fail during flag parsing instead of falling back to human-readable output.
sbx settings ls is the primary spelling; sbx settings list remains an alias. sbx kit builder history rm keeps --yes / -y because its --force flag is forwarded to Buildx. The deprecated --global and mcp add --skip_auth flags remain accepted but hidden, with a deprecation warning on stderr; use --skip-auth instead of --skip_auth.
Update structured-output parsers
--json is an alias of --format json and emits the same document. JSON output structures have changed for the commands listed in the following table. Output uses snake_case field names; YAML is derived from the same representation.
| Command | Output change |
|---|---|
sbx ls |
Returns the sandbox array directly instead of {"sandboxes": [...]}. Fields use snake_case, created_at and last_used_at use RFC 3339 timestamps, and rows include detached. |
sbx template ls |
Returns the image array directly instead of {"images": [...]}, for local and cloud sandboxes. |
sbx mcp ls locally |
Returns the server array directly instead of {"gateway": {...}, "servers": [...]}. Each server row carries gateway. |
sbx policy log |
Local and cloud output use {updated_at, allowed: [...], blocked: [...]}. Entries contain sandbox_id, host, proxy_type, rule, reason, count, first_seen, and last_seen. --limit applies. This replaces local allowed_hosts / blocked_hosts and the cloud camelCase document. |
sbx --cloud policy ls |
Field names change from camelCase to snake_case. |
sbx ports |
Cloud rows use sandbox_port instead of port, alongside url. Local rows use host_ip, host_port, sandbox_port, and protocol. |
sbx ports --publish / --unpublish locally |
Structured formats emit result rows with action: published or action: unpublished instead of human-readable lines. Warnings go to stderr. |
Cloud volume create, volume ls, and volume inspect |
Fields such as ID, Name, and CreatedAt become id, name, and created_at. volume inspect defaults to a human-readable details view; request --format json for JSON. |
sbx rm, sbx stop, sbx template rm, sbx volume rm |
Structured formats return an array of results with action, resource, name, and optional id and error. Actions are lowercase: removed, stopped, removing, stopping, or failed. Missing and failed targets are included. |
For example, a script that extracts sandbox names from sbx ls --json must change its filter from .sandboxes[].name to .[].name.
Local and cloud output follow the same conventions. MCP list output still represents different resources: local registrations versus server usage across cloud sandboxes, so those rows differ beyond their shared name and type fields.
sbx prune --dry-run accepts --format json and --format yaml. Cloud ttl --format yaml emits YAML instead of JSON, and sbx diagnose supports YAML. sbx events --json remains an NDJSON stream, and sbx mcp auth --format text|json retains its command-specific formats.
Update non-interactive workflows
- Confirmation prompts require terminal input. Piping an answer, such as
echo y | sbx secret set …, no longer confirms the operation. Use--force/-fwhere the command provides it. Commands that require confirmation fail with exit status 1 when stdin is not a terminal. - Declining a confirmation returns a non-zero exit status consistently, including for removal, reset, and prune operations.
- Read-only invocations and runs with
--forcedo not start an interactive sign-in flow. Sign in before running automation that requires authentication. Read-only examples includeports SANDBOX,ttl SANDBOX,prune --dry-run, anddiagnose; their modifying or upload variants are not read-only. - Without a terminal,
sbx diagnose --uploadsaves the diagnostic bundle but skips uploading it and exits with status 0. A successful exit does not mean that an upload occurred. - Without a terminal,
sbx createandsbx runfail if the workspace directory does not exist and print amkdir -phint. Create the directory before invoking the command. - Ctrl-D at a selection or free-text prompt cancels instead of accepting the default. Enter still accepts the default.
Terminal output and streams
Human-readable output changes across all commands: headings, status marks, indentation, progress, and result messages use a consistent format. sbx ls includes state marks and a creation-time column; sbx ls and sbx inspect identify detached sandboxes.
Results go to stdout. Errors, warnings, corrective hints, daemon-start progress, image pulls, and kit-build progress go to stderr. Update scripts that depend on exact message text or capture only one stream.
What's new
Security
- Fixed sign-in enforcement ignoring
allowedOrgson macOS. sbx cpblocks local paths that escape a sandbox workspace through symbolic links.- Cloud
sbx cpdownloads andsbx kit packpreserve restrictive destination permissions without temporarily exposing the replacement file. They account for permissions at completion and do not widen them. On Unix, cloudsbx cprefuses to replace files owned by another user; on Windows, permission preservation covers the read-only attribute. Special permission bits are retained where the kernel permits. This cloud-copy change does not affect localsbx cp. sbx kit addchecks the filesystem mount policy before recreating a sandbox and refuses the operation if its workspace or a saved mount is denied, matchingsbx start.- Fixed the daemon crashing on a malformed request sent through an intercepted HTTPS connection.
SSH and desktop integration
- On macOS and Windows,
sbx setup ssh --auto-createregisters Docker Sandbox connections in Codex and Claude Desktop. Each connection creates a dedicated sandbox on first use and reuses it on subsequent connections. These sandboxes have no host workspace mounted. Clone or copy your project into the sandbox to work on it. - Desktop SSH setup warns about missing authentication and provides local sign-in guidance for Codex and Claude. Repeating
sbx setup sshrecognizes existing registrations even while the applications are running. - Closing a Cursor or VS Code window connected over SSH no longer stops the daemon and other running sandboxes.
- SSH connections no longer fail because the CLI's initial feature lookup timed out before starting the daemon.
- SSH-agent forwarding supports Windows OpenSSH and 1Password agents when
SSH_AUTH_SOCKis not set.
Kits
- V3 kits support capability groups,
kit.envreferences, bundled agent skills, and thessh-agent@1andgit-identity@1capabilities. Selected optional groups retain their network rules, lifecycle files, and context; unsupported optional groups are skipped. Bundled skills can use directories outside the agent's home. sbx kit addaccepts kits with startup commands. Those commands run after the kit is added and on each subsequent sandbox start.- Sandbox containers expose the provisioned agent's name through
SBX_AGENTfor kit hooks and scripts. sbx kit validaterejects kits whose credentials route the same host, identifying the conflicting services. The daemon logs the collision during sandbox creation.- Sandbox creation supports kits whose resolved lock exceeds Docker's container-label size limit.
sbx kit packexcludes its output from the archive, prevents writes into the kit'sfiles/directory, and handles Windows 8.3 output paths without renaming the destination or including a previous archive. The output path must end in.zipand cannot be a named pipe, socket, or device node.- An unresolvable kit-file path no longer causes
sbx kit pushto fail. - Kits that declare an agent-context directory now have their agent instructions file written in that directory instead of beside the workspace, and large workload and mixin kit combinations no longer fail to create with "failed to run sandbox contain...
v0.48.0-rc4
docs(readme): link awesome-docker-sbx (#668)
v0.48.0-rc3
docs(readme): link awesome-docker-sbx (#668)
v0.47.0
Highlights
Docker Sandboxes v0.47.0 adds automatic cleanup after agent sessions with sbx run --rm and a kit capability for keeping local sandboxes running after sessions disconnect.
What's new
Security
- Fixed OAuth token interception when a provider hostname uses different capitalization or a trailing dot, preventing real tokens from reaching the sandbox instead of the proxy's placeholders.
- The proxy rejects unrecognized OAuth token grants and prevents their responses from replacing host-managed credentials. Supported in-sandbox sign-in flows remain available.
- The proxy returns an error when it cannot safely mask a successful Anthropic API-key creation response, instead of forwarding the unmasked response to the sandbox.
- Included since v0.46.0: fixed raw TCP connections to denied hostnames being permitted by an allow rule for the hostname's resolved IP address. This fix applies to TCP; the related UDP case with multiple tracked hostnames remains outside its scope.
- Included since v0.45.0: CLI-created cloud hostname allowlists no longer gain implicit
0.0.0.0/0and::/0rules. Existing stored policies are unchanged; remove those rules or recreate the policy to apply the restriction. Explicit IP and CIDR allowances remain supported. - The proxy rejects TLS handshakes that fill its inspection buffer before a complete ClientHello can be checked on a non-MITM CONNECT tunnel or during the transparent proxy's late handshake check.
- The proxy closes incomplete TLS handshakes on those paths after a two-minute timeout instead of retaining the connections for the sandbox's lifetime.
- Sandboxes reject UDP to multicast, link-local, and unspecified destinations, limited broadcast, and broadcast addresses derived from the host's interface prefixes, regardless of network policy. UDP to
host.docker.internalis unaffected. Broadcast addresses configured outside that derivation and networks reachable only through routes are not covered by this check. - Kit pulls enforce limits on registry-declared blob sizes, decompressed content, and archive entry counts.
Sandbox lifecycle and workspaces
sbx run --rmremoves a local or cloud sandbox after its agent session ends. It cannot be combined with--detached. If a cloud session is interrupted, such as by a dropped connection, the sandbox is kept and the CLI prints the command to remove it.- Running
sbx run -dagainst an existing local sandbox keeps it running after sessions disconnect, until you stop or remove it. - Dynamic mounts and permissions created through symlink paths can be removed without reappearing after a restart. Incompatible saved records include recovery guidance.
Kits
- Local kit inspection, validation, and pulling require the daemon to be running.
- Kits can declare
com.docker.sandbox/long-running@1to keep local sandboxes running after all sessions disconnect. Cloud sandboxes andsbx kit addcannot provide this capability: required entries are rejected, and optional entries are skipped. sbx kit signandsbx kit push --signsucceed on registries that refuse manifest deletion, including GitHub Container Registry and Docker Hub, instead of reporting failure after attaching the signature.- Adding a kit to a sandbox whose guest has stopped responding fails without leaving the sandbox unusable until the daemon restarts.
Cloud sandboxes
sbx --cloud ttlreports stopped sandboxes as stopped instead of expired. The time-to-live restarts when the sandbox resumes. JSON output includesstoppedandttl_paused; while the sandbox is resuming, onlyttl_pausedis true.- Creating a cloud sandbox or moving a local sandbox to the cloud applies cloud policy and the kit's network rules without copying locally added network rules. Moving a sandbox with local HTTP method or path restrictions warns that those restrictions will not apply in the cloud.
Settings and proxies
- Upstream proxy recovery no longer blocks unrelated sandboxes or deletes isolated container data when credentials are unavailable. Local host services remain reachable.
sbx settings setrejects invalid upstream proxy values before saving them.
MCP
- MCP authorization requests
offline_accesswhen the server advertises it and authorization uses saved defaults or resource-required scopes, so the server can issue refresh tokens. Explicit--scopevalues are unchanged. Runsbx mcp authagain to obtain a grant with a refresh token for existing credentials. - Fixed MCP gateway availability in sandboxes created from the TUI and when connecting over SSH after a daemon restart or automatic sandbox creation.
CLI and updates
sbx envreports the correct file, line, and column for unrecognized keys even when another entry in the file fails custom validation. Multiple validation errors appear on separate lines.- Help remains available when the settings directory is unwritable or local settings cannot be opened, with a warning instead of a panic.
- Host-port collisions from
sbx ports --publishidentify the occupied binding and offer a retry with an automatically allocated port when safe. - Windows update notices appear only after WinGet confirms that the version is available in its catalog.
2026-10-14 — Nightly build (7167374)
Note
Immutable macOS assets for the sbx@nightly Homebrew cask — 2026-10-14 (7167374c89559fadc831878d2c2ef8426df417f9).
All platforms are available from the nightly release.
2026-10-13 — Nightly build (b3b25f4)
Note
Immutable macOS assets for the sbx@nightly Homebrew cask — 2026-10-13 (b3b25f405b5751183a399b41e977aeaba6572f2f).
All platforms are available from the nightly release.
2026-10-12 — Nightly build (f6cd720)
Note
Immutable macOS assets for the sbx@nightly Homebrew cask — 2026-10-12 (f6cd720a42ec1fb31f1a18b38bd2f9e354855d8b).
All platforms are available from the nightly release.
2026-10-10 — Nightly build (b171a17)
Note
Immutable macOS assets for the sbx@nightly Homebrew cask — 2026-10-10 (b171a17fc736bd197547f6952ccc4e0ffc91caec).
All platforms are available from the nightly release.
2026-10-09 — Nightly build (41976d0)
Note
Immutable macOS assets for the sbx@nightly Homebrew cask — 2026-10-09 (41976d0608ed71a92e6d71703b1313d7cd2b169b).
All platforms are available from the nightly release.
2026-10-08 — Nightly build (3d6106b)
Note
Immutable macOS assets for the sbx@nightly Homebrew cask — 2026-10-08 (3d6106b27d2372044ca07e9e928c8fd9652a7193).
All platforms are available from the nightly release.