Skip to main content

Managing billing for GitHub Codespaces in your organization

You can check your GitHub Codespaces usage and set usage limits.

Who can use this feature

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

GitHub Codespaces は、GitHub Team または GitHub Enterprise Cloud を使用する Organization で利用できます。 GitHub Free および GitHub Pro プランの個人ユーザーも、GitHub Codespaces を制限付きのベータ リリースとして利用できます。 詳細については、「GitHub's products」を参照してください。


To learn about pricing for GitHub Codespaces, see "About billing for GitHub Codespaces."

Codespaces は、コンピューティングとストレージの使用量に応じて米ドル (USD) で課金されます。


コンピューティング使用量は、GitHub Codespaces インスタンスがアクティブであるアップタイム時間 (分) の合計として定義されます。 コンピューティング使用量は、すべての codespace で実際に使われた分数を合計することで計算されます。 これらの合計は、毎日課金サービスに報告され、毎月請求されます。

アップタイムを制御するには、codespace を停止します。これは、手動で行うか、開発者が指定した非アクティブ期間の後に自動的に行うことができます。 詳細については、「codespace の終了または停止」を参照してください。


GitHub Codespaces の課金目的の場合、アカウント内のすべての codespace で使用されるすべてのストレージが含まれます。 これには、codespace に使われるすべてのファイル (クローンされたリポジトリ、構成ファイル、拡張機能など) が含まれます。 これらの合計は、毎日課金サービスに報告され、毎月請求されます。 月末に、GitHubはストレージ使用量を最も近いGBに丸めます。

  • As an organization owner or a billing manager, you can manage GitHub Codespaces billing for your organization: "About billing for Codespaces"
  • As an organization owner, you can list the currently active and stopped codespaces for your organization. In addition to these codespaces, costs for the current month may include costs for codespaces that existed earlier in the current month but have since been deleted.
  • For users, there is a guide that explains how billing works: "Understanding billing for GitHub Codespaces"

Usage limits

You can set a usage limit for the codespaces in your organization or repository. This limit is applied to the compute and storage usage for GitHub Codespaces:

  • Compute minutes: Compute usage is calculated by the actual number of minutes used by all GitHub Codespaces instances while they are active. These totals are reported to the billing service daily, and is billed monthly. You can set a spending limit for GitHub Codespaces usage in your organization. For more information, see "Managing spending limits for GitHub Codespaces."

  • Storage usage: For GitHub Codespaces billing purposes, this includes all storage used by all codespaces in your account. This includes resources such as cloned repositories, configuration files, and extensions, among others. These totals are reported to the billing service daily, and is billed monthly. At the end of the month, GitHub rounds your storage to the nearest MB. To check how many compute minutes and storage GB have been used by GitHub Codespaces, see "Viewing your GitHub Codespaces usage"."

Disabling or limiting Codespaces

You can disable all use of GitHub Codespaces that would be billed to your organization. Alternatively, you can specify which organization members or collaborators can use Codespaces at your organization's expense. For more information, see "Enabling GitHub Codespaces for your organization."

メモ: 請求対象となる codespace を Organization で使用することを無効にする場合、個々のユーザーとして codespace を作成することができ、Organization 内でリポジトリを複製することができるすべてのユーザーは、そのリポジトリの codespace を引き続き作成できます。 ただし、Organization に対しては料金は発生しません。 リポジトリへのアクセスを制限する方法については、「リポジトリへのアクセス権を持つ Team と人を管理する」を参照してください。

You can configure which repositories can be accessed from codespaces created for a particular repository. For more information, see "Managing access to other repositories within your codespace."

You can limit the choice of types of machine that are available for codespaces created from repositories owned by your organization. This allows you to prevent people using overly resourced machines for their codespaces, and incurring unnecessary charges. For more information, see "Restricting access to machine types."

You can also restrict how long a codespace can remain unused before it is automatically deleted. This can help to reduce storage costs for Codespaces. For more information, see "Restricting the retention period for codespaces."

Deleting unused codespaces

Your users can delete their own codespaces in and from within Visual Studio Code. To reduce the size of a codespace, users can manually delete files using the terminal or from within VS Code.

As an organization owner, you can delete any codespace in your organization. For more information, see "Deleting a codespace."

Note: Codespaces are automatically deleted after they have been stopped and have remained inactive for a defined number of days. For more information, see "Restricting the retention period for codespaces." A codespace can only be manually deleted by the person who created the codespace.

Further reading