sbx setup ssh

Description Set up SSH client config for the sandbox endpoint
Usage sbx setup ssh [flags]

Experimental

This command is experimental.

Experimental features are intended for testing and feedback as their functionality or design may change between releases without warning or can be removed entirely in a future release.

Description

Write a generated SSH config + known_hosts and include it from ~/.ssh/config so “ssh .sbx” connects with no prompts. Named app instances use “ssh .sbx-” 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. Sandboxes are created with the standard resource defaults.

Commands

Command Description
sbx setup ssh remove experimental Remove SSH config and desktop targets; keep sandboxes

Options

Option Default Description
--alias *.sbx ssh_config Host pattern to write
--auto-create enable managed Codex and Claude Desktop profiles on macOS and Windows

Global options

Option Default Description
--cloud Dispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list)
-D, --debug Enable debug logging

Examples

sbx setup ssh
ssh my-sandbox.sbx -- echo hello

Table of contents