Skip to main content

Enabling GitHub Codespaces for your organization

You can control which users in your organization can use GitHub Codespaces.

To manage user permissions for GitHub Codespaces for an organization, you must be an organization owner.

GitHub Codespaces is available for organizations using GitHub Team or GitHub Enterprise Cloud. GitHub Codespaces is also available as a limited beta release for individual users on GitHub Free and GitHub Pro plans. For more information, see "GitHub's products."

About enabling GitHub Codespaces for your organization

Organization owners can control which users in your organization can create and use codespaces.

To use codespaces in your organization, you must do the following:

By default, a codespace can only access the repository from which it was created. If you want codespaces in your organization to be able to access other organization repositories that the codespace creator can access, see "Managing access and security for Codespaces."

Enable Codespaces for users in your organization

  1. In the top right corner of GitHub.com, click your profile photo, then click Your organizations. Your organizations in the profile menu

  2. Next to the organization, click Settings. The settings button

  3. In the left sidebar, click Codespaces.

  4. Under "User permissions", select one of the following options:

    • Selected users to select specific organization members to use Codespaces.
    • Allow for all members to allow all your organization members to use Codespaces.
    • Allow for all members and outside collaborators to allow all your organization members as well as outside collaborators to use Codespaces.

    Radio buttons for "User permissions"

    Note: When you select Allow for all members and outside collaborators, all outside collaborators who have been added to specific repositories can create and use Codespaces. Your organization will be billed for all usage incurred by outside collaborators. For more information on managing outside collaborators, see "About outside collaborators."

  5. Click Save.

Disabling Codespaces for your organization

  1. In the top right corner of GitHub.com, click your profile photo, then click Your organizations. Your organizations in the profile menu
  2. Next to the organization, click Settings. The settings button
  3. In the left sidebar, click Codespaces.
  4. Under "User permissions", select Disabled.

Setting a spending limit

Note: You must set a spending limit before you can use Codespaces.

By default, your organization or enterprise will have a GitHub Codespaces spending limit of $0, which prevents new codespaces from being created or existing codespaces from being opened. To allow your users to create codespaces in your organization, set the limit to a value higher than $0.

Overages are always billed monthly regardless of your billing term (even if your account is otherwise billed annually).

For information on managing and changing your account's spending limit, see "Managing your spending limit for Codespaces."