Quickstart
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.
Install the CLI
curl -fsSL https://runx.ai/install | sh
# or: npm install --global @runxhq/cliRun one skill
git clone --depth 1 https://github.com/runxhq/runx.git && cd runx
runx skill ./examples/hello-world -i message="hello, runx" --jsonThe result reports status: "sealed" and the receipt_id of the receipt
it sealed.
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" --jsonInspect, verify and resume
runx history
runx history <receipt-id> --json
runx verify <receipt-id>
runx resume <run-id> answers.jsonThe 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> --jsoninstallfetches the public installer and installs the runx CLI.runx skillruns the skill under explicit authority.-i name=valuegives one input, read by the type its runner declares.- The run seals a receipt signed by your runx home's own key.
historylists runs, andhistory <receipt-id>shows one receipt's authority, decisions, acts and seal, so the record does not depend on terminal scrollback.
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 publishWithout 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-stdinOnly the purpose-scoped runx credential is stored, never the provider token.
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
- Read Core Concepts for the canonical vocabulary.
- Read Receipts And Pauses for the inspect model.
- Read Hosted Platform if you want the hosted-service boundary and what is opt-in there.