Overview
The Runtime Backend API manages where agent workloads execute. It supports a local desktop runtime, remote backends reached over SSH or a manual gateway URL (BYOC / VPS), and an execution mode that governs how much autonomy the runtime has.Base URL
Authentication
All routes require a valid bearer token in theAuthorization header. Some read paths also accept the x-allternit-user-id header as a fallback identity.
Execution modes
Backend target object
Endpoints
Get execution mode
Response
Set execution mode
Get current backend
Response
Set backend preference
backendTargetId or sshConnectionId; the latter is resolved to the matching target.
Register a manual backend
Register a remote gateway by URL for BYOC or VPS deployments.gatewayUrl/health before upserting the target and setting it as the active preference.
Response
Error codes
Related pages
- Runtime Discovery — discover available runtimes
- BYOC — bring your own compute setup
- Agent Runtimes — runtime harness and execution