cli.txt
RelayRunner docs: CLI Page: https://relayrunner.dev/docs/reference/cli Markdown: https://relayrunner.dev/docs/reference/cli.md All pages: https://relayrunner.dev/docs/llms.txt
Other pages (Markdown):
- Route GitHub Actions jobs to any runner: https://relayrunner.dev/docs/get-started/overview.md
- How it works with GitHub Actions: https://relayrunner.dev/docs/get-started/github-actions.md
- Quickstart: https://relayrunner.dev/docs/get-started/quickstart.md
- Install the CLI: https://relayrunner.dev/docs/get-started/install.md
- RelayRunner for Mac: https://relayrunner.dev/docs/get-started/mac-app.md
- Set up with an agent: https://relayrunner.dev/docs/get-started/agents.md
- Move your workflows over: https://relayrunner.dev/docs/get-started/move-over.md
- Principles: https://relayrunner.dev/docs/concepts/principles.md
- Routing: https://relayrunner.dev/docs/concepts/routing.md
- Runner order: https://relayrunner.dev/docs/concepts/runner-order.md
- Optimized checks: https://relayrunner.dev/docs/concepts/optimized-checks.md
- Spend controls: https://relayrunner.dev/docs/guides/spend-controls.md
- Providers: https://relayrunner.dev/docs/runners/providers.md
- Your machines: https://relayrunner.dev/docs/runners/self-hosted.md
- GitHub-hosted: https://relayrunner.dev/docs/runners/github.md
- Hosted providers: https://relayrunner.dev/docs/runners/hosted.md
- Runner labels: https://relayrunner.dev/docs/reference/labels.md
- Add a provider: https://relayrunner.dev/docs/contribute/add-provider.md
- Run CI on your laptop while you work: https://relayrunner.dev/docs/guides/laptop-ci.md
- macOS and iOS builds on your Mac: https://relayrunner.dev/docs/guides/mac-builds.md
- Share your team's machines: https://relayrunner.dev/docs/guides/team-machines.md
- Keep up with coding agents: https://relayrunner.dev/docs/guides/agent-surge.md
- Activity and history: https://relayrunner.dev/docs/dashboard/activity.md
- Signals: https://relayrunner.dev/docs/dashboard/signals.md
- Performance: https://relayrunner.dev/docs/dashboard/performance.md
- Usage and savings: https://relayrunner.dev/docs/dashboard/usage.md
- Telemetry: https://relayrunner.dev/docs/dashboard/telemetry.md
- AI: https://relayrunner.dev/docs/dashboard/ai.md
- CLI: https://relayrunner.dev/docs/reference/cli.md (this page)
- relay.yml inputs: https://relayrunner.dev/docs/reference/relay-inputs.md
- Repo config: https://relayrunner.dev/docs/reference/repo-config.md
- MCP server: https://relayrunner.dev/docs/reference/mcp.md
- RelayRunner API: https://relayrunner.dev/docs/reference/api.md
- Workspaces and members: https://relayrunner.dev/docs/dashboard/workspaces.md
- GitHub App: https://relayrunner.dev/docs/reference/github-app.md
- Security: https://relayrunner.dev/docs/reference/security.md
- Data and privacy: https://relayrunner.dev/docs/reference/privacy.md
- Remove RelayRunner: https://relayrunner.dev/docs/dashboard/remove.md
- Troubleshooting: https://relayrunner.dev/docs/reference/troubleshooting.md
- Errors: https://relayrunner.dev/docs/reference/errors.md
- FAQ: https://relayrunner.dev/docs/reference/faq.md
- Feedback: https://relayrunner.dev/docs/contribute/feedback.md
- Changelog: https://relayrunner.dev/docs/changelog.md
- Agents can change your routing: https://relayrunner.dev/docs/changelog/agent-changes.md
- Confirm agent changes that pause or reorder runners: https://relayrunner.dev/docs/changelog/agents-ask-first.md
- Pick runner sizes on the dashboard: https://relayrunner.dev/docs/changelog/auto-runner-sizes.md
- CLI changelog: https://relayrunner.dev/docs/changelog/cli.md
- Failed checks show why a job couldn't route: https://relayrunner.dev/docs/changelog/couldnt-route-check.md
- Try a runner provider on your own workflows: https://relayrunner.dev/docs/changelog/evaluate-a-provider.md
- Routing retries through GitHub outages: https://relayrunner.dev/docs/changelog/github-outages.md
- Send job logs to OpenTelemetry or an S3 bucket: https://relayrunner.dev/docs/changelog/job-log-export.md
- Job time split into setup, build and test: https://relayrunner.dev/docs/changelog/job-phases.md
- Mac app changelog: https://relayrunner.dev/docs/changelog/mac.md
- RelayRunner for Mac: https://relayrunner.dev/docs/changelog/mac-app.md
- Send a crash report from the Mac app: https://relayrunner.dev/docs/changelog/mac-crash-reports.md
- Route jobs by os, arch and cpus: https://relayrunner.dev/docs/changelog/machine-shapes.md
- CI traces in your observability tool: https://relayrunner.dev/docs/changelog/opentelemetry-traces.md
- Platform changelog: https://relayrunner.dev/docs/changelog/platform.md
- Retries, queueing and provider usage: https://relayrunner.dev/docs/changelog/retries-queueing-and-provider-usage.md
- Route a repo from the dashboard: https://relayrunner.dev/docs/changelog/route-a-repo.md
- Per-workflow run times and job sizing for members: https://relayrunner.dev/docs/changelog/run-times.md
- Usual job times, job history and the Mac queue: https://relayrunner.dev/docs/changelog/usual-times-and-mac-queue.md
CLI
Every relayrunner command and flag.
The relayrunner CLI runs on macOS and Linux with Node.js 22 or newer. Run it with npx relayrunner <command>, or install it with npm install --global relayrunner. See Install. On a Mac, RelayRunner for Mac runs connect for you from the menu bar.
connect
relayrunner connect
Puts this machine online and runs the jobs it's sent until you stop it. On a Mac with Apple silicon and Apple's container tool, each job runs in its own Linux VM; elsewhere jobs run on the machine itself. It runs up to 2 jobs at once on a computer with 8 or more CPU cores, otherwise 1; --concurrency changes that. The first run signs the machine in. Ctrl-C takes it offline, and a job that's running stops with it. Press p to pause or resume. While it stays open, it checks for a newer GitHub runner every few hours and switches to it between jobs.
Run inside a repo with no routed jobs, it offers to route them, the same as init.
| Flag | What it does |
|---|---|
--name <name> |
The machine's name. Defaults to the computer's name. |
--share only-me|anyone |
Who can run jobs on this machine. |
--concurrency <n> |
How many jobs to run at once. Defaults to 2 with 8+ CPU cores, else 1. |
--macos |
Also take macOS jobs, which run on the Mac itself. Linux jobs stay in VMs. |
--cpus <n> |
CPUs for each job's VM. Defaults to an even share of the Mac's cores. |
--memory <gb> |
Memory for each job's VM. Defaults to an even share of half the Mac's. |
--image <image> |
Your own runner image for the VMs, used with the tools it has. |
--local-network |
Let jobs in VMs reach your Mac and your local network. |
--no-isolated |
Run jobs on the Mac itself, where they can read your files. |
--isolated |
Stop with an error when jobs can't run in VMs, where the default falls back. |
--events |
For apps that run connect. See Events. |
The VM flags apply to Macs with Apple silicon. See Isolated jobs on a Mac.
Only one connect runs on a computer at a time. A second one stops and says so.
Events
With --events, connect writes one JSON object per line to stdout and nothing else; what it would print for you goes to stderr. Send pause or resume on stdin, one per line. To go offline as Ctrl-C does, start it in its own process group and send that group SIGINT. Closing stdin also takes it offline.
{
"v": 1,
"at": "2026-11-16T18:00:00.000Z",
"type": "state",
"link": "online",
"paused": false,
"jobs": [],
"waiting": 1,
"queue": [{ "repo": "acme/app", "since": 1763481600000 }],
"spilled": [],
"slots": 2
}
Types: sign-in (the page and code to approve), machine, state, job-repo, job-result, job-end (the job's line in history), offline, error, and the connection's own: connecting, connected, disconnected, run, job, paused, waiting. waiting (also in state) is how many jobs are queued for a slot on this machine: jobs it could run whose machines are all busy. queue lists the longest-waiting of them (repo, since when in ms, and the job's name and workflow once GitHub has said which job it is), and spilled holds when jobs in the last hour went to another runner because every slot was busy. state also has slots, how many jobs it runs at once. A run event carries job when the gateway knows which job it is: its name, workflow, repo, GitHub link and typicalMs, how long it usually takes on this machine.
login
relayrunner login
Signs this machine in and exits, without putting it online. For agents and scripts. Takes --name and --share like connect.
whoami
relayrunner whoami [--json]
Shows the machine, the workspaces it's in, who enrolled it, its sharing setting and whether it's online.
init
relayrunner init [--plan] [--apply <jobs>] [--exact] [--allow-deploy <jobs>] [--json]
Routes a repo's jobs through RelayRunner. Run it inside a checkout. See Move your workflows over.
| Flag | What it does |
|---|---|
--plan |
List the jobs and what would happen. Changes nothing. |
--apply <jobs> |
Route these jobs without prompting: ids (test), file:id (ci.yml:test), or all. |
--exact |
Keep each job's label under its provider's input instead of writing its shape, so only that provider and your machines take it. |
--allow-deploy <jobs> |
Route these jobs even though they look like deploy jobs. The machine gets their secrets and cloud access. |
--json |
Print the result as JSON. |
pause and resume
relayrunner pause
relayrunner resume
Stops new jobs reaching this machine while it stays connected, and lets them through again. A running job finishes.
share
relayrunner share # show the current setting
relayrunner share only-me # only jobs you started
relayrunner share anyone # any job in the workspace
workspaces
relayrunner workspaces # which workspaces this machine runs jobs in
relayrunner workspaces add acme # run jobs from Acme here too
relayrunner workspaces remove acme # stop running Acme's jobs here
You pick the machine's workspaces when you approve it; this changes them later. add and remove take a workspace's name, slug or id, or show a list to pick from when you leave it out. Adding a workspace while sharing is anyone warns that anyone who can push to its private repos can run jobs on the machine.
See the changelog for what's new.
history
relayrunner history # the last 20 jobs this machine ran
relayrunner history --limit 50
relayrunner history --json
Lists the jobs connect ran on this machine, newest first, with each one's result and how long it took. They're kept in ~/.relayrunner/history.jsonl, the newest 500 at least, which the Mac app reads too.
blacksmith
relayrunner blacksmith connect
relayrunner blacksmith connect --workspace acme # when you run more than one workspace
Connects your Blacksmith organization so Settings › Providers shows its real usage: billable minutes and cost per day, and each job's billable minutes. Blacksmith has no usage API, so RelayRunner reads it with Blacksmith's own CLI and an org token.
The command runs blacksmith org-token create, which opens your browser for you to approve as an admin of the Blacksmith organization. It sends only the token it prints to RelayRunner, encrypted at rest, and never signs in to Blacksmith or reads Blacksmith's saved credentials. If Blacksmith's CLI isn't installed, it offers to download it into ~/.relayrunner/bin (--yes skips the question), checked against the SHA-256 Blacksmith publishes.
In the browser, approve it for the GitHub organization your workspace is on. A token for any other organization is refused. The token goes to the workspace on that organization, else the one with its name, or the one you name or pick when that isn't clear. You must own or administer it. Remove the connection in Settings › Providers, then revoke the token with blacksmith org-token revoke <id>. Run relayrunner login first if this computer isn't signed in.
feedback
relayrunner feedback "The Jobs window doesn't show yesterday's jobs"
relayrunner feedback --category bug --file report.txt
relayrunner feedback --anonymous "The menu icon stays faded"
Sends a message to the RelayRunner team with your name and email, so we can reply. --anonymous sends it without them. --category is bug, confusing, feature_request or other (the default). Anything that looks like a token or password is replaced before it's stored. The Mac app sends crash reports this way, after you've seen what's in them, and anonymously unless you choose to include your name and email.
firewall
relayrunner firewall # show whether it's on
relayrunner firewall on # asks for your password
relayrunner firewall off
Turns on a firewall on your Mac for isolated jobs. Job VMs can reach the internet, not your Mac or your local network, and no job can remove it. It stays on after a restart.