Comprehensive Guide for Utilizing ChatGPT in Windows Terminal
Essential Information
- The Windows Terminal (Canary) now provides direct access to ChatGPT and various AI services within the application.
- To initiate this feature, click the down arrow adjacent to the new tab option, choose “Terminal Chat,”and then click on “Set up AI provider”. Enter your preferred AI provider’s API key and click “Store,”followed by “Save”.
- Terminal Chat is designed to understand the context, offering support for coding tasks and terminal commands. It allows users to copy suggested commands and save chat history as a text file.
The integration of AI within the Windows ecosystem has advanced significantly. With the latest Canary build of the Terminal app, Microsoft introduces the ability to interact with AI chatbots directly from the terminal interface.
This innovative feature allows users to engage with one of three AI providers: OpenAI, GitHub Copilot, or Azure OpenAI via an API. After setting up, you can obtain contextually relevant help with coding and terminal commands.
Accessing ChatGPT, GitHub Copilot, or Azure OpenAI in Windows Terminal
Before following the steps outlined below, ensure you meet the necessary requirements.
Requirements
First, note that the Terminal Chat feature is still in the experimental phase and is only available in the latest Canary version of the Terminal app.
Second, you will need an API key from the AI service provider you plan to use.
- For OpenAI, create your API key here.
- To create an API for Azure OpenAI, go here.
- For GitHub Copilot, you will need an active subscription, which can be obtained from here.
Step-by-Step Instructions
- After installing the Terminal (Canary) app, open it.
- Locate the down arrow next to the + icon on the window bar and select Terminal Chat.
- Click on Set up AI provider.
- You can also opt for Settings.
- Select Terminal Chat (Experimental) from the sidebar menu.
- Click to expand the service provider you wish to use.
- For OpenAI, input the API key in the Secret key field. Click Store.
- If you have multiple AI providers, check the box next to Set as active provider to make it the default.
- Finally, click Save.
- Click the down arrow once more and select Terminal Chat.
- That’s it! You can now begin chatting with the AI from your selected service provider directly within the terminal application.
The interface for Terminal Chat is similar to regular AI chatbots but is optimized to fit the terminal’s compact design. It comes with fewer features, including a “Clear history” button for resetting the chat and an “Export” button to save chat history as a text file. A convenient copy button appears beside recommended commands.
Do keep in mind that there is currently no keyboard shortcut to open Terminal Chat quickly; it must be accessed via the down arrow.
Leave a Reply