SKILL.md


name: relayrunner description: Set up and run RelayRunner from the command line. Use when the user wants to run their GitHub Actions jobs on their own Mac or Linux computer, sign a machine in, put it online or take it offline, pause it, share it with teammates, change its workspaces, size or isolate jobs on a Mac, turn on the Mac firewall, set up relayrunner.yml checks, or fix a machine that isn't taking jobs. Covers the relayrunner CLI (npx relayrunner). license: Apache-2.0

RelayRunner CLI

RelayRunner routes GitHub Actions jobs to the first free runner in a workspace's runner order: the user's own machines, hosted runner providers, or GitHub-hosted runners. The relayrunner CLI connects a Mac or Linux computer as one of those machines. Workflows stay on GitHub Actions, and a routed job falls back to its usual runner when no machine is free.

To route a repo's jobs (relay jobs and runs-on), use the relayrunner-route-jobs skill. To answer questions about runs, runners or usage, use relayrunner-ci-insights.

How to work

Install

macOS or Linux, x64 or ARM64, with Node.js 22 or newer. Windows isn't supported yet.

npm install --global relayrunner@latest
relayrunner --help

Or use npx relayrunner@latest <command> without installing.

Sign the machine in

relayrunner whoami --json
relayrunner login

login prints a URL and a code, opens the browser, and waits (up to 30 minutes) while the user signs in with GitHub, installs the RelayRunner GitHub App if they haven't, and approves the machine. Give the user the URL and code before you wait. login exits once approved; it doesn't put the machine online.

A new machine only runs jobs the user started. If they want teammates' jobs on it too, run relayrunner share anyone (share only-me undoes it), or pass --share to login.

Put the machine online

relayrunner connect is the on/off switch. While it runs, the machine takes jobs. Ctrl-C takes it offline, and jobs go back to their usual runners.

connect keeps running, so suggest the user start it in their own terminal, where it outlives your session. If you start it, run it in the background and tell the user it stops when your session ends.

--concurrency <n> sets how many jobs run at once (default 2 with 8+ CPU cores, else 1). --name and --share answer the first sign-in's questions. --events prints one JSON event per line on stdout (state, jobs, the sign-in code) and takes pause or resume on stdin, which is easier to follow from a background process than the log. Only one connect runs on a computer at a time.

Isolated jobs on a Mac

On a Mac with Apple silicon, macOS 26 and Apple's container tool (started once with container system start), each job runs in its own Linux VM that can't see the user's files or reach their Mac or local network. Elsewhere jobs run on the machine itself, as the user who started connect. Flags:

relayrunner firewall on adds a block no job can remove (it asks for the user's password; firewall off removes it). Docs: https://relayrunner.dev/docs/runners/self-hosted.md

Everyday commands

relayrunner pause              # stay connected, take no new jobs
relayrunner resume
relayrunner share              # show who can run jobs here
relayrunner workspaces --json  # which workspaces this machine takes jobs from
relayrunner workspaces add     # or remove; takes a name, slug or id
relayrunner history --json     # the jobs this machine ran, newest first

relayrunner blacksmith connect connects the user's Blacksmith organization so the dashboard shows its real usage. It opens their browser to approve an org token as a Blacksmith org admin, so ask before running it, and let the user run it in their own terminal if they're not at the computer. In the browser they approve it for the GitHub organization their workspace is on; a token for another organization is refused. It needs relayrunner login first. --workspace <slug> picks the workspace when they run more than one.

relayrunner feedback "…" sends a message to the RelayRunner team from the machine's account (--category bug|confusing|feature_request|other, --file PATH, --anonymous to leave out their name and email). Show the user what you'll send and ask first, since by default it goes out with their name and email.

Optimized checks

A relayrunner.yml file at .github/relayrunner.yml or the repo root turns on a PR title check and linters for every pull request, with no workflow and no runner. It's read from the default branch.

checks:
  pr-title: true
  lint: [oxlint, typos]

Suggest only linters the repo already uses or would pass. Docs: https://relayrunner.dev/docs/reference/repo-config.md

The same file's retry: true (or false) turns automatic retries on or off for the repo: the Router re-runs a job whose runner failed it, never one whose own steps failed. Docs: https://relayrunner.dev/docs/concepts/routing.md#automatic-retries

When something's wrong

Fetch https://relayrunner.dev/docs/reference/troubleshooting.md and match the error. For why one job ran where it did, use relayrunner-ci-insights or the job's Show why on the dashboard's Activity page. On a Mac, ~/.relayrunner/isolated.log has VM details with no job output or credentials.