# セルフホスト vs GitHubホストのrunner: 本当のコスト比較

> GitHubホストのrunnerは分単位で課金され、セルフホストのrunnerはコストをcomputeと運用へ移す。隠れたコストを含め、正直に比較する方法を学ぼう。

Source: https://latchkey.dev/ja/learn/ci-cd-concepts/self-hosted-vs-hosted-runner-cost  
Updated: 2026-06-25

ホストされたrunnerは運用ゼロの分単位の請求だ。セルフホストのrunnerはその請求を、クラウドのcomputeプラス運用に費やす時間と交換する - そして2つ目のコストは過小評価しやすい。

「どちらが安いか」という問いに固定の答えはない; ボリューム、マシンサイズ、そしてfleetが消費するエンジニアリング時間の量に依存する。自分を欺かずに比較する方法を紹介する。

## ホストrunnerの課金方法

GitHubホストのrunnerは、job時間の分単位で課金し、切り上げ、より大きなマシンや非Linuxマシンには乗数がかかる。価格は予測可能でメンテナンスを含むが、利用に応じて線形にスケールし、マシンをチューニングすることはできない。

## セルフホストが実際にかかるコスト

- インスタンスのためのクラウドcompute(多くの場合ホストより分単価が安い)。
- runnerがjobを待って待機する場合のアイドル時間。
- fleetをパッチ適用、スケール、クリーンアップするエンジニアリング時間。
- 信頼性のインシデント: 古いrunner、いっぱいのディスク、孤立したjob。

## 分岐点

少量では、ホストがシンプルさで勝る。大量、あるいは重い/特殊なbuildでは、セルフホストのcomputeが分単価ではるかに安くなりうる - ただし稼働率が高く、運用オーバーヘッドが低いままの場合に限る。マネージドrunnerプラットフォームは、運用コストなしにcomputeの節約を取り込むことを狙う。

## 正直に比較する方法

インスタンスの請求だけでなく、エンジニアリング工数に金額を付ける。computeを節約するがエンジニアの週1日を費やすセルフホストfleetは、実際には安くない。一時的な失敗からの再実行も両側を膨らませる - それらを数える。

## FAQ

### What is Self-Hosted vs GitHub-Hosted Runners: the real cost comparison?

The "which is cheaper" question has no fixed answer; it depends on volume, machine size, and how much engineering time the fleet consumes. Here is how to compare them without fooling yourself.

### How hosted runners bill?

GitHub-hosted runners charge per minute of job time, rounded up, with a multiplier for larger or non-Linux machines. The price is predictable and includes maintenance, but it scales linearly with usage and you cannot tune the machine.

### The crossover point?

At low volume, hosted wins on simplicity. At high volume or with heavy/specialized builds, self-hosted compute can be far cheaper per minute - but only if utilization is high and ops overhead stays low. Managed runner platforms aim to capture the compute savings without the ops cost.

### How to compare honestly?

Put a dollar figure on engineering hours, not just instance bills. A self-hosted fleet that saves on compute but costs an engineer a day a week is not actually cheaper. Re-runs from transient failures also inflate both sides - count them.

---

Latchkey runs CI/CD that repairs its own failures. Agent entry points: https://latchkey.dev/agent.txt, https://latchkey.dev/openapi.json, https://latchkey.dev/llms.txt
