Copilot plugin for Claude Code
Use GitHub Copilot from inside Claude Code for code reviews or to delegate tasks to Copilot.
This plugin is for Claude Code users who want an easy way to reach for GitHub Copilot from the
workflow they already have. It is a port of openai/codex-plugin-cc
to the GitHub Copilot CLI, and it has three properties that plugin does not: the plugin has to
choose your model for you, every run spends billable premium requests at a multiplier that varies
a lot by model, and session transfer is a condensed briefing, not a history import. All three are
covered below — read them before you run anything in the background.
What You Get
/copilot:review for a normal read-only Copilot review
/copilot:adversarial-review for a steerable challenge review
/copilot:rescue, /copilot:transfer, /copilot:status, /copilot:result, and /copilot:cancel
to delegate work, hand off sessions, and manage background jobs
/copilot:setup to check readiness, choose models, and manage the optional review gate
Requirements
- A GitHub Copilot subscription, including the free tier. Every run below consumes premium
requests from that subscription — see What Runs Cost.
- GitHub Copilot CLI, version 1.0.80 or later. The facts in this README (RPC behavior, the
model catalog shape, the multiplier table) were measured against 1.0.80 and may drift on newer
releases; the plugin reads the model catalog live rather than hardcoding it.
- Node.js 18.18 or later.
Install
Add the marketplace in Claude Code. From a local checkout of this repository:
/plugin marketplace add /path/to/copilot-cli-plugin
Once this repository is published to a git host, the same command works with the owner/repo
form instead of a local path (for example /plugin marketplace add <owner>/<repo>).
Install the plugin:
/plugin install copilot@github-copilot
Reload plugins:
/reload-plugins
Then run:
/copilot:setup
/copilot:setup tells you whether Copilot is ready. If Copilot is missing and npm is available,
it can offer to install Copilot for you.
If you prefer to install Copilot yourself, use:
npm install -g @github/copilot
If Copilot is installed but not authenticated, run:
!copilot login
After install, you should see:
- the slash commands listed below
- the
copilot:copilot-rescue subagent in /agents
One simple first run is:
/copilot:review --background
/copilot:status
/copilot:result
Choosing Models
Codex resolves a default model on its own. Copilot's headless RPC layer does not. Creating a
Copilot session without an explicit model leaves it with none, and it ignores whatever is in your
own ~/.copilot/settings.json. That gap is why this plugin resolves a model itself, on every run,
through a six-level chain, and always passes one explicitly:
--model flag > plugin config > COPILOT_MODEL > .github/copilot/settings.json > ~/.copilot/settings.json > "auto"
The chain is checked top to bottom and the first value found wins. Review and rescue/task runs
resolve separate defaults (--review-model and --task-model), because their cost profiles
differ — a review is read-only and predictable in shape, a rescue task can be open-ended.
Set them with /copilot:setup:
/copilot:setup --model <id> # sets both review and task models
/copilot:setup --review-model <id>
/copilot:setup --task-model <id>
/copilot:setup --effort <level> # default reasoning effort, where the model supports it
Run /copilot:setup --model with no value and Claude will list the live model catalog and let you
pick one interactively. /copilot:setup (with no arguments) always shows the resolved model per
role, its multiplier, and why it was chosen — which link in the chain supplied it.
What Runs Cost
Every Copilot run — review, rescue, transfer, and each firing of the review gate — consumes
premium requests from your Copilot quota, billed at a per-model multiplier. These
multipliers are not close to each other. Measured against Copilot CLI 1.0.80:
| Model | Multiplier |
|---|
mai-code-1.1-flash | 0.25 |
claude-haiku-4.5, gpt-5-mini, mai-code-1-flash-picker | 0.33 |
auto | 10% discount |
claude-sonnet-4.5, gpt-5.4, gpt-5.4-mini, gpt-5.3-codex, gemini-3.1-pro-preview | 6 |
claude-sonnet-4.6 | 9 |
gemini-3.5-flash | 14 |
That is a 56x spread between the cheapest and most expensive model in the roster, and the same
background review can cost 27x more depending only on which model resolved. Note that
gemini-3.5-flash is the single most expensive model despite the name — multiplier does not track
model tier or naming.