Skip to main content
A terminal is a opened inside the machine, with stdin/stdout streamed to your client over a WebSocket. The machine wakes if it was sleeping.
string
required
The machine where the terminal opens.
integer
required
Initial terminal width in columns.
integer
required
Initial terminal height in rows.
string
default:"/bin/bash"
Shell to start inside the PTY.
string
default:"/root"
Working directory for the shell.
object
Extra environment variables for the shell.

Wire protocol

Manage terminals

string
required
The machine that owns the terminal.
string
required
The terminal to retrieve or close.
Last modified on July 16, 2026