- GitHub Copilot CLI lets you use AI directly inside Command Prompt or PowerShell on Windows 11.
- The tool helps generate, debug, and explain commands and code using natural language.
On Windows 11, you can now install the GitHub Copilot CLI to access the chatbot from Command Prompt or PowerShell in Windows Terminal. In this guide, I’ll outline the steps to complete the process.
What’s GitHub Copilot CLI?
GitHub Copilot CLI is an AI coding assistant you can use to get help while using one of the available command-line shells, such as Command Prompt or PowerShell. You can use it to get assistance with running commands or coding, as it can help you build, debug, and understand code in natural language.
Although this chatbot is powered by OpenAI GPT-5, this isn’t your traditional Copilot. This is GitHub Copilot, a paid coding agent, but there’s a free tier that offers limited access to the chatbot to help you get started.
In this guide, you’ll learn the steps to install and uninstall the GitHub version of Copilot that you can use through the Command Prompt or PowerShell.
Install Copilot CLI on Windows 11
To install the GitHub version of Copilot on Windows 11, follow these steps:
-
Open Start.
-
Search for Command Prompt (or Terminal), right-click the top result, and choose the Run as administrator option.
-
Type this command to install Copilot in the Windows Terminal and press Enter:
winget install GitHub.Copilot

-
Type this command to start the Copilot command-line tool and press Enter:
Copilot

-
Choose the option to trust Copilot access to the system drive.
Quick note: If you choose 1, then the chatbot will only have access during the current session. If you choose 2, the chatbot will have access during the current and future sessions. -
Select the GitHub.com option to sign in and access the chatbot.
-
Open your GitHub account on the website and confirm the one-time code.
Once you complete the steps, you can proceed to use the CLI version of Copilot to perform tasks with AI.
Uninstall Copilot CLI on Windows 11
To uninstall the GitHub version of Copilot on Windows 11, follow these steps:
-
Open Start.
-
Search for Command Prompt (or Terminal), right-click the top result, and choose the Run as administrator option.
-
Type this command to install Copilot in the Windows Terminal and press Enter:
winget uninstall GitHub.Copilot

-
(Optional) Open File Explorer.
-
Open this path:
C:\Users\YourUsername
-
Select and delete the .copilot folder that contains your “config.json” and the session state.

-
(Optional) Open Credential Manager.
-
Click on Windows Credentials
-
Select the copilot-cli entry under the “Generic Credentials” section and click the Remove button.

After you complete the steps, the CLI version of Copilot will be uninstalled from your computer.