Introduction
Plugins are packages that extend the functionality of Интерфейс командной строки Copilot. You can install a plugin from a marketplace that you have registered with the CLI, from a GitHub repository, or from a local path.
For more information, see About plugins for GitHub Copilot CLI.
Примечание.
You can find help on using plugins by entering copilot plugin [SUBCOMMAND] --help in the terminal.
Finding plugins
Plugins are collected together in marketplaces. A marketplace is a registry of plugins that you can browse and install from. You can add a marketplace to your CLI configuration, which allows you to use the CLI to browse and install plugins from that marketplace—see Adding plugin marketplaces. Copilot comes with two marketplaces already registered by default: copilot-plugins and awesome-copilot.
Alternatively, you can search for plugin marketplaces online and then add a plugin directly from a repository.
To use the CLI to browse the plugins in one of your registered marketplaces:
-
Check which marketplaces are currently registered.
In the terminal, list the available marketplaces by entering:
Shell copilot plugin marketplace list
copilot plugin marketplace listAlternatively, in an interactive session, enter:
Copilot prompt /plugin marketplace list
/plugin marketplace list -
Browse the plugins in a registered marketplace.
From the list of registered marketplaces, copy the name of the marketplace you want to browse—for example,
awesome-copilot—then enter the following command, replacingMARKETPLACE-NAME:Shell copilot plugin marketplace browse MARKETPLACE-NAME
copilot plugin marketplace browse MARKETPLACE-NAME
Installing plugins
Typically, you'll install a plugin from one of your registered marketplaces. However, you can also install a plugin directly from a GitHub repository, or from a local path.
For information on how to register additional marketplaces, see Adding and removing plugin marketplaces.
Install from a registered marketplace
copilot plugin install PLUGIN-NAME@MARKETPLACE-NAME
copilot plugin install PLUGIN-NAME@MARKETPLACE-NAME
For example, to install the database-data-management plugin from the awesome-copilot marketplace enter:
copilot plugin install database-data-management@awesome-copilot
copilot plugin install database-data-management@awesome-copilot
Alternatively, in an interactive session, enter:
/plugin install PLUGIN-NAME@MARKETPLACE-NAME
/plugin install PLUGIN-NAME@MARKETPLACE-NAME
Install from GitHub directly
You can install a plugin directly from a GitHub repository, without first adding a marketplace to your list of registered marketplaces.
copilot plugin install OWNER/REPO:PATH/TO/PLUGIN
copilot plugin install OWNER/REPO:PATH/TO/PLUGIN
For example,
copilot plugin install github/awesome-copilot:plugins/security-best-practices
copilot plugin install github/awesome-copilot:plugins/security-best-practices
Install from a local path
copilot plugin install ./PATH/TO/PLUGIN
copilot plugin install ./PATH/TO/PLUGIN
Managing installed plugins
copilot plugin list # View installed plugins
copilot plugin update PLUGIN-NAME # Update plugin to latest version
copilot plugin uninstall PLUGIN-NAME # Remove plugin completely
Where plugins are stored
Plugins installed from a marketplace are stored under: ~/.copilot/installed-plugins/MARKETPLACE/PLUGIN-NAME/. Plugins installed directly (for example, from a local path) are stored under: ~/.copilot/installed-plugins/_direct/PLUGIN-NAME/.
Adding plugin marketplaces
To add a marketplace to the list of registered marketplaces, enter the following command in the terminal:
copilot plugin marketplace add OWNER/REPO
copilot plugin marketplace add OWNER/REPO
Where OWNER/REPO identifies a repository on GitHub.com that has been configured as a CLI plugin marketplace.
For example to add the claude-code-plugins marketplace, hosted at https://github.com/anthropics/claude-code, enter:
copilot plugin marketplace add anthropics/claude-code
copilot plugin marketplace add anthropics/claude-code
Alternatively, in an interactive session, enter:
/plugin marketplace add OWNER/REPO
/plugin marketplace add OWNER/REPO
If a marketplace is located on the local file system, instead of on GitHub, use the path to the marketplace directory instead of OWNER/REPO. For example:
copilot plugin marketplace add /PATH/TO/MARKETPLACE-DIRECTORY
copilot plugin marketplace add /PATH/TO/MARKETPLACE-DIRECTORY
If a marketplace is located in a Git repository that is not hosted on GitHub, use the URL of the Git repository. For example:
copilot plugin marketplace add https://gitlab.example.com/team/plugins.git
copilot plugin marketplace add https://gitlab.example.com/team/plugins.git
Removing plugin marketplaces
To remove a marketplace from the CLI enter:
copilot plugin marketplace remove MARKETPLACE-NAME
copilot plugin marketplace remove MARKETPLACE-NAME
Or, in an interactive session:
/plugin marketplace remove MARKETPLACE-NAME
/plugin marketplace remove MARKETPLACE-NAME
Примечание.
When adding a marketplace you reference the marketplace using the OWNER/REPO of the GitHub repository that has been configured as a marketplace. When removing a marketplace, however, you reference the name of the marketplace as it appears in your list of registered marketplaces.