Join our Discord Server
Collabnix Team The Collabnix Team is a diverse collective of Docker, Kubernetes, and IoT experts united by a passion for cloud-native technologies. With backgrounds spanning across DevOps, platform engineering, cloud architecture, and container orchestration, our contributors bring together decades of combined experience from various industries and technical domains.

What’s New in Docker Sandboxes – Managed Codex and Claude Desktop SSH Targets with sbx setup ssh –auto-create

2 min read

What’s New in Docker Sandboxes – Managed Codex and Claude Desktop SSH Targets with sbx setup ssh –auto-create

Docker Sandboxes already supports SSH: ssh my-sandbox.sbx opens a shell in a sandbox, which means any SSH-capable editor (VS Code Remote-SSH, Cursor, Zed) can work inside the microVM. v0.48.0 extends this to the desktop agent apps:

On macOS and Windows, sbx setup ssh --auto-create registers Docker Sandbox connections in Codex and Claude Desktop. Each connection creates a dedicated sandbox on first use and reuses it on subsequent connections.

How SSH to a sandbox works

From sbx setup ssh --help:

Write a generated SSH config + known_hosts and include it from ~/.ssh/config so
"ssh <name>.sbx" connects with no prompts. Named app instances use
"ssh <name>.sbx-<app>" instead. Re-run any time; it's idempotent.

No SSH client key is needed; authentication is handled by the daemon's local
socket or named pipe (OS user boundary) combined with an active Docker login.
Sign in first (sbx login). On macOS and Windows, use --auto-create to install
the fixed codex.sbx and claude.sbx desktop profiles.

So you don’t manage any keys. Authentication is your OS user (who can reach the daemon socket) plus your Docker login.

Step 1: Sign in

sbx login

Desktop SSH setup now warns about missing authentication and gives local sign-in guidance for Codex and Claude.

Step 2: Generate the SSH config with desktop profiles

sbx setup ssh --auto-create
[OUTPUT TO CAPTURE]

This does three things:

  1. Writes a generated SSH config and known_hosts, and adds an Include for it to ~/.ssh/config (Host pattern *.sbx by default; change it with --alias).
  2. Registers a codex.sbx profile in Codex.
  3. Registers a claude.sbx profile in Claude Desktop.

Running it again is safe, and it recognises existing registrations even while the apps are running.

Step 3: Connect from Claude Desktop / Codex

[SCREENSHOT: Claude Desktop → SSH connection → claude.sbx]

[SCREENSHOT: Codex → remote → codex.sbx]

On the first connection, sbx creates a dedicated sandbox for that app. Later connections reuse it.

sbx ls
[OUTPUT TO CAPTURE: the auto-created sandboxes]

Step 4: Get your code in (no host workspace)

These auto-created sandboxes have no host workspace mounted. That’s deliberate: the desktop app gets a clean, isolated machine, not your home directory. Bring code in explicitly:

# from inside the session
git clone https://github.com/you/your-repo && cd your-repo

# or from the host
sbx cp ./my-project <sandbox-name>:/home/agent/my-project

Step 5: Plain SSH still works

ssh my-sandbox.sbx -- echo hello
[OUTPUT TO CAPTURE]

Other SSH fixes in 0.48.0

  • Closing a Cursor or VS Code window connected over SSH no longer stops the daemon and every other running sandbox.
  • SSH no longer fails on a cold start, where the CLI’s initial feature lookup used to time out before the daemon was up.
  • SSH agent forwarding works with Windows OpenSSH and 1Password agents when SSH_AUTH_SOCK isn’t set.
  • An unresponsive guest gives stop-and-start guidance over SSH instead of hanging (Part 6).

Undo

sbx setup ssh remove     # removes the SSH config and desktop targets, keeps the sandboxes

Series wrap-up

That’s every new feature in Docker Sandboxes v0.48.0:

  1. A consistent CLI with --format json|yaml and strict non-TTY behaviour
  2. Kits v3: capability groups, kit.env, bundled skills, ssh-agent@1, git-identity@1
  3. sbx kit add with startup commands, plus SBX_AGENT
  4. Live sbx mcp unload
  5. Sandbox-scoped secret overrides
  6. Registry-free local snapshots and lifecycle fixes
  7. Security hardening
  8. Managed Codex and Claude Desktop SSH targets

References: v0.48.0 release notes · Docker Sandboxes docs

Have Queries? Join https://launchpass.com/collabnix

Collabnix Team The Collabnix Team is a diverse collective of Docker, Kubernetes, and IoT experts united by a passion for cloud-native technologies. With backgrounds spanning across DevOps, platform engineering, cloud architecture, and container orchestration, our contributors bring together decades of combined experience from various industries and technical domains.

Understanding AI Embeddings and Vector Search for Beginners

Explore the world of AI embeddings and vector search, learning how they transform massive data into actionable insights, driving intelligent systems.
Collabnix Team
9 min read
Join our Discord Server