Home/Q&A/Can I run GitLab Runner on a remote Mac mini?

Can I run GitLab Runner on a remote Mac mini?

Updated · airankrush

Direct answer

Yes, but the installation step has to be done in a terminal inside the remote desktop. On macOS, GitLab Runner is only supported running as the logged-in user and depends on a graphical login session.

Basis

  • GitLab's documentation (Install GitLab Runner on macOS, checked 2026-11-12) states that on macOS the Runner runs as a user-level LaunchAgent, that this is the only supported mode, and that a system-level LaunchDaemon is not supported.
  • The same document says the Runner runs as the currently logged-in user, starts when that user logs in and stops when they log out. It also tells you not to install it from an SSH session but from a graphical terminal on the machine, because a LaunchAgent needs a graphical login session to load. What you see through UU Remote or RustDesk is that graphical session, so opening Terminal there and installing meets the requirement.
  • The document also names the benefit of this design: the Runner can reach that user's keychain and UI session, which are exactly what the iOS simulator and code signing need.
  • The Runner connects out to the GitLab instance and waits for jobs. The direction is from the machine outward.

Information as of .

Boundaries: when the answer is different

Pick the right executor. iOS builds use the shell executor, where jobs run on this Mac as that user; container executors run Linux containers and cannot compile iOS apps. If your GitLab is a self-managed instance that only accepts traffic from fixed source addresses, this machine is not a fit: it uses US residential broadband, the public exit may be shared with other machines, and it is not a fixed address. For Runner and GitLab versions, the official advice is to keep major and minor versions in sync; with a large gap some features may not work properly. Whether the Runner comes back on its own after a restart depends on the login configuration. Ask support to check that rather than changing login and encryption settings yourself.

How to do it

  1. Open the desktop with UU Remote and, in Terminal, download the Runner and make it executable as the official documentation describes.
  2. Register it with the token generated on the GitLab page, entering shell as the executor.
  3. Still in that graphical terminal, run gitlab-runner install and gitlab-runner start.
  4. Confirm it shows as online in GitLab's runner list, then add the matching tags to your jobs.
  5. Run a minimal pipeline and confirm that xcodebuild -version prints the version you expect.

Use case

This question belongs to the use case: Rented Mac mini as an always-on build machine for small teams? Count your build minutes first

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A