Claude Code vs GitHub Copilot: plans, models and the CLIs
Claude Code vs GitHub Copilot compared: Claude models inside Copilot, AI Credits vs Claude plans, agents on GitHub, and the two terminal agents head to head.
Claude Code is Anthropic’s coding agent: a terminal program (claude) with VS Code and JetBrains extensions, a desktop app and cloud sessions, running Claude models only, on a Claude plan from Pro at $20 a month. GitHub Copilot is a family of products under one subscription: the assistant in your editor, a cloud agent on github.com that turns an issue into a pull request, pull request reviews, and Copilot CLI, its own terminal agent (copilot). Copilot runs models from several labs, Claude Opus 5.5 and Sonnet 5.5 among them, and its plans run from Free to $100 a month for individuals, with usage counted in GitHub AI Credits at one cent each. Prices as of November 28, 2026. If you live on GitHub and want one bill across Claude, GPT and Gemini, Copilot is the fit; if you want Claude on a flat plan with Anthropic’s own agent, Claude Code is.
At a glance
From each maker’s own pages, read on November 28, 2026:
| Claude Code | GitHub Copilot | |
|---|---|---|
What it is | One agent, on several surfaces: terminal, IDE extensions, desktop app, web | Editor assistant, cloud agent on github.com, code review, Copilot CLI |
Terminal command | claude | copilot |
Models | Claude only; Opus 5.5 by default | Anthropic’s, OpenAI’s, Google’s, Microsoft’s, xAI’s and others; Free and Student by automatic selection only |
Cheapest plan that includes the terminal agent | Claude Pro, $20 a month ($17 billed yearly); the free plan does not | Copilot Free, $0; Copilot Pro, $10 a month |
How usage is measured | On Pro, Max and Team, a five-hour limit and a weekly one; on Ultra, weekly only once the account is verified; sizes published only as multiples of Pro. Enterprise usage is billed at API rates | A monthly allowance of AI Credits, spent by the tokens each request processes |
Agent that opens pull requests on GitHub | The Claude Code GitHub Action, in your own workflows | Copilot’s cloud agent on paid plans, in a GitHub sandbox or on Actions; Claude’s agent too, through Copilot |
Pull request review | Code Review on Team and Enterprise; /code-review on any plan | Copilot code review on Pro and up |
What each one is
Anthropic’s overview calls Claude Code “an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.” The terminal program is what Anthropic calls “the full-featured CLI”; the VS Code extension, the JetBrains plugin, the desktop app and the web version at claude.ai/code connect to the same engine, so a repository’s CLAUDE.md, settings and MCP servers carry across. It has no editor of its own; it is an agent you give tasks to, in the editor you already use.
Copilot is several products sold together. GitHub’s model table lists the clients Copilot runs in: GitHub.com, Copilot CLI, VS Code, Visual Studio, Eclipse, Xcode and JetBrains IDEs. On github.com, its cloud agent takes a task from the repository’s Agents tab or an issue you assign to Copilot and works on it in the cloud, and Copilot code review comments on pull requests. Copilot CLI, which replaced the old gh copilot extension, is the part that competes with Claude Code head on; the Copilot CLI guide covers it in full.
Models: Claude inside Copilot
Claude Code runs Claude. Its model page gives Opus 5.5 as the default on Pro, Max, Ultra, Team, Enterprise and the API, with opus, sonnet, haiku and fable aliases you switch with /model. It can reach Claude through Amazon Bedrock, Google Cloud’s Agent Platform or Microsoft Foundry instead of Anthropic; its docs cover Claude models only.
Copilot lets you pick. GitHub’s supported models page lists models from Anthropic, OpenAI, Google, Microsoft, Moonshot AI and xAI. Its per-client table marks every Claude model it lists as available in Copilot CLI: Claude Opus 5.5, Sonnet 5.5, Sonnet 5, Sonnet 4.6, Haiku 5.5, Haiku 4.5, Opus 4.8 (its fast mode in preview), and Fable 5, 5.1 and 5.2. For the three Fable models, the page adds that “an enterprise or organization administrator must still enable each model before users can access it.” Most of them are in VS Code, JetBrains and the other clients too. Beside them are OpenAI’s GPT-6 and GPT-5 lines and Google’s Gemini 4 and Gemini 3.8 Flash models. Two limits apply. “On Copilot Free and Copilot Student plans, access to models is available through auto model selection only,” so picking Claude yourself needs a paid plan. And a model in Copilot is the model, not Anthropic’s agent: choosing Claude Opus 5.5 in Copilot CLI runs it inside GitHub’s program, with GitHub’s tools and settings, not Claude Code’s.
Plans and price
GitHub’s plans page says “All plans include Copilot CLI and the Copilot app.” Each plan carries a monthly allowance of GitHub AI Credits, and its pricing page sets “1 AI credit = $0.01 USD.” In US dollars, as of November 28, 2026:
| Copilot plan | Price | AI Credits a month | That allowance in dollars |
|---|---|---|---|
Free | $0 | An allowance, amount not stated | Not stated |
Pro | $10 a month | 1,500 | $15 |
Pro+ | $39 a month | 7,000 | $70 |
Max | $100 a month | 20,000 | $200 |
Business | $19 a seat a month | 1,900 a user | $19 |
Enterprise | $39 a seat a month | 3,900 a user | $39 |
The dollar column is the credits at GitHub’s one-cent rate. Part of each individual allowance is what GitHub calls flex (500 of Pro’s 1,500), which it says may change over time. Credits are spent by the tokens a request processes, so a larger model or a long agent run costs more of them; GitHub’s models page adds that a larger context window or higher reasoning raises the cost. When they run out, an individual can “set a dollar budget for additional usage and Copilot continues without interruption,” and on Business and Enterprise an admin decides whether extra paid usage is allowed or Copilot pauses until the next cycle.
Claude Code comes with a Claude plan, per claude.com/pricing: Pro at $20 a month ($17 billed yearly), Max at $100, Ultra at $200, Team seats at $25 or $125 a month ($20 or $100 billed yearly), and Enterprise at $20 a seat billed yearly with all usage at API rates. The free plan does not include it. Outside Enterprise, Anthropic does not count usage in tokens or credits: Pro, Max and Team have a limit that resets every five hours and a weekly one, Ultra keeps only the weekly limit once Anthropic has verified the account, the sizes are stated as multiples of Pro, and the same allowance covers your chats in the Claude apps. Which Claude plans include Claude Code sets out each plan’s limits and what happens when you reach them. Or Claude Code bills per token on a Console API key.
The two meters do not convert into each other, so neither maker’s pages let you say which plan buys more Claude. What they do let you say: Copilot gives you a fixed dollar amount of model usage across many labs, and Claude’s plans give you Claude by time window, with no published token count.
Agents on GitHub
Copilot’s cloud agent. Since October 28, 2026, GitHub’s agent docs call the new experience Copilot in the cloud, “available to users with a paid Copilot plan”, while Free keeps the older Copilot Chat experience. You start a task from a repository’s Agents tab, or by assigning an issue to Copilot (in public preview), and it works in “a GitHub-hosted cloud sandbox” by default, or on a GitHub Actions runner, or in a remote environment you set up. It works on one branch at a time and opens one pull request per task. On Actions it can change only the repository you started it in, where a cloud sandbox session can work across several, and each Actions session has a “maximum execution time of 59 minutes”; GitHub states no such limit for the sandbox. Its compute, in the sandbox or on Actions, draws on your GitHub account’s monthly allowance, “separate from AI credits.” It works only with repositories hosted on GitHub.
Claude’s agent, through Copilot. GitHub also runs other makers’ agents on the same surfaces. Its third-party agents page says “The Anthropic Claude coding agent uses the Claude Agent SDK and can be powered by your existing Copilot subscription,” in public preview beside OpenAI’s Codex. Whether Copilot Pro includes it, GitHub’s own pages disagree. That docs page names Pro beside Pro+ and Max as individual plans that switch it on in their Copilot settings, and the pricing page’s list for Pro says “Access to 3rd party agents (Claude Code and Codex)”, but the same pricing page’s comparison table marks delegating to third-party agents not included on Pro and included from Pro+. On Business and Enterprise an organization or enterprise policy has to allow it, and Copilot Student excludes it. It runs on Auto, Sonnet 4.6, Sonnet 5, Opus 4.8 (with a fast mode in preview) or Fable 5.1 and 5.2, starts from the Agents tab, an assigned issue or a pull request comment, and spends Actions minutes and AI Credits. So a Copilot subscriber whose plan includes it can have an agent built on Anthropic’s SDK open pull requests without any Claude plan.
Claude Code’s GitHub Action. Anthropic’s own route is anthropics/claude-code-action@v1, which per its docs “runs Claude Code inside your repository’s workflows”: on the runners your workflow names, answering @claude in issue and pull request comments or running a prompt on any event, a schedule included. Running /install-github-app in Claude Code sets it up (github.com only, with admin access to the repository). It signs in with an ANTHROPIC_API_KEY secret, billed per token, or a CLAUDE_CODE_OAUTH_TOKEN from claude setup-token, which “use[s] your Claude subscription instead of API billing” on Pro, Max, Ultra, Team or Enterprise; each run also uses Actions minutes. The workflows, the inputs and who can trigger it are in Claude Code in GitHub Actions.
Pull request reviews. Copilot code review is on Pro and every plan above; Free “does not include Copilot code review.” By default it reviews a pull request only when you assign Copilot as a reviewer, and its reviews “do not count toward required approvals” unless Copilot approvals are turned on. Each review spends AI Credits, which GitHub estimates at about $0.25, $1.50 or $10 a review on average for its Lite, Balanced and Max levels, plus Actions minutes. Anthropic’s managed Code Review is for Team and Enterprise plans only, runs on Anthropic’s infrastructure, and “by itself, a review doesn’t approve or block the pull request.” On any Claude plan, /code-review in a session reviews your branch, and the GitHub Action can review every pull request in your own workflows; Claude Code review compares the options.
The terminal agents head to head
Copilot CLI and Claude Code do the same job in the same place. For the developer choosing between them on a laptop or a server reached over SSH, as of November 28, 2026:
| Claude Code | Copilot CLI | |
|---|---|---|
Install | curl -fsSL https://claude.ai/install.sh | bash, Homebrew, WinGet, apt, dnf, apk or npm | curl -fsSL https://gh.io/copilot-install | bash, Homebrew, WinGet or npm |
npm package | @anthropic-ai/claude-code, Node.js 22 or later | @github/copilot, Node.js 22 or later |
Sign-in over SSH | Open the login URL on any device, paste the code back at Paste code here if prompted | Device code at github.com/login/device |
Where the login is kept on Linux | ~/.claude/.credentials.json, mode 0600 | The keychain; without one, it offers a plaintext ~/.copilot/config.json |
Token for scripts and CI | claude setup-token, one year, in CLAUDE_CODE_OAUTH_TOKEN; or an API key | Fine-grained token with Copilot Requests, in COPILOT_GITHUB_TOKEN |
Project instructions | CLAUDE.md; AGENTS.md in its place | AGENTS.md, CLAUDE.md, GEMINI.md, .github/copilot-instructions.md |
Add an MCP server | claude mcp add <name> -- <command>; project servers in .mcp.json | copilot mcp add <name> -- <command>; yours in ~/.copilot/mcp-config.json, GitHub’s built in |
One prompt, then exit | claude -p "...", --output-format json | copilot -p "...", -s, --output-format json |
Unattended permissions | --allowedTools, --permission-mode; from v2.1.302, with nothing setting a mode, a call that needs approval is denied | --allow-tool, --deny-tool, --allow-all-tools |
Two things in that table are worth reading twice on a server. Copilot CLI stores its token in plaintext when the machine has no keyring, which is usual over SSH, so check that only your user can read ~/.copilot/config.json; Claude Code writes its file readable by you alone. And both pick up a credential from the environment ahead of your sign-in: in a claude -p run, Anthropic’s authentication page says an ANTHROPIC_API_KEY “is always used when present”, which bills the API rather than your plan, and Copilot CLI takes a GH_TOKEN or GITHUB_TOKEN already exported for other tools ahead of its own login.
Both read AGENTS.md, and Copilot CLI reads CLAUDE.md as well, so a repository set up for Claude Code works in Copilot CLI as it is. Keep shared instructions in AGENTS.md if you use both. For a script, set the token without it landing in your shell history:
read -rsp 'Claude token: ' CLAUDE_CODE_OAUTH_TOKEN; echo
export CLAUDE_CODE_OAUTH_TOKEN
claude -p "Summarise what changed on this branch" --output-format jsonCopiedThe full server setup for each is in installing Claude Code and the Copilot CLI guide. An interactive session of either ends when your SSH connection drops, so start it inside tmux.
Which to pick
- You already pay for Copilot: Copilot CLI comes with every plan and the cloud agent with every paid one, both drawing on the plan’s allowances, and a paid plan lets you choose Claude Opus 5.5 or Sonnet 5.5 in them, under one bill with GPT and Gemini.
- You want Claude and Anthropic’s own agent: Claude Code on a Claude plan. Outside Enterprise, its limits are counted by time window rather than by dollars of tokens, and the same plan covers your chats in the Claude apps.
- You want the cheapest way in: Copilot Free includes the CLI with automatic model choice; Copilot Pro is $10 with $15 of credits. Claude Code starts at $20.
- You want an agent to work through issues on github.com: Copilot’s cloud agent, on a paid plan, runs in a GitHub-hosted sandbox by default; the Claude Code GitHub Action runs in your own workflows, on the runners they name, with the prompt, model and triggers in your hands.
- You want every pull request reviewed: Copilot code review from Pro; Anthropic’s managed Code Review on Team or Enterprise; or the Claude Code Action’s review workflow on any paid Claude plan or an API key.
- You work on GitLab or elsewhere: Copilot’s cloud agent works only with GitHub repositories; Claude Code and Copilot CLI both run in any checkout, and Claude Code has a GitLab CI route.
Using both. They do not exclude each other: claude runs in VS Code’s terminal, or as its extension, beside Copilot in the same editor, and through Copilot you can even run Claude’s coding agent on github.com. For other pairs, see Claude Code vs Cursor and Codex vs Claude Code, or Claude Code alternatives for the wider field.