Skip to main content
The TypeScript SDK works in Node.js 18+ and exposes the same sandbox lifecycle as the REST API.

Prerequisites

  • Node.js 18+.
  • A running StacyVM server.
  • An API key when auth is enabled.

Install

Connect

string
StacyVM server URL. Defaults to http://localhost:7423.
string
API key sent as X-API-Key when server auth is enabled.
string
Tenant or owner identity sent as X-User-ID for quota and audit attribution.
number
Per-request HTTP timeout in milliseconds.

Run A Task

integer
Process exit code returned by the runtime provider.
string
Captured standard output.
string
Captured standard error.
string
Provider-reported execution duration.

Stream Output

Handle Errors