Skip to content

Runtime Basic

A Runta runtime is the isolated execution environment where an agent or application process runs commands. The dashboard, CLI, Python SDK, TypeScript SDK, and REST API all operate on the same runtime resources.

Terminal window
export RUNTA_TOKEN=<tenant_token>

Create a named runtime with explicit CPU and memory requests:

Terminal window
runta run --name worker --cpus 2 --memory 2048

The Python SDK defaults to wait=True and waits for the runtime to become ready before returning. The TypeScript SDK also waits by default.

Use list calls when you need a fleet view, and get/inspect calls when you need the current state of one runtime.

Terminal window
runta ps -a
runta inspect worker

Runtime IDs are UUIDs. The SDKs and CLI also accept display names for the common interactive paths shown in these examples.

Commands are buffered: the API returns exit code, stdout, stderr, duration, and truncation flags.

Terminal window
runta exec worker -- sh -lc 'pwd && python3 --version'
runta exec -it worker bash

Use runta exec -it <name> bash for a terminal session. The REST API does not expose persistent server-side session routes; SDK sessions are SDK-owned handles that route commands through the buffered exec API.

These calls change runtime state without deleting the runtime record.

TaskCLIPythonTypeScript
Boot a shut-down runtimerunta boot workerruntime.start()await runtime.start()
Pause a running runtimerunta pause workerruntime.pause()await runtime.pause()
Resume a paused runtimerunta resume workerruntime.resume()await runtime.resume()
Shut down a runtimerunta shutdown workerruntime.stop()await runtime.stop()
Delete a runtimerunta rm workerruntime.delete()await runtime.delete()

Published HTTP runtimes can also be created with an idle timeout:

Terminal window
runta run --name web --cpus 2 --memory 2048 --publish 8080/https --idle-timeout 300

The public ingress hostname is based on the runtime UUID. See Publish a Service for a full flow.

The CLI exposes memory resizing. The SDKs expose the same operation as resize_memory or resizeMemory.

Terminal window
runta resize --memory 4096 worker

For repeatable multi-runtime changes, use declarative configuration with runta apply -f deployment.json and runta delete -f deployment.json.