1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Files
docs/content/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces.md
hubwriter 238d02f82c Codespace prebuild support for monorepos and external repo access (#29232)
* Make changes for multiple config files

* Clarify deprecated procedure

* Optimize images

* More WiP changes

* More WiP changes

* Update s/shots - no longer beta

* Optimize images

* More WiP changes

* Fix broken links

* WiP

* Add authorizations screenshots

* Optimize images

* Reorg requested by reviewer

* Update content/codespaces/prebuilding-your-codespaces/configuring-prebuilds.md

* Update content/codespaces/prebuilding-your-codespaces/configuring-prebuilds.md

* Update content/codespaces/prebuilding-your-codespaces/configuring-prebuilds.md

* Update content/codespaces/prebuilding-your-codespaces/configuring-prebuilds.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update content/codespaces/prebuilding-your-codespaces/configuring-prebuilds.md

* Update content/codespaces/troubleshooting/troubleshooting-prebuilds.md

Co-authored-by: Felicity Chapman <felicitymay@github.com>

* Update data/reusables/codespaces/billing-for-prebuilds.md

* Tiny tweak to creation article

* Another tiny tweak to creation article

* Fix self-referential link

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Felicity Chapman <felicitymay@github.com>
2022-07-28 17:16:42 +01:00

5.1 KiB

title, shortTitle, intro, permissions, versions, type, product, topics, redirect_from
title shortTitle intro permissions versions type product topics redirect_from
About billing for GitHub Codespaces About billing View pricing and see how to manage {% data variables.product.prodname_github_codespaces %} billing for your organization. To manage billing for {% data variables.product.prodname_github_codespaces %} for an organization, you must be an organization owner or a billing manager.
fpt ghec
* *
overview {% data reusables.gated-features.codespaces %}
Codespaces
Billing
/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces

{% data variables.product.prodname_github_codespaces %} pricing

{% data variables.product.prodname_github_codespaces %} usage is billed for all organization and enterprise accounts on {% data variables.product.prodname_team %} and {% data variables.product.prodname_enterprise %}, which do not include any free minutes or storage. Personal accounts are not currently billed for {% data variables.product.prodname_codespaces %} usage.

{% data variables.product.prodname_codespaces %} usage is billed according to the units of measure in the following table:

Product SKU Unit of measure Price
Codespaces Compute 2 core 1 hour $0.18
4 core 1 hour $0.36
8 core 1 hour $0.72
16 core 1 hour $1.44
32 core 1 hour $2.88
Codespaces Storage Storage 1 GB-month $0.07

About billing for {% data variables.product.prodname_codespaces %}

{% data reusables.codespaces.codespaces-billing %}

Your {% data variables.product.prodname_github_codespaces %} usage shares your account's existing billing date, payment method, and receipt. {% data reusables.dotcom_billing.view-all-subscriptions %}

{% ifversion ghec %} If you purchased {% data variables.product.prodname_enterprise %} through a Microsoft Enterprise Agreement, you can connect your Azure Subscription ID to your enterprise account to enable and pay for {% data variables.product.prodname_codespaces %} usage. For more information, see "Connecting an Azure subscription to your enterprise." {% endif %}

{% data reusables.dotcom_billing.pricing_calculator.pricing_cal_codespaces %}

Billing for {% data variables.product.prodname_codespaces %} prebuilds

{% data reusables.codespaces.billing-for-prebuilds-default %}

{% data reusables.codespaces.billing-for-prebuilds-reducing %}

Setting a spending limit

{% data reusables.codespaces.codespaces-spending-limit-requirement %}

For information on managing and changing your account's spending limit, see "Managing your spending limit for {% data variables.product.prodname_codespaces %}."

{% data reusables.codespaces.exporting-changes %}

Limiting the choice of machine types

By default the machine type with the lowest valid resources is used when a codespace is created. However, users may be able to choose a machine type with more resources. They can do this either when they create a codespace, or they can change the machine type of an existing codespace. For more information, see "Creating a codespace"" and "Changing the machine type for your codespace."

If a machine type that has more resources is chosen, this will affect the per-minute charge for that codespace, as shown above.

Organization owners can create a policy to restrict the machine types that are available to users. For more information, see "Restricting access to machine types."

How billing is handled for forked repositories

{% data variables.product.prodname_codespaces %} can only be used in organizations where a billable owner has been defined. To incur charges to the organization, the user must be a member or collaborator, otherwise they cannot create a codespace.

For example, a user in a private organization can fork a repository within that organization, and can subsequently use a codespace billed to the organization; this is because the organization is the owner of the parent repository, which can remove the user's access, the forked repository, and the codespace.

How billing is handled when a repository is transferred

Usage is billed and reported on every hour. As such, you pay for any usage when a repository is within your organization. When a repository is transferred out of your organization, any codespaces in that repository are removed as part of the transfer process.

What happens when users are removed

If a user is removed from an organization or repository, their codespaces are automatically deleted.