Skip to main content
This guide covers all installation methods for switchAILocal, from quick local setup to production Docker deployments.

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, vibe for zero-config providers

Installation Methods

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:
  1. Create .ail state directory
  2. Build the switchAILocal binary
  3. Start the server in background
  4. Save PID to .ail/local.pid
  5. 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:
  1. Navigates to frontend/
  2. Installs dependencies (npm install)
  3. Builds React app (npm run build)
  4. Inlines all assets (CSS, JS, SVGs)
  5. 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

Expected response:

Troubleshooting

Error: go: directive requires go version >= 1.24Solution:
Error: bind: address already in useSolution:
Error: error building imageSolution:
Error: config.yaml not foundSolution:
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