Skip to content

Research-Based Review

GitHub Codespaces

A hosted Linux development workspace for GitHub repositories, with a browser editor, desktop connections and versioned project setup.

Vendor
GitHub
Category
Hosting & DevOps
Platforms
Web Browser
Pricing model
Freemium
Paid plans from
USD 0 · monthly personal allowance with metered overage
Last updated
December 1, 2026

This article is based on publicly available product documentation, official pricing information, and feature analysis. It does not represent a hands-on product test.

Overview

GitHub Codespaces starts a hosted Linux workspace from a repository, branch or template. You can open it in Visual Studio Code for the web, connect from desktop VS Code or use GitHub CLI. The editor and terminal connect to the same remote container. This helps when a contributor wants to inspect a change and run the project without preparing their local machine. In the 2026 Stack Overflow Developer Survey, 876 of 13,193 respondents to the development environments question (6.6%) reported using GitHub Codespaces regularly over the previous year.

Key Features

Keep project setup under version control

Store a dev container configuration with the source to select a Linux base image, installed tools, editor settings and forwarded ports. Changes to setup can be reviewed alongside code. Test the configuration on a fresh workspace to catch anything your usual environment already has installed.

Choose how to connect to the workspace

Open a codespace in the browser for a quick review. Connect the same workspace to desktop VS Code when local editor preferences matter, or use GitHub CLI for terminal work. GitHub runs the development container on a virtual machine. You can choose eligible machine sizes from 2 to 32 cores.

Open a preview of an app running in the workspace

Use forwarded ports to open a web app or API running inside the container. Set a label and expected port in the project configuration when everyone uses the same service. Check port visibility before sharing a preview, especially when it displays test accounts or internal data.

Reduce setup time for regularly used branches

Repository administrators can enable prebuilds for selected branches and regions. A prebuild stores work such as environment setup so a new codespace can start with more of it ready. Choose the branches contributors actually open, since prebuilds also use GitHub Actions and Codespaces storage.

User Interface & Workflow

Pilot Codespaces on one repository with a documented setup. Start a fresh two-core workspace from a feature branch, run the standard test command and open the app preview. Have a second developer repeat the process in the browser. Save and push the work you want to keep before deleting a workspace. Stop the workspace after the session and compare its setup time, compute usage and stored data with your usual workflow. Consider prebuilds once you know which part of setup takes the most time.

Pros & Cons

Pros

  • Contributors can open a working Linux environment from a repository without setting up a new local toolchain.
  • A shared container configuration makes changes to development setup easier to review.
  • Browser, desktop VS Code and CLI connections support different ways of working with the same workspace.

Cons

  • The hosted container runs Linux. Projects that depend on a native Windows or macOS development toolchain need another environment for that part of the work.
  • Compute depends on machine size and active time. Storage can continue to accrue for a stopped codespace or a prebuild.
  • Remote editing, terminals and previews depend on a usable connection to the hosted workspace.

Pricing & Licensing

USD rates checked December 2, 2026. Every hour a two-core codespace is active consumes two core-hours, so the 120 core-hours on GitHub Free correspond to 60 active machine hours on that size. GitHub handles storage separately in GB-months based on hourly measurements. A stopped codespace stops using compute and keeps accruing storage while retained. Personal usage can be blocked when the allowance is exhausted without a valid payment method. Check the configured owner and budget before an organization pilot.

PlanPriceWhat it includes
GitHub Free personal accountIncluded each month120 core-hours and 15 GB-month of storage.
GitHub Pro personal accountIncluded with GitHub Pro180 core-hours and 20 GB-month of storage per month.
Metered computeUS$0.18 to US$2.88 per active machine hourUS$0.18 on two cores, US$0.36 on four, US$0.72 on eight, US$1.44 on sixteen and US$2.88 on thirty-two.
Metered storageUS$0.07 per GB-monthStorage is accrued hourly. Retained workspaces and prebuilds can contribute.
Organization-owned useMeteredOrganization and enterprise plans have no included Codespaces quota. Confirm the billing owner before enabling access.

Free Plan

GitHub Free personal accounts include 120 core-hours and 15 GB-month of storage per month. Organization and enterprise plans have no included Codespaces quota.

Trial Availability

An eligible personal GitHub account can use its monthly allowance without adding payment details.

Who Should Use This Software?

Codespaces suits GitHub projects with a container-ready Linux setup and contributors who benefit from a consistent starting point. It is especially useful for onboarding, occasional contributions and temporary feature work. A team that develops offline or relies on a native Apple or Windows toolchain should keep an environment that meets those needs.

Free Alternatives

  • VS Code Dev Containers Use a development container on a machine you already manage when you want a versioned setup with local control over compute and storage.
  • Windows Subsystem for Linux Use a local Linux environment on Windows when you need direct access to a Linux toolchain from your own computer.

Software Alternatives

  • Coder Compare a workspace platform you can run on your own infrastructure when networking and deployment control matter.

Final Verdict

Use Codespaces when the time saved on environment setup outweighs the cost of remote compute and storage. Prove that with one representative repository and a fresh workspace. If regular sessions and prebuilds become part of daily work, measure their billing separately before scaling to the full team.

Official Purchase Links

Frequently Asked Questions

Is GitHub Codespaces free to use?

A GitHub Free personal account includes 120 core-hours and 15 GB-month of storage per month. Organization and enterprise accounts have no included quota for usage they pay for.

Does a stopped codespace cost anything?

Stopping it ends compute usage. Its stored files and any applicable container data can still accrue storage usage until the workspace is deleted.

Can a codespace run Windows or macOS?

GitHub hosts the workspace in a Linux container. You can connect to it from a browser, desktop VS Code or GitHub CLI on a compatible local system.

When are prebuilds worth enabling?

They are useful when new workspaces regularly repeat a slow setup. Start with a frequently used branch and check the setup time saved against GitHub Actions and Codespaces storage usage.

Sources & Verification

Official product documentation, plan details, and applicable licensing information were reviewed on December 2, 2026.

Web Code Stack is an independent developer resource website. Product names, trademarks, and logos belong to their respective owners. Pricing and features may change over time. Please refer to the official vendor website for the latest information.