Turn your Mac into a Linux runner for GitHub Actions · relayrunner
Your Mac as a runner
Turn your Mac into a Linux runner with one command.
Run one command and your Mac starts taking your ubuntu-latest jobs, each in a fresh
Linux VM. You don't install a runner app or copy tokens. When your Mac is busy or asleep, jobs go
to your hosted runners.
Get started with GitHub$npx relayrunner connectCopy command
Ada's MacBook Pro
$ npx relayrunner connect
✓ Each job runs in a fresh Linux VM
✓ Online. Waiting for jobs.
→ ci / test · ubuntu-latest · PR #482
starting VM (4 CPUs, 8 GB)
✓ ci / test passed in 1m 42s
VM removed
How this differs from a GitHub self-hosted runner.
A GitHub self-hosted runner is a server you install, register and keep online. Here, your Mac takes jobs only while it's connected, and a new runner registers itself for each job.
GitHub self-hosted runner
- Download the runner app and copy a registration token from each repo or org's settings.
- Run
config.sh, install it as a service and keep it updated. - Change each workflow to
runs-on: self-hosted. - Jobs run straight on the machine and share whatever the last job left behind.
- When it's offline, jobs sit in the queue until it comes back.
Your Mac with relayrunner
- Run
npx relayrunner connectand sign in with GitHub. - Nothing to install or update. Stop it with Ctrl-C or
relayrunner pause. - Run
npx relayrunner initonce. After that, change where jobs run from the dashboard. - Each job gets a fresh Linux VM and a one-time runner, and both go away when it's done.
- When your Mac is offline, jobs go to the next runner in your order.
Run CI jobs on a Mac you already own.
Connect in one command
Run npx relayrunner connect on a Mac with Apple silicon. It takes jobs while
it's running and stops when you quit or close the lid. Or
download the Mac app and turn it on from the menu bar.
Every job gets a fresh VM
The job runs in a clean Linux VM that goes away when it's done. It can't see your files or reach your local network unless you allow it. Docker works inside.
Use hosted runners when your Mac is busy
Your Mac is one step in your runner order. When it's busy or asleep, the next job goes to GitHub-hosted or another provider, so nothing waits. Close the lid mid-job and automatic retries run it again there.
Ada's MacBook Pro Linux VMs · macOS Next job
GitHub-hosted macos-latest Fallback
Run macOS jobs on your Mac too.
macOS minutes on GitHub cost about ten times Linux. Add --macos, or switch on macOS
jobs in the Mac app's settings, and your Mac runs them directly, where Xcode is, while Linux
jobs keep running in VMs.
Or turn it on from the menu bar.
The Mac app takes jobs with one switch. See what's running, how long it has left and what ran this week, without a terminal.
Wed 2:44 PM
Jobs – ada-mbp
All FailedSearch jobs, workflows and repos
JobRepoWaitedRanFinished
test CIacme/web2s4m 12sToday at 2:41 PM
build CIacme/web1s2m 48sToday at 2:37 PM
lint CIacme/api3s38sToday at 2:30 PM
e2e Nightlyacme/web0s9m 05sToday at 2:22 PM
test CIacme/api4s3m 51sToday at 2:14 PM
deploy Releaseacme/api1s1m 20sToday at 1:58 PM
CI › build acme/web · waited 1s · ran 2m 48s · finished 7m agoOpen on GitHub
Steps
Set up job3s
Install dependencies52s
Build1m 49s
Complete job4s
RelayRunner Running 1 job, 2 waiting
test CI · acme/web
about 1:04 left
Pause New Jobs›
Jobs…⌘J
Open Dashboard
Settings…⌘,
Quit RelayRunner⌘Q
Compare your Mac with GitHub-hosted runners.
The Performance page compares how long the same jobs take on each runner, so you can see how much faster your Mac is than ubuntu-latest.
Read about the Performance page →
Common questions
Will it slow down my Mac?
Set --cpus and --memory to cap what each VM gets. Run
relayrunner pause when you need the whole machine.
Which Macs work?
A Mac with Apple silicon on macOS 26 or later runs each job in its own VM. Other Macs, and Linux computers, can connect too and run jobs directly.
Do I have to change my workflows?
Once. npx relayrunner init adds a relay to each job you pick. After that, you
change where jobs run in the dashboard. See Routing.
What does it cost?
relayrunner is free and open source, and jobs that run on your Mac use no GitHub minutes.
Connect your Mac.
Run these two commands. Your hosted runners stay as the fallback.
- 1. Turn this Mac into a runner
$ npx relayrunner connectCopy
- 2. In your repo, pick the jobs to route
$ npx relayrunner initCopy