Exec
Run a command over a WebSocket
Runs a command over a WebSocket, streaming output back and accepting stdin over one connection.
Connect with two Sec-WebSocket-Protocol values: superserve.exec.v1
and token.<access-token>.
I/O rides binary frames prefixed with a one-byte channel, so output is byte-exact; lifecycle and control ride text JSON frames.
- First frame (text): an
ExecRequestJSON object. Omittingtimeout_sruns with no per-command timeout. - Client frames: a binary frame is stdin, prefixed with channel
0x00([0x00][bytes]); a text frame is JSON control —{"type":"stdin_close"}or{"type":"signal","name":"SIGINT"}. Frames are capped at 64 KiB, so chunk larger stdin. - Server frames: a binary frame is output, prefixed with its channel
(
0x01stdout,0x02stderr); a text frame is JSON lifecycle —{"exit_code":N,"finished":true}, or{"error":"...","code":"..."}. Closes on exit.
GET
Run a command over a WebSocket
Documentation Index
Fetch the complete documentation index at: https://docs.superserve.ai/llms.txt
Use this file to discover all available pages before exploring further.
Response
Switching Protocols — the WebSocket is established.
Run a command over a WebSocket