Skip to content

Shell Access

Runsite provides interactive shell access to running web service containers via WebSocket. Use it for debugging, inspecting logs, or running one-off commands.

WS /api/shell/{web_service_id}?token=<access_token>

Authentication is required via the token query parameter.

LimitValue
Session timeout10 minutes of inactivity
Concurrent sessions3 per web service
TypeDescriptionPayload
inputTerminal input{ "type": "input", "data": "ls -la\n" }
resizeTerminal resize{ "type": "resize", "cols": 80, "rows": 24 }
pingKeep-alive{ "type": "ping" }
TypeDescriptionPayload
connectedSession established{ "type": "connected" }
outputTerminal output{ "type": "output", "data": "..." }
errorError message{ "type": "error", "message": "..." }
pongHeartbeat response{ "type": "pong" }
  • The shell connects to the running container of the web service
  • Commands execute with the same permissions as the service process
  • The session automatically closes after 10 minutes of inactivity
  • Send ping messages periodically to keep the connection alive