Skip to main content

Using extensions to integrate external tools with Copilot Chat

You can use GitHub Copilot Extensions to interact with external tools in GitHub Copilot Chat.


若要使用 Copilot Extensions,必须在有限的公共 beta 版本中注册。

订阅了 GitHub Copilot Individual 的所有已注册用户都可以使用 Copilot Extensions。

对于订阅了 Copilot Business 或 Copilot Enterprise 的已注册组织或企业,组织所有者和企业管理者可以授予对 Copilot Extensions 的访问权限。


GitHub Copilot Extensions 目前为有限公开 beta 版本,可能随时发生更改。

About GitHub Copilot Extensions

GitHub Copilot Extensions 是一种在 GitHub Copilot Chat 中集成了多种强大的外部工具的 GitHub App。 Copilot Extensions 由 Copilot 合作伙伴 开发,是一组由 GitHub 选择的外部工具,作为实用工具而集成到 Copilot Chat 中。 要成为 Copilot 合作伙伴,你可以申请加入 Copilot 合作伙伴计划


GitHub Copilot Extensions are not the same as the GitHub Copilot extension, which you install in an external application to access Copilot within that application. For more information on the GitHub Copilot extension, see "Getting code suggestions in your IDE with GitHub Copilot."

After you install a Copilot Extension from GitHub Marketplace, you can interact with that extension in a Copilot Chat conversation, asking questions and authorizing actions that combine the capabilities of the external tool and GitHub. For example, if you install the Sentry extension for GitHub Copilot, you can use the extension to get information about Sentry issues, then create and assign related tracking issues on GitHub.

Copilot Extensions provide several benefits, including:

  • Interaction with external tools using natural language
  • Reduced context switching
  • Customization of your Copilot Chat experience for your developer flow

Copilot Extensions are included in all Copilot subscriptions, and can be used with:

  • Visual Studio 中的 Copilot Chat
  • Visual Studio Code 中的 Copilot Chat
  • 中的 Copilot Chat(具有 Copilot Enterprise 订阅)

About using GitHub Copilot Extensions

Copilot Extensions work the same way across all Copilot Chat interfaces where Copilot Extensions are available. Copilot Extensions are available in:

  • Visual Studio 中的 Copilot Chat
  • Visual Studio Code 中的 Copilot Chat
  • 中的 Copilot Chat(具有 Copilot Enterprise 订阅)

If you have a Copilot Individual subscription, you need to install a Copilot Extension before you can use the extension in Copilot Chat. See "为个人帐户安装 GitHub Copilot 扩展."

If you have access to Copilot through a Copilot Business or Copilot Enterprise subscription, an organization owner needs to install Copilot Extensions for your organization. See "Installing GitHub Copilot Extensions for your organization."

Using GitHub Copilot Extensions

  1. To start using a Copilot Extension, open any of the following Copilot Chat interfaces:

  2. To see a list of all Copilot Extensions available in your Copilot Chat conversation, in the Copilot Chat text box, type @.


    If you are using Copilot Chat in an IDE, and you or your organization owner install a Copilot Extension while your IDE is open, you need to restart your IDE to begin using the Copilot Extension.

  3. In the list of available Copilot Extensions, click the one you want to use.

  4. To begin interacting with the Copilot Extension, in the Copilot Chat text box, ask the extension to answer a question or perform an action, then press Enter. For each new request, be sure to include @EXTENSION-NAME at the beginning of your sentence.

    • If you did not install the Copilot Extension yourself, and it is your first time using the Copilot Extension, you will be asked to authorize the extension. See "授权 GitHub Apps."
    • If you ask a Copilot Extension to perform an action, you need to confirm the extension has your permission to act on your behalf before it will complete the task. After carefully reviewing the proposed action, in the confirmation dialog, click Allow or Dismiss.

Tips for using GitHub Copilot Extensions

  • When you are using a Copilot Extension, consider how you would interact with the tool outside of Copilot Chat, then use natural language to ask questions and assign tasks that integrate the capabilities of the tool with GitHub. For example, Sentry is an application monitoring software with a Copilot Extension. The following are some example prompts for the Sentry extension for GitHub Copilot:

    • @sentry list my most recent issues
    • @sentry tell me more about issue ISSUE-ID-OR-ISSUE-LINK
    • @sentry create a GitHub issue for the most recent Sentry issue and assign it to @DEVELOPER

    For information on the best ways to use a specific Copilot Extension, read the description of the extension on GitHub Marketplace.

  • Interactions with one Copilot Extension will never be shared with another Copilot Extension. To interact with different Copilot Extensions in an IDE, change the @EXTENSION-NAME at the beginning of each sentence. Interactions with different extensions will appear in the same Copilot Chat window, but the conversations themselves are automatically separated.

    To interact with different Copilot Extensions on, you need to start a new conversation for each extension by clicking at the top of the Copilot Chat window.