exec works even when a sandbox has networking fully disabled.
exec
Run a command and collect stdout, stderr, and the exit code once it completes.shell
Run a command through the sandbox’s configured shell (defaults to/bin/sh). Useful for pipelines, redirects, and other shell syntax that exec doesn’t interpret.
Execution options
Per-execution overrides for working directory, environment variables, resource limits, and timeout. These don’t change the sandbox’s defaults.Streaming
exec_stream returns a handle that emits stdout, stderr, and exit events as they happen. Output shows up the moment the guest agent reads it from the process.
Interactive stdin
Pipe data into a running process by opening a streaming handle withstdin_pipe enabled. Combined with tty: true, this lets you drive interactive processes (REPLs, shells) programmatically.
Attach
Bridge your terminal to a fully interactive PTY session inside the sandbox. Press the detach keys (defaultCtrl+]) to disconnect without stopping the process. The process keeps running and can be reattached via its session ID.