GitHub Codespaces
GitHub Codespaces includes 120 core-hours and 15 GB-month a month on Free with no card, and it blocks you when that quota ends unless you add a payment method, after which compute starts at $0.18 an hour.
GitHub Codespaces gives you a cloud development environment for a repository that you open in the browser or in VS Code. It is for developers who want a ready setup without local installs.
By GitHubDevOps & CIChecked ✓ 23 Nov 2026
Is it a fit?
Good fit
Use Codespaces for short sessions, quick fixes, or onboarding a contributor to a repo with a dev container.
- students and learners
- open-source contributors
- quick fixes from any device
Not a fit
Avoid it as a full-time dev machine, since the free hours run out, and check who pays for organization repositories before creating a codespace.
- you code in it all day, every day, on the free quota
- you need more usage than the billable account quota or budget permits
- you leave codespaces running
You start a codespace from a repository page on GitHub and work in the browser version of VS Code. You can also connect from VS Code on your computer or from the GitHub CLI. It suits students, contributors, and anyone who wants a quick ready-made setup.
What the free plan gives you
All personal GitHub accounts include free Codespaces usage each month. On GitHub Free, that is 120 core-hours of compute and 15 GB-month of storage. GitHub Pro raises this to 180 core-hours and 20 GB-month.
The compute hours scale with the machine size. A 2-core machine uses 2 included hours for each hour, so the quota lasts half as many real hours on a 2-core machine. A 4-core machine uses it twice as fast again. Your included compute resets at the start of each billing cycle.
Organization and enterprise plans do not include a free quota. A codespace for an organization repository can instead be billed to your personal account, where your personal allowance applies, unless the organization agrees to pay.
When you hit a limit
If your account has no valid payment method, usage is blocked once you use up the quota. If you cannot resume a codespace, you can export your changes to a branch, add a payment method, or wait for the next billing cycle.
With a payment method on file, usage above the quota is billed to your account. Compute starts at $0.18 per hour for a 2-core machine, and storage costs $0.07 per GB-month. You can set a budget to control spending.
Gotchas
- A codespace that stays running is billed for the time it was active, even if you were not using it. It stops after 30 minutes of inactivity by default, and you can set between 5 and 240 minutes. Terminal output also resets the idle timer, so a running process that keeps logging can prevent the idle stop.
- A codespace has a maximum lifetime of 12 hours, whatever your idle timeout.
- Storage keeps counting while a codespace exists, so delete codespaces you no longer need.
Alternatives in this atlas
- GitHub Actions: when the job is a build or test run and not an interactive session.
- GitLab: when your code is on GitLab, not GitHub.
Questions people ask
Is GitHub Codespaces free?
Yes, for personal accounts, within a monthly quota. GitHub Free includes 120 core-hours of compute and 15 GB-month of storage.
Does GitHub Codespaces need a credit card?
Not for the free quota. Without a payment method, usage is blocked when the quota runs out. With one, extra usage is billed.
What happens when my Codespaces hours run out?
Usage is blocked if you have no payment method. You can export your changes to a branch, add a payment method, or wait for the quota to reset.
How to get started
- Open the github/haikus-for-codespaces template repository on GitHub.
- Click Use this template, then Open in a codespace.
- Wait for the browser version of VS Code to open with the repository cloned.
- Run the project in the terminal, for example `npm run dev` for the template, and open the forwarded port.
- Commit and push your changes, then stop the codespace when you are done.
Other free devops & ci options
Same category, safest first.