Skip to Content
GitHub Codespaces

Secure development made simple

GitHub Codespaces gets you up and coding faster with fully configured, secure cloud development environments native to GitHub.

index.html — Codespace
class="hero">
class="o_editable">Hello, World

Built with Codespaces

Secure by design

Created with security in mind, Codespaces provides a secure development environment through its built-in capabilities and native integration with GitHub.

Isolated Environments

Each codespace runs in a dedicated VM with its own resources, keeping your code and data separate from other users.

Access Control

Administrators can manage who can use Codespaces, set spending limits, and control which repositories are accessible.

Cost Control

Set spending limits per user and org. Codespaces auto-stop after periods of inactivity to keep costs in check.

Collaborate where you code

Codespaces provides a shared development environment and removes the need for complex, time consuming setups.

devcontainer.json
{
  "name": "My Project",
  "image": "mcr.microsoft.com/devcontainers/python:3.11",
  "features": {
    "ghcr.io/devcontainers/features/node:1": {}
  },
  "postCreateCommand": "pip install -r requirements.txt"
}

Your space, your way

  • Start coding instantly from anywhere in the world. Open a codespace from any device with a browser — no local setup required.
  • Tabs or spaces? Monokai or Solarized? Bring your dotfiles, themes, and extensions. Codespaces feels just like your usual machine.
styles.css
.hero {
  background: linear-gradient(135deg, #0d1117, #1f6feb);
  color: #e6edf3;
  padding: 80px 0;
}

.btn-primary {
  background: #238636;
  border-radius: 6px;
}
Preview

Browser preview and port forwarding

Preview your changes and get feedback from teammates by sharing ports within the scope allowed by policy.

https://fictional-space-winner-3000.app.github.dev
✓ Server started on http://localhost:3000
Open in Browser 3000
Copy Local Address
Forward a Port
Port Visibility
Onboarding

Onboard faster

Quickly spin up a codespace with only an IDE or browser and a GitHub account. With a few configuration files, you can give your developers an instant, fully configured, and secure development environment so they can start coding immediately.

mn-webgl-sandbox
main · Updated 2h ago
Open in Codespaces
ui-refactoring
feat/redesign · Updated 5h ago
Open in Codespaces
psychic-space-doodle
main · Updated 1d ago
Open in Codespaces

What you can do with Codespaces

01

Code from any device

Access your full development environment from any computer with a browser. No more "works on my machine."

02

Onboard at the speed of thought

New team member? Share a devcontainer.json and they're coding in minutes, not days.

03

Fix bugs right from a pull request

Open a codespace directly from a PR, reproduce the bug, fix it, push — without ever leaving your browser.

"
What used to be a 15-step process is just one step: open Codespaces and you're off and running.
CC
Clint Chester Developer Lead, Synergy
"
Codespaces lets developers skip the tedious, error-prone stuff that normally stands between them and getting started on real work.
KA
Keith Annette Cloud Capability Lead, KPMG UK

Frequently asked questions

Codespaces is a cloud development environment hosted by GitHub. It provides a pre-configured, containerized environment that runs on a virtual machine in the cloud, accessible via your browser or supported IDEs.

Navigate to any repository on GitHub and click the Code button, then select "Open with Codespaces." You can also create a new codespace from github.com/codespaces.

Yes! All GitHub users get 60 hours of Codespaces compute and 15 GB of storage per month for free on GitHub Free and GitHub Pro plans.

Yes. GitHub Team and GitHub Enterprise Cloud plans include Codespaces with organization-level controls, spending limits, and policy management.

Codespaces is billed based on compute hours and storage used beyond the free tier. Pricing starts at $0.18/hour for a 2-core machine.

GitHub Codespaces runs on GitHub's infrastructure and is not available for self-hosting. For on-premises solutions, consider GitHub Enterprise Server with Actions Runner Controller.

Start coding in seconds
with Codespaces

Get started for free