Baremetal

Your computers, as a GitHub Actions runner fleet.

Baremetal turns the Linux, macOS and Windows machines you already own into an autoscaling pool of ephemeral self-hosted runners: several jobs at once per machine, scale to zero when idle, no Kubernetes.

Pre-release (v0.x). The end-to-end tests run against a fake GitHub service; behaviour against real GitHub is verified only by an opt-in procedure. Try it on a private test repository first.

What it does

Ephemeral runners

Every runner registers just-in-time, runs exactly one job and is removed. Nothing is reused.

Resource-aware

Hard per-runner CPU, memory and disk reservations. It never oversubscribes a machine; extra jobs wait in GitHub's queue.

Official parts

Built on the official actions/scaleset SDK and the official actions/runner, checksum-verified.

One binary

Standalone on one machine, or a controller with remote agents over mutual TLS that dial out (no inbound ports).

Several organizations

The same machines run the CI of several GitHub organizations or repositories. Capacity is shared fairly: a burst in one organization never starves the others.

Supported platforms

Platforms and how much runtime validation each has
PlatformExecutorsValidation
Linux amd64native, user, containerCI native tests
Linux arm64native, user, containerCI native tests (arm64 runner)
macOS arm64native, userDevelopment machine, scheduled CI
macOS amd64native, userCompiled only
Windows amd64nativeCI native tests
Windows arm64nativeCompiled only

GitHub.com only. “Compiled only” means it cross-compiles; it has not been run there.

Install

The installers verify the SHA-256 checksum of the download and refuse to continue on a mismatch. They install to a directory you own and never start a service.

Linux and macOS

curl -fsSL https://baremetal.tools/install.sh | sh

Windows (PowerShell)

irm https://baremetal.tools/install.ps1 | iex

Read a script before piping it to a shell, and see exactly what changes on your system in the installation guide. Prefer a manual install? Download an archive and checksums.txt from GitHub Releases.

Releases are not code-signed or notarized; the checksum published with each release is the integrity guarantee.

Quick start

# set up this machine for one repository (asks for a token, installs and starts a service)
baremetal init --github https://github.com/YOU/YOUR-REPO

# use the runs-on value it prints
#   jobs:
#     build:
#       runs-on: baremetal-linux

# serve more organizations with the same machines
baremetal init --add --github https://github.com/OTHER-ORG

# watch it work
baremetal status

Add more machines to the fleet with a one-time token: baremetal nodes invite on the controller, then baremetal join --token … on the new machine. Walk-through with a Mac mini, a Linux box and a Windows box: quick start guide.

Architecture

GitHub scale set ──messages──▶ controller ──schedule──▶ agent ──▶ ephemeral runner
 (TotalAssignedJobs)          (SQLite state)            (per machine)   (one job)
  1. The controller registers one scale set per pool (and per organization when it serves several) and listens to GitHub's message session.
  2. TotalAssignedJobs is the demand signal. The scheduler places runners on nodes with enough free resources and reserves them atomically.
  3. A just-in-time configuration is generated; the agent starts the official runner from a verified, private copy.
  4. When the runner exits its process tree is killed, its directory deleted, its resources released and its registration reconciled.

The same controller and agent code serves standalone and distributed modes; only the transport differs. Details in the architecture document.

Executors compared

How each executor runs a job and what it isolates
ExecutorPlatformsRuns jobs asLimits enforcedSecurity boundary
nativeLinux, macOS, Windowsthe agent's userscheduling onlyNone
userLinux, macOSa dedicated unprivileged accountscheduling onlyFile permissions only
containerLinuxunprivileged user in a containerCPU, memory, processesShared-kernel container, not a VM
VM / microVM---Not implemented in V1

“Ephemeral runner” means ephemeral registration, not an ephemeral machine. See executors for macOS and Windows notes.

Security considerations

Do not run workflows from public repositories (pull requests from strangers) on native runners. Anyone who can open a pull request may be able to run code on your machine, with access to your LAN and your files.

  • Native and user executors are not sandboxes; use them for trusted workloads.
  • GitHub credentials stay on the controller; agents only receive a short-lived, single-use runner configuration.
  • The controller binds to loopback by default; agents need no inbound ports.
  • No remote shell: the controller can only start and stop runners.

Read the security policy for the threat model, platform risks and recommended GitHub settings.

Documentation

License

Baremetal is open source under the MIT License. Third-party notices are listed in THIRD_PARTY_NOTICES.