GitHub Copilot CLI
docs.github.com
GitHub's Copilot coding agent in your terminal: build, debug and refactor code by chatting, with access to your repos, issues and pull requests.
- Pricing
- Paid
- Published
- Nov 4, 2026
Next steps
- OpenCode
Both tools are listed under AI Code Assistant, cli, and coding-agent.
- Pi
Both tools are listed under AI Code Assistant, AI Developer Tools, cli, and coding-agent.
- Kimi Code CLI
Both tools are listed under AI Code Assistant, cli, and coding-agent.
- CodeGraph
- Agent Skills (Addy Osmani)
- RTK (Rust Token Killer)
What it does
GitHub Copilot CLI brings AI coding assistance to the command line. It is powered by the same agentic harness as GitHub's Copilot coding agent, so you can work locally and synchronously with an agent that understands your code and GitHub context: build, edit, debug and refactor code, and plan and execute multi-step tasks. Your repositories, issues and pull requests are reachable in natural language using your existing GitHub authentication. GitHub's MCP server ships by default and custom MCP servers can be added. Every action is previewed and nothing runs without your explicit approval. It runs on Linux, macOS and Windows (PowerShell 6 or later) and installs via the install script, Homebrew (brew install copilot-cli), WinGet (winget install GitHub.Copilot) or npm (npm install -g @github/copilot); then run copilot. An active GitHub Copilot subscription is required, and organizations can disable it in their Copilot policies. The software is distributed under GitHub's own Copilot CLI license, not an open-source license.

Use cases
- Ask an agent in the terminal to fix a failing test and review each command before it runs
- Triage GitHub issues and draft pull requests from the command line
- Extend a terminal coding agent with custom MCP servers
Frequently asked questions
- Do I need a subscription?
- Yes, an active GitHub Copilot subscription is required; organization admins can disable the CLI by policy.
- How do I install it?
- Install script, Homebrew (brew install copilot-cli), WinGet (winget install GitHub.Copilot) or npm (npm install -g @github/copilot), then run copilot.
- Does it run commands automatically?
- Every action is previewed and needs your explicit approval.
- Is it open source?
- No. The repository hosts the CLI under GitHub's own Copilot CLI license.