How a hosted GitHub Actions runner plugs into your workflow (and what the minutes cost)

2026-11-18来源 dev.to DevOpsEnglish

Disclosure: I'm a co-founder of Sengi, the runner service this post is about. No affiliate links.

We launched Sengi to do one thing: run your GitHub Actions jobs on our machines when you ask it to, for less per minute than GitHub's hosted runners. This post explains what changes in your repo when you use a hosted runner like ours, what doesn't, and how the bill is counted, so you can check the math yourself.

What changes: one line

A GitHub Actions job picks its machine with runs-on. A hosted runner provider gives you its own labels; you install its GitHub App so it can register runners for your repository, and then you swap the label:

jobs: test: -  runs-on: ubuntu-latest + runs-on: sengi-basic-2-ubuntu-2404 steps: - uses: actions/checkout@v4 

That's the whole migration for a Linux job. You can do it job by job: anything still on ubuntu-latest keeps running on GitHub's runners, in the same workflow.

What doesn't change

  • Triggers, secrets, environments and required checks stay in GitHub.
  • Status, checks and logs appear in the GitHub Actions UI exactly as before.
  • actions/cache, the setup actions' caches and Docker's type=gha layer cache work as they do on GitHub. With Sengi they're served by us and included in the price.
  • Switching back is one revert of that line.

What runs the job

On Sengi, each job gets a fresh Ubuntu 24.04 x64 virtual machine, started for that job and removed when it finishes. Nothing carries over from one job to the next. Sizes are 2 vCPU / 8 GB, 4 vCPU / 16 GB and 8 vCPU / 32 GB, as two classes:

Label vCPU / RAM $/min
sengi-basic-2-ubuntu-2404 2 / 8 GB 0.001
sengi-basic-4-ubuntu-2404 4 / 16 GB 0.002
sengi-basic-8-ubuntu-2404 8 / 32 GB 0.004
sengi-premium-2-ubuntu-2404 2 / 8 GB 0.003
sengi-premium-4-ubuntu-2404 4 / 16 GB 0.006
sengi-premium-8-ubuntu-2404 8 / 32 GB 0.012

Basic is the low-price class. Premium is the faster class, on AMD Ryzen 9 7950X3D machines with local NVMe. You choose per job.

How the minutes are counted

  • Each job is billed for the time it runs, rounded up to a whole minute. GitHub rounds per job the same way, so a 61-second job is two minutes on both.
  • Boot and teardown of the VM are not billed.
  • No subscription or base fee.

For comparison, on private repositories GitHub lists $0.006 a minute for its 2 vCPU Linux runner and $0.012 and $0.022 for its 4 and 8 vCPU larger runners. (Standard GitHub-hosted runners are free on public repositories.)

A worked example at list prices, before any free allowance: 10,000 minutes a month at 2 vCPU on a private repository is $60 on GitHub and $10 on Sengi Basic.

Then each side's allowance, separately: GitHub's plans include $12 to $300 of usage a month depending on the plan (Free, Pro/Team, Enterprise Cloud). Sengi gives every account 3,000 free Basic minutes a month, which is $3 of Basic at any size.

The free minutes, exactly

  • Every account gets 3,000 free Basic minutes each calendar month, no card. That's 3,000 minutes at 2 vCPU, 1,500 at 4 vCPU, 750 at 8 vCPU, or a mix. Unused minutes don't carry over.
  • A job running on free minutes can run for up to 2 hours. A job stopped by that cap shows as failed in GitHub. Adding a card removes the limit.
  • If the month's free minutes run out, jobs that are already running finish at no charge. New jobs don't start until you add a card or the month resets, so re-run them then. (GitHub cancels a job that waits in its queue for more than 24 hours.)
  • Premium needs a payment method.

Limits

Linux x64 only, on one Ubuntu 24.04 image. No macOS, Windows or Arm runners.

Trying it

Install the app and change one line: sengi.run. If you'd rather have a coding agent make the edit, there's a prompt at sengi.run/agent that finds the jobs Sengi can run, changes their runs-on lines and opens a pull request for you to review.

Questions about how any of this works are welcome in the comments.

— Clay (co-founder)

原文:https://www.a8q9.cn/en/article/how-a-hosted-github-actions-runner-plugs-into-your-workflow-and-what-the-minutes-9a16ab.html

相关文章