Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

PTY

Accessed via sandbox.pty.

sandbox.pty.create(opts?)

Create an interactive terminal session. HTTP API →
body colsnumberdefault: 80
Terminal columns
body rowsnumberdefault: 24
Terminal rows
body onOutput(data: Uint8Array) => void
Output callback
Returns: Promise<PtySession>

PtySession

MemberTypeDescription
sessionIdstringSession ID
send(data)methodSend input (string or Uint8Array)
close()methodClose the PTY