Skip to main content

Enabling GitHub Codespaces for your organization

You can control which users in your organization can use GitHub Codespaces at the organization's expense.

Who can use this feature

To alter an organization's billing settings, you must be an organization owner.

About enabling GitHub Codespaces for your organization

Organization owners can control which users in your organization can create and use codespaces at the organization's expense. For information about pricing, see "About billing for GitHub Codespaces."

Only people who can either push changes to a repository, or fork the repository, can create a codespace for that repository. To allow people to create codespaces for repositories owned by your organization, you must:

To allow people to create codespaces for which your organization will be billed, you must:

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 repository access for your organization's codespaces."

Choose who can create codespaces that are billed to your organization

  1. En la esquina superior derecha de GitHub.com, haga clic en la foto de perfil y luego en Your organizations. Opción Your organizations (Sus organizaciones) en el menú del perfil

  2. Junto a la organización, haga clic en Settings. El botón de configuración

  3. En la barra lateral de la izquierda, haga clic en Codespaces.

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

    • Disabled - Your organization will not be charged for codespace usage. Codespaces created for your organization's repositories will be billed to the individual users who create them.
    • Selected members - Codespaces created for your organization's repositories by selected members will be billed to the organization.
    • All members - Codespaces created for your organization's repositories by members of your organization will be billed to the organization.
    • All members and outside collaborators - Codespaces created for your organization's repositories by organization members and outside collaborators will be billed to the organization.

    Radio buttons for "Billing"

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

  5. Click Save.

  6. If you chose Selected members, an input box is displayed for you to enter the names of users you want to select.

    Input box for selecting users

Disabling Codespaces for your organization

You can prevent the creation and use of codespaces billable to your organization.

Note: If you disable billing for GitHub Codespaces for some organization members and collaborators, or for your entire organization, anyone who can either push changes to, or fork, a repository in your organization, will still be able to create a codespace for that repository by using their personal account. However, this will not incur any charge for your organization. For information about restricting access to a repository, see "Managing teams and people with access to your repository."

  1. En la esquina superior derecha de GitHub.com, haga clic en la foto de perfil y luego en Your organizations. Opción Your organizations (Sus organizaciones) en el menú del perfil
  2. Junto a la organización, haga clic en Settings. El botón de configuración
  3. En la barra lateral de la izquierda, haga clic en Codespaces.
  4. Under "Billing," select Disabled.

Setting a spending limit

Nota: Debes establecer un límite de gasto distinto de cero en tu cuenta personal, de organización o de empresa para que se pueda facturar a la cuenta por el uso de GitHub Codespaces.

De forma predeterminada, todas las cuentas tienen un límite de gasto de GitHub Codespaces de 0 USD. Esto impide que se creen codespaces o que se abran codespaces existentes, si esto supone que se incurra en un costo facturable para la cuenta personal, de organización o de empresa. En el caso de las cuentas personales, siempre se pueden crear y usar codespaces si la cuenta no ha alcanzado el límite de uso mensual incluido. En el caso de las organizaciones y las empresas, el límite de gasto predeterminado significa que, para que los usuarios puedan crear codespaces que se facturan a la organización, o a su empresa matriz, el límite debe cambiarse a un valor superior a 0 USD.

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