Skip to content

SSH into a sandbox (WebSocket)

GET
/sandboxes/{id}/ssh
curl --request GET \
--url https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/ssh \
--header 'Authorization: Bearer <token>'

Upgrades to a WebSocket that carries an SSH connection, as binary messages, to the sandbox (ADR 0048). Use it as an SSH ProxyCommand: ssh -o ProxyCommand="stillbox ssh-proxy %h" agent@<sandbox>; stillbox ssh-config writes the entry VS Code and Cursor need. The sandbox opens no port, and your SSH client needs no key: this request’s credentials are checked instead. A sleeping sandbox is woken; open sessions keep it awake.

id
required
string

Switching to the WebSocket protocol

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The sandbox isn’t running, or its server is unreachable right now

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}