Skip to content
freetier.wiki

Type at least 2 letters.

Enter to open · Esc to close

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

  1. Open the github/haikus-for-codespaces template repository on GitHub.
  2. Click Use this template, then Open in a codespace.
  3. Wait for the browser version of VS Code to open with the repository cloned.
  4. Run the project in the terminal, for example `npm run dev` for the template, and open the forwarded port.
  5. Commit and push your changes, then stop the codespace when you are done.

Other free devops & ci options

Same category, safest first.

CircleCI · DevOps & CI
30,000 credits per month (about 3,000 minutes on Linux Medium at 10 credits per minute) · Up to 5 active users · 30 concurrent job runs on Docker, Linux VM, Arm, and Windows; 1 on macOS
Billing risk: None
No card
Ethereal Email · DevOps & CI
Nothing is delivered to real inboxes; every message is caught · Public accounts can send up to 200 messages per hour · 100 MB of message storage per address
Billing risk: None
No card
Mailinator · DevOps & CI
Public inboxes, no signup required, temporary storage; inbox names up to 50 characters · Verified Pro ($0, with verification): 1 private domain, unlimited private inboxes, API access · Verified Pro: 10MB permanent storage; monthly email limit is 2K on the pricing page and 1K on the Verified Pro page; plan cards say 60 emails/day, detailed limits say 120 received messages/day
Billing risk: None
No card
StackBlitz · DevOps & CI
Unlimited public projects · Public GitHub repositories only · Up to 1MB of file uploads per project
Billing risk: None
No card