Skip to main content

About billing for GitHub Packages

If you want to use GitHub Packages beyond the storage or data transfer included in your account, you will be billed for additional usage.

GitHub Packages is available with GitHub Free, GitHub Pro, GitHub Free for organizations, GitHub Team, GitHub Enterprise Cloud, GitHub Enterprise Server 3.0 or higher, and GitHub AE.

GitHub Packages is not available for private repositories owned by accounts using legacy per-repository plans. Also, accounts using legacy per-repository plans cannot access the Container registry since these accounts are billed by repository. 更多信息请参阅“GitHub 的产品”。

About billing for GitHub Packages

公共包免费使用 GitHub Packages。 对于私有包, 上的每个帐户可获得一定数量的免费存储和数据传输,具体取决于帐户所使用的产品。 超出包含金额的任何使用量都由支出限制控制。

如果您是每月付费的用户,您的帐户默认支出限额为 0 美元,这将防止您在达到包含的限额后额外使用存储或数据传输。 如果您通过发票支付您的帐户,您的帐户将有无限的默认支出限额。 For more information, see "About spending limits."

Billing update for container image storage: The period of free use for container image storage and bandwidth for the Container registry has been extended. If you are using Container registry you'll be informed at least one month in advance of billing commencing and you'll be given an estimate of how much you should expect to pay. For more information about the Container registry, see "Working with the Container registry."

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 GitHub Packages usage beyond the amounts including with your account. For more information, see "Connecting an Azure subscription to your enterprise."

Data transfer resets every month, while storage usage does not.

ProductStorageData transfer (per month)
GitHub Free500MB1GB
GitHub Pro2GB10GB
GitHub Free for organizations500MB1GB
GitHub Team2GB10GB
GitHub Enterprise Cloud50GB100GB

All data transferred out, when triggered by GitHub Actions, and data transferred in from any source is free. We determine you are downloading packages using GitHub Actions when you log in to GitHub Packages using a GITHUB_TOKEN.

Access using a GITHUB_TOKENFreeFree
Access using a personal access tokenFree$

Storage usage is shared with build artifacts produced by GitHub Actions for repositories owned by your account. For more information, see "About billing for GitHub Actions."

GitHub charges usage to the account that owns the repository where the package is published. If your account's usage surpasses these limits and you have set a spending limit above $0 USD, you will pay $0.008 USD per GB of storage per day and $0.50 USD per GB of data transfer.

For example, if your organization uses GitHub Team, allows unlimited spending, uses 150GB of storage, and has 50GB of data transfer out during a month, the organization would have overages of 148GB for storage and 40GB for data transfer for that month. The storage overage would cost $0.008 USD per GB per day or $37 USD. The overage for data transfer would cost $0.50 USD per GB or $20 USD.

To estimate the costs for consumptive services, you can use the GitHub pricing calculator.

At the end of the month, GitHub rounds your data transfer to the nearest GB.

GitHub calculates your storage usage for each month based on hourly usage during that month. For example, if you use 3 GB of storage for 10 days of March and 12 GB for 21 days of March, your storage usage would be:

  • 3 GB x 10 days x (24 hours per day) = 720 GB-Hours
  • 12 GB x 21 days x (24 hours per day) = 6,048 GB-Hours
  • 720 GB-Hours + 6,048 GB-Hours = 6,768 GB-Hours
  • 6,768 GB-Hours / (744 hours per month) = 9.0967 GB-Months

At the end of the month, GitHub rounds your storage to the nearest MB. Therefore, your storage usage for March would be 9.097 GB.

Your GitHub Packages usage shares your account's existing billing date, payment method, and receipt. 要查看您在 上的帐户的所有订阅,请参阅“查看订阅和计费日期”。

您必须单独管理每个帐户的计费设置和付款功能。 您可以使用每个设置页面上的上下文切换器在个人帐户、组织帐户和企业帐户的设置之间切换。 更多信息请参阅“在不同帐户的设置之间切换”。

About spending limits

如果您是每月付费的用户,您的帐户默认支出限额为 0 美元,这将防止您在达到包含的限额后额外使用存储或数据传输。 如果您通过发票支付您的帐户,您的帐户将有无限的默认支出限额。

如果您的支出限额无限或高于 0 美元,您将会收到额外存储或数据传输的帐单,也称为超限费用,最高可达到您的支出限额。 您帐户中的任何优惠券都不适用于 GitHub Packages 超额费用。

Overages are always billed monthly regardless of your billing term (even if your account is otherwise billed annually).

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


  • 您的帐户中包含的 GitHub Actions 和 GitHub Packages 存储空间或分钟数将不会重置,直到付款处理成功。
  • 如果在当前计费周期内,帐户中有剩余的存储空间或分钟数,则 GitHub Actions 和 GitHub Packages 将继续可用,直到所含用量全部用完。
  • 如果在当前计费周期内,帐户中所含的 GitHub Actions 和 GitHub Packages 用量已用完,则 GitHub Actions 和 GitHub Packages 都将被禁用,以防进一步超限。