Skip to content

Runta SDK

Runta SDKs wrap the same REST API used by the CLI. Use them when application code needs to create runtimes, execute commands, move files, configure egress, inject credentials, or manage checkpoints.

LanguagePackagePrimary clientExecution style
Pythonrunta-sdkRunta, AsyncRuntaSync and async
TypeScript@runta/runta-sdkRuntaAsync

Both SDKs use the same hosted endpoint and token model:

Terminal window
export RUNTA_ENDPOINT=https://api.runta.dev
export RUNTA_TOKEN=<tenant_token>

RUNTA_ENDPOINT is optional when using the hosted API. Set it when targeting a local, staging, or self-hosted API.

AreaPython SDKTypeScript SDK
Runtimesrunta.runtimes, runtimerunta.runtimes, runtime
Command executionruntime.exec(), runtime.exec_detached()runtime.exec()
Filesruntime.filesruntime.files
Egressruntime.egressruntime.egress
Auditsruntime.auditsREST API today
Secretsrunta.secrets, runtime.secretsrunta.secrets
Checkpointsrunta.checkpoints, runtime.checkpointsruntime.checkpoints, runtime.restore()

For HTTP route details and request/response schemas, use the Runta REST API reference.