Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Create Exec Session

Start a long-running command as a session. Attach via WebSocket to stream I/O.
path idstringrequired
Sandbox ID
body cmdstringrequired
Command to execute
body argsstring[]
Command arguments
body envsobject
Environment variables
body cwdstring
Working directory
body timeoutinteger
Timeout in seconds
body maxRunAfterDisconnectinteger
Seconds to keep running after all clients disconnect
Response example
{ "sessionID": "es-abc123", "sandboxID": "sb-abc123", "command": "node", "args": ["server.js"], "running": true, "exitCode": null, "startedAt": "2025-01-15T10:30:00Z", "attachedClients": 0 }