GitHub Codespaces provides fully configured, secure cloud development environments that are native to GitHub. It aims to accelerate the development process by allowing users to start coding instantly from anywhere, on any device, without the need for complex local setups. Developers can quickly spin up a codespace with just an IDE or browser and a GitHub account, and configurations can be defined in dev container files for repeatable environments across a project.
This tool is designed for individual developers, teams, and companies looking to streamline their development workflows, improve onboarding processes, and ensure consistent, secure development environments. It allows for collaboration within a shared environment, easy project switching with preconfigured machines, and personalized settings through dotfiles. Codespaces integrates seamlessly with GitHub, enabling actions like fixing bugs directly from a pull request or exploring work-in-progress.
Codespaces runs on VM-based compute options hosted by GitHub, configurable from 2 to 32 cores, and can be accessed via a browser or locally using IDEs like Visual Studio Code, JetBrains IDEs, or JupyterLab. It eliminates the need for powerful local machines as the environment lives in the cloud, making it accessible from devices like iPads. Organizations can enable Codespaces for their teams, controlling access and managing spending with pay-as-you-go pricing.
What are the available compute options for GitHub Codespaces?
GitHub Codespaces run on various VM-based compute options hosted by GitHub.com. You can configure these machines from 2 core up to 32 core machines, depending on your project's needs.
How can I customize my Codespaces environment for a project?
You can customize your project for GitHub Codespaces by configuring 'dev container files' within your repository. This approach, known as configuration-as-code, ensures a consistent and repeatable codespace setup for all users of your project.
Can I use Codespaces to fix bugs directly from a pull request?
Yes, you can open Codespaces directly from a pull request to investigate and fix bugs or security issues. This allows you to start working on the problem immediately without waiting for a local development environment to load.
What is the free usage quota for individual GitHub.com accounts with Codespaces?
Individual GitHub.com accounts include a monthly quota of free usage, which consists of 120 core hours or 60 hours of run time on a 2-core codespace, plus 15 GB of storage. Organizations can enable this free usage for their private and internal repositories.
Does Codespaces support port forwarding and browser previews?
Yes, Codespaces allows for browser preview and port forwarding. You can preview your changes and share ports with teammates, with the scope of sharing controlled by policy.