Note: You must set a spending limit before you can use Codespaces.
By default, your organization or enterprise will have a 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.
Once you've reached your spending limit, your organization or repository will no longer be able to create new codespaces, and won't be able to start existing codespaces. Any existing codespaces that are still running will not be shutdown; if you don't change the spending limit, you will not be charged for the amount that exceeds the limit.
For more information about pricing for Codespaces usage, see "About billing for Codespaces."
If you purchased GitHub Enterprise through a Microsoft Enterprise Agreement, you can connect your Azure Subscription ID to your enterprise account to enable and pay for Codespaces usage. For more information, see "Connecting an Azure subscription to your enterprise."
Organizations owners and billing managers can manage the spending limit for Codespaces for an organization.
- In the upper-right corner of any page, click your profile photo, then click Settings.
- In the settings sidebar, click Organizations.
- Next to the organization, click Settings.
- If you're an organization owner, in the left sidebar, click Billing & plans.
- At the top of the page, under "Payment information", click Manage spending limit.
- Under "Monthly spending limit", scroll down to "Codespaces" and choose to limit spending or allow unlimited spending.
- If you chose to limit spending, under "Limit spending", type a limit, then click Update limit.
Enterprise owners and billing managers can manage the spending limit for Codespaces for an enterprise account.
In the top-right corner of GitHub.com, click your profile photo, then click Your enterprises.
In the list of enterprises, click the enterprise you want to view.
In the enterprise account sidebar, click Settings.
In the left sidebar, click Billing.
Above "Codespaces monthly usage", click Spending Limit.
Under "Monthly spending limit", choose to limit spending or allow unlimited spending.
If you chose to limit spending, under "Limit spending", type a limit, then click Update limit.
If you hit a spending limit, you will no longer be able to create or resume your codespaces. You can still export any work in progress changes to a new branch.
Email notifications are sent to account owners and billing managers when spending reaches 50%, 75%, and 90% of your account's spending limit.
You can disable these notifications anytime by navigating to the bottom of the Spending Limit page.