Skip to main content

Managing GitHub Codespaces for your organization

You can manage and review how users in your organization can use GitHub Codespaces.

Who can use this feature?

Organizations on GitHub Team and GitHub Enterprise plans can pay for members' and collaborators' use of GitHub Codespaces. These organizations can then access settings and policies to manage codespaces paid for by the organization. For more information, see "Choosing who owns and pays for codespaces in your organization" and "GitHub’s plans."

Enabling or disabling GitHub Codespaces for your organization

You can control which users can use GitHub Codespaces in your organization's private repositories.

Choosing who owns and pays for codespaces in your organization

You can choose whether codespaces are paid for and owned by your organization or by your members.

Listing the codespaces in your organization

You can list all of the currently active or stopped codespaces for your organization.

Managing the cost of GitHub Codespaces in your organization

You can check your GitHub Codespaces usage and set usage limits.

Managing development environment secrets for your repository or organization

Development environment secrets allow you to store sensitive information in your organization or repository for use with GitHub Codespaces.

Reviewing your organization's audit logs for GitHub Codespaces

You can use the audit log to review all actions related to GitHub Codespaces.

Restricting access to machine types

You can set constraints on the types of machines users can choose when they create codespaces in your organization.

Restricting the number of organization-billed codespaces a user can create

You can specify the maximum number of codespaces that any member of your organization, or collaborator, can create for the repositories in your organization.

Restricting the base image for codespaces

You can specify which base images can be used to create the dev container for new codespaces created within your organization.

Restricting the visibility of forwarded ports

You can set constraints on the visibility options users can choose when they forward ports from codespaces in your organization.

Restricting the idle timeout period

You can set a maximum timeout period for any codespaces owned by your organization.

Restricting the retention period for codespaces

You can set a maximum retention period for any codespaces owned by your organization.