Skip to main content
Self-Hosted CI Runners: When They Save Money

Self-Hosted CI Runners: When They Save Money

KU
· Founder & Chief Editor
• 8 min read•Updated •44 views

Hosted runners bill by the minute, and that meter never stops. Here's the break-even math on running your own, plus the tradeoffs nobody warns you about.

Key takeaways

  • Self-hosted runners save money once your hosted bill clearly exceeds the fixed cost of the machines plus the engineer time to run them.
  • At October 2026 GitHub prices, one always-on 8 vCPU VM plus ops is worth roughly 18,000 larger-runner minutes a month.
  • Below that, stay hosted; above it, autoscale ephemeral runners with ARC.

Self-hosting pays off when hosted minutes cost more than machines plus the ops time to run them. As of October 2026, GitHub's 8-core Linux runner is $0.022/minute; an always-on c6i.2xlarge is about $248/month on demand. Add a real ops slice and break-even sits near 18,000 larger-runner minutes a month. Below that, stay hosted.

Verified against

GitHub Actions runner pricing, actions/runner v2.338.2, Actions Runner Controller (gha-runner-scale-set Helm charts), and EC2 on-demand list prices for us-east-1, against the GitHub Docs billing, ARC and secure-use pages and the AWS EC2 pricing page. Checked October 2026.

The usual trigger is an invoice. Picture a team of nine, one product, a test matrix that fans out, and a four-figure monthly Actions bill, while a Kubernetes cluster sits half idle at night. Finance asks why you rent compute by the minute. Fair question; here is how to answer it with numbers.

The two cost models

Hosted runners are pure consumption. GitHub bills per minute, as of October 2026: Linux 2-core $0.006, 4-core $0.012, 8-core $0.022, 16-core $0.042, Windows 2-core $0.010, macOS $0.062. The 4-, 8- and 16-core larger runners need a Team or Enterprise Cloud plan. A chunk of every job is overhead (spin-up, checkout, dependency install, cache restore), and you pay for each second of it. There is no idle cost, which is the appeal.

Self-hosted flips it. You pay for the box whether a job runs or not, plus the part everyone underestimates: ops time. A runner fleet is infrastructure. It needs patching, monitoring, and an on-call story for when the autoscaler wedges at 2am.

So the honest comparison is hosted minutes against infra plus storage plus egress plus a real slice of an engineer's month.

GitHub's runner pricing page lists no per-minute charge for self-hosted runners as of October 2026. A platform fee for self-hosted minutes was announced in December 2025 and then postponed, so re-check that page before you budget.

The break-even math

Hosted cost is rate × minutes. Self-hosted cost is infra + ops. Run it with your own numbers:

code
$ # one always-on c6i.2xlarge (8 vCPU), us-east-1 on-demand $0.34/hr
$ echo "0.34 * 730" | bc
248.20
$ # plus an honest $150/month of ops time, divided by the 8-core hosted rate
$ echo "(248.20 + 150) / 0.022" | bc
18100
$ # same budget in standard 2-core minutes at $0.006
$ echo "(248.20 + 150) / 0.006" | bc
66366

That VM can run jobs around the clock, about 43,800 minutes a month. If you burn well over 18,000 larger-runner minutes (or 66,000 standard ones) and the number is climbing, self-hosting wins. Below the line you pay a fleet's fixed cost to save pocket change. Graviton narrows it further: a c7g.2xlarge lists at $0.29/hour, if your builds run on ARM.

The number that actually matters is concurrent demand, not total minutes. Ten thousand minutes spread evenly is one busy runner. Ten thousand minutes landing in a 90-minute window before every deploy is a scaling problem, and that is where autoscaling earns its keep.

The options, from least ops to most

Static VM runners. One or two always-on boxes registered to the org. Simple, and often right for steady, predictable load. You size for peak and eat idle time the rest of the day.

Autoscaling on Kubernetes with Actions Runner Controller. ARC is a Kubernetes operator that runs runners as pods. A listener waits for "Job Available" messages from GitHub and scales a runner scale set to match. If you already run a cluster, a runner pool is close to free at the margin, and you get bin-packing.

Ephemeral runners. Each job gets a fresh runner that is removed afterwards. ARC registers each one with a just-in-time token, so no state bleeds between jobs. That matters more for security than cost.

Spot instances for the pool. Runners are an ideal spot workload: stateless, interruptible, retryable. Spot prices are usually far below on-demand; check the current spot price history for your instance type before counting the savings. A reclaimed node means a re-queued job, not a lost transaction.

A working ARC setup

These are the commands from GitHub's ARC quickstart, with scale-from-zero limits added:

code
$ helm install arc \
    --namespace arc-systems --create-namespace \
    oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set-controller
$ helm install arc-runner-set \
    --namespace arc-runners --create-namespace \
    --set githubConfigUrl="https://github.com/your-org" \
    --set githubConfigSecret.github_token="${GITHUB_PAT}" \
    --set minRunners=0 --set maxRunners=20 \
    oci://ghcr.io/actions/actions-runner-controller-charts/gha-runner-scale-set
