
GitHub Copilot CLI
PaidGitHub Copilot as a terminal agent that knows your GitHub context.
GitHub Copilot CLI brings the Copilot coding agent to the terminal. You build, debug, and explore code in natural language, and it works with your repositories, issues, and pull requests on GitHub. It needs an active Copilot subscription and lets you switch models with /model.
Best for
Teams already on GitHub Copilot that want an agent next to gh in the terminal.
Review summary
The natural choice if your team already pays for Copilot and lives in GitHub issues and pull requests.
Pros
- +Included with Copilot plans
- +Native GitHub issues and PR context
- +Several models via /model
Cons
- −Requires a Copilot subscription
- −Org admins can disable it
Install
The official README lists an install script, Homebrew, WinGet, and npm.
macOS / Linux:
curl -fsSL https://gh.io/copilot-install | bash
Homebrew:
brew install copilot-cli
Windows (PowerShell 6+):
winget install GitHub.Copilot
npm (all platforms):
npm install -g @github/copilot
Quickstart
Start inside a project folder:
cd /path/to/your/repo
copilot
If you are not signed in, run this inside the session and follow the prompts:
/login
For CI or headless machines, set a fine-grained PAT with the "Copilot Requests" permission in GH_TOKEN or GITHUB_TOKEN instead. Switch models any time with /model.


