# 监控 GitHub Copilot 的使用情况和权限

了解如何监控您每月的Copilot使用情况，并充分利用您的Copilot计划。

<!-- expires 2026-06-01 -->

> \[!IMPORTANT] 从 2026 年 6 月 1 日起， GitHub 从 Copilot 基于请求的计费转移到基于使用情况的计费。 请参阅“[组织和企业的基于使用情况的计费](/zh/copilot/concepts/billing/usage-based-billing-for-organizations-and-enterprises)”。

<!-- end expires 2026-06-01 -->

可以跟踪高级请求的每月使用情况，以帮助你从 Copilot 计划中获得最大价值。

> \[!NOTE]
> 高级请求计数器在每个月的第一天 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 接口中收到通知消息。 若要下载使用情况报告，请参阅 [“下载使用情况报告](/zh/billing/how-tos/products/view-productlicense-use#downloading-usage-reports)”。

有关查看组织或企业的高级请求使用情况的信息，请参阅“[查看按流量计费的产品和许可证的使用情况](/zh/billing/how-tos/products/view-productlicense-use)”。

### 在 IDE 中查看使用情况

> \[!IMPORTANT]

```
          **从 2026 年 4 月 20 日开始**，Copilot ProCopilot Pro+学生计划的使用限制更严格：会话限制和每周（7 天）限制。 
```

```
          VS Code 和 GitHub Copilot 命令行界面 (CLI) 都会在您接近限制时显示可用使用量。 请参阅“[AUTOTITLE](/copilot/concepts/usage-limits)”。
```

如果在 Copilot 编辑器中使用，可以直接在编辑器中查看使用情况。 例如，可以在其中 Visual Studio Code查看有关计划中包含的功能、计划限制的进度以及津贴重置日期的信息。

可以在以下 IDE 中access使用情况信息。

* **在 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 Eclipse 底部状态栏中的图标（<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中查看高级请求使用情况的概述。

```
          1. 打开计费概述页： [https://github.com/settings/billing](https://github.com/settings/billing?ref_product=github&ref_type=engagement&ref_style=text)。 “概述”页显示当前 GitHub 使用情况的摘要。
```

1. 向下滚动到“按流量计费的使用情况”区域，然后单击 <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** 以仅显示 Copilot 的使用情况。

### 查看使用情况的详细分析

> \[!NOTE]
> 高级请求分析数据从 **2025 年 8 月 1** 日起提供。 使用高级请求的功能的单独使用情况数据自**2025 年 11 月 1**日起，针对Copilot、Spark以及Copilot云代理提供。

用户级分析具有不同的访问权限，具体取决于你的角色。

* 企业所有者和计费经理可以查看用户的高级请求分析。
* 组织所有者无法查看用户的高级请求分析，也不能在 API 中使用 `user` 参数。 若要查看用户级使用情况，这些用户可以下载高级请求使用情况报告。 请参阅“[查看按流量计费的产品和许可证的使用情况](/zh/billing/how-tos/products/view-productlicense-use#downloading-usage-reports)”。

1. 打开计费概述页： [https://github.com/settings/billing](https://github.com/settings/billing?ref_product=github\&ref_type=engagement\&ref_style=text)。
2. 在侧栏中，单击“Premium request analytics”以显示详细分析\*\*\*\*。
3. 使用筛选器、“Group by”和“Timeframe”选项更改图表和表格中显示的数据。
4. （可选）若要下载图表中显示的数据，请单击 <svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon octicon-kebab-horizontal" aria-label="Chart options" role="img"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg> 按钮并选择首选格式。

   ![该屏幕截图显示了“Premium request analytics”页上的使用情况图表，其中“Chart options”已打开并以深橙色轮廓显示。](/assets/images/help/billing/premium-request-analytics-chart-download.png)

### 下载使用情况报告

有关如何请求使用情况报告的详细信息，请参阅 [查看按流量计费的产品和许可证的使用情况](/zh/billing/how-tos/products/view-productlicense-use#downloading-usage-reports)。

## 优化高级请求的使用情况

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

* **为任务选择适当的模型**。 某些模型更适合其他任务。 如果您在使用高级请求，可以从战略上选择模型，以便从Copilot 中获得最佳结果。 请参阅“[AI 模型比较](/zh/copilot/reference/ai-models/model-comparison)”。

* **设置预算**。 设置预算来跟踪超额使用情况，并在达到预算的 75%、90% 或 100% 时收到提醒。 请参阅“[设置预算以控制按流量计费的产品的支出](/zh/billing/managing-your-billing/preventing-overspending#managing-budgets-for-your-personal-account)”。

* **定期监视使用情况**。 在 GitHub 帐户设置中检查您的使用情况，以查看您已使用多少高级请求。 这有助于你规划当月剩余时间内可以使用的额度。

* **需要时升级**。 如果你发现自己经常达到每月限额，请考虑升级到包含更多高级请求的计划。

* **避免不必要地重试大型提示**。 提交同一条较长或复杂的提示多次可能会消耗更多高级请求。 必要时尝试重新表述或简化你的请求。

* **定义用户是否可以超出所含额度使用高级请求**（仅限企业和组织）。 设置策略以控制用户在用尽包含的额度后是否可以产生额外的高级请求费用。 请参阅“[管理组织或企业的高级请求限额](/zh/copilot/how-tos/manage-and-track-spending/manage-request-allowances)”。

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

如果您持有多个来自独立组织或企业的Copilot许可证，您必须定义在使用高级访问请求时由哪个实体承担费用。 在确定计费实体之前，你发出的所有高级请求都将被拒绝。

在您的个人帐户的Copilot功能设置中，如果有两个或更多企业或独立组织向您分配了\*\*\*\* 许可证，则在“计费”部分会显示一个名为Copilot的下拉列表。

![Copilot 功能设置的屏幕截图。 “用量费用计入”下拉列表处于打开状态。](/assets/images/help/billing/copilot-billing-entity-dropdown.png)

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