Skip to main content
Connect to an existing Sailbox by its ID. Read sb.sailbox_id in Python or sb.sailboxId in TypeScript, or run sail box list.

Run a command

get looks up the Sailbox without waking it. A command wakes a sleeping Sailbox automatically. A manually paused Sailbox needs an explicit resume first. For streaming output and background commands, see exec.

Open a shell

This opens a terminal inside the Sailbox. It needs no exposed port or SSH setup. Run exit to leave; the Sailbox keeps running. sail shell is different: it opens an interactive CLI on your own machine for managing Sailboxes. See CLI.

Use SSH

The first command enables SSH and adds a shortcut to your local SSH config. Use the Sailbox’s name in place of <name>. You connect as root. For a Sailbox that already has SSH enabled, set up this machine’s shortcut:
SSH exposes port 22. See access control for source restrictions, or use a devbox to set up SSH and development tools together.