sandbox-terminal

command
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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:

  1. Creates a new sandbox (or reuses one via -sandbox flag)
  2. Waits for the sandbox to reach "running" state
  3. Creates a PTY session running /bin/sh
  4. Connects via WebSocket and attaches stdin/stdout
  5. Puts the local terminal in raw mode for interactive use
  6. 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL