Home / Dev boxes for AI agents / GitHub Codespaces / Pricing
GitHub Codespaces pricing
In short (2026-11-13): $0.18 per hour for 2-core machine. Free tier: Personal accounts: 120 core-hours and 15 GB-months a month on GitHub Free, 180 core-hours and 20 GB-months on GitHub Pro. Organization plans include no free quota. Source: official pricing page. Prices checked 2026-11-15.
Usage rates
- Fixed size
- $0.18 per hour (2-core machine)
- Storage
- $0.07 per GiB-month
- Billing
- Compute time reported hourly and billed monthly. Compute while the codespace is active; storage for as long as the codespace or prebuild exists.
Plans
| Plan | Per month | Included credit | Limits |
|---|---|---|---|
| GitHub Free (personal account) | $0.00 | $0.00 | 120 core-hours of compute and 15 GB-months of storage each month. Usage beyond it is billed if a payment method is on file, otherwise blocked. |
What it costs in practice
| Workload | Usage | Cheapest plan | Total per month |
|---|---|---|---|
| Hobby agent: 1 vCPU, 1 GiB, 20 hours a month | $3.60 | GitHub Free (personal account) | $3.60 |
| One dev agent: 2 vCPU, 4 GiB, 8 h a day for 22 days | $31.68 | GitHub Free (personal account) | $31.68 |
| Team: 10 sandboxes of 2 vCPU, 4 GiB, 8 h a day for 22 days | $316.80 | GitHub Free (personal account) | $316.80 |
| Always on: 4 vCPU, 8 GiB, 730 hours a month | $262.80 | GitHub Free (personal account) | $262.80 |
CPU busy 30% (50% always on), which matters only where CPU is billed by active time. Storage, network and GPU are not included. Try your own numbers in the cost calculator.
Billing details that change the bill
- Compute is linear in cores: 2-core $0.18, 4-core $0.36, 8-core $0.72, 16-core $1.44, 32-core $2.88 per hour. The included quota is in core-hours, so 120 core-hours is 60 hours on a 2-core machine.
- GitHub prices by core and does not list RAM per machine type on the billing page, so we leave memory unset.
- Prebuilds use GitHub Actions compute and their storage counts toward codespace storage.
- A codespace stops after 30 minutes idle by default (settable from 5 to 240 minutes) and has a 12-hour maximum lifetime even while in use. Stopping keeps saved files but ends running processes.
- GitHub Pro's price is not on the pricing pages checked, so it is not listed as a plan here.
Price history
List price per month over timeNo change since 2026-11-13
No price change found since we started tracking on 2026-11-13. We check every pricing page daily.
Cheaper or better-fit GitHub Codespaces alternatives →
Sources
- https://docs.github.com/en/billing/concepts/product-billing/github-codespaces, checked 2026-11-13:
| Codespaces compute | 2 core | 1 hour | 2 | $0.18 |
- https://docs.github.com/en/billing/concepts/product-billing/github-codespaces, checked 2026-11-13:
| Codespaces storage | Storage | 1 GB-month | Not applicable | $0.07 |
- https://docs.github.com/en/billing/concepts/product-billing/github-codespaces, checked 2026-11-13:
| GitHub Free for personal accounts | 15 GB-month | 120 hrs |
- https://docs.github.com/en/billing/concepts/product-billing/github-codespaces, checked 2026-11-13:
The compute cost is proportional to the number of processor cores in the machine type you choose for your codespace
- https://docs.github.com/en/get-started/learning-about-github/githubs-plans, checked 2026-11-13:
120 GitHub Codespaces core hours per month
- https://docs.github.com/en/codespaces/about-codespaces/understanding-the-codespace-lifecycle, checked 2026-11-13:
A codespace has a maximum lifetime of 12 hours, regardless of your idle timeout policy or settings.
- https://docs.github.com/en/codespaces/about-codespaces/deep-dive, checked 2026-11-13:
The VM is both dedicated and private to you.