Hosted Platform
The hosted shape is intentionally boring where production systems need to be boring.
The hosted service is opt-in. The open CLI is locally self-sufficient and brokers no OAuth; the managed connect flow described here is the hosted/private path.
Product Boundary
- The open local runtime handles portable execution, CLI and operator workflows, skills, local state, and your own credentials bound once to a connector.
- The opt-in hosted service handles managed Connect/OAuth, authoritative grants, explicitly submitted hosted runs, public docs, and hosted control-plane administration. It does not own a skill's procedure or decide an operator's next action.
Current Hosted Slice
Connect Surface
Hosted connect tickets, OAuth handoff, grant lifecycle, and the public installer entrypoint.
Hosted API
Explicit hosted-run submission, inspect, resolution, approval state, provider-reference listing, and generated OpenAPI reference.
Worker Runtime
Durable claiming, heartbeat, reclaim, and governed execution for explicitly submitted hosted runs using published OSS skills.
Docs + MCP
The docs site, registry references, and MCP tabs ship as part of the hosted product surface.
The hosted API accepts self-serve account credentials created through
POST /v1/accounts, while operator-provisioned bearer tokens still work for
admin and transition paths. There is still no public account UI; the
self-serve surface is API-first for agents.
Provider Connector Admission
Provider support has two separate layers. OSS skills declare stable provider operations and scopes. A hosted deployment separately decides which credential connector integrations it has configured and is willing to expose through Connect.
Connect transports skill capability strings exactly; it does not maintain a scope-name registry or rewrite unknown identifiers. A concrete provider driver or connector adapter may separately map an implemented capability to provider OAuth permissions; that never mutates the capability array or drops an unknown value. Connector tags use JSON arrays so delimiters, ordering, and duplicates inside that evidence cannot change the grant.
For OAuth providers behind the provider gateway, the deployment manifest declares an integration backed by credentials owned by that deployment and maps the stable Runx provider name to its integration id. The bootstrap creates or updates the integration only after credential preflight, and only mapped providers become Connect-ready. Google Analytics and Search Console require Google OAuth application credentials and an authorized callback; a provider template alone is not a deployable connection.
Integration ids, OAuth client material, connection references, tenant ids, and credential handles stay in Cloud configuration and grant state. They never enter an OSS skill, portable input, fixture, or evidence packet. Another Runx operator may use a different provider gateway, another compatible connector, or a local credential path without changing the skill package.
Hosted Execution Boundary
The worker does not parse skill manifests or recreate Runx admission rules.
Before execution it asks the pinned native runx binary to inspect the selected
skill and runner. The resulting runner, package digest, and fully resolved
execution-closure digest are bound durably to the hosted run. That closure
includes the immutable Runx release identity. Cloud snapshots only the exact
source files admitted by native inspection, including local sibling skills,
under that content-addressed closure. A resume or rerun cannot silently switch
a runtime release, runner, package, dependency, or source file.
The control plane owns hosted admission and human gates, so the child CLI does
not open a second local approval prompt. This does not remove skill context:
native Runx still loads the complete SKILL.md chain for agent acts and
recomputes the package and execution-closure digests immediately before
execution. Pause checkpoints persist both bindings, and runx resume rejects a
control-plane binding that disagrees with its durable checkpoint.
Each native run receives a fresh workspace, project directory, and RUNX_HOME.
The worker passes only host interoperability variables plus environment names
declared by the inspected runner. Missing required values fail before execution.
Cloud process state, repository .env files, and the worker user's normal Runx
home are not inherited.
Connector-backed provider calls travel through a short-lived, run-bound loopback capability authenticated for the run principal. The skill declares the provider operation and scopes; native Runx enforces them, and Cloud resolves the grant and credential only at provider execution time. Raw provider credentials and credential handles never enter the skill environment.
Direct credential delivery is deliberately unsupported by the hosted worker until Cloud has a real run-scoped secret-delivery adapter. Such runners fail closed and remain available through the local runtime; Cloud never substitutes an ambient environment secret.
The Balance
runx holds a prepaid balance for each account, in micro-USD, on its own ledger. It pays for any paid skill without a settlement fee per purchase: money crosses a real rail only when it is topped up and when a seller is paid out. Card top-ups go through runx's own Stripe account, and each verified identity gets $1 once. Flat entitlement add-ons (retention, org policy, audit export, private registry, SSO/RBAC, compliance, support) bill as access, separate from the balance. Local runs are free. The CLI has no pay, top-up or balance command. See Payments for the ledger and how a purchase pays from it.
Topology
CLI / SDK / Docs / Web
|
v
hosted API surface
|
+--> Postgres
+--> worker loop
+--> receipt body storage
+--> connect broker
+--> service operationsThat topology is deliberately less interesting than the agent work it hosts.
Persistence Ownership
Hosted API services own hosted control-plane transitions. They do not own skill or domain-operator decisions. Persistence adapters own durable reads and writes.
persistence-ports.tsnames the narrow store each route family reads and writes.server-persistence.tsbuilds the Postgres adapters in production and the in-memory or file adapters for development and tests.- Route modules take stores through their options; they never encode storage semantics inline.
Public Routes Worth Knowing
GET /installGET /docsGET /openapi.jsonGET /healthzGET /readyzGET /v1/system/metrics: admin-only request counters, status/error totals, latency buckets, and in-flight counts backed by the durableRUNX_HOSTED_API_METRICS_FILEsnapshot.POST /v1/accountsPOST /v1/billing/stripe/setup-intentsPOST /v1/billing/stripe/setup-intents/:id/confirmPOST /v1/billing/topupGET /v1/billing/balancePOST /v1/skills/:publisher/:name/run(purchases only)GET /v1/runsGET /v1/runs/:idGET /v1/runs/:id/requestsPOST /v1/connect/ticketsGET /v1/provider-referencesGET /v1/grants
The generated API tab in this docs site is built directly from that public contract.
What This Docs Site Proves
This site is not maintained as a disconnected marketing property.
- the guide pages are authored content
- the API reference is generated from the hosted API contract
- the MCP tabs are generated from the live hosted server definitions
- the built site is served by the same hosted app that serves the API
Read Sourcey Pipeline if you want the exact build contract.