Skip to main content
Start a shell in the runtime. Every argument is optional. Omitted values use /bin/bash in /workspace at 80×24. The shell keeps running after this call returns and after you disconnect.

Parameters

Response

Returns a PtySession.
  • Set cols and rows to match the surface you will render. Programs that format for the terminal width read them at startup.
  • A runtime allows 8 shells at once. Stop a shell when its task finishes.
  • Set TERM to xterm-256color for color. Leave it unset if you want plain text without escape sequences.

Endpoint

POST /v1/agents/runtime/{runtime_id}/pty