Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.opencomputer.dev/llms.txt

Use this file to discover all available pages before exploring further.

Accessed via sandbox.pty.

sandbox.pty.create(opts?)

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

PtySession

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