SaaSActive

GitHub Codespaces

Cloud-hosted development environments for GitHub repositories.

Open source page

Field note

What it does

GitHub Codespaces provides pre-configured cloud development environments defined by devcontainer.json.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

sdk

Not filed / https://code.visualstudio.com/docs/devcontainers/containers

docker

Not filed / Not filed

other

Not filed / https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

other

JavaScript / Not filed

other

Not filed / Not filed

sdk

json / https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-features-to-a-devcontainer-file

sdk

Not filed / Not filed

sdk

Not filed / Not filed

webhook

Not filed / https://docs.github.com/en/codespaces/developing-in-a-codespace/forwarding-ports-in-your-codespace

sdk

Not filed / https://docs.github.com/en/codespaces/reference/using-the-visual-studio-code-command-palette-in-github-codespaces

other

Not filed / https://docs.github.com/en/codespaces/reference/using-github-copilot-in-github-codespaces

cli

Not filed / https://docs.github.com/en/codespaces/developing-in-codespaces/using-github-codespaces-with-github-cli

sdk

Not filed / https://docs.github.com/en/codespaces/developing-in-codespaces/using-github-codespaces-in-visual-studio-code

other

Not filed / https://docs.github.com/en/copilot

sdk

Not filed / Not filed

other

Not filed / Not filed

sdk

Not filed / https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette

cli

Not filed / https://docs.github.com/en/codespaces/developing-in-a-codespace/using-github-codespaces-with-github-cli

other

Not filed / Not filed

other

Not filed / Not filed

other

Not filed / Not filed

Product features

Product features

Adding an item to a project

Authentication

Automatically opening files

Set files to open automatically when a codespace opens in the VS Code web client.

Codespace lifecycle

Develop and maintain your data throughout the entire codespace lifecycle.

Default region setting

Manually set the default region for your codespaces.

devcontainer.json configuration

Define tools, runtimes, frameworks, editor settings, and extensions to restore the environment automatically.

Dev container features

Quickly add tools, runtimes, or libraries to your dev container configuration.

devcontainer.json extensions

Specify GitHub.copilot as an extension in devcontainer.json to include it for all users of a project.

devcontainer.json features

Add tools, runtimes, or libraries to your dev container configuration.

Development environment secrets

Use secrets to access sensitive information within your codespaces.

Disaster recovery

Disaster recovery reference for GitHub Codespaces.

Finding information about items in a project

Finding information about projects

Finding the node ID of a field

Finding the node ID of a user project

Finding the node ID of an organization project

Create a codespace

gh codespace create -r OWNER/REPO_NAME [-b BRANCH] creates a new codespace.

List codespaces

gh codespace list shows your codespaces, including unique names and branch status.

Rebuild a codespace

gh codespace rebuild rebuilds using the saved devcontainer.json; --full performs a full rebuild.

SSH into a codespace

gh codespace ssh -c CODESPACE-NAME runs commands on the remote codespace machine.

GitHub Copilot in Codespaces

Use GitHub Copilot within GitHub Codespaces.

Stable or beta host image

Build codespaces using either the stable or beta host image.

In this article

Isolated networking

Each codespace has its own isolated virtual network with firewalls blocking inbound and inter-codespace traffic.

Isolated virtual machines

Each codespace runs on its own newly-built VM; no two codespaces share a VM.

Machine type selection

Change the type of machine running your codespace to match your work.

Private registry access

Allow your codespace to access a private registry.

Registry secrets

Use <*>_CONTAINER_REGISTRY_SERVER, USER, and PASSWORD secrets to access other container registries.

Scoped tokens

Codespaces receive a new GitHub token with automatic expiry and scope based on repository access.

Seamless GitHub Packages pull

Pull packages from GitHub Packages registries with granular permissions without providing credentials.

Security in Codespaces

Reference documentation on security in GitHub Codespaces.

Settings Sync

Enable Settings Sync to include GitHub Copilot or other extensions in all of your codespaces.

Shell selection

Change your shell in a codespace to keep the setup you are used to.

TLS encrypted tunnel

Connections to codespaces use a TLS encrypted tunnel provided by the Codespaces service.

Tool navigation

Updating projects

Using the API to manage Projects

Using variables

View creation logs

View logs related to codespace setup via the Command Palette.

VS Code Command Palette

Use the Visual Studio Code Command Palette in GitHub Codespaces.