Microsoft has launched the public preview of AI Shell, a command-line utility that integrates generative AI capabilities into Windows PowerShell. It features two AI agents: Azure OpenAI and Copilot in Azure, with the option to add more. The installation requires Windows 10 or later and PowerShell version 7.4.6, using the script:
Invoke-Expression “& { $(Invoke-RestMethod ‘https://aka.ms/install-aishell.ps1’) }”.
Configuration involves adding API keys after executing the Start-AIShell command. AI Shell can execute commands, provide explanations for cmdlets, assist in writing PowerShell scripts, and generate Python code. It includes commands like /code post to send generated code to the terminal, /code copy to copy code, resolve-error to send errors for resolution, and Invoke-AIShell to send queries.