AUDIO

Listen to this page

0:00
Chapters

    Getting started

    One script installs a fully running instance on any OS. It then doubles as manager and doctor (./setup.sh / ./setup.ps1, modes below).

    Quick install

    # Linux / macOS — one entry point
    bash <(curl -fsSL https://raw.githubusercontent.com/holai-org/holai/main/setup.sh)
    # — or after cloning: ./setup.sh
    
    # Windows
    iwr https://raw.githubusercontent.com/holai-org/holai/main/setup.ps1 -OutFile setup.ps1; ./setup.ps1
    

    The script asks:

    1. Source — clones the holai repository into the chosen directory when run standalone (git; falls back to a GitHub zipball without git).
    2. Docker — checks the engine; when missing offers to install it right from the script (Linux: distro package manager or get.docker.com; macOS/Windows: Docker Desktop via brew/winget or download page, then waits).
    3. Voice models — which Piper voices to have in the instance (multi-select from a numbered preset list; default English) → PIPER_VOICES in .env.
    4. Speech recognition — the faster-whisper model size (tiny to medium) → WHISPER_MODEL.
    5. Pre-built plugins — all disabled by default; the script lists what can be installed in a fixed order (1 esphome, 2 google_docs, 3 cameras) and enables the chosen ones (sequence selection like 1 2).
    6. ESPHome compiling — asked only when esphome was selected; default is the web UI (flashing through web.esphome.io, nothing extra downloaded), the local compile service (~+2 GB, compose flash profile) is explicitly opted in. When cameras is selected, the cameras profile is offered the same way.
    7. Admin password — generate a strong one (default), keep admin/admin, or type one.

    It then writes .env (JWT_SECRET random, PORT, PIPER_VOICES, WHISPER_MODEL), runs docker compose up -d --build (+ chosen profiles), waits for the core to answer, applies the plugin selection and password, and finally prints — and opens — the admin URI http://localhost:<port>/admin.

    Voice models

    Chosen voices are downloaded automatically at the first TTS container start (persistent in ai-models/piper/). Additional voices are downloaded by hand from https://huggingface.co/rhasspy/piper-voices — for a voice put BOTH files, <voice>.onnx and <voice>.onnx.json, into ai-models/piper/. The file name without the .onnx extension is a PIPER_VOICES entry in .env (comma-separated for several; the first is the default voice of the instance).

    Installer modes

    The script decides by itself what to do (or accepts the mode as an argument: setup | manage | doctor).

    • Not installed → setup (the question walk-through above). Afterwards the summary points to the same script for management and health checking.
    • Instance detected (a repo .env or a running core container) → menu: manage or doctor.
      • manage — currently one function: download a new voice model. The chosen voices are appended to PIPER_VOICES in .env, the TTS container is recreated (downloads missing voices at start) and the script waits for every file to appear in ai-models/piper/. Manual model adding (huggingface files → same dir) stays possible at any time.
      • doctor — PASS/WARN/FAIL table: docker engine, sources present, .env sanity (JWT_SECRET far from the compose default, PIPER_VOICES / WHISPER_MODEL set), per-voice file presence in ai-models/piper/, core/stt/tts containers running, optional esphome/cameras-worker profiles, and the core HTTP answer. Exits non-zero on FAILs so CI/supervisors can hook it up.

    Hardware auto-tuning (GPU / edge NPU / model size)

    The installer detects the machine during setup and tunes the speech stack:

    • GPU detect — nvidia-smi present (Windows/Linux) → the CUDA Speaches image is used (STT_IMAGE=…:latest-cuda in .env) and the optional docker-compose.gpu.yml override (GPU reservations for stt, ollama, cameras-worker) is attached via COMPOSE_FILE=… in .env. Docker Desktop exposes the nvidia runtime out of the box; Linux needs the NVIDIA Container Toolkit. Piper TTS stays on CPU — it is audio-dsp sized, GPU would add nothing.
    • Whisper model by hardware (the installer shows a suggestion + default): GPU VRAM ≥ 10 GB → large-v3; GPU VRAM ≥ 4 GB → medium; CPU with ≥ 8 GB RAM → small; ≥ 4 GB RAM → base; else tiny. The answer language is not affected (see agent-and-language — medium and larger keep the multilingual accuracy).
    • Edge devices — an optional Google Coral USB TPU (cameras YOLO) is detected by USB id on Linux and offered as a hint (CAMERAS_MODEL=…_edgetpu.tflite + the devices: block in the compose camera service); the user installs it explicitly. The GPU file never enables edge devices itself.
    • doctor verifies the pairing: a cuda STT image without the nvidia docker runtime is a WARN with a one-line fix (switch STT_IMAGE back to latest-cpu).
    • Re-running the installer on the same instance only changes these settings when the mode explicitly says so (repair may propose to fix a mismatch, setup questions never silently rewrite picked values).

    Verification of a running install: open http://localhost:8080/admin (default admin/admin — change it!) and check the Overview health cards. See also dashboard.

    First run notes

    • Docker downloads the base images and builds the core (a few minutes).
    • The first voice request triggers a one-time STT model download (~500 MB into a Docker volume) — the first transcription is slow, later ones are fast.
    • Voices are downloaded to ./ai-models/piper/ (persisted on the host).
    • Change the admin password immediately (Users screen) and set a real JWT_SECRET — the defaults exist only for a quick first look.

    Configuration (.env next to docker-compose.yml)

    JWT_SECRET=long-random-string-of-your-choosing   # default: dev value — CHANGE FOR REAL USE
    PIPER_VOICES=en_US-lessac-medium de_DE-thorsten-medium   # space-separated; first = default
    

    A predefined dev variant exists too: docker compose --env-file .env.dev up -d --build.

    Useful env variables further tunable via docker-compose.yml mappings:

    Variable Meaning / default
    STT_URL / TTS_URL / TTS_TTS_PATH where the core finds the speech containers
    STT_MODEL faster-whisper model id (Systran/faster-whisper-small)
    STT_DETECT_LANGUAGE false disables per-recording language auto-detection
    NPM_REGISTRY npm registry mirror for the marketplace
    TOOL_TIMEOUT_MS tool execution timeout
    ESPHOME_CMD command of a local esphome CLI (or start the flash profile — plugins/esphome)

    Where is my data?

    Path / volume Contents
    Docker volume core-data (/app/data) response audio, per-plugin data dirs
    SQLite holai.db (data dir / DB_PATH) users, settings, env variables, plugin enable/disable + lock, audit log, home identity
    ./server/plugins/ (host bind) installed + marketplace plugins, .versions/
    ./ai-models/piper/ (host) Piper voice models (see PIPER_VOICES)
    Docker volume stt-cache downloaded whisper model

    Back up core-data + ./server/plugins/ and you can move the installation anywhere. The state model itself is described in architecture.

    Last updated: November 2026