Skip to the content
Forge

Add a runner

A runner is a Linux machine running forge-runner. An organization's runners take the runs of all its projects; a project can also have runners of its own. Time on your own runners has a rate of its own, which your plan may make free.

What the machine needs

  • Linux on x86-64 or ARM64, with containerd and the CNI plugins installed.
  • An outgoing connection to Forge's runner endpoint. Forge never connects to the runner, so it can sit behind a firewall or NAT.
  • For VM runs and the Kata sandbox: hardware virtualization (/dev/kvm).

Join it

  1. Open your organization's (or a project's) Runners page and choose Add a runner. Forge creates a single-use join token and shows the command to run.

  2. On the machine, run the join command it shows. It looks like this:

    sudo forge-runner join --server forge.example.com:8091 --token-file token.txt
    

    The runner gets its own certificate, and the token can't be used again.

  3. Start the runner with sudo forge-runner run, usually as a systemd service.

The runner shows up on the Runners page as online, with what it reported about itself: its architecture, sandbox, CPU and memory, and its labels.

Many machines

For machines that come and go, such as autoscaled VMs, make a runner group instead. Its machines join with one reusable key, so a machine can join by itself at boot. Forge can also start and stop a group's machines in your cloud account as runs wait.

Choosing runners for a run

A run goes to any runner that fits it. To pick particular runners, give them labels and ask for those in the run spec:

image: golang:1.24
labels: { gpu: "true" }
commands:
  - run: go test ./...