Skip to content

SSH, VS Code and Cursor

Every sandbox made from a Stillbox agent type accepts SSH through Stillbox itself. Nothing is exposed to the internet: your SSH connection travels inside the Stillbox API, which checks your API key (or sign-in) and that you may work in the sandbox, exactly as it does for the browser terminal. You don’t need an SSH key.

Install the command-line tool and sign in with stillbox login first.

Terminal window
stillbox ssh <sandbox> # an interactive shell
stillbox ssh <sandbox> 'make test' # one command; its exit code is yours
stillbox ssh <sandbox> -L 3000:localhost:3000 # reach a dev server in the sandbox on your port 3000

stillbox ssh runs your own ssh, so its options work. A sleeping sandbox wakes when you connect, and stays awake while you’re connected.

Add the sandbox to your SSH settings once:

Terminal window
stillbox ssh-config <sandbox> >> ~/.ssh/config

Then:

  • VS Code or Cursor: Remote-SSH: Connect to Host… and pick stillbox-<sandbox>. The editor installs its server in the sandbox the first time, so the sandbox needs internet access to the editor’s download site (for VS Code, update.code.visualstudio.com and *.vscode-cdn.net) if you limit its sites.
  • scp and sftp: scp report.pdf stillbox-<sandbox>: copies into the sandbox’s home folder.
  • rsync: rsync -a ./site/ stillbox-<sandbox>:site/.

The entry uses its own known-hosts file, ~/.ssh/known_hosts_stillbox; each sandbox keeps the same host key for its life.

The same people who can open the sandbox’s terminal: its organization’s members who see it, and only its creator for a private sandbox. API keys need the use level. Each connection is recorded in the audit log. Forwarding reaches only ports inside the sandbox (localhost).

ssh-config sets ProxyCommand stillbox ssh-proxy %h: ssh hands its connection to the Stillbox tool, which carries it over a WebSocket to GET /v1/sandboxes/{id}/ssh. The platform relays it to the sandbox the way it relays terminals, where harnessd speaks SSH. Any SSH client that supports a proxy command works the same way.