The Runtime client
Runtime, in both SDKs from 3.6.0: your rrotor’s programs, approvals, secrets, schedules, CLIs and licence, from code.
Runtime ships in the same packages as the Ada client (pip install glyphh, npm install @glyphh-ai/glyphh) and shares nothing else with Ada Cloud. It reads RROTOR_URL (default http://127.0.0.1:7777) and RROTOR_TOKEN (default the file ~/.glyphh/rrotor/token, the one the rrotor skill made).
Python
from glyphh import Runtime
rt = Runtime() # RROTOR_URL or http://127.0.0.1:7777; RROTOR_TOKEN or ~/.glyphh/rrotor/token
rt.deploy("./daily_sales") # the folder's HEAD commit, as a git bundle (or repo=, commit=)
run = rt.call("daily_sales", "start", {"day": "2026-10-30"})
if run.needs_approval: # show the person run.prompt; only on their yes:
run = rt.approve(run.run_id) # or rt.approve(run.run_id, False)
print(run.status, run.data)
rt.set_secret("github", "GH_TOKEN", token) # kept encrypted on the runtime; never read back
out = rt.run_cli("github", ["pr", "list"]) # out.exit_code, out.stdout, out.stderrRuntimeprograms(), program(name), deploy(path, commit=) / deploy(repo=, commit=, token=) / deploy(bundle=, commit=); call(program, function, inputs, version=, clearance=), resume(run_id, answer), approve(run_id, approved=True), cancel(run_id), run(run_id), log(run_id), approvals(); secrets(program), set_secret, delete_secret; schedules(), pause_schedule, resume_schedule; clis(), run_cli(cli, args, stdin=, files=); licence(), set_licence(key), health()Runrun_id, program, version, function, status, data, step, prompt, seconds; done, waiting, needs_approval, needs_input, failed, ended; a CLI command’s exit_code, stdout, stderr, filesThe restProgram, ProgramVersion, RunInfo, Approval, Secret (name, declared, set: never a value), Schedule, Cli, Licence: the API’s answers, typed (body keeps each one’s JSON)TypeScript
import { Runtime } from "@glyphh-ai/glyphh";
const rt = new Runtime(); // RROTOR_URL or http://127.0.0.1:7777; RROTOR_TOKEN or ~/.glyphh/rrotor/token
await rt.deploy({ path: "./daily_sales" }); // the folder's HEAD commit (Node), or { repo, commit, token? }
let run = await rt.call("daily_sales", "start", { day: "2026-10-30" });
if (run.status === "needs_approval") run = await rt.approve(run.run_id); // only on the person's yes
await rt.setSecret("github", "GH_TOKEN", token); // kept encrypted on the runtime; never read back
const out = await rt.runCli("github", ["pr", "list"]); // out.data.exit_code, stdout, stderrThe same calls in camelCase with options objects: deploy({ path, commit? } | { repo, commit, token? } | { bundle, commit }), call(program, fn, inputs, { version, clearance }), setSecret, deleteSecret, pauseSchedule, resumeSchedule, runCli(cli, args, { stdin, files }), setLicence(key).
A self-hosted rrotor
rt = Runtime("https://rrotor.example.com", "<a runtime key>")const rt = new Runtime({ url: "https://rrotor.example.com", token: "<a runtime key>" });Errors and retries
A refusal raises (Python) or throws (TypeScript) an RrotorError, which is an AdaError too, typed by code: RrotorAuthError, RrotorForbiddenError, LocalOnlyError, ProgramMissingError, FunctionMissingError, RunMissingError, ScheduleMissingError, ManifestError, DeployError, InputsError, RunStateError, NotProgramError, NotCliError, CliDeniedError, NotHeadError, LicenceError, NotInPlanError; E_UNREACHABLE when rrotor is not running.
Reads are sent again while rrotor is unreachable for a moment; a write never is.