Skip to main content

Status

Returns the live status and vitals of one agent machine.
AgentMachine
The machine, or a 404 if it does not exist.

Act on the machine

Suspend, start, or exec a real command on the agent’s body.
string
required
One of suspend, start, or exec.
string
Required when action is exec. A bash command to run on the machine.
number
Optional timeout for an exec.
For suspend and start, the response is { ok: true, machine } with the refreshed machine. Suspend drops the machine to $0 compute; start resumes it warm. For exec, the response is { ok, result } where result is { exitCode, stdout, stderr, durationMs } and ok is true when exitCode is 0.

Destroy

Destroys the agent machine. Returns { ok: true }.

Errors