Prerequisites
Required
- Go 1.24+ - Download
- Git - For cloning the repository
- Terminal/Shell - Command line access
Optional
- Docker - For containerized deployment
- Node.js 18+ - For building the Management UI
- CLI Tools -
gemini,claude,vibefor zero-config providers
Installation Methods
- Local (Hub Script)
- Manual Build
- Docker
Using ail.sh (Recommended)
The unified operations hub script handles building, dependencies, and lifecycle management automatically.1
Clone Repository
2
Check Dependencies
Verify Go and Docker are installed:Expected output:
macOS users: Run
./ail.sh install to auto-install missing dependencies via Homebrew.3
Start Server
Build and start in one command:The script will:
- Create
.ailstate directory - Build the
switchAILocalbinary - Start the server in background
- Save PID to
.ail/local.pid - Write logs to
server.log
4
Verify Installation
Check server status:Test the API:
Hub Script Commands
command
Build and start the serverOptions:
-d, --docker- Use Docker runtime-b, --build- Force rebuild (Docker only)-f, --follow- Follow logs after starting
command
Stop the running server
command
Restart the server (stop + start)
command
Show status of all instances (local, Docker, bridge)
command
View server logsOptions:
-f, --follow- Follow log output
command
Verify dependencies (Go, Docker)
command
Auto-install dependencies (macOS only, requires Homebrew)
command
Manage the bridge agent (for advanced integrations)
Building the Management UI
The optional web dashboard provides a modern interface for configuration and monitoring.1
Install Node.js
Requires Node.js 18+ and npm:
2
Build UI
Run the build script:This script:
- Navigates to
frontend/ - Installs dependencies (
npm install) - Builds React app (
npm run build) - Inlines all assets (CSS, JS, SVGs)
- Outputs single-file
static/management.html(~226 KB)
3
Verify Build
4
Access Dashboard
Start the server and visit:
The Management UI requires a secret key. See Management Dashboard for setup.
Post-Installation Configuration
Verification Tests
- Health Check
- List Models
- Chat Completion
Troubleshooting
Go version too old
Go version too old
Error:
go: directive requires go version >= 1.24Solution:Port 18080 already in use
Port 18080 already in use
Error:
bind: address already in useSolution:Docker build fails
Docker build fails
Error:
error building imageSolution:Config file not found
Config file not found
Error:
config.yaml not foundSolution:Module download fails
Module download fails
Error:
go: error loading module requirementsSolution:System Requirements
Minimum
- CPU: 2 cores
- RAM: 512 MB
- Disk: 100 MB
- OS: Linux, macOS, Windows
Recommended
- CPU: 4+ cores
- RAM: 2 GB
- Disk: 1 GB (for logs & cache)
- OS: Linux/macOS for CLI tools
Additional RAM required if running local models with Ollama or LM Studio.
Next Steps
Configure Providers
Set up multiple AI providers and accounts
Quickstart Guide
Make your first API request
Configuration
Explore advanced settings