Exec

The exec endpoints run a command inside a running VM and return its output. Two flavors are supported:

  • Synchronous — start the command, wait for it to finish, return {stdout, stderr, exit_code}. Best for short-lived commands.
  • Streaming — receive stdout and stderr chunks over Server-Sent Events as they're produced. Best for long-running processes, tests, or interactive output.

Both require a VM in the running state — see VMs to start one.

Endpoints