In short.
This is GitHub's official how-to for installing and signing in to GitHub Copilot CLI, aimed at developers who already have a Copilot plan, and its main catch is that the CLI needs an active Copilot subscription and can be disabled by an organisation or enterprise administrator. The page covers prerequisites (a subscription, PowerShell v6 or higher on Windows, Node.js 22 or later for npm), install commands for npm, WinGet, Homebrew and a shell install script, a direct download from the copilot-cli releases page, and authentication through the /login command or a fine-grained personal access token with the Copilot Requests permission. The page does not state prices, the current CLI version, or what the CLI can do once installed, so those remain unknown from this page.
Researched and written by an AI model and checked by a second AI model. How it works
This report covers the GitHub Docs page Installing GitHub Copilot CLI at [https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli], as captured on 13 November 2026. The page links to the Copilot plans page, the authentication page, the usage overview, the command reference and the copilot-cli releases repository, but it does not reproduce their content, so details that appear only on those pages are not covered here. The site navigation and footer add context only. The page gives no expected output for its install commands, install script, token creation or sign-in steps, and no step for confirming that an installation succeeded, so it does not show that any step works on a particular system. Pricing, licence terms, data handling, the CLI's feature set, its current version and the page's last edit date are not stated on the page and remain unknown.
The overview
What this resource is
The resource is a single documentation page on GitHub Docs titled Installing GitHub Copilot CLI, at [https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli]. It is a how-to article in the Copilot product documentation, under Copilot CLI, then Set up Copilot CLI. Its stated purpose is to teach you how to install Copilot CLI so you can use Copilot directly from the command line.
The page belongs to GitHub, and the footer shows GitHub Inc. 2026. The page is a guide to the tool and is not the tool itself.
Overall assessment
As an installation guide, the page is concrete and complete for its narrow purpose. It names the prerequisites, gives one copyable command per install route, explains the install script's environment variables, and describes both ways to sign in. It is first-party documentation, so the commands and package names come from the vendor.
Its limits are structural. It says nothing about what Copilot CLI does after installation, what it costs, or how it handles your code and data. It also lists no update command, although the heading says Installing or updating; it sends you to a separate command reference for that. A reader should treat it as a setup checklist and not as an evaluation of the tool.
Who it is for
The page is for developers who want to run GitHub Copilot from a terminal and already hold a Copilot subscription. The page says Copilot CLI is available with all Copilot plans. The page metadata marks it as applicable to the Free, Pro and Team version of the docs and to Enterprise Cloud, and does not list the Enterprise Server versions.
It also speaks to people who get Copilot through an employer. If an organisation owner or enterprise administrator has disabled Copilot CLI in the organisation or enterprise settings, the page says you cannot use it, and it points those users to the policy management documentation. Beginners can follow the steps. Basic comfort with a terminal and with choosing between package managers is assumed.
What the page lets you do
The page lets you install Copilot CLI by four methods and by direct download. For npm (all platforms) the command is npm install -g @github/copilot. For WinGet on Windows it is winget install GitHub.Copilot. For Homebrew on macOS and Linux it is brew install --cask copilot-cli. For macOS and Linux an install script is offered through curl or wget from [https://gh.io/copilot-install].
Each of npm, WinGet and Homebrew has a prerelease variant: npm install -g @github/copilot@prerelease, winget install GitHub.Copilot.Prerelease, and brew install --cask copilot-cli@prerelease. The install script supports a custom install directory through the PREFIX variable and a pinned version through the VERSION variable. Executables can also be downloaded from [https://github.com/github/copilot-cli/releases/].
On sign-in, the page covers the /login slash command prompted on first launch, and a fine-grained personal access token approach. The CLI's own features, such as modes, models, plugins or automation, are not described on this page.
Using it
Requirements
The listed prerequisites are an active GitHub Copilot subscription and, on Windows, PowerShell v6 or higher. The npm route additionally needs Node.js 22 or later. If your access comes from an organisation or enterprise, the Copilot CLI policy must be enabled there.
For the token route, you need a fine-grained personal access token created under your personal account, with the Copilot Requests permission. The page says that permission is only available on user-owned fine-grained tokens, so you must not choose an organisation as the resource owner. Supported operating systems beyond the named platforms (Windows, macOS, Linux) are not stated, and hardware requirements are not stated.
How installation and sign-in work
The page documents four ways of getting the same CLI onto your machine. npm installs the @github/copilot package globally. WinGet and Homebrew install through those platforms' package managers (Homebrew uses a cask). The install script is fetched from [https://gh.io/copilot-install] and piped into bash. By default it installs to /usr/local when run as root and to $HOME/.local when run as a normal user, and the page notes that adding | sudo bash installs to /usr/local/bin.
If your npm configuration has ignore-scripts=true in ~/.npmrc, the page says you must run npm_config_ignore_scripts=false npm install -g @github/copilot instead. The page does not explain why, so the reason is unknown.
For authentication, the CLI prompts for /login on first launch if you are not logged in to GitHub. For token-based sign-in, the token is exported in an environment variable. The page lists COPILOT_GITHUB_TOKEN, GH_TOKEN and GITHUB_TOKEN, in that order of precedence. The page does not describe what data the CLI sends or stores.
Setup steps
A typical path from the page is: confirm you have a Copilot subscription and that your organisation has not disabled the CLI; pick one install route that matches your platform; run its command; start the CLI; and complete /login when prompted. If you prefer not to use the /login method, create a fine-grained personal access token under your personal account with Account permission Copilot Requests, choose the repository access level you want (public only, all, or selected repositories), generate it and export it as one of the three environment variables.
The page ends by pointing to Using GitHub Copilot CLI and the CLI command reference. The page does not give the command for starting the CLI, and it gives no verification step such as a version check, so both are unknown from this page.
Worked example from the page
The page gives one worked example for pinning a version and a location with the install script: curl -fsSL https://gh.io/copilot-install | VERSION="v0.0.369" PREFIX="$HOME/custom" bash. This installs version v0.0.369 into a custom directory under your home folder. The page uses v0.0.369 only as an illustration, and the page does not say whether it is current. If you omit VERSION, the script installs the latest version.
A simpler example for a Node.js user is the single line npm install -g @github/copilot, which the page presents as the npm route for all platforms. The page does not show the expected output of either command.
Assessment & evidence
Limitations and cautions
The main caution is the install script route. It downloads a script from [https://gh.io/copilot-install] and pipes it straight into bash, optionally with sudo. That runs remote code with your privileges, and the page describes no checksum, signature or review step. GitHub's documentation supplies this installer address and presents it as an official route, but a careful user may prefer a package manager or may download the script and read it first. The page does not describe what the script does internally.
The token route needs care. The page tells you to choose the repository access level yourself, and the all-repositories option covers current and future repositories. A narrower choice follows least privilege. The page does not describe how the token is stored by the CLI.
Other gaps: no update command on this page, no uninstall steps, no troubleshooting, no list of supported operating system versions or architectures, and no description of what the CLI does with your code. The page is also versioned for the free, pro, team and enterprise cloud docs only. Enterprise Server users should not assume it applies.
Reasoning behind this assessment
The page's strength is that its commands, prerequisites and policy caveats are stated explicitly in plain text, so they can be taken as the vendor's own instructions. Pricing, licence, data handling and the CLI's feature set do not appear on the page, so they stay unknown; the navigation menu only names other pages and does not establish those facts.
The page is first-party and written as procedural steps, which supports treating the install commands as the vendor's recommended route. The page shows no expected output or verification step, so it does not by itself establish that the commands succeed on any particular machine.
Alternatives and choices within the page
The page itself offers the main choice: which install route to use. Choose an installation route that matches your platform and prerequisites: npm covers all platforms but needs Node.js 22 or later, WinGet is for Windows, and Homebrew and the install script are for macOS and Linux. The install script also offers a custom directory and a pinned version, and the direct download from the releases page lets you download the executable for your platform, unpack it and run it. The page offers prerelease variants but does not compare their stability or the difficulty of the installation routes.
The page does not compare Copilot CLI with other terminal assistants or with Copilot inside an editor, so no comparison is made here. The navigation lists other Copilot surfaces by name, but this page does not describe them.
Evidence base
The source is the GitHub Docs page Installing GitHub Copilot CLI at [https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli], as captured on 13 November 2026. Its article body supplies the prerequisites, commands, environment variables, the policy caveat and the authentication steps. Its embedded page data lists the applicable docs versions, and its footer supplies the copyright line and the statement that the Docs are open source.
The site navigation names related pages but does not describe their content. Release notes, the copilot-cli repository contents and the install script itself are separate sources that this page does not reproduce.
Access & freshness
Costs
The page does not give a price. It states only that an active GitHub Copilot subscription is required and links to the Copilot plans page, which is a separate page. The cost of the CLI itself, any usage limits and any usage-based charges are therefore unknown from this page.
The page's navigation lists other documentation titles about billing and usage, but this page does not summarise their content. Installing through npm, WinGet, Homebrew or the script is not described as carrying a separate charge, but the page does not say either way.
Rights and licence
The page footer reads GitHub Inc. 2026 and says that all Docs are open source, with a Make a contribution link to the GitHub docs repository. The page does not name a licence for the documentation text, and it does not state the licence terms of the Copilot CLI software or the @github/copilot package. Reuse permissions for both the documentation and the software are therefore unknown, because the page supplies no specific licence terms.
Using the CLI is tied to a Copilot subscription and to the terms that govern it, which the page does not reproduce.
Freshness
The page was captured on 13 November 2026. The page does not show a last-updated date, so the date of its latest edit is unknown. The CLI version v0.0.369 shown in the install-script example is an illustration for the VERSION variable and not a statement of the current release.
Install commands, package names and requirements such as the Node.js version can change. Check the live page at [https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli] before relying on any detail here.
Suggested actions
Before installing, confirm that you hold a Copilot plan and, if you get Copilot from work, ask your administrator whether the Copilot CLI policy is enabled. Choose an installation route that matches your platform and prerequisites. The page offers prerelease variants but does not compare their stability or the difficulty of the installation routes. If you use the install script, consider downloading and reading it first, and avoid sudo unless you need a system-wide install.
If you use a personal access token, create it under your personal account with only the Copilot Requests permission and the narrowest repository access that suits you. After installation, follow the page's links to the usage overview and the command reference for the update command and for features this page does not cover. For cost and data handling, read the Copilot plans page and the relevant policy pages, which are separate from this page.
