CLI tool
github/copilot-cli avatar
github/copilot-cli

GitHub Copilot CLI: the coding agent GitHub ships to your terminal

GitHub Copilot CLI brings the power of Copilot coding agent directly to your terminal.

11,453 stars1,985 forksShellNOASSERTION

At a glance

What is it?
GitHub's coding agent for the terminal, installed with curl, Homebrew, npm or WinGet, defaults to Claude Sonnet 4.5, and asks for approval before every action it takes.
Who is it for?
Copilot CLI is a good fit for someone already inside the GitHub ecosystem who wants agentic edits in a terminal without giving up review control, and a poor fit if your organization has not enabled it or if you want a tool you can read and build on. The concrete starting point is the install script followed by `/login`, then a look at `--experimental` for autopilot and at the LSP setup if you want go-to-definition in a language the CLI does not bundle a server for.
Can I use it commercially?
Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Shell, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • github/copilot-cli11,453 ★ · +205
Star history
Repository2026-10-102026-11-22
github/copilot-cli11.2k11.5k

205 Stars in the last 43 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Five ways to install the same binary

The repository is tiny. The tracked files are `LICENSE.md`, `README.md`, `changelog.md`, `install.sh`, a `container/` directory and a `.github/` directory, with the language recorded as Shell. Everything you run comes from a downloaded artifact rather than from building a source tree, which is the first thing to know about this project.

For macOS and Linux the install script is the documented path:

bash
curl -fsSL https://gh.io/copilot-install | bash

The script reads two environment variables that the README explains. `VERSION` pins a specific build, and `PREFIX` decides the install directory, defaulting to `/usr/local` when you run as root and `$HOME/.local` otherwise. Piping to `sudo bash` installs to `/usr/local/bin`. A pinned version into a custom directory looks like this:

bash
curl -fsSL https://gh.io/copilot-install | VERSION="v0.0.369" PREFIX="$HOME/custom" bash

The package managers cover the rest. Homebrew installs `copilot-cli` on macOS and Linux, with a `copilot-cli@prerelease` formula for prereleases. WinGet installs `GitHub.Copilot` on Windows. npm installs `@github/copilot` globally, and that path is the only one the README says works on all three platforms at once, so it is the sensible choice for a machine where you would rather not run a shell installer.

Windows also carries a prerequisite that is easy to miss: PowerShell v6 or higher. The README lists Linux, macOS and Windows as supported platforms and puts the PowerShell requirement in parentheses against Windows only.

Authentication decides what the agent can reach

On first launch, if you are not already logged in to GitHub, the CLI prompts you to run the `/login` slash command and follow the on-screen instructions. That path uses your existing GitHub session, which is the reason the tool can talk about your issues and pull requests without extra setup.

There is a second route for headless machines: a fine-grained personal access token with the `Copilot Requests` permission. The README walks through creating one at the personal access tokens page, adding that single permission under `Permissions`, then exposing it through `GH_TOKEN` or `GITHUB_TOKEN`, in that order of precedence. One permission for the whole tool is a reasonable scope, and it is what you would want in CI where there is no browser to complete an interactive login.

The third gate is organizational, and it is the one that catches people out. If you reach Copilot through an organization or enterprise, your owner or administrator can disable Copilot CLI in the organization settings, and the README says plainly that you cannot use the tool if they have. There is no local workaround for that, and it is worth checking before spending time on the install.

The cost sits in the same place. Each prompt you submit reduces your monthly quota of premium requests by one, and the README links to the page explaining what counts as a premium request.

Model choice defaults to Claude, not to GitHub's own

This is the detail that tells you what the tool is. By default `copilot` runs on Claude Sonnet 4.5, and the `/model` slash command switches to other available models, which the README says include Claude Sonnet 4 and GPT-5. GitHub is distributing an agent whose default underlying model is Anthropic's, with OpenAI's as an alternative.

The consequence for evaluation is straightforward. Choosing between Copilot CLI and another terminal agent is not only a choice of harness; it is also a choice of which models you can reach from inside it, and Copilot CLI's model list is whatever the /model command offers. If your work depends on a particular model being reachable, that list is the thing to check.

The harness itself is described as the same agentic harness behind GitHub's Copilot coding agent, with the CLI presenting it synchronously and locally instead of as a background job on a server. The README's own framing is that the project is early: it asks for feedback and describes rapid iteration, which is consistent with three releases within about seven hours in the tag list (v1.0.106-4 on 2026-11-02, -5 and -6 on 2026-11-03).

Approval before action, and experimental mode for autopilot

The stated control model is that every action is previewed before execution and nothing happens without explicit approval. That is the design decision most worth checking against your own risk tolerance, since it means the agent can read your repository, run commands and wait for you at each step.

Experimental mode is where the agent stops waiting as often. It is enabled either by launching with `copilot --experimental` or by running the `/experimental` slash command from inside a session, and the setting persists in your config afterwards, so the flag is a one-time thing. The headline feature in that mode is autopilot, which you enter by pressing `Shift+Tab` to cycle through modes and which encourages the agent to keep working until a task is finished.

LSP support that requires you to bring the server

The CLI supports the Language Server Protocol for go-to-definition, hover information and diagnostics, but it does not bundle LSP servers, so you install the one your language needs.

bash

The official documentation covers how to configure language servers.

What the changelog reveals about the agent plumbing

`changelog.md` sits in the repository root and is the place to read per-release changes. The most recent release tags are v1.0.106-6 (2026-11-03), v1.0.106-5 (2026-11-03) and v1.0.106-4 (2026-11-02).

Editorial conclusion

Copilot CLI is a good fit for someone already inside the GitHub ecosystem who wants agentic edits in a terminal without giving up review control, and a poor fit if your organization has not enabled it or if you want a tool you can read and build on. The concrete starting point is the install script followed by `/login`, then a look at `--experimental` for autopilot and at the LSP setup if you want go-to-definition in a language the CLI does not bundle a server for. Expect the quota line in the README, one premium request per prompt, to be the first thing you check when the tool starts costing you.

Frequently asked questions

Can I use Copilot CLI for free?

No. The README lists an active Copilot subscription as a prerequisite, and Copilot CLI cannot be used if your organization owner or enterprise administrator has disabled it. Even with a subscription, each prompt you submit reduces your monthly quota of premium requests by one.

How much does a Copilot CLI cost?

The install itself is free through the install script, Homebrew, WinGet or npm, so the cost is the subscription rather than the binary. The README links to the Copilot plans page for pricing and points out that every prompt consumes one premium request from your monthly quota.

Is GitHub Copilot CLI like Claude code?

It is a terminal coding agent with a similar shape, running on the same agentic harness as GitHub's Copilot coding agent and previewing every action before execution. The documented model list is the practical difference: it defaults to Claude Sonnet 4.5 and offers other models, including Claude Sonnet 4 and GPT-5, through the `/model` command.

Official sources

  1. github/copilot-cli on GitHub
  2. Issues
  3. README
  4. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/github-copilot-cli.svg)](https://hysenlabs.com/projects/github-copilot-cli)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/github-copilot-cli.svg)](https://hysenlabs.com/projects/github-copilot-cli)

Was this useful?