$ kubectl get pods -n arc-systems

Workflows target the scale set by its Helm installation name:

YAML
# .github/workflows/ci.yml
jobs:
  test:
    runs-on: arc-runner-set
    steps:
      - uses: actions/checkout@v7
      - run: make test

In production we'd put the runners on a dedicated spot node pool with a taint so only runners schedule there, authenticate ARC with a GitHub App instead of a personal access token, and let the cluster autoscaler add nodes when pending runner pods pile up. With minRunners=0, nights and weekends cost only the node pool floor.

Errors you will hit

  • Job sits at "Waiting for a runner to pick up this job..." The runs-on value does not match the scale set's installation name, or the listener pod in arc-systems is not running. Check kubectl get pods -n arc-systems and the listener logs. GitHub unassigns a job no runner accepts within 24 hours.
  • Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Default ARC runner pods have no Docker. Set the scale set's container mode to dind or kubernetes if workflows build images or use service containers.
  • "The runner has received a shutdown signal." Usually a spot reclaim or node drain. Re-run the job, and keep long jobs off spot if they cannot tolerate restarts.
  • No space left on device on static runners. Docker layers and workspaces accumulate. Prune on a schedule, or go ephemeral so disks reset per job.
  • Runner pod keeps failing to start. ARC retries a failed runner pod up to five times; check image pull secrets, node taints and resource requests.

The tradeoffs nobody puts on the slide

Security is the big one. GitHub's secure-use guide says self-hosted runners should almost never be used for public repositories, because anyone can open a pull request and run code on your machine. Even on private repos, anyone who can fork and open a PR can compromise the runner, and unlike hosted VMs a self-hosted machine "can be persistently compromised." Keep public-repo and fork PR builds on hosted runners, go ephemeral, isolate the node pool, and use OIDC for short-lived cloud credentials instead of static keys on the box. GitHub Actions security hardening goes deeper.

Maintenance is real and recurring. The runner binary updates often (v2.338.2 shipped in late October 2026), the controller needs upgrades, disks fill. Budget for it or it will find you.

Caching is the quiet win. Hosted jobs pull dependencies and Docker layers cold every time. A warm node with a local layer cache can cut minutes from every build, and faster feedback is worth more than the compute savings, though it never appears on the invoice.

Hardware on your terms. NVMe scratch disks, more RAM or ARM nodes are a one-time choice instead of a per-minute premium.

Where this breaks

Low volume, small team, spiky but light load: stay hosted. If the monthly bill is a couple hundred dollars, the ops time costs more than you will save. macOS is a special case, since Apple hardware does not fit a Kubernetes pool. And if workflows lean on hosted-image tooling, the migration effort can dwarf a year of savings. Make this decision alongside your CI/CD platform choice, because workflow portability shapes how painful the move is.

Questions people ask

Are GitHub self-hosted runners free?

GitHub does not bill per minute for self-hosted runners as of October 2026; its runner pricing page lists rates only for GitHub-hosted runners. You still pay for the machines, storage, network, and the engineering time to patch and operate them. A per-minute platform charge for self-hosted usage was announced in late 2025 and postponed, so check the pricing page before budgeting.

When do self-hosted runners become cheaper than GitHub-hosted?

When hosted minutes clearly exceed fixed infrastructure plus ops cost. At October 2026 prices, one always-on 8 vCPU EC2 instance (about $248 a month) plus $150 of ops time equals roughly 18,000 minutes on GitHub's 8-core Linux runner, or 66,000 standard 2-core minutes. Concurrent peaks matter too: bursty demand needs autoscaling, not one big box.

Is it safe to use self-hosted runners on public repositories?

Almost never. GitHub's security guidance warns that anyone can open a pull request against a public repository and run code on your self-hosted runner, potentially compromising it persistently. Keep public and fork PR workflows on GitHub-hosted runners. If you must self-host, use ephemeral just-in-time runners on isolated nodes with no long-lived credentials.

The call we'd make

Draw the break-even line first. If concurrent demand keeps pushing you into larger hosted tiers, self-host the trusted internal work on an autoscaling ARC pool, run it ephemeral, and keep untrusted PRs off your own machines. If you are under the line, do not build a runner fleet to save $80 a month. The compute was never the expensive part. The engineer babysitting it is.

Sources

React
Share this post
Cite this article
Plain text

Kiril Urbonas (2026). Self-Hosted CI Runners: When They Save Money. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/self-hosted-runners-cost

Markdown

[Self-Hosted CI Runners: When They Save Money](https://www.devopsness.com/blog/self-hosted-runners-cost) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)

KU

Kiril Urbonas

Founder & Chief Editor

586 articles
View all articles by Kiril Urbonas

You might have missed

Evergreen posts worth revisiting.