AI Shell is an interactive shell that provides an AI chat interface with language models.
Microsoft AI Shell brings an AI‑assisted, conversational experience to your terminal. It runs as a standalone CLI (aish) or as a sidecar in Windows Terminal/PowerShell/iTerm2 (macOS), where it can suggest commands, fix errors, and even insert code directly into your shell.
It ships with AI agents for Azure OpenAI (GPT‑4o) and Copilot in Azure, with great integration for PowerShell and Azure admin workflows. It’s currently in preview, with active development and new capabilities like running commands in the terminal and MCP (Model Context Protocol) server support.
Have you ever needed to look up some syntax for an Azure command like New-AzResourceGroup, tried to remember an obscure PowerShell switch, or copy‑pasted a one‑liner from a forum, and thought ‘What does this do?” This is where AI Shell saves the day.
AI Shell aims to remove that friction by putting an AI copilot next to your prompt, so you can ask for the command you meant to type, get a fix for an error, or make changes to a script without leaving the terminal. In the sidecar view, it can even insert the generated code directly into your active shell for quick execution and testing.
AI Shell is an interactive, AI‑assisted command‑line environment developed by Microsoft. Seeing this as “chat meets CLI” in your head will help you understand. It includes pluggable agents that connect to AI models and assistance providers. Out of the box, you get:
You can run AI Shell as:
aish executable.The project is open on GitHub (formerly “Project Mercury”) and is evolving quickly.
Here are some of the core capabilities IT Pros will care most about.
Ask AI Shell to write or revise PowerShell/Azure CLI commands:
eastus.”Launching via the PowerShell module gives a split‑pane experience. Here are some examples of what you can do:
Recent previews add built‑in tools like run_command_in_terminal, allowing the AI to execute a command and test/iterate based on the output, which is powerful for diagnostics and guided remediation.
Let me offer some helpful and common real-world scenarios that IT Pros should find immediately helpful.
Prompt: “Create an Azure CLI command to deploy a resource group named rg-aiops in eastus.”
Result (typical):
az group create --name rg-aiops --location eastus
When a command fails, paste the error into the sidecar and ask for remediation. In recent previews, the agent can also re‑run a corrected command and iterate based on the new output.
As this feature environment is in preview, we’re still learning about installing and setting it up. But the ideal fundamental posture is to use Windows, PowerShell 7, and Windows Terminal.
Using PowerShell 7, run the following command:
winget install Windows.PowerShell
You can run this single command to install all the necessary tools to create the environment on your computer.
Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-aishell.ps1') }"
To start, type:
Start-AIShell
Windows 10 and Windows 11 with PowerShell 7.4.6 or higher are required. Windows Terminal is an ideal choice for a shell. PSReadLine v2.4.2-beta2 or higher is also needed, but this will get installed for you during the main installation script.
You can also utilize iTerm2 on macOS. You’ll need:
As an example, here are the technical release notes for the prior version (at time of writing), 1.0.0-preview 7 from September of 2025:
aish in sidecar pane to inherit proper PATH (#403)AI Shell complements Microsoft’s broader Copilot strategy by bringing AI directly to the place admins spend their day: the terminal. For IT Pros and network admins, that means:
Microsoft AI Shell is an interactive, AI‑powered command‑line experience that integrates directly with PowerShell, Windows Terminal, and iTerm2. It uses AI “agents” like Azure OpenAI and Copilot in Azure to help users find commands, fix errors, and understand output more easily. The tool enhances productivity by adding conversational, AI‑assisted workflows to the CLI.
AI Shell can be installed on Windows by running Microsoft’s installation script in PowerShell:Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-aishell.ps1') }".
Once installed, it becomes available as the aish CLI and can also integrate with the PowerShell module for side‑by‑side use in Windows Terminal.
AI Shell lets you ask natural‑language questions that it translates into CLI operations, helping with tasks like generating PowerShell commands, debugging errors, or performing Azure operations. With its agents, it can explain commands, craft scripts, summarize errors, and assist with Azure CLI or Azure PowerShell tasks. This makes complex CLI operations more intuitive and accessible.
AI Shell currently supports the Azure OpenAI agent, which connects to GPT‑4o, and the Copilot in Azure agent, which specializes in Azure‑specific tooling and guidance. Its architecture also allows users to create or add custom agents. Support varies by preview version, and new capabilities continue to be added as the tool evolves.