Documentation
¶
Overview ¶
Command sandbox-terminal creates a Tensorlake sandbox and connects an interactive terminal session to it via PTY over WebSocket.
Usage:
export TENSORLAKE_API_KEY=<your-api-key> go run ./examples/sandbox-terminal
The program:
- Creates a new sandbox (or reuses one via -sandbox flag)
- Waits for the sandbox to reach "running" state
- Creates a PTY session running /bin/sh
- Connects via WebSocket and attaches stdin/stdout
- Puts the local terminal in raw mode for interactive use
- On exit (ctrl-d or process exit), cleans up the PTY session and sandbox
Flags:
-sandbox Reuse an existing sandbox ID instead of creating a new one -timeout Sandbox timeout in seconds (default: 300) -keep Do not delete the sandbox on exit
Click to show internal directories.
Click to hide internal directories.