Skip to content
aicoolies logo
copilot cli

GitHub Copilot CLI

GitHub Copilot in your terminal

GitHub Copilot CLI is a coding agent for the terminal. It answers questions, writes and debugs code, runs commands and works with GitHub.com, for example by making changes and opening a pull request. It has an interactive mode with plan mode, a programmatic -p mode, local and cloud sandboxes, MCP servers, custom agents, hooks, skills and an ACP server. It runs on Linux, macOS and Windows and is included in every Copilot plan.

About GitHub Copilot CLI

GitHub Copilot CLI brings GitHub's Copilot agent to the terminal. GitHub's documentation describes it as an agent that can answer questions, write and debug code, run commands and interact with GitHub.com, for example by making changes to a project and creating a pull request. It is available with every Copilot plan; for Copilot provided by an organization, an administrator must enable the Copilot CLI policy.

Running copilot starts an interactive session with a default ask/execute mode and a plan mode, toggled with Shift+Tab, in which Copilot asks clarifying questions and builds an implementation plan before writing code. The -p option runs a single prompt and exits, and options such as --allow-tool pre-approve specific tools. Inside a session, /sandbox enable restricts filesystem, network and system access, and copilot --cloud starts a session in a cloud sandbox, which GitHub labels as public preview.

Copilot CLI can be customized with custom instructions, MCP servers, custom agents, hooks, skills and Copilot Memory, and it can act as an agent for other tools through the Agent Client Protocol (ACP). The /model command or --model option selects a model from Copilot's list, which includes models from OpenAI, Anthropic, Google, xAI and other providers; availability depends on plan and client. You can also connect your own OpenAI-compatible, Azure OpenAI or Anthropic endpoint, including local models served by Ollama or vLLM, as long as the model supports tool calling and streaming.

Each interaction spends GitHub AI Credits based on the tokens processed, at a rate that depends on the model, and choosing an extended 1 million token context or higher reasoning uses more credits. Copilot CLI installs through npm (Node.js 22 or later), Homebrew, WinGet or an install script, and runs on Linux, macOS and Windows via PowerShell or WSL.

Pricing & Platform Specs

Pricing Summary

Copilot CLI is included in every GitHub Copilot plan; when Copilot comes from an organization, the Copilot CLI policy must be enabled. Usage spends GitHub AI Credits based on tokens processed, at a rate that depends on the model. Copilot Free and Copilot Student (verified students) cost nothing and include an allowance of AI credits with Auto model selection only. Copilot Pro costs $10/month (1,500 AI credits a month including flex allotment), Pro+ $39/month (7,000) and Max $100/month (20,000). Copilot Business costs $19 and Copilot Enterprise $39 per granted seat per month, with 1,900 and 3,900 AI credits per user per month. The CLI can also use your own model provider.

full pricing breakdown →

Compare plan costs — select tools to compare eligible subscriptions. Plans with unconfirmed prices, excluded product access, or additional usage charges are omitted.

Supported Platforms

Terminal CLI for Linux, macOS and Windows (PowerShell or WSL); install via npm (Node.js 22+), Homebrew, WinGet or install script; ACP server for third-party clients

Explore categories, tags & use cases
Codex logo

Codex

Top Pick

OpenAI coding agent for app, editor, terminal, and cloud work

Codex is OpenAI's coding agent for software development across the Codex app, editor, terminal, and cloud tasks. It helps write, review, debug, refactor, and automate code, with ChatGPT plan access for managed surfaces and API-key usage for CLI, SDK, and IDE workflows. The open-source CLI and SDK support local repository work, while cloud features add GitHub review, Slack/Linear integrations, worktrees, skills, MCP, and automations.

paidTelemetry
Amp logo

Amp

Top Pick

Agentic coding tool by Sourcegraph (formerly Cody)

Amp is a multi-model coding agent for terminal, web, macOS/iOS, and IDE-connected workflows. Vendor docs describe the same agent and threads across surfaces, with remote Orbs (incl. self-hosted), local Runners, Dial modes (low / medium / high / ultra), shared threads, MCP, plugins, and BYOK / linked ChatGPT subscriptions. Pricing spans a free Hobby tier, optional Megawatt ($20/mo) and Gigawatt ($200/mo) Individual plans, no-extra-charge Teams workspaces, pay-as-you-go credits, and Enterprise.

