Support Copilot CLI Plugins Scoped to Project or Repository (instead of per-user)
Describe the feature or problem you'd like to solve
Support Copilot CLI Plugins Scoped to Project or Repository (instead of per-user)
Proposed solution
Today, Copilot CLI plugins are installed per user and loaded globally. This makes it difficult to enable repo/project-specific plugins for workflows, experimentation, or hybrid approaches.
The feature requested is:
- Enable support for plugin installation, discovery, and loading based on a repo or project config (for example, with
.github/pluginsor similar) - Plugins defined in repo/project configs should supersede user/global plugins for that repo
- Allow plugin activation only in the context of the given repo/project (so plugins don't affect workflows outside the project)
This would bring plugin scoping more aligned with practices in other CLI tools (e.g., npm, yarn, poetry, etc.).
Example prompts or workflows
- A repository includes a
.github/pluginsdirectory defining plugins for that project, rather than the~/.copilot/installed_plugins; upon running Copilot CLI in that repo, those plugins are activated and others are deactivated. - User can experiment with a plugin in their fork or branch without affecting global/plugin state.
Additional context
- See docs for current plugin mechanics.
- This brings parity with other tools that allow local vs global plugin scoping, like Claude Code CLI
- Some Copilot CLI configuration is already repo- or project-local (e.g., custom agents or context), but plugins must be installed globally.
This is the exact feature I need! Up
This should be resolved as of v1.0.12. Project-scoped plugin configuration is now supported through enabledPlugins in repo-level settings files (.github/copilot/settings.json or .claude/settings.json), which takes precedence over global config. You can also point to a local plugin directory via extraKnownMarketplaces with a directory source, or use the --plugin-dir flag (available since v1.0.10). If you believe this isn't fully resolved, feel free to reopen this issue.
I tested using .github/copilot/settings.json to enable a plugin at the project level. The plugin auto-installed when I launched copilot in that directory, but it was also available in other directories. It installed to ~/.copilot/installed-plugins/ (global), not scoped to the project.
enabledPlugins controls activation intent but not installation scope. There's no project-local plugin storage today.
Reproduce
#!/usr/bin/env bash
# Shows that plugins enabled via project settings.json install globally
set -euo pipefail
PLUGIN="your-plugin@your-marketplace" # replace with a real plugin
# Create two project directories ΓÇö only project-a enables the plugin
ROOT=$(mktemp -d)
mkdir -p "$ROOT/project-a/.github/copilot" "$ROOT/project-b"
cat > "$ROOT/project-a/.github/copilot/settings.json" <<EOF
{
"enabledPlugins": {
"$PLUGIN": true
}
}
EOF
# Launch copilot in project-a ΓÇö plugin auto-installs
cd "$ROOT/project-a"
copilot # exit after plugin installs
# Launch copilot in project-b ΓÇö plugin is available here too
cd "$ROOT/project-b"
copilot # plugin should NOT be here, but it is
# Confirm: plugin was installed globally
ls ~/.copilot/installed-plugins/
# Cleanup
rm -rf "$ROOT"
@examon I don't haver permissions to re-open GH issue.
Somewhere between this feature and #2795 is the ability to have "isolated" Copilot configurations with environment-specific plugins.
--plugin-dir is very handy in wrapper scripts but #2795 being active means subagents aren't visible to the headless session, which is a blocker.
So the only working option is to install the plugin directly (which echoes back as deprecated) - and then you run into this issue where all of your installed plugins are active at once.
We have ~26 domain-specific agents bundled as plugins, each with multiple MCP servers requiring authenticated connections (databases, incident management, code search). The marketplace packaging format is great — but we can't ship because global install means every MCP server connects in every session, even unrelated projects.
The two halves of the solution already exist:
copilot plugin install— distribution + versioning, but global-only.github/agents/+.github/skills/— project-scoped loading, but manual file placement
A --target flag would connect them:
copilot plugin install my-plugin@my-marketplace --target /path/to/my-project
# Unpacks into .github/agents/, .github/skills/, .github/mcp.json
# Scoped automatically — project-level loading already works
Agreeing with @willmarkley — enabledPlugins controls activation intent, not installation scope. The plugin still installs globally and its MCP servers still connect everywhere. For plugins with heavyweight authenticated MCP dependencies, that's a blocker.
+1 for reopening.
+1
Hi all - just checking if this issue has been resolved. Copilot CLI plugins are still installed per user and loaded globally and I don't see an option to install it at a project level. Has anyone managed to install plugins at a project level?
+1 for reopening
+1 for reopening. That is exactly the feature we are looking for.
Thanks for merging this. Meets the requirements I suggested in the original Github Issue.
Behavior after merge:
Using v1.0.70-0
Plugins install at user-level. Plugins are enabled/disabled at user (~/.copilot/settings.json) and repository (.github/copilot/settings.json) level, with repository settings overriding user settings.
When a plugin is disabled at user-level and enabled at repository-level, it is effectively isolated as proposed in the original feature request. When a plugin is enabled at the user-level, it is enabled for all repositories (no repository-level disablement).
Defaults:
- Plugins installed imperatively via
/plugin install: are installed at user-level and enabled at user-level. - Plugins installed declaratively via
.github/copilot/settings.json'senabledPlugins: are installed at user-level and disabled at user-level. By definition, they are enabled at the repository-level.
Proposed Enhancements:
/plugin installcommand installs at user-level and enables at user-level. Consider a flag that disables user-level and enables at repository-level upon install.- Plugins install at repository-level directory. May be needed if different repositories want different versions of the same plugin.
Bug
- Plugin installed at user-level, enabled at user-level: copilot commands during a session display correctly.
- Plugin installed at user-level, disabled at user-level: copilot commands during a session display correctly.
- Plugin installed at user-level, disabled at user-level, and enabled at repository-level: plugin is correctly loaded (skills + mcp can be used) but the following copilot commands display improperly:
/plugin listdisplays the plugin as(disabled)when it is actually enabled/skillsis missing the plugin skills/skills listdisplays correctly/mcp listdisplays correctly/mcpdisplays correctly/envdisplays correctly
Perhaps /plugin list is reading from the user-level config?
Thanks for merging this. Meets the requirements I suggested in the original Github Issue.
Behavior after merge:
Using
v1.0.70-0Plugins install at user-level. Plugins are enabled/disabled at user (~/.copilot/settings.json) and repository (.github/copilot/settings.json) level, with repository settings overriding user settings. When a plugin is disabled at user-level and enabled at repository-level, it is effectively isolated as proposed in the original feature request. When a plugin is enabled at the user-level, it is enabled for all repositories (no repository-level disablement). Defaults:
- Plugins installed imperatively via
/plugin install: are installed at user-level and enabled at user-level.- Plugins installed declaratively via
.github/copilot/settings.json'senabledPlugins: are installed at user-level and disabled at user-level. By definition, they are enabled at the repository-level.Proposed Enhancements:
/plugin installcommand installs at user-level and enables at user-level. Consider a flag that disables user-level and enables at repository-level upon install.- Plugins install at repository-level directory. May be needed if different repositories want different versions of the same plugin.
Bug
Plugin installed at user-level, enabled at user-level: copilot commands during a session display correctly.
Plugin installed at user-level, disabled at user-level: copilot commands during a session display correctly.
Plugin installed at user-level, disabled at user-level, and enabled at repository-level: plugin is correctly loaded (skills + mcp can be used) but the following copilot commands display improperly:
/plugin listdisplays the plugin as(disabled)when it is actually enabled/skillsis missing the plugin skills/skills listdisplays correctly/mcp listdisplays correctly/mcpdisplays correctly/envdisplays correctlyPerhaps
/plugin listis reading from the user-level config?POST /2013-04-01/hostedzone/Route 53 hosted zone ID/rrset HTTP/1.1
optional comment about the changes in this change batch request CREATE | DELETE | UPSERT fully qualified domain name DNS record type unique description for this resource record set Amazon EC2 region name time to live in seconds applicable value for the record type ... optional ID of a Route 53 health check ... POST /2013-04-01/hostedzone/Route 53 hosted zone ID/rrset HTTP/1.1 optional comment about the changes in this change batch request CREATE | DELETE | UPSERT fully qualified domain name DNS record type time to live in seconds unique description for this resource record set applicable value for the record type ... true optional ID of a Route 53 health check ... POST /2013-04-01/hostedzone/Route 53 hosted zone ID/rrset HTTP/1.1 optional comment about the changes in this change batch request CREATE | DELETE | UPSERT fully qualified domain name DNS record type unique description for this resource record set Amazon EC2 region name hosted zone ID for your AWS resource or Route 53 hosted zone DNS domain name for your AWS resource or another resource record set in this hosted zone true | false optional ID of a Route 53 health check ... POST /2013-04-01/hostedzone/Route 53 hosted zone ID/rrset HTTP/1.1 optional comment about the changes in this change batch request CREATE | DELETE | UPSERT fully qualified domain name DNS record type unique description for this resource record set value between 0 and 255 time to live in seconds applicable value for the record type ... optional ID of a Route 53 health check ... POST /2013-04-01/hostedzone/Route 53 hosted zone ID/rrset HTTP/1.1 optional comment about the changes in this change batch request CREATE | DELETE | UPSERT fully qualified domain name DNS record type unique description for this resource record set value between 0 and 255 hosted zone ID for your AWS resource or Route 53 hosted zone DNS domain name for your AWS resource or another resource record set in this hosted zone true | false optional ID of a Route 53 health check ...
When a plugin is enabled at the user-level, it is enabled for all repositories (no repository-level disablement).
Please also consider this case mentioned above by @willmarkley . It might be helpful in some cases.
@willmarkley - just checking if your proposed enhancements and the bug you have reported has been looked into in the latest updates?