Skip to main content

Управление расходами вашей компании на GitHub Copilot

Узнайте, как отслеживать расходы, просматривать использование и оптимизировать распределение лицензий.

Кто может использовать эту функцию?

Enterprise owners and billing managers

Бизнес GitHub Copilot or GitHub Copilot Enterprise

When you're adopting GitHub Copilot in an enterprise, you will want to set budgets and track spending to ensure your rollout is sustainable. GitHub offers billing tools to help you visualize your spending patterns, receive alerts when you reach budget thresholds, and optimize your license usage.

Understanding who can grant licenses

To control spending, it's important to understand who can affect your bill by granting licenses to users. These are people with the organization owner role in organizations where you enable GitHub Copilot. Organization owners can receive requests for access from members through the GitHub UI.

We recommend that you identify the people with this role and communicate with them about your company's strategy for distributing licenses. For example, you may have a budget or limited pilot program, or you may distribute licenses through an internal website.

Managing premium requests

Each Copilot plan includes a per-user allowance for premium requests. To learn more about premium requests, see Understanding and managing requests in Copilot. For allowances per plan, see Plans for GitHub Copilot.

Tracking premium request usage

To track premium request usage, download the premium request usage report for your organization or enterprise. See Monitoring your Copilot usage and entitlements.

This report includes all premium request usage by user, both within and beyond the allowance, so you can use the report to understand general patterns and identify users who would benefit from more premium requests.

By contrast, other metered billing usage reports only reflect costs for premium requests beyond the allowance.

Granting more premium requests to members

By default, enterprises have a $0 budget for the Premium Request SKU. This means that when users exhaust their allowance, they cannot make any more premium requests for the rest of the month. Deleting this budget allows for unlimited spending.

To change the default budget or increase members' base allowance, see Managing the premium request allowance for users in your enterprise.

Mapping spending to groups of users

You can create cost centers to map spending to individual business units or groups of users. Cost centers allow you to track costs tied to different initiatives and charge the costs to specific areas of your business.

For example, if you were running a pilot program for GitHub Copilot Enterprise for a group of employees, you might want to create a cost center to track their spending and set a budget independently of the rest of the company.

Create a cost center

  1. Go to your enterprise or organization account settings and click Billing & Licensing.

  2. In the left sidebar, click Cost centers, then click New cost center.

  3. Create the cost center. You don't need to add any repositories or organizations, because you will add users to the cost center directly in the next step.

    Примечание.

    As a priority, a cost center is charged for a Copilot license if the assigned user has been added to the cost center directly. As a fallback, a cost center is charged for the license if the organization where the user receives access has been added to the cost center.

  4. After creating the cost center, use the REST API to add the users whose usage you want to track. See REST API endpoints for enterprise billing.

Preventing overspending

You can set a monthly budget on GitHub Copilot spending.

  • For Copilot licenses, a budget is for monitoring purposes only and will not prevent usage beyond the budgeted amount. However, you will receive notifications by email when spending exceeds certain percentages of the budget you've set.
  • For Copilot premium requests, you can choose to stop usage once the budget amount is reached. The default $0 budget for enterprises already does this.

To create a budget, see Using budgets to control spending on metered products.

You can understand your spending trends by viewing a graph for Copilot usage over a certain timeframe. Usage includes costs for Copilot licenses and additional premium requests beyond the allowance.

For more detailed insights, you can filter the results by cost center and group usage by the type of Copilot plan.

  1. Go to your enterprise or organization account settings and click Billing & Licensing.
  2. In the left sidebar, click Usage.
  3. In the "Metered usage" section, in the search field, enter product:copilot. To filter by cost center, add a query like cost_center:ce-pilot-group.
  4. To understand spending differences between Copilot Business and Copilot Enterprise plans, select the Group: None dropdown menu and click Group: SKU.

Screenshot of the "Usage" page. A line chart tracks Copilot spending over the current month, grouped by SKU.

Optimize license usage

When you begin rolling out Copilot in a company, you may see low rates of adoption at first. An effective enablement process is essential to drive adoption of Copilot in your company. Tailor this process to your company's needs and goals, and design it to help your teams understand how to use Copilot effectively.

To ensure your licenses are being used effectively, you can use the API to identify inactive users. We recommend sending these users a message with advice and resources for getting started. If a user remains inactive, you can revoke their license and assign it to another user.

If you're not sure how best to distribute licenses, GitHub has found that many successful rollouts offer a fully self-service model where developers can claim a license without approval. This allows people to get started quickly and ensures you're giving licenses to people who plan to use them.

For detailed guidance, see: