Runs a command and streams stdout/stderr chunks as Server-Sent Events.
Each event is a JSON payload. The final event includes exit_code and
finished: true. A paused sandbox is resumed automatically before the
command runs and stays active afterward.
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.
The unique identifier of the sandbox.
Command to execute. Wrapped in /bin/sh -c unless args is provided.
1If provided, command is used as the binary and args as arguments (no shell wrapping).
Environment variables for the command.
Working directory (default /home/user).
Timeout in seconds.
SSE stream. Each line starting with data: contains a JSON ExecStreamEvent. The final event has finished: true.
A single SSE event payload emitted by the exec/stream endpoint.
Stdout chunk (present when the process wrote to stdout).
Stderr chunk (present when the process wrote to stderr).
Process exit code (present on the final event).
True on the final event.
Error message if the exec itself failed (present on the final event on error).