You Can Now Use ChatGPT from Windows Terminal; Here’s How

Nov. 6, 2024



Microsoft has been facing challenges in the race to integrate AI features into platforms likeWindows. While the Copilot Plus PCs and features likeRecalllook nice on paper, they’ve been pulled back due to issues. However, Windows’ enterprise and productivity AI features seem to be going strong as the Redmond giant has rolled out ChatGPT to the Terminal app.

The latest Canary build of the Terminal app brings support for ChatGPT and GitHub Copilot alongside Azure OpenAI. Having an AI chat assist you with Terminal and programming-related tasks can boost your productivity while working. It’s also context-aware, meaning it will form answers based on your current active tab or task.

The feature can be accessed from the Terminal Chat section inside Settings. Users can then select the platform they want to use. Using ChatGPT in Terminal is not free, though, and requires an API key.

How to Use ChatGPT in Windows Terminal

How to Use ChatGPT in Windows Terminal

After you’ve installed the latestTerminal Canary build, you can use ChatGPT in Windows Terminal by following these steps.

You can now start asking questions and interact with ChatGPT like you would on other platforms.

The new feature ChatGPT on Windows Terminal isn’t very fancy. Right now, it just feels like a regular ChatGPT window where you can ask questions, just like you’d do on a browser. However, the only unique thing it seems to do right now is tocontextualize based on the active shell.

For example, if I ask ChatGPT questions while being in Powershell, it will return results relevant to the shell. In the example below, I asked “best commands” and it returned with commands like the Get-Process, Service, etc., all related to Powershell.

I tried asking “how to make an account” while in Azure Cloud Shell and ChatGPT tailored a response that’s relevant to Azure. It’s also worth noting that thehistory is shared.

Out of curiosity, I also tried asking general questions unrelated to Powershell and it returned “I’m here to assist with questions related to shell command”, which was expected.

While GitHub Copilot and Azure AI are present, we weren’t able to test them out. They should work just as well as ChatGPT, though, with their own differences in responses, of course. Overall, I seegreat potentialin the feature,especially for developerswho use Windows Subsystem for Linux, system administrators, DevOps, and basically any role or people who use the Terminal excessively.

Terminal Chat is still in experimental stages, and we’re unsure if it will ever make it to the stable version of the Windows Terminal app. It’s fairly simple to use and will definitely save time. That said, there’sno keyboard shortcut assignedto the feature yet which means you have to access it manually each time. We hope Microsoft adds one if it intends to keep the feature.

What are your thoughts on Terminal chat. Would you use ChatGPT for programming-related tasks in the terminal? Let us know in the comments below.