Skip to main content

监视 GitHub Copilot 使用情况和授权

了解如何监视 Copilot 的每月使用情况,并最大化 Copilot 计划的价值。

谁可以使用此功能?

Individual users on a paid Copilot plan can view their own usage and entitlements. For Copilot Business or Copilot Enterprise plans, organization admins and billing managers can view usage reports for members.

可以跟踪每月的高级请求使用量,以便最大化 Copilot 计划的价值。

注意

高级请求计数器在每个月的第一天 00:00:00 UTC 重置。

查看高级请求使用情况

有多种方法可以查看高级请求使用情况:

  •           [直接在 IDE 中查看当前使用情况](#viewing-usage-in-your-ide)
    
  •         [在计费和许可设置中查看概述](#viewing-an-overview-in-your-billing-and-licensing-settings)
    
  •           [查看使用情况的详细分析](#viewing-detailed-analytics-of-your-usage)
    

当你的高级请求额度达到上限时,Copilot 所有使用界面均会显示通知提示。 若要下载使用情况报告,请参阅 “下载使用情况报告”。

有关查看组织或企业的高级请求使用情况的信息,请参阅“查看按流量计费的产品和许可证的使用情况”。

在 IDE 中查看使用情况

如果要在编辑器中使用 Copilot,你可以直接在编辑器内查看你的使用情况。 例如,在 Visual Studio Code 中,你可以查看关于计划中包含的功能、任何计划限制方面的进度以及限额重置日期的信息。

你可以在以下 IDE 中访问使用情况信息。

  •           **在 Visual Studio Code** 中,单击状态栏中的 Copilot 图标 (<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-label="copilot" role="img"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg>)。
    
  •           **在 Visual Studio 中**,单击右上角的 Copilot 图标 (<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-label="copilot" role="img"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg>),然后单击 **Copilot 消耗**。
    
  •           **在 JetBrains IDE 中**,单击状态栏中的 Copilot 图标 (<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-label="copilot" role="img"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg>),然后选择**查看配额使用情况**。
    
  •           **在 Xcode 内**的菜单栏中,单击 Copilot 图标 (<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-label="copilot" role="img"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg>)。
    
  •           **在 Eclipse** 底部的状态栏中,单击 Copilot 图标 (<svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-copilot" aria-label="copilot" role="img"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg>)。
    

在计费和许可设置中查看概述

你可以随时在 GitHub.com 的“Billing and licensing”设置中查看高级请求使用情况的概述。

  1. 打开计费概述页面:https://github.com/settings/billing。 “Overview”页面会显示你当前 GitHub 使用情况的摘要信息。
  2. 向下滚动到“Metered usage”区域,然后单击 “Copilot”,以仅显示你的 Copilot 使用情况****。

查看使用情况的详细分析

  1. 打开计费概述页面:https://github.com/settings/billing。

  2. 在侧栏中,单击“Premium request analytics”以显示详细分析****。

  3. 使用筛选器、“Group by”和“Timeframe”选项更改图表和表格中显示的数据。

    注意

    高级请求分析数据从 2025 年 8 月 1 日起提供。 **2025 年 11 月 1 日起,**Copilot、Spark和 Copilot 编码智能体 的与高级请求相关的功能使用情况数据将可用。

  4. (可选)若要下载图表中显示的数据,请单击“”按钮,并选择首选格式。

    该屏幕截图显示了“Premium request analytics”页上的使用情况图表,其中“Chart options”已打开并以深橙色轮廓显示。

下载使用情况报告

有关如何请求使用情况报告的详细信息,请参阅 查看按流量计费的产品和许可证的使用情况

优化高级请求的使用情况

你可以使用以下策略最大化高级请求的价值:

  •           **为任务选择适当的模型**。 某些模型更适合其他任务。 如果你正在使用高级请求,则可以策略性地选择要使用的具体模型,以便从 Copilot 中获得最佳结果。 请参阅“[AUTOTITLE](/copilot/reference/ai-models/model-comparison)”。
    
  •           **设置预算**。 设置预算来跟踪超额使用情况,并在达到预算的 75%、90% 或 100% 时收到提醒。 请参阅“[AUTOTITLE](/billing/managing-your-billing/preventing-overspending#managing-budgets-for-your-personal-account)”。
    
  •           **定期监视使用情况**。 在 GitHub 帐户设置中查看使用情况,了解你使用了多少高级请求。 这有助于你规划当月剩余时间内可以使用的额度。
    
  •           **需要时升级**。 如果你发现自己经常达到每月限额,请考虑升级到包含更多高级请求的计划。
    
  •           **避免不必要地重试大型提示**。 提交同一条较长或复杂的提示多次可能会消耗更多高级请求。 必要时尝试重新表述或简化你的请求。
    
  •           **定义用户是否可以超出所含额度使用高级请求**(仅限企业和组织)。 设置策略以控制用户在用尽包含的额度后是否可以产生额外的高级请求费用。 请参阅“[AUTOTITLE](/copilot/how-tos/manage-and-track-spending/manage-request-allowances)”。
    

2025 年 8 月 22 日前创建的帐户对 Copilot 高级请求的默认预算为 0 美元****。 除非编辑或删除此预算,否则超出额度的高级请求将被拒绝。

重要

          **从 2025 年 12 月 2 日开始:**
          **将删除 GitHub Enterprise 和 GitHub Team 的帐户级 0 美元 Copilot 高级请求预算**。 请参阅 GitHub 更改日志中的[即将删除企业和团队帐户的 Copilot 高级请求 0 美元预算](https://github.blog/changelog/2025-09-17-upcoming-removal-of-copilot-premium-request-0-budgets-for-enterprise-and-team-accounts/)。

使用多个 Copilot 许可证管理高级请求计费

如果你有多个独立组织或企业的 Copilot 许可证,则必须确定哪个实体需要为你使用的高级请求付费。 在确定计费实体之前,你发出的所有高级请求都将被拒绝。

在你的个人帐户的 Copilot 功能设置中,如果两个或更多个企业或独立组织为你分配了 Copilot 许可证,则“计费”部分中会显示一个用量费用计入下拉列表。

Copilot 功能设置的屏幕截图。 “用量费用计入”下拉列表处于打开状态。

您可随时更改计费实体选择。 所有后续高级请求的费用都会计入新选择的实体。