Start a streamed sandbox command
Execute a command inside a sandbox and stream stdout/stderr as Server-Sent Events with base64 payloads. Requires a sandbox on the v2 runtime. Passing a command_id reuses a running command instead of starting a second one. The response ends with an ack_required event when the sandbox’s output buffer needs an ack; continue from the reported offsets with the resume endpoint.
Authorizations
Path Parameters
Sandbox ID or name
Body
Command accepts either a shell command string or an argv string array.
CommandID makes the request idempotent: a known ID attaches to that running command instead of starting a second one.
Deprecated: use run_config.work_dir. Rejected when run_config is also set.
Deprecated: use run_config.env_vars. Rejected when run_config is also set.
0 = default, -1 = never idle-kill
RunConfig overrides, for this command only, the user, working directory and env the sandbox's commands run with.
Stdin is the process's entire standard input, base64 on the wire. It is written once when the command is spawned and then closed, so the process reads EOF; there is no stdin streaming on this endpoint.
0 = no timeout
0 = default, -1 = keep forever
Response
SSE event stream
The response is of type string.

