Skip to content

TypeScript SDK Reference

The TypeScript SDK uses one promise-based API. Use Runta for new code; there is no separate synchronous client.

Terminal window
npm install @runta/runta-sdk
import { Runta } from "@runta/runta-sdk";
const client = new Runta();
const runtime = await client.runtimes.create();
const result = await runtime.exec("python --version");
console.log(result.stdoutText);
ComponentDescription
RuntaConfigure the TypeScript SDK client and access runtime, secret, and checkpoint operations.
RuntimeControl lifecycle, commands, files, networking, secrets, and checkpoints for one runtime.
ComponentDescription
RuntimesCreate, list, and resolve runtimes.
FilesRead, write, upload, and download runtime files.
SecretsManage tenant secrets and runtime secret-injection stubs.
CheckpointsResolve tenant checkpoints and create runtime checkpoints.
EgressRead and update runtime outbound network policy.
ComponentDescription
ConfigurationClient configuration values and config-file helpers.
Runtime ModelsRuntime metadata, resources, command results, and operation options.
Secret ModelsTenant secret and secret-injection data structures.
Checkpoint ModelsCheckpoint metadata and creation options.
Statuses and ModesRuntime, checkpoint, agent, and egress state values.
ErrorsErrors raised by configuration, API, and command operations.