The Problem
Setting up an AI CLI tool shouldn't feel like a project. But here's what it used to look like:
- Install Node.js
npm install -g @aiiware/aii- Install Docker
- Run the server setup script
- Configure your API key
- Finally:
aii hello
Six steps. Most people gave up at step 3.
One Command
Starting today, the entire setup is a single curl:
curl -fsSL https://aiiware.com/install.sh | bashThat's it. The installer handles everything:
- Node.js — Installs via nvm if you don't have it
- Aii CLI — Installs the
@aiiware/aiinpm package globally - Docker — Installed on first
aiirun if missing - Aii Server — Pulled and started automatically
- API key — Setup wizard walks you through it
From a completely clean machine to your first AI response — one command.
Watch It
Here's the full end-to-end install on a clean Ubuntu machine with nothing pre-installed:
And here's the npm install path for developers who already have Node.js:
How It Works
The install process has two stages that work together seamlessly.
Stage 1: install.sh
The curl installer is a ~450-line bash script that:
- Detects your OS and architecture (macOS, Linux, WSL2)
- Checks for Node.js — skips if you already have v18+
- If Node.js is missing: detects nvm/volta/fnm, or installs nvm fresh
- Installs
@aiiware/aiivia npm - Verifies the installation
- Offers to run your first command right there
Stage 2: Zero-Friction Bootstrap
The first time you run aii, a separate bootstrap system kicks in:
- Checks for Docker — offers to install if missing
- Starts the Docker daemon if it's stopped
- Pulls and launches the Aii Server container
- Runs the API key setup wizard
- Executes your original command
You never see "please install Docker" as an error. It just happens.
What About Existing Setups?
The installer is idempotent. Running it again is safe:
- Node.js already installed? Skipped.
- Aii CLI already installed? Upgraded to latest.
- Docker and server already running? Health check passes instantly, no bootstrap output.
# First time: full install
curl -fsSL https://aiiware.com/install.sh | bash
# Second time: just upgrades
curl -fsSL https://aiiware.com/install.sh | bash
# → "Aii CLI already installed: 0.13.12"
# → "Upgrading Aii CLI..."
# → "Aii CLI installed: 0.13.13"Keeping It Updated
Once installed, you can update Aii CLI from within itself:
aii install # Update to latest
aii install 0.13.10 # Pin to a specific versionNo need to re-run the curl installer — aii install handles self-updates directly.
CI/CD and Automation
The installer works in non-interactive environments too:
# Piped stdin — no prompts, sensible defaults
curl -fsSL https://aiiware.com/install.sh | bash
# Explicit non-interactive
curl -fsSL https://aiiware.com/install.sh | bash -s -- --non-interactive
# Pin a specific version
AII_VERSION=0.13.10 curl -fsSL https://aiiware.com/install.sh | bashUninstall
Clean removal is one flag away:
curl -fsSL https://aiiware.com/install.sh | bash -s -- --uninstallThis removes the Aii CLI npm package. Your config (~/.aii/) is preserved unless you choose to delete it. Node.js and Docker are left untouched.
Supported Platforms
| Platform | Install Method | Status |
|---|---|---|
| macOS (Apple Silicon) | nvm + npm | Tested |
| macOS (Intel) | nvm + npm | Should work |
| Ubuntu 24.04 | nvm + npm | Tested |
| Debian 12+ | nvm + npm | Should work |
| WSL2 | nvm + npm | Should work |
| Windows (native) | Experimental | WSL2 recommended |
Get Started
curl -fsSL https://aiiware.com/install.sh | bashChoose your model — Claude, GPT, Gemini, DeepSeek, Ollama, or 300+ via OpenRouter. Code, translate, research, automate — all from the terminal.