Codespaces の支払いについて

View pricing and see how to manage Codespaces billing for your organization.

To manage billing for Codespaces for an organization, you must be an organization owner or a billing manager.

Codespaces is available for organizations using GitHub Team or GitHub Enterprise Cloud. 詳しい情報については「GitHubの製品」を参照してください。

Codespaces pricing

Codespaces usage is billed for all accounts on the Team and Enterprise plans, and does not include any entitlements. Individual accounts are not currently billed for Codespaces usage.

Codespaces usage is billed according to the units of measure in the following table:

製品SKUUnit of measurePrice
Codespaces Compute2コア1 hour$0.18
4コア1 hour$0.36
8コア1 hour$0.72
16コア1 hour$1.44
32コア1 hour$2.88
Codespaces Storageストレージ1 GB-month$0.07


Codespaces are billed in US dollars (USD) according to their compute and storage usage.

Calculating compute usage

The total number of uptime minutes for which the Codespaces instances are active. Compute usage is calculated by the actual number of minutes used by all codespaces. These totals are reported to the billing service daily, and are billed monthly.

Uptime is controlled by stopping your codespace which can be done manually or based on period of inactivity. For more information, see "Closing or stopping your codespace".

Calculating storage usage

For Codespaces billing purposes, this includes all storage used by all codespaces in your account. This includes any files used by the codespaces, such as cloned repositories, configuration files, and extensions, among others. These totals are reported to the billing service daily, and are billed monthly. 月末に、GitHubはストレージ使用量を最も近いGBに丸めます。

Codespaces の利用については、アカウントの既存の請求日、支払い方法、領収書が共有されます。 To view all the subscriptions for your account on, see "Viewing your subscriptions and billing date."

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. 詳しい情報については、「Azure サブスクリプションを Enterprise に接続する」を参照してください。

To estimate the costs for consumptive services, you can use the GitHub pricing calculator. For more information, go to

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 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.

アカウントの利用上限の管理と変更については、「Codespaces の利用上限の管理」を参照してください。

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.

Limiting the choice of machine types

The type of machine a user chooses when they create a codespace affects 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

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.




GitHubのすべてのドキュメントはオープンソースです。間違っていたり、はっきりしないところがありましたか?Pull Requestをお送りください。


OR, コントリビューションの方法を学んでください。