Skip to content
G

Agent harnesses

GitHub Copilot CLI

Microsoft's terminal client for the Copilot coding agent

11,441 stars Proprietary

GitHub Copilot CLI is Microsoft's terminal surface for its Copilot coding agent, running the same agentic harness as GitHub's hosted agent. It reaches repositories, issues and pull requests in natural language, ships with GitHub's MCP server, previews every action before execution, and drives hosted models including Claude Sonnet 4.5 and GPT-5. It needs an active Copilot subscription.

What GitHub Copilot CLI is

GitHub Copilot CLI is Microsoft’s terminal client for the Copilot coding agent. It runs the same agentic harness as GitHub’s hosted coding agent, with your repositories, issues and pull requests reachable in natural language, authenticated with your existing GitHub account.

Key features

  • Terminal-native - work with the agent in your shell, no context switching.
  • GitHub context - repositories, issues and pull requests through natural language.
  • MCP by default - ships with GitHub’s MCP server, and custom MCP servers extend it.
  • Approval-first - every action is previewed before execution; nothing runs without explicit approval. --allow-all-tools removes that gate and should be treated accordingly.
  • Model choice - defaults to Claude Sonnet 4.5, with Claude Sonnet 4 and GPT-5 selectable through /model.
  • Headless mode - published as a container image that runs the CLI as a server for Copilot SDK clients.

Install

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

Or through a package manager:

brew install copilot-cli
winget install GitHub.Copilot
npm install -g @github/copilot

Linux, macOS and Windows are supported; Windows needs PowerShell 6 or later. Launch with copilot, then /login.

Requirements

An active Copilot subscription is required. If your organisation or enterprise provides Copilot, an administrator can disable the CLI in policy, and it will not run regardless of your plan. A fine-grained personal access token with the “Copilot Requests” permission also authenticates.

What it does not do

Copilot CLI drives hosted models. It does not run a local checkpoint, and the source is not open. The harness is the local part, not the model.

At a glance

Who's behind it

GitHub

GitHub stars
https://github.com/github/copilot-cli
11,441 stars
License
Proprietary
Platforms
cli
Install
curl -fsSL https://gh.io/copilot-install | bash
Model support
Hosted models through GitHub Copilot: Claude Sonnet 4.5 by default, plus Claude Sonnet 4 and GPT-5. No local model support.