bead exec for code execution on an existing Linux machine. Commands use /bin/sh -c and start in /root unless you set --cwd.
Run shell commands in a cloud VM
ReplaceID with your machine ID:
$HOME from expanding locally.
Capture exit codes from remote commands
exit_code, stdout, and stderr. A nonzero exit code means the command failed even when the transport succeeded. Plain CLI output prints complete stdout and stderr. The CLI exits 0 for remote success and 1 for a nonzero remote exit; use JSON exit_code to read the remote status, or bead run to preserve it as the local exit status.
The CLI exec transport sets a 25-second execution deadline. Use bead run for a bounded build with a longer command timeout, or runner turns for coding-agent work.
Use MCP
The hostedbead:sandbox_exec tool uses the same guest transport. Inspect its exit_code and retained output fields. Read output and recovery before retrying after an uncertain response.

