Key functionalities
The billing and licensing pages on GitHub contain views and options to help you understand and manage the cost of using paid products, plans, and subscriptions. Key tasks you can perform are:
- Prevent overspending: Use budgets and alerts to track and control your spending.
- Observe and understand spending: Understand how your spending is distributed across products.
- Estimate future spending: View trends in your spending based on the usage across cost centers (enterprise accounts only) and budgets (all accounts).
- Gather insights and data: Generate usage reports to share with your team or stakeholders, and know if you're on track with your budget.
- Allocate costs to centers: Improve accountability by creating and assigning organizations, repositories, and members to cost centers.
Accessing the billing pages
You can only access billing information for an account where you are an owner, a billing manager, or have equivalent permissions. For more information, see 新计费平台的角色.
-
In the upper-right corner of any page on GitHub, click your profile picture.
- For personal accounts, click Settings: https://github.com/settings/billing.
- For organizations, click Your organizations, then next to the organization, click Settings.
- For enterprises, click Your enterprises, then click Settings.
-
Click Billing & Licensing.
- For personal accounts and organizations, the option is displayed under "Access" in the side bar. Then click Overview.
- For enterprises, the Billing & Licensing option is displayed as a separate tab, next to the "Settings" tab.
If you have questions, please contact GitHub 支持.
注意
启用 GitHub Secret Protection, GitHub Code Security, or GitHub Advanced Security 后,在“Billing & Licensing”选项卡的使用情况数据中显示更改之前,最多会有两个小时的延迟。
Accessing billing information programmatically
You can use the REST API to download the usage report for a personal or organization account. First you will need to create a fine-grained access token with the permissions defined by the end point, see:
- Get billing usage report for a user
- Get billing usage report for an organization
- Get billing usage report for an enterprise
For more information, see 使用 REST API 自动报告使用情况.