# How do you set up a self-hosted GitHub Actions runner on a Mac?

> Register a self-hosted GitHub Actions runner on a rented Mac mini, from $139 a month for Ship. Paid in Monero or USDT, no KYC.

- URL: https://rentcloudmac.com/guides/how-to-set-up-github-actions-runner-on-mac/
- Last updated: 2026-12-03
- Publisher: RentCloudMac (https://rentcloudmac.com)

A self-hosted runner turns a rented Mac into the macOS machine of your workflows: no per-minute bill from GitHub, your Xcode versions, your caches.

**Quick answer — How do you set up a GitHub Actions runner on a Mac?**

Copy the download and `./config.sh --url … --token …` commands from Settings, Actions, Runners, New self-hosted runner, run them on the Mac, then `./svc.sh install` and `./svc.sh start`. On a **RentCloudMac** Ship at $139 a month, paid in Monero or USDT, the runner is free of GitHub minutes.

**In brief**

- **Self-hosted runners do not use GitHub's included minutes**: GitHub lists them as free usage.
- **Commands come from GitHub**: the New self-hosted runner page prints the exact version, checksum and token for macOS ARM64.
- **Run it as a service**: `./svc.sh` installs a LaunchAgent that starts with your user session.
- **Labels** such as `self-hosted`, `macOS`, `ARM64` plus your own (`xcode-26`) route jobs to the Mac.
- **Or let the team do it**: the CI runner setup option registers it for you; the CI pack bundles it with Ship for 12 months for $1,783.20.

## Which steps register the runner?

1. **Prepare the Mac** — Install Xcode, accept its licence and add the iOS platform, so the first job does not fail on tooling.
2. **Open the runner page** — In the repository or organisation, go to Settings, Actions, Runners, New self-hosted runner, and choose macOS and ARM64.
3. **Download and verify** — Run the mkdir, curl and shasum lines exactly as GitHub prints them; they carry the current version.
4. **Configure** — Run ./config.sh with the URL and the one-hour token from the page; give a name and extra labels.
5. **Install as a service** — Run ./svc.sh install then ./svc.sh start; ./svc.sh status confirms it is listening for jobs.
6. **Target it in a workflow** — Set runs-on to your labels and push a commit to watch the job land on the Mac.

*On the Mac (version and token come from GitHub's page)*

```bash
mkdir actions-runner && cd actions-runner
curl -o actions-runner-osx-arm64-VERSION.tar.gz -L \
  https://github.com/actions/runner/releases/download/vVERSION/actions-runner-osx-arm64-VERSION.tar.gz
tar xzf ./actions-runner-osx-arm64-VERSION.tar.gz

./config.sh --url https://github.com/OWNER/REPO --token TOKEN \
  --name cloudmac-01 --labels xcode-26 --unattended

./svc.sh install
./svc.sh start
./svc.sh status
```

*.github/workflows/ios.yml*

```yaml
name: iOS
on: [push]
jobs:
  build:
    runs-on: [self-hosted, macOS, ARM64, xcode-26]
    steps:
      - uses: actions/checkout@v4
      - run: xcodebuild -scheme MyApp -destination 'platform=iOS Simulator,name=iPhone 17' test
```

## Why does the runner need a logged-in session on macOS?

**Because `svc.sh` installs a LaunchAgent, which runs inside a user session, and the Simulator and UI tests also need that session.** After a reboot, the runner starts when the user logs in. On a remote Mac, turn on automatic login for the runner's user in System Settings, Users and Groups (it is unavailable while FileVault is on), or log in once through Screen Sharing after each reboot.

A LaunchDaemon would start without a login, but it cannot drive the Simulator's window server reliably, so most iOS teams keep the agent. The background on this choice is in [GitHub Actions macOS runner](https://rentcloudmac.com/use-cases/github-actions-macos-runner/ "GitHub Actions macOS runner").

## How does a self-hosted Mac runner compare with a GitHub-hosted one?

*Self-hosted runner on a rented Mac vs GitHub-hosted macOS runner, read on 3 December 2026*

| Point | Self-hosted on RentCloudMac | GitHub-hosted macOS |
| --- | --- | --- |
| Billing | Monthly rent, $139 for Ship | Per minute in private repositories |
| GitHub minutes used | None (free usage) | Yes, from the included allowance |
| Machine state between jobs | Kept: caches, DerivedData, installed tools | Fresh image each job |
| Xcode versions | Whatever you install | Those on GitHub's image |
| Maintenance | Yours (or the Managed Mac option) | GitHub's |
| Payment | Crypto, no KYC | Card or invoice through GitHub |

*Prices checked on December 3, 2026.*

## How do you keep a persistent runner clean?

**Clean the workspace, cap DerivedData and never run untrusted pull requests on it.** A persistent runner keeps files between jobs, which makes builds incremental but also lets one job affect the next. Use `actions/checkout` with `clean: true`, point DerivedData into the workspace with `-derivedDataPath`, and delete it on a schedule. GitHub advises against self-hosted runners on public repositories, because anyone opening a pull request could run code on your Mac.

Hardening steps are in [how to secure a cloud Mac](https://rentcloudmac.com/guides/how-to-secure-a-cloud-mac/ "How to secure a cloud Mac").

## Which plan fits one runner, and which fits several?

**Ship runs one runner for a small team; Matrix (M4 Pro · 64 GB · 1 TB) runs several runners side by side.** Each runner instance needs its own folder and its own `config.sh`. RentCloudMac compared 7 sellers on 3 December 2026: none accepted crypto, so a self-hosted runner paid in Monero is only possible here. The ranking of CI options is in [best self-hosted macOS CI](https://rentcloudmac.com/best/self-hosted-macos-ci/ "Best self-hosted macOS CI").

## What questions come up about Mac runners?

### Are self-hosted runners really free on GitHub?

GitHub's billing page lists self-hosted runners among the usage that stays free and does not reduce included minutes. You pay only for the Mac.

### Does the runner need an open port?

No. It connects out to GitHub over HTTPS and long-polls for jobs, so the Mac's firewall can block all inbound traffic except SSH.

### Can I use GitLab instead?

Yes. GitLab Runner installs with Homebrew and registers with gitlab-runner register; the CI runner setup option covers GitHub or GitLab.

### How do I update the runner?

The runner updates itself by default when GitHub publishes a new version. Keep Xcode updates manual so a release build is never surprised.

### What happens if the Mac reboots?

The LaunchAgent starts again when the runner's user logs in, which is why automatic login matters on a remote Mac.

**Verdict**

- Copy GitHub's own commands, run `config.sh`, then `svc.sh install` and `start`: the runner is live in minutes.
- Turn on automatic login so the agent and the Simulator come back after a reboot.
- Ship is the usual runner Mac; the CI pack adds setup and priority support. See [pricing](https://rentcloudmac.com/pricing/ "RentCloudMac pricing").

**Get the CI pack** Ship (M4, 24 GB, 512 GB) for 12 months, CI runner setup, Xcode and Fastlane setup, priority support for 12 months: $1,783.20, paid in crypto. [Rent Ship for 12 months](https://rentcloudmac.com/app/checkout/?plan=ship&term=12m&from=guides-how-to-set-up-github-actions-runner-on-mac&lang=en)

## Sources

1. [Adding self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners) — GitHub
2. [Configuring the self-hosted runner application as a service](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/configuring-the-self-hosted-runner-application-as-a-service) — GitHub
3. [GitHub Actions billing](https://docs.github.com/en/billing/concepts/product-billing/github-actions) — GitHub (read 2026-12-03)

---

RentCloudMac: RentCloudMac rents whole Apple Mac minis (M4 and M4 Pro) in data centres for building, signing and testing iOS and macOS apps, reached over SSH and Screen Sharing. Five Macs cost $92 to $299 a month, paid in Monero, Bitcoin, USDT or 4 other coins, with no KYC and delivery within 24 hours.