freemium

Open-source AI coding agent for the terminal

Open-source (MIT) AI coding agent from Anomaly for the terminal, desktop and web. It works with many LLM providers via /connect, local models through Ollama, the pay-as-you-go OpenCode Zen gateway and OpenCode Go subscriptions. OpenCode 2.0 runs one shared background service for all clients and adds the @opencode/client package and Code Mode, which composes MCP and OpenAPI tools in a single script.

Open Source

Side-by-Side Comparisons

copilot cli
GitHub Copilot CLI
vs
Codex logo
Codex

Copilot CLI vs Codex: GitHub's Multi-Model Terminal Agent or OpenAI's? (2026)

GitHub Copilot CLI and OpenAI's Codex CLI are both terminal agents that read your repository, edit files, run commands and can be scripted in CI. They differ in models, billing and where else they run. Copilot CLI is included in every Copilot plan, runs Claude, GPT, Gemini and Grok models on GitHub AI credits and works directly with GitHub issues and pull requests. Codex is OpenAI's open-source CLI, part of an agent that also runs in ChatGPT, on the web and in an IDE extension, with usage included in ChatGPT plans. This comparison uses each vendor's current documentation.

GitHub Copilot CLICodex
copilot cli
GitHub Copilot CLI
vs
Claude Code logo
Claude Code

Copilot CLI vs Claude Code: Multi-Model GitHub Agent or Claude-Native Agent?

GitHub Copilot CLI and Claude Code are both coding agents that work in your terminal: they read a project, edit files, run commands and can be scripted. The differences are in models, billing and reach. Copilot CLI comes with every GitHub Copilot plan, offers models from several providers and meters usage in GitHub AI Credits. Claude Code runs Anthropic's Claude models and is paid through a Claude subscription or an Anthropic account.

GitHub Copilot CLIClaude Code

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

optional / review badge

Optional image for a README or docs page. The snippet links to this review. No link is required.

GitHub Copilot CLI reviewed on aicoolies
[![GitHub Copilot CLI reviewed on aicoolies](https://aicoolies.com/api/badge/tool/copilot-cli.svg)](https://aicoolies.com/reviews/copilot-cli-review)

FAQ

What is GitHub Copilot CLI?

GitHub Copilot CLI is a coding agent for the terminal. It answers questions, writes and debugs code, runs commands and works with GitHub.com, for example by making changes and opening a pull request. It has an interactive mode with plan mode, a programmatic -p mode, local and cloud sandboxes, MCP servers, custom agents, hooks, skills and an ACP server. It runs on Linux, macOS and Windows and is included in every Copilot plan.

Is GitHub Copilot CLI free?

GitHub Copilot CLI offers a free tier alongside paid plans. Copilot CLI is included in every GitHub Copilot plan; when Copilot comes from an organization, the Copilot CLI policy must be enabled. Usage spends GitHub AI Credits based on tokens processed, at a rate that depends on the model. Copilot Free and Copilot Student (verified students) cost nothing and include an allowance of AI credits with Auto model selection only. Copilot Pro costs $10/month (1,500 AI credits a month including flex allotment), Pro+ $39/month (7,000) and Max $100/month (20,000). Copilot Business costs $19 and Copilot Enterprise $39 per granted seat per month, with 1,900 and 3,900 AI credits per user per month. The CLI can also use your own model provider.

Is GitHub Copilot CLI still maintained?

Yes — GitHub Copilot CLI is active. Its listing was last verified on October 25, 2026.

What are the best GitHub Copilot CLI alternatives?

The first editor-selected GitHub Copilot CLI alternatives are Codex, Amp, OpenCode.

How does GitHub Copilot CLI score in our review?

The published editorial review lists GitHub Copilot CLI at 80/100 overall across speed, privacy, and developer experience. Check the review's evidence status and test metadata for its verification level.