Installation Reference
Installation Reference
Section titled “Installation Reference”This guide covers everything you need to get Vox running on any platform.
Quick Install (30 seconds)
Section titled “Quick Install (30 seconds)”Cargo-free quick install (recommended for end users)
Section titled “Cargo-free quick install (recommended for end users)”# Linux / macOS / WSLcurl -fsSL https://raw.githubusercontent.com/vox-foundation/vox/main/scripts/install.sh | bash -s -- --install
# Windows (PowerShell)$tmp = Join-Path $env:TEMP "vox-install.ps1"Invoke-WebRequest -Uri "https://raw.githubusercontent.com/vox-foundation/vox/main/scripts/install.ps1" -OutFile $tmppowershell -NoProfile -ExecutionPolicy Bypass -File $tmp -InstallThe scripts download a standalone vox-bootstrap release binary, verify it against release checksums.txt, and run it.
Repository install (contributors / local development)
Section titled “Repository install (contributors / local development)”git clone https://github.com/vox-foundation/vox && cd vox
# Linux / macOS / WSL./scripts/install.sh
# Windows (PowerShell).\scripts\install.ps1Scripts prefer local cargo run --locked -p vox-bootstrap when run inside a repo checkout with Cargo available (best for debugging and contribution flows). Outside that path, scripts fetch and run a standalone vox-bootstrap release binary. When --install is used, bootstrap attempts a binary-first install from GitHub Releases (SHA-256 via checksums.txt; latest tag from the GitHub API so asset names match vox-<tag>-<triple>.*), then falls back to cargo install --locked --path crates/vox-cli from the resolved repo root (VOX_REPO_ROOT or upward search for crates/vox-cli/Cargo.toml). Source fallback therefore requires a repo checkout plus Cargo. Artifact layout and targets { binary release contract. See crates/vox-bootstrap/README.md.
| Flag / args | Effect |
|---|---|
--dev / -Dev (PS1) | Request rustfmt + clippy (with --apply) |
--install-clang / -InstallClang | Install clang where supported (e.g. winget LLVM.LLVM on Windows) |
--apply / -Apply | Actually run installs; without it, the tool plans only |
--install / -Install | Install vox after checks (binary-first; source fallback) |
--source-only / -SourceOnly | Skip release binary path and force source install |
--version <tag> / -Version <tag> | Pin release install to a specific tag (for example v1.2.3) |
plan | Machine plan as JSON on stdout (exit 1 if requirements missing); plan --human for debug text |
Examples: ./scripts/install.sh --install --version v1.2.3, .\scripts\install.ps1 -Install, ./scripts/install.sh --install --source-only, ./scripts/install.sh plan.
Then build the CLI with cargo build -p vox-cli and run vox doctor to verify your local environment.
Cross-Platform Verification Checklist
Section titled “Cross-Platform Verification Checklist”After installing vox, run:
vox doctorThis check focuses on:
| Check | Required? | How to Fix |
|---|---|---|
Rust ≥ 1.90 (workspace rust-version) | ✅ | rustup.rs |
| Node.js ≥ 18 | Optional | nodejs.org |
| Git | ✅ | git-scm.com |
| C compiler (MSVC/gcc/clang) | ✅ | Platform-specific (see below) |
| clang / LLVM (optional) | Optional | The workspace patches aegis with pure-rust defaults so typical Windows + MSVC builds do not require clang-cl for Turso. Use scripts/install.* --install-clang only if you hit a toolchain that still expects native crypto builds. |
| Google AI Studio Key | Recommended | Free at aistudio.google.com/apikey |
| OpenRouter Key | Optional | openrouter.ai/keys |
| Ollama | Optional | ollama.com |
| VoxDB directory writable | ✅ | ~/.vox/ must exist and be writable |
AI Provider Keys
Section titled “AI Provider Keys”Vox uses a three-layer model cascade — you get free AI with just a Google account:
Layer 1: Google AI Studio (Free, Primary)
Section titled “Layer 1: Google AI Studio (Free, Primary)”No credit card required. Provides Gemini 2.5 Flash, Flash-Lite, and Pro.
# Get your key (takes 10 seconds):# https://aistudio.google.com/apikey
export GEMINI_API_KEY=YOUR_KEYLayer 2: OpenRouter (Optional)
Section titled “Layer 2: OpenRouter (Optional)”Free API key unlocks dozens of :free models (Devstral 2, Qwen3 Coder, Llama 4 Scout, Kimi K2). Paid key unlocks SOTA models (DeepSeek v3.2, Claude Sonnet 4.5, GPT-5, O3).
export OPENROUTER_API_KEY=YOUR_KEYLayer 3: Ollama (Optional, Local)
Section titled “Layer 3: Ollama (Optional, Local)”Zero-auth local inference. Install Ollama, pull a model, and Vox auto-detects it.
ollama pull llama3.2# Vox detects Ollama on localhost:11434 automaticallyVerify Your Environment
Section titled “Verify Your Environment”vox doctorExample output:
✓ Rust / Cargo cargo 1.82.0 ✓ Node.js v20.11.0 (>= v18) ✓ Git git version 2.44.0 ✓ C Compiler MSVC Build Tools found ✓ Google AI Studio Key configured (free Gemini models available) ○ OpenRouter Key (optional) not configured ○ Ollama Local (optional) not running ✓ VoxDB directory C:\Users\you\.vox (writable)
✓ All checks passed — you're ready to build with Vox!Docker
Section titled “Docker”# Build from sourcedocker build -t vox .
# Optional: image with `vox populi` (HTTP control plane)docker build -t vox:mens --build-arg VOX_CLI_FEATURES=mens .
# Run MCP serverdocker run -e GEMINI_API_KEY=... -p 3000:3000 vox
# MCP + in-container mens sidecar (background `vox populi serve` on 9847)docker run -e VOX_MESH_MESH_SIDECAR=1 -e GEMINI_API_KEY=... -p 3000:3000 -p 9847:9847 vox:mens
# Example multi-service mens compose (see `examples/mens-compose.yml`)# docker compose -f examples/mens-compose.yml up
# Full stack with docker composecp .env.example .env # fill in GEMINI_API_KEYdocker compose upPlatform-Specific Notes
Section titled “Platform-Specific Notes”Windows
Section titled “Windows”- MSVC (C++):
winget install -e --id Microsoft.VisualStudio.2022.BuildTools(include Desktop development with C++ workload in the installer UI when prompted). - clang-cl (Turso / aegis):
winget install -e --id LLVM.LLVMsoclang-cl.exeis onPATH(often underC:\Program Files\LLVM\bin). Or run.\scripts\install.ps1 -InstallClang. - One-liner bootstrap:
.\scripts\install.ps1 -Dev -InstallClangthencargo build -p vox-cli. - WSL:
wsl ./scripts/install.sh --dev --install-clangavoids MSVC/clang-cl friction for some workflows.
- C Compiler:
xcode-select --install(shipsclangfor most crates). - Turso: Usually satisfied by Xcode CLT; if
aegisstill fails,brew install llvmand follow Homebrew’sPATHnotes.
- C Compiler:
sudo apt-get install build-essential(Debian/Ubuntu). - clang (recommended for Turso):
sudo apt-get install clangor./scripts/install.sh --install-clang.