Install the latest prebuilt binary for your platform and add shell integration:
curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | shInstall a specific release:
curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | sh -s -- v0.1.2Customize the shell wrapper name:
curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | AI_SHELL_NAME=a shSkip shell integration:
curl -fsSL https://raw.githubusercontent.com/b4fun/ai/main/install.sh | AI_INSTALL_SHELL=0 shDeveloper install:
npm install
npm linkUpgrade the installed binary to the latest release:
command ai upgradeUpgrade to a specific release:
command ai upgrade v0.1.2If shell integration changes after an upgrade, refresh it:
command ai upgrade
command ai shell install zsh --name ai # or bash/fish