self hosted.txt
RelayRunner docs: Your machines Page: https://relayrunner.dev/docs/runners/self-hosted Markdown: https://relayrunner.dev/docs/runners/self-hosted.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 (this page)
- 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
- 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
Your machines
Turn computers you own into GitHub Actions runners with the CLI.
Any Mac or Linux computer can take jobs: your laptop, a Mac mini under the desk, an old gaming PC, a home server. Connect it with the CLI and it joins the self-hosted step of every workspace you're in.
Connect a machine
npx relayrunner connect
The first run signs the machine in. After that, the machine is online while connect runs, and the terminal shows each job as it runs. Ctrl-C takes it offline.
On a Mac, RelayRunner for Mac does the same from the menu bar.
Jobs run in GitHub's official runner, set up fresh for each job. The machine needs no runner setup of its own.
Where a job runs depends on the machine:
- On a Mac with Apple silicon, each job runs in its own Linux VM, away from your files. See Isolated jobs on a Mac.
- On Linux or an Intel Mac, jobs run on the machine itself, as the user who started
connect.
The dashboard's Runners page shows each connected machine, the jobs running on it and anything that needs you, like a machine that went offline with jobs waiting. Each running job shows about how long it has left, from how long it usually takes on that runner. Past its usual time the note goes away, and comes back in orange once the job is clearly slower than usual: past 9 in 10 of its runs, and at least 30 seconds and a quarter over its usual time.
Labels
Every machine has the label self-hosted, plus the OS and architecture its jobs run on: macOS or Linux, and ARM64 or X64. A Mac that runs jobs in Linux VMs has the label Linux, and macOS too when you connect it with --macos. A relay's machine input lists the labels a machine must have, all of them:
machine: |
Runs on |
|---|---|
self-hosted |
Any machine |
Linux |
Linux machines, and Macs that run jobs in VMs |
macOS |
Macs that take macOS jobs |
Linux, X64 |
Intel or AMD Linux machines |
Who can run jobs on it
A new machine only runs jobs you started (only me), including a teammate's re-run of your run. To let teammates' and bots' jobs run on it too, share it with anyone in the workspace:
relayrunner share anyone # or only-me
You can also change it from the sharing icon on the machine's card on the Runners page. Only the machine's owner can change it.
"Anyone" only covers jobs from repos the machine's owner can open on GitHub, so sharing a machine never gives it code you couldn't already see. See Share your team's machines.
Pause
Pausing keeps a machine connected but stops new jobs reaching it. A job it's already running finishes.
relayrunner pause
relayrunner resume
Press p in the connect terminal, or use the machine's ⋯ menu on the Runners page. Anyone in the workspace can pause a machine.
Jobs at once
A machine runs up to 2 jobs at once when it has 8 or more CPU cores, otherwise 1. Change it with relayrunner connect --concurrency <n>. Each job gets its own VM or its own copy of the runner, so jobs never share a workspace. When every slot is busy, the next job goes to another machine or falls through to the next step in your runner order. With no next step, it waits for a free slot.
Isolated jobs on a Mac
On a Mac with Apple silicon, each job runs in its own Linux VM. The VM sees none of your files, can reach the internet but not your Mac or your local network, and is deleted when the job ends.
You need macOS 26 and Apple's container tool, started once with container system start. Without it, connect still works: jobs run on the Mac itself, where they can read your files, and connect tells you so each time it starts.
The first run takes a couple of minutes to prepare the image jobs start from. After that a VM starts in a few seconds.
What's in the VM
The VM has the everyday tools a job written for ubuntu-latest expects: Git and Git LFS, Docker with Compose and Buildx, Node with npm, Python with pip, compilers and make, curl, wget, jq, zip and the gh CLI. Jobs with services: or container: run too.
For a specific version of Node or Python, or another language such as Go, Java, Ruby or Rust, use its setup-* action as you would on GitHub. The VM is ARM, so a job that needs x64 binaries should stay on ubuntu-latest.
To start from your own runner image, pass --image <image>. Your image is used with the tools it has.
macOS jobs
In a VM, jobs run on Linux, so the Mac's labels are Linux and ARM64 and it takes jobs written for ubuntu-latest. To take macOS jobs such as Xcode builds too, add --macos:
npx relayrunner connect --macos
Linux jobs still run in a VM. macOS jobs run on the Mac itself, as you, so route them only from repos you trust. A job that names neither OS goes by its GitHub fallback, so one written for ubuntu-latest runs in the VM.
The size of each job
Each VM gets an even share of the Mac's CPU cores, and of half its memory, so the Mac stays usable while jobs run. A Mac with 14 cores and 36 GB running 2 jobs at once gives each job 7 CPUs and 9 GB.
To give every job a fixed size, like a hosted runner's, set it:
npx relayrunner connect --cpus 4 --memory 16
That runs as many 4 CPU, 16 GB jobs at once as fit. --concurrency still sets the number yourself. A core on an Apple silicon Mac is faster than a hosted runner's vCPU, so the same size usually finishes sooner here.
Your network
A job can't reach your Mac or your local network. If it needs something there, such as a package registry or a test database, add --local-network. The job still can't read your files.
This block runs inside the VM, where a job that uses Docker could remove it. For a block no job can remove, run relayrunner firewall on once. It asks for your password, stays on after a restart, and relayrunner firewall off removes it. While it's on, --local-network has no effect.
Run jobs on the Mac itself
--no-isolated runs every job on the Mac, as you, with the tools you have installed. Jobs can read your files, so route them only from repos you trust.
npx relayrunner connect --no-isolated
When something goes wrong
~/.relayrunner/isolated.log has the details. It records the VM commands and their results, never a job's output or credentials, so it's safe to share. connect removes the images it downloaded for older runner versions, so they don't fill your disk.
Remove a machine
Remove it from the Runners page. You can remove your own machines; owners and admins can remove any. When someone leaves a workspace, their machines stay theirs and stop taking its jobs.
Runners your org already has
If you already run self-hosted runners, you can route jobs to them as they are, with no change on the runner's machine. On the Runners page, choose Add runners from GitHub and pick the ones to add. The list shows runners registered in your organization and runners registered on your private repos. Owners and admins can add them.
A runner registered on a repo only takes that repo's jobs. The list checks up to 100 private repos. If you have more, type a repo's name in the dialog to look there.
Added runners share the self-hosted step with your connected machines, and are picked the same way: online, idle, and with every label in the relay's machine input. Removing one from RelayRunner leaves it registered on GitHub.
Public repos
Machines never run a public repo's jobs. See Principles.