Home
Getting Started

Quickstart

Install runx, run one governed skill, bind a provider account once, then inspect, verify and resume from the receipt trail.

The fastest way to understand runx is to do one complete loop. The open CLI is locally self-sufficient: it runs governed work on your machine with your own credentials, seals a signed receipt, and brokers no OAuth.

1

Install the CLI

curl -fsSL https://runx.ai/install | sh
# or: npm install --global @runxhq/cli
2

Run one skill

git clone --depth 1 https://github.com/runxhq/runx.git && cd runx
runx skill ./examples/hello-world -i message="hello, runx" --json

The result reports status: "sealed" and the receipt_id of the receipt it sealed.

3

Bind a provider account once

A connector holds the credential; a skill only names the operations it calls. Add a skill (it brings the connectors it binds), bind the account with the secret on stdin, and run it:

runx registry install runx/web-search
printf '%s' "$EXA_API_KEY" | runx connector use runx/exa --credential api_key
runx skill runx/web-search -i query="receipt verification" --json
4

Inspect, verify and resume

runx history
runx history <receipt-id> --json
runx verify <receipt-id>
runx resume <run-id> answers.json
Local is self-sufficient

The open CLI runs on your machine with your own credentials, seals receipts locally with your runx home's own key, and sends no telemetry. It does not broker OAuth. A runx Connect grant and the browser flow are the hosted path, opt-in and reached only when you choose them.

Minimal Local Session

This is the smallest end-to-end loop, entirely on the open CLI.

curl -fsSL https://runx.ai/install | sh
git clone --depth 1 https://github.com/runxhq/runx.git && cd runx

runx skill ./examples/hello-world -i message="hello, runx" --json
runx history
runx history <receipt-id> --json
  • install fetches the public installer and installs the runx CLI.
  • runx skill runs the skill under explicit authority. -i name=value gives one input, read by the type its runner declares.
  • The run seals a receipt signed by your runx home's own key.
  • history lists runs, and history <receipt-id> shows one receipt's authority, decisions, acts and seal, so the record does not depend on terminal scrollback.
A pause is not a failure

When a run pauses, the runtime crossed a boundary on purpose. Common reasons are an approval, agent work, or input the caller must supply. runx resume <run-id> <answers.json|-> continues it from one document.

The Hosted Identity Path

Hosted self-serve identity uses runx login. The browser handoff verifies the principal, returns a scoped runx token to the CLI, and never gives the local CLI provider OAuth tokens.

runx login --provider github --for publish

Without a browser, pipe a token the provider issued and runx exchanges it for a scoped runx credential:

gh auth token | runx login --provider github --for publish --token-stdin

Only the purpose-scoped runx credential is stored, never the provider token.

Current hosted auth posture

Hosted identity is explicit: use runx login for a scoped runx token, then use the normal CLI command for the action you are taking. To bind a provider account through runx Connect, run runx connector use <connector> --hosted: it prints the authorization link and binds the grant. Provider OAuth stays behind the hosted boundary.

The Important Mental Model

runx is not trying to hide that work crossed a boundary. It is trying to make that boundary obvious, resumable, and inspectable.

That means:

  • a missing answer should create a resolvable request, not a dead run
  • an approval gate should create an explicit decision point, not a private side channel
  • a finished run should leave behind a receipt, not only a chat transcript

After The First Run