Skip to main content
The sandbox PTY API is exposed through each sandbox’s management hostname, not https://api.tensorlake.ai.
https://<sandbox-id-or-name>.sandbox.tensorlake.ai
Use PTY sessions when you need an interactive terminal, shell, or full-screen TUI inside a sandbox.
Include Authorization: Bearer $TENSORLAKE_API_KEY on requests to the sandbox proxy. The WebSocket attach endpoint also requires the per-session PTY token returned from session creation.

Create PTY Session

Start a new PTY-backed interactive session.

List PTY Sessions

Enumerate the PTY sessions tracked by the sandbox daemon.

Get PTY Session

Inspect session metadata, terminal size, and liveness.

Resize PTY Session

Change the terminal rows and columns for an active session.

Attach PTY WebSocket

Connect to a session over WebSocket and exchange terminal bytes.

Kill PTY Session

Terminate a PTY session.