---
title: "GitHub Copilot CLI Install, Sign-In and Plan Limits"
description: "Copilot CLI is GitHub's coding agent for the terminal. You'll learn how to install and use it, plus understand its capabilities and limits."
url: https://www.activepieces.com/blog/github-copilot-cli-install-sign-in-and-plan-limits
updated: 2026-12-05
---

> Every page on www.activepieces.com is available as markdown: add `.md` to the URL, or send `Accept: text/markdown`. Site index: https://www.activepieces.com/llms.txt

# GitHub Copilot CLI Install, Sign-In and Plan Limits

By Gustavo Peixoto · December 5, 2026 · 14 min read · Filed under [Automation tutorials](https://www.activepieces.com/blog/category/automation-tutorials)

**Summary**

Copilot CLI is a terminal agent you install and sign into with your GitHub account, governed by your Copilot plan rather than by API keys.

- In legacy multipliers, one Opus 4.6 1M prompt spent what six Sonnet 4.5 prompts did.
- In the models.dev data, Claude Haiku 4.5's context window held only 200,000 tokens.
- Business and Enterprise admins can disable CLI by policy.

Copilot CLI is GitHub's coding agent for the terminal, the kind of tool you might reach for while wiring up automations in something like [Activepieces](https://www.activepieces.com) from the command line.

You sign in with a GitHub account that has a Copilot plan, and there's **no API key and no per-unit meter** behind it.

Copilot CLI is a terminal-based coding agent from GitHub that you install, sign in to with a Copilot-enabled GitHub account, and run interactively or from scripts, with **usage governed by your Copilot plan's limits** rather than by API keys or per-call billing.

## Terminal agent, not keyed API

### What the CLI does

You start it in a project directory and talk to it. It reads files, proposes edits, and runs shell commands, asking you first.

The session belongs to you, tied to your GitHub identity and your Copilot plan. Its limits come from that plan, not from a count of requests you're billed for.

### Where the API question gets a different answer

If you need programmatic access to a model with a key and metered billing, that's a different product from a different path. If you need an agent that works in your repo under your account, this is it.

Teams that want other apps exposed to a terminal agent can do it through MCP, and [Activepieces](https://www.activepieces.com) is one place that connects them.

This guide was checked on 2026-12-05, and any limit, plan detail, or command behavior mentioned later comes from GitHub's own documentation.

## Install commands for macOS, Linux and Windows

You have four routes onto a machine: npm, Homebrew, WinGet or an install script. The commands below are the ones GitHub's docs list, with no version numbers where the docs gave none to confirm.

![Four boxes in a row, an npm package, a Homebrew box, a WinGet package and an install script scroll, each with an arrow…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/84c8219b-003a-46a2-822c-8668514700b2/github-copilot-cli-install-sign-in-and-plan-limi-1441f889.webp)

| Route | OS supported | Command | Prerequisites | Verify | Date checked |
|---|---|---|---|---|---|
| npm | macOS, Linux, Windows | `npm install -g @github/copilot` | Node.js with npm | `copilot --version` | 2026-12-05 |
| Homebrew | macOS, Linux | `brew install --cask copilot-cli` | Homebrew | `copilot --version` | 2026-12-05 |
| WinGet | Windows | `winget install GitHub.Copilot` | WinGet | `copilot --version` | 2026-12-05 |
| Install script | macOS, Linux | `curl -fsSL https://gh.io/copilot-install \| bash` | `curl` and a shell | `copilot --version` | 2026-12-05 |

_Prices and plan limits checked against [docs.claude.com](https://docs.claude.com/en/docs/about-claude/models/overview) and [claude.com](https://claude.com/pricing) and [openai.com](https://openai.com/chatgpt/pricing) and [gemini.google](https://gemini.google/subscriptions) on December 5, 2026._

### Install Copilot CLI with Homebrew or script

If you already use Homebrew, it is the least surprising route, since it handles upgrades with the rest of your packages. The install script suits a fresh machine or a container image where you don't want a package manager.

On Windows, WinGet is the native route and needs nothing else. npm also works here, but then your PATH and your Node install decide whether the command resolves.

### Verify and update your Copilot CLI install

Run `copilot --version` in a new terminal. If you get `copilot: command not found`, the install worked and your PATH didn't. Open a fresh shell before you reinstall anything.

To update, rerun the install command for the route you used. Mixing routes leaves two binaries on the machine, and the older one often wins.

## Sign-in methods, access and what each plan covers

Write a script like an API client and it fails on its first run, usually with some variant of "not authenticated". The CLI signs in as a person through GitHub's device flow, and only non-interactive runs use a token from an environment variable.

> Write a script like an API client and it fails on its first run, usually with some variant of "not authenticated".

### First run and Copilot CLI login steps

Do the first run in this order, because each step depends on the one before it:

1. Install the package with `npm install -g @github/copilot`.
2. Run `copilot` in a project folder.
3. Choose the login option, or type `/login`, if it does not prompt you.
4. Copy the one-time device code and approve it in the browser.
5. Confirm the GitHub account shown is the one with the Copilot seat.

Step 5 is where people lose an hour. A personal account with no seat signs in fine, then fails on the first prompt.

For scripts and CI there's no browser, so you pass a token instead. GitHub's docs name `GH_TOKEN` and `GITHUB_TOKEN` for this, and the token **must belong to an account with Copilot access**.

![A CI runner as a tidy server box with a small paper name badge clipped to its side, a browser window beside it bricked…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/aac5e0a7-963d-4e06-bebf-ab25aebf3b48/github-copilot-cli-install-sign-in-and-plan-limi-a6217dbc.webp)

Across Free, Pro, Pro+, Business and Enterprise, price, premium request allowance, model access and CLI inclusion all differ by plan, and all of them change. I have no confirmed figures, so none appear here.

![Legacy premium request multipliers by Copilot CLI model](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/45fc4331-30d8-41e6-9a13-a5f982751108/github-copilot-cli-install-sign-in-and-plan-limi-a1df0ce8.svg "Source: GitHub copilot-cli issue")

Even a login that succeeds can still be refused at the first request. Business and Enterprise admins can switch the CLI off by policy, and a seat assigned through an organisation is governed by that organisation's settings.

## Common Copilot CLI commands and slash commands

| Command | What it does | Working example |
|---|---|---|
| `copilot` | Starts an interactive session in the current directory | `copilot` |
| `-p` / `--prompt` | Runs one prompt and exits | `copilot -p "Summarize the failing tests"` |
| `--model` | Picks the model for this run | `copilot --model gpt-5` |
| `/model` | Switches model inside a session | `/model` |
| `--continue` | Reopens the most recent session | `copilot --continue` |
| `--resume` | Lets you pick an earlier session | `copilot --resume` |
| `--allow-tool` | Pre-approves one tool without a prompt | `copilot -p "Show status" --allow-tool 'shell(git status)'` |
| `--deny-tool` | Blocks a tool even if something else allows it | `copilot --deny-tool 'shell(rm)'` |
| `--allow-all-tools` | Approves every tool, with no prompts | `copilot -p "Run the tests" --allow-all-tools` |
| `/login` | Signs in from inside a session | `/login` |

`-p` is the scripting entry point: it answers once and exits, so a cron job or CI step has nothing to type into.

To fix the model at launch, use `--model`; `/model` changes it mid-session. The list you can choose from depends on your plan and your admin's policy, so a name that works on your laptop can fail on a teammate's.

In interactive mode, the CLI asks before running a tool. With `-p` nobody is there to answer, so an unapproved tool stalls or fails. Allow the narrow tools you need with `--allow-tool`, and keep `--allow-all-tools` for disposable environments.

![A terminal running a one-prompt command with -p, a tool approval dialog sitting unanswered on screen, an empty chair in…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/5a73b2f1-a8b5-45f1-8583-89aa79c42afa/github-copilot-cli-install-sign-in-and-plan-limi-50b70f01.webp)

## Models, premium requests and rate limits in practice

### Copilot CLI model list and request multipliers

Because Copilot bills by plan and premium request, not by token, what a model costs you per prompt is its multiplier.

The chart shows the legacy multipliers from [a GitHub copilot-cli issue](https://github.com/github/copilot-cli/issues/718): Claude Haiku 4.5 at 0.33x, Claude Sonnet 4.5 and GPT-5 at 1x, Claude Opus 4.6 1M at 6x.

In that legacy data, Opus 4.6 1M as a scripted-loop default was costly: according to GitHub, one prompt **spent what six Sonnet 4.5 prompts did**. Check the current multiplier for Opus 5.5 or Sonnet 5.5 before choosing a default. These come from an issue thread, not current docs, so verify them before budgeting.

Per [models.dev](https://models.dev), context windows ran from GPT-5.6 Luna at 1,050,000 tokens through [Claude](https://claude.com/pricing) Fable 5.2 at 1,000,000 and [Gemini](https://gemini.google/subscriptions) 3.8 Flash at 936,000.

The smallest in that data was Claude Haiku 4.5 at 200,000, about a fifth of the others, so a large repo wouldn't fit in one pass.

Across providers, list prices per million tokens span a wide range, per [Agent2L](https://agent2l.com/providers/github-copilot):

- MAI-Code-2-Flash: $0.05–0.25
- Gemini 4 Hydrogen: $1.5–7.5
- Sonnet 5.5: $2–10
- Gemini 4 Neon: $3–15
- Opus 5.5: $4–20
- Fable 5.2: $8–40

![API list prices per million tokens for Copilot CLI models](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/293d14a5-f40e-4148-a0c6-765429d8d73b/github-copilot-cli-install-sign-in-and-plan-limi-153f14ea.svg "Source: Agent2L")

At the low end of list price, **Fable 5.2 costs 160 times the cheapest model**. Copilot never charges you these amounts, so read them as a guide to which model your multiplier will punish.

I have no confirmed overage price to give you. Read the per-request rate on GitHub's billing page before a job runs unattended, and set a spending limit on the account.

No rate-limit figures were published, so I won't invent any. Treat any rate-limit error mid-run as a signal to stop and back off, not to retry in a tight loop.

## Common Copilot CLI errors and fixes

| Failure | Symptom | Cause | Fix |
|---|---|---|---|
| Auth failure | Login prompt reappears, or a request is rejected as unauthenticated | No valid session, or an expired or revoked credential | Sign in again from the CLI and confirm the account is the one holding the Copilot seat |
| Token scope | Authenticated, but Copilot requests are refused | The token lacks the permission Copilot needs, or is the wrong token type | Use the sign-in flow the docs describe, or a token with the scope GitHub documents for Copilot |
| Copilot not enabled by org policy | Access denied despite a valid seat | The organization or enterprise has the CLI or its feature switched off | Ask an org owner to enable it in the Copilot policy settings |
| Quota exhausted | Requests stop until your allowance resets | Your plan's premium request allowance is used up | Wait for the reset, change plan, or pick a model with a lower multiplier |
| Rate-limited | Requests fail intermittently under load | Too many requests in a short period | Slow down and retry later; do not hammer the endpoint |
| Model not on plan | Chosen model is missing or refused | Your plan or org policy does not include that model | Switch to a model your plan lists, or have an owner enable it |
| Proxy trouble | Connection errors or TLS failures behind a corporate network | Traffic is blocked or intercepted before it reaches GitHub | Set the proxy environment variables and trust your proxy's certificate |
| Non-interactive hang | A scripted run sits waiting forever | The agent is asking for approval nobody can give | Pass the non-interactive flags from the docs and pre-approve the tools it needs |

**Check the policy before you rotate credentials.** If a token works for the GitHub API but not for Copilot, **suspect its type or scope, not the network**.

### Quota and rate-limit errors

Quota is your plan's allowance and returns on its reset schedule; a rate limit is a burst ceiling and clears if you back off. Only retry the second.

### Non-interactive Copilot CLI failures in CI

Decide up front which tools it may use, pass those permissions explicitly using the flags in GitHub's CLI docs, and give the job a timeout so a stuck run fails loudly instead of holding a runner.

## Token-based Copilot in CI

Run it in CI as a signed-in identity: a token, a one-shot prompt and a short list of allowed tools. Skip any of those and the job hangs on a login prompt nobody will ever answer.

### Safeguards for token-based Copilot CLI runs

Create a fine-grained personal access token that carries Copilot access and nothing else, and store it as a CI secret.

Take the exact environment variable name and permission from GitHub's docs. These safeguards keep an unattended run bounded:

- A minimal-scope token secret, so a leaked log exposes Copilot access and nothing more.
- Tool permissions limited to named tools with `--allow-tool`, so the agent cannot run commands you never listed.
- A one-shot prompt with `-p`, wrapped in the job's own timeout, so a stuck run ends instead of spending.
- A premium request budget cap in GitHub billing settings, so a looping pipeline hits a wall.

### Add an MCP server to Copilot CLI

Register the server through the CLI's MCP configuration, following GitHub's docs for the command and config file location. MCP adds tools. It doesn't change which models Copilot offers or what your plan allows, and every tool call still draws on the same quota.

## What Activepieces does about this

The trouble this article keeps returning to is that Copilot CLI is a signed-in agent and not a keyed API, so a pipeline that treats it like a library has no identity, no policy and no record of what the agent did.

Activepieces doesn't change that. The sign-in, the plan allowance and the premium request multipliers stay with GitHub. What we cover is the part around the agent: which of your apps it can reach, and who is accountable when it does.

Activepieces exposes your connected apps to an MCP-capable agent as tools, through [Activepieces MCP](https://www.activepieces.com/mcp), on cloud or self-hosted. You register that server in the CLI's MCP configuration the way GitHub's docs describe.

![The Activepieces MCP Server configuration interface with setup instructions for Claude, Cursor, Windsurf and other clients.](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/ff7f3dff-f733-4e19-8254-96c00caccb0d/run-minicpm-v-4-7-locally-step-by-step-setup-gui-30d9d332.webp)

Access then follows the model your team already uses: RBAC, SSO and SCIM decide which apps the agent may connect to, so a job doesn't inherit whatever a shared token happens to unlock.

The tool list stays short and reviewable, which is the same discipline the allow-list gives you inside the CLI.

When a run goes wrong, you can see where. Open the run detail and each tool call appears on its own with its input and output, instead of being folded into one opaque result.

That helps with the "it hung" and "it spent too much" cases above, because you can tell whether the stall was a tool waiting on an approval or a call that looped.

The core is open source under the MIT licence, so you can read what the tool layer does and run it inside your own network. MoneyGram and Moneypenny run Activepieces in production.

Every call the agent makes through the server still draws on your Copilot plan, so keep the budget cap and the timeout from the CI section in place.

## Frequently asked questions

Right after people hit the plan limits, models and permission list above, which all still apply, these five questions come up. Each answer is short, and none of them depends on a figure you can't check against GitHub's docs.

### Free tier and API-style use

Does Copilot CLI have a free tier? It depends on what GitHub currently offers on its Copilot Free plan, and that changes. Check the plans page before you build on it.

Treat access as something your account's plan grants, not something every signed-in user gets by default.

Can I call Copilot CLI from my own code like an API? Not in the way you call a metered API. There's no key to put in a request header.

You sign in as a user, and the CLI acts as that user. If you wrap it in a script, the script inherits that sign-in, so expect auth errors the moment it runs somewhere nobody has logged in.

### Premium requests and model choice

Does Copilot CLI use my premium requests? Assume yes, and confirm it. Agent work is billed against your plan's allowance, not against a per-call charge.

Check GitHub's current billing docs for which actions count and how each model is weighted. If you skip that check, you find out when the quota error shows up mid-task.

Which models can I pick in Copilot CLI? The list depends on your plan and on what GitHub has enabled for your account or organization. The CLI shows you what is available to you.

Don't hard-code a model name from a blog post, including this one. Look at the selector in your own session.

### Can Copilot CLI run without a person at the keyboard?

It has a non-interactive mode, but that mode can't answer prompts. Anything that would normally ask you for approval has to be settled up front through the permission list, or the run stops or fails.

Authenticate the account first, grant only the tools the job needs, and test it in a throwaway directory before you put it on a schedule.

## Related reading

- [GitHub Copilot Fusion: Pricing and Limits (2026)](https://www.activepieces.com/blog/github-copilot-fusion-pricing-and-limits-2026)
- [Automate GitHub Copilot: Issues to Pull Requests](https://www.activepieces.com/blog/automate-github-copilot-issues-to-pull-requests)
- [GitHub Copilot Fusion Explained for AI Coding Teams](https://www.activepieces.com/blog/what-is-github-copilot-fusion-ai-model-routing)

## References

- [models.dev and whichllm](https://models.dev)
- [Agent2L](https://agent2l.com/providers/github-copilot)
- [GitHub copilot-cli issue](https://github.com/github/copilot-cli/issues/718)
