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

For local development:

Authentication

All routes require a valid bearer token in the Authorization 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

You may supply 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.
The endpoint performs a health check against gatewayUrl/health before upserting the target and setting it as the active preference.

Response

Error codes