GitHub's AI assistant for the command line
October 30, 2025
## Release notes for v1.2.0 Unfortunately, [it is time to say goodbye](https://github.blog/changelog/2025-09-25-upcoming-deprecation-of-gh-copilot-cli-extension/). 😢 Thank you all for the time and consideration you took in trying out the extension. With your feedback, we were able to bring to you an even better, more powerful Copilot experience in the terminal. If you haven't done so already, we encourage you to: - Give [Copilot CLI](https://github.com/github/copilot-cli) a try the next time you code in the terminal. - Experiment with the new `gh agent-task` [command set](https://cli.github.com/manual/gh_agent-task) to help you kick off or monitor agent tasks running on GitHub. Thank you for being part of our journey! 🚀
Features
June 17, 2025
## Release notes for v1.1.1 ### Security fixes This release contains multiple security fixes for underlying dependencies including Go `net/http` package and GitHub CLI extension library. ### Using native extension update notices Prior to `v1.1.1`, `gh copilot` notified users about new releases: ```shell A new release of copilot is available: 1.1.0 → 1.1.1 To upgrade, run: gh extension upgrade copilot --force https://github.com/github/gh-copilot ``` With `v1.1.1`, these notifications will now be handled by GitHub CLI as [`v2.66.0` release](https://github.com/cli/cli/releases/tag/v2.66.0) introduced native support for extension update notices. This removes double notices that some users will notice.
February 10, 2025
## Release notes for v1.1.0 ### Enable Copilot Free usage in the CLI Copilot free users may now use `gh copilot`. `gh copilot` uses the Copilot free chat limitations.For more information on usage limits, see the [Copilot usage limits docs](https://docs.github.com/en/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/about-github-copilot-free#what-are-the-limitations-of-copilot-free)
January 6, 2025
## Release notes for v1.0.6 ### Fixed command flag injection from execution of `gh copilot suggest` responses - Resolved an [issue](https://github.com/github/gh-copilot/issues/99) where command line options from Copilot responses could be injected into some built-in shell commands, causing unexpected behavior.
Features
September 12, 2024
## Release notes for v1.0.5 ### Disable metrics opt-in prompt during `gh copilot alias` Before `v1.0.5`, users who [set up optional helpers](https://github.com/github/gh-copilot?tab=readme-ov-file#set-up-optional-helpers) would experience an issue due to our metrics opt-in prompt causing their shell to hang. With `v1.0.5`, `gh copilot alias` will not prompt for metrics opt-in. Fixes https://github.com/github/gh-copilot/issues/40. ### Improved Android 64-bit support Though the GitHub CLI does not officially support Android, `gh copilot` was building and distributing 64-bit releases for ARM and AMD distributions. In the process of improving GitHub CLI extension publishing, concerns were raised whether the `android-amd64` and `android-arm64` worked as expected. We have done more extensive efforts to test these builds, supporting the Termux community where we can. 🫶 See https://github.com/cli/gh-extension-precompile/issues/50 for more information.
July 9, 2024
## Release notes for v1.0.4 ### Improved network routing GitHub Copilot in the CLI now supports improved client-server routing based on your GitHub Copilot plan. For help troubleshooting connectivity problems, see ["Troubleshooting network errors for GitHub Copilot"](https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-network-errors-for-github-copilot).
May 15, 2024
## Release notes for v1.0.3 This patch release focuses on quality of life fixes impacting users: ### Multi-account support GitHub Copilot in the CLI now supports multi-account users using `--hostname` flag or `GH_HOST` environment variable to specify the GitHub hostname for commands that would otherwise assume the `github.com` host. ### Improved exception reporting In order to better identify recurring exceptions since GA, exception reporting now captures the following limited dimensions only if optional usage analytics is enabled: - GitHub host used _(`github.com`)_ - operating system _(`darwin`, `linux`, `windows`)_ - CPU architecture _(`386`, `amd64`, `arm64`, `arm`)_ - build SHA _(`65174eb5689c8c6916d66d3948bd41c2c12284f7`)_ The GitHub Copilot in the CLI team wants thank our community for its trust to responsibly and transparently explain where and why usage metrics are gathered! :bow:
Features
April 29, 2024
## Release notes for v1.0.2 While the GitHub Copilot in the CLI team reviews GA adoption and feedback, we wanted to address some quality of life fixes impacting users: ### Enhance `ghcs` to work for Alpine Linux `ghcs` uses a temporary directory with 3 placeholders required for BSD. This has been enhanced to use 6 placeholders needed for Alpine Linux. For more information, see https://github.com/github/gh-copilot/issues/66 with thanks to @cirolosapio! ### Fix PowerShell instructions to avoid word splitting For Windows users with spaces in PowerShell profile path, the PowerShell alias setup instructions would break due to word splitting. This has been addressed in the documented and generated setup instructions. For more information, see https://github.com/github/gh-copilot/issues/49 with thanks to @breadboi!
March 22, 2024
# Release notes for v1.0.1 ## What's New ### Fix Windows bug impacting `gh copilot alias` use of `ghcs` and `ghce` `v1.0.1` is primarily a fix impacting Windows users around the new `ghcs` and `ghce` aliases as the executable file extension was being emitted in shell configuration output. Big thanks to feedback from several within our user community including @ifalatiksetlog, @xt0rted, @rlove, @masewo, @dubois as well as out of office help from @colinshum! :heart: For more information, see https://github.com/github/gh-copilot/issues/47.
March 21, 2024
# Release notes for v1.0.0 Following our [public beta](https://github.blog/changelog/2023-11-08-github-copilot-in-the-cli-now-in-public-beta/), we're excited to announce the general availability of GitHub Copilot in the CLI! :tada: Bringing GitHub Copilot to your terminal, GitHub Copilot in the CLI assists with any task in the terminal: - Suggest commands using natural language for unfamiliar or hard to remember use cases. - Explain commands with finer details of arguments, flags, and expected outcomes. - Execute suggested commands in supported shells to stay in the flow. ## What's New ### Introducing support for `ghcs` and `ghce` aliases and executing commands for popular shells Before GitHub Universe, we knew our community would need these two features from the [Copilot for CLI technical preview](https://githubnext.com/projects/copilot-cli/), however your feedback in https://github.com/github/gh-copilot/issues/2 and https://github.com/github/gh-copilot/issues/5 confirmed it! `gh copilot alias` will generate aliases for Bash, PowerShell, or Zsh that use fewer keystrokes to jump into the `gh copilot` experience: - `ghcs` for `gh copilot suggest` - `ghce` for `gh copilot explain` <details> <summary> <b>For instructions to setup aliases, <code>gh copilot alias --help</code></b> </summary> <p> - Bash ```shell echo 'eval "$(gh copilot alias -- bash)"' >> ~/.bashrc ``` - PowerShell ```powershell $GH_COPILOT_PROFILE = Join-Path -Path $(Split-Path -Path $PROFILE -Parent) -ChildPath "gh-copilot.ps1" gh copilot alias -- pwsh | Out-File ( New-Item -Path $GH_COPILOT_PROFILE -Force ) echo ". $GH_COPILOT_PROFILE" >> $PROFILE ``` - Zsh ```shell echo 'eval "$(gh copilot alias -- zsh)"' >> ~/.zshrc ``` </p> </details> In addition to making you faster, the new `ghcs` alias is the basis for the new `Execute command` option to execute and preserve generated suggestions: ```shell $ ghcs upgrade GitHub CLI on MacOS Welcome to GitHub Copilot in the CLI! version 1.0.0 (2024-03-18) I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency Suggestion: brew upgrade gh ? Select an option [Use arrows to move, type to filter] > Copy command to clipboard Explain command Execute command Revise command Rate response Exit ``` > [!NOTE] > We are open to supporting additional popular shells with help from our community providing the same experience! :bow: ### Configuration for `Execute command` confirmation prompt GitHub Copilot in the CLI prompts for confirmation when executing commands. This safeguard will return you to the interactive loop if declined, focusing on safety by minimizing accidents. ```shell $ ghcs upgrade GitHub CLI on MacOS Welcome to GitHub Copilot in the CLI! version 1.0.0 (2024-03-18) I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency Suggestion: brew upgrade gh ? Select an option > Execute command ? Are you sure you want to execute the suggested command? [Use arrows to move, type to filter] > No Yes ``` However if you feel the trade off between safety and speed is important, `gh copilot config` provides an option that can change the confirmation prompt default, allowing faster execution of commands by removing the need to select `Yes`. ```shell $ gh copilot config ? What would you like to configure? > Default value for confirming command execution ? Default when asked to confirm execution of a generated suggestion? [Use arrows to move, type to filter] > No Yes ``` ### Copy to clipboard exits immediately With GitHub Copilot's goal of keeping you in the flow, the `Copy to clipboard` option has been changed to exit immediately based on feedback from https://github.com/github/gh-copilot/issues/2. ```shell $ ghcs upgrade GitHub CLI on MacOS Welcome to GitHub Copilot in the CLI! version 1.0.0 (2024-03-18) I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency Suggestion: brew upgrade gh ? Select an option > Copy command to clipboard Command copied to clipboard! ```