Skip to main content

Managing Copilot policies as an individual subscriber

Find out how to change your personal settings on GitHub to configure GitHub Copilot's behavior.

谁可以使用此功能?

Copilot Pro, Copilot Pro+, and Copilot Free

About GitHub Copilot settings on GitHub

In addition to the configuration for the GitHub Copilot plugin in your supported IDE, you can configure settings for GitHub Copilot on GitHub. The settings apply wherever you use GitHub Copilot.

Enabling additional Copilot premium requests

Important

Billing for premium requests will be enforced starting on the following dates:

  • May 5, 2025: Copilot Free, Copilot Pro, and Copilot Pro+
  • May 12, 2025: Self-service (credit card) Copilot Business and Copilot Enterprise
  • May 19, 2025: Sales-served (invoiced) Copilot Business and Copilot Enterprise

Premium requests are only available for accounts that use the new billing platform. See 关于新计费平台.

If you enable this setting, additional premium requests beyond the limit of your Copilot plan will be billed at 0.04 美元 per premium request. You will be charged for each additional premium request you use across all Copilot interfaces, including GitHub Mobile. See 关于高级请求.

Enabling or disabling suggestions matching public code

Note

If you are a member of an organization on GitHub Enterprise Cloud who has been assigned a GitHub Copilot seat through your organization, you will not be able to configure suggestions matching public code in your personal account settings. Your setting for suggestions matching public code will be inherited from your organization or enterprise.

Your personal settings for GitHub Copilot include an option to either allow or block code suggestions that match publicly available code. If you choose to block suggestions matching public code, GitHub Copilot checks code suggestions with their surrounding code of about 150 characters against public code on GitHub. If there is a match, or a near match, the suggestion is not shown to you.

If you choose to allow suggestions matching public code, when Copilot suggests matching code you can display details of the matches and click through to the relevant repositories on GitHub. For more information, see 查找与 GitHub Copilot 建议匹配的公开代码.

  1. 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击“ 您的 Copilot”****。
  2. To the right of Suggestions matching public code, select the dropdown menu, then click Allow to allow suggestions matching public code, or Block to block suggestions matching public code.

Enabling or disabling prompt and suggestion collection

You can choose whether your prompts and Copilot's suggestions are collected and retained by GitHub, and further processed and shared with Microsoft. For more information about data that GitHub Copilot may collect depending on your settings, see GitHub 附加产品和功能条款 and the GitHub Copilot privacy FAQ.

  1. 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击“ 您的 Copilot”****。
  2. To allow or prevent GitHub using your data, select or deselect Allow GitHub to use my code snippets from the code editor for product improvements.

Enabling or disabling alternative AI models

You can choose whether to allow the following AI models to be used as an alternative to Copilot's default model.

  1. 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击“ 您的 Copilot”****。
  2. To the right of the model name, select the dropdown menu, then click Enabled or Disabled.

Enabling or disabling web search for GitHub Copilot Chat

You can enable web search for GitHub Copilot Chat. This setting is disabled by default. If you enable this setting, Copilot Chat will use Bing to search the internet for information related to a question. Bing search is particularly helpful when discussing new technologies or highly specific subjects.

  1. 在 GitHub 任意页面的右上角,单击个人资料照片,然后单击“ 您的 Copilot”****。
  2. To the right of Copilot access to Bing, select the dropdown menu, and then click Enabled or Disabled.

Model training and improvements

By default, GitHub, its affiliates, and third parties will not use your data, including prompts, suggestions, and code snippets, for AI model training. This is reflected in your personal settings for GitHub Copilot and cannot be enabled.