Skip to main content

List running processes

ProcessInfo includes pid, command, and running. The list endpoint is useful for reconnecting to background work after a client restart.

Send stdin

send_stdin writes text to the process stdin stream. Use it for interactive programs that are not full terminal sessions; use PTY sessions when terminal behavior, resize, or shell line editing matters.

Logs

stdout and stderr are split streams. output is the interleaved stream when the backend has it. exit_code is None while the process is still running and an integer after it exits.

Kill

Killing a process does not destroy the machine. It only stops the selected PID.

REST and CLI map

Most CLI process commands accept --json for automation. stdin --json returns the PID and bytes_sent; attach --json returns a CommandResult.