Edit

Share via


Install AI Shell

AI Shell is an interactive shell that provides a chat interface for AI language models. For the best experience, install the following packages:

  • The command-line shell (aish) interface
  • The AIShell module for PowerShell

This article explains how to install these packages on your system.

System requirements

AI Shell is supported on the following platforms:

  • Windows 10 or higher
  • PowerShell 7.4.6 or higher
  • Windows Terminal

Install AI Shell

For convenience, you can use installaishell.ps1 script to install AI Shell.

On Windows, this script:

  • Installs aish.exe to $env:LOCALAPPDATA\Programs\AIShell and adds it to your PATH
  • Installs the AIShell module to your module path location

On macOS, this script:

  • Installs the aish executable to /usr/local/AIShell
  • Due to some limitations, the AIShell module is not installed

Note

This script only works on Windows and Mac systems. Linux users need to follow the manual installation instructions.

Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-aishell.ps1') }"

To uninstall AI Shell, invoke the same expression with the -Uninstall parameter.

Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-aishell.ps1') } -Uninstall"

To manually install AI Shell, follow the instructions for your platform:

  1. Download the latest version from the GitHub releases page. Choose the file that matches your system architecture. For example, AIShell-1.0.0-preview.2-win-x64.zip.

  2. Extract the contents of the ZIP file to a location on your system.

  3. Add the extracted folder to your PATH environment variable.

  4. Install the AI Shell module from the PowerShell Gallery.

    Install-PSResource -Name AIShell
    

Next steps