Install

From The-OASIS-Project/dawn · View interactive version

Install is an AI agent skill from the GitHub repository The-OASIS-Project/dawn. Guide a user through installing, configuring, and verifying the DAWN voice assistant. Covers system dependencies, core libraries, building, models, configuration, admin account, SSL, and optional features.

How to use this skill

Skill file

DAWN Installation Skill

You are guiding the user through a complete installation of the DAWN voice assistant. Your job is to execute each phase, verify it succeeded, and move on. Be methodical and thorough.

Automated script alternative: If scripts/install.sh exists, you may run it with appropriate flags

instead of executing phases manually. The script handles platform detection, sudo, and all phases.

Use it when the user wants a streamlined install. Fall back to manual phases if the script fails or

for troubleshooting. Deploy commands: ./scripts/install.sh --deploy server or --deploy satellite.

Invocation Modes

Ground Rules

  1. Auto-detect everything you can — platform (uname -m, Jetson vs RPi vs x86, CUDA presence), already-installed packages (dpkg -l, pkg-config), existing config files, existing builds, existing models. Never ask the user something you can probe.
  2. Run all non-sudo commands directly. For sudo commands, print the exact command and ask the user to run it — UNLESS the user says sudo doesn't require a password, in which case run them directly too.
  3. Ask the user early about choices that require intent (see Phase 0 below).
  4. Verify aggressively after every phase. Don't move on until the phase passes verification.
  5. If something fails, diagnose it. Read error output, check logs, suggest fixes. Don't just say "it failed".
  6. Reference the project docs for details. The key files are:

Phase 0: Discovery and User Preferences

Auto-detect (do NOT ask):

Ask the user:

Present these as a checklist with defaults. Let the user answer all at once.

  1. What are you installing?
  1. LLM provider?
  1. API keys — For each selected cloud provider, ask for the API key now. They can also add them later.
  1. Whisper model size?
  1. Optional features — enable/disable:

For the key-only integrations (Tavily, OpenRouter, messaging bot tokens), collect the key/token

now if selected and write it to secrets.toml in Phase 5. Point the user at the matching setup

section in GETTING_STARTED.md / docs/MESSAGING_CHANNELS_SETUP.md / docs/PHONE_SMS_DESIGN.md

for the ones that need external service setup.

  1. Build preset?

Phase 1: System Dependencies

Reference: GETTING_STARTED.md section 1.

The full package list is:

build-essential cmake git pkg-config wget unzip autoconf automake libtool python3-pip
libasound2-dev libpulse-dev libsndfile1-dev libflac-dev
libmosquitto-dev mosquitto mosquitto-clients
libjson-c-dev libcurl4-openssl-dev libssl-dev
libwebsockets-dev libopus-dev libsodium-dev libsqlite3-dev
libsamplerate0-dev libmpg123-dev libvorbis-dev libncurses-dev
meson ninja-build libabsl-dev
libmupdf-dev libfreetype-dev libharfbuzz-dev
libzip-dev libmujs-dev libgumbo-dev libopenjp2-7-dev libjbig2dec0-dev
libical-dev libspdlog-dev libxml2-dev libstemmer-dev libgmime-3.0-dev

Known package name variations:

Required-since notes:

  1. Check which packages from the apt install list are already installed
  2. Report what's missing
  3. Before generating the install command, verify each missing package exists in apt-cache. Flag any that aren't found and search for alternatives.
  4. Generate the sudo apt install command for only the missing packages
  5. Run it (or ask user to run it if sudo requires password)
  6. Verify: Confirm all packages are installed with dpkg -l

CMake Version Check

After apt install, check cmake --version. DAWN presets need 3.21+, but ONNX Runtime (built from source) needs 3.28+. Debian 13+ and Ubuntu 24.04+ ship recent enough versions. If the system CMake is too old (Ubuntu 22.04 ships 3.22):

# aarch64 (Jetson, RPi)
wget https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-linux-aarch64.tar.gz
tar xzf cmake-3.31.6-linux-aarch64.tar.gz
sudo cp -r cmake-3.31.6-linux-aarch64/bin/* /usr/local/bin/
sudo cp -r cmake-3.31.6-linux-aarch64/share/* /usr/local/share/

# x86_64
wget https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6-linux-x86_64.tar.gz
# ... same pattern

Meson Version Check

WebRTC AEC requires Meson 0.63+. Ubuntu 22.04 ships 0.61. If too old:

pip3 install --user meson --upgrade

Then use ~/.local/bin/meson or ensure ~/.local/bin is in PATH.

Phase 2: Core Libraries

Reference: GETTING_STARTED.md section 2.

For each of the 4 required libraries, check if already installed before building:

2a. spdlog

2b. espeak-ng (rhasspy fork)

2c. ONNX Runtime

```bash

# Microsoft's NuGet package carries the Linux libraries and headers

wget https://api.nuget.org/v3-flatcontainer/microsoft.ml.onnxruntime/1.19.2/microsoft.ml.onnxruntime.1.19.2.nupkg

unzip -q microsoft.ml.onnxruntime.1.19.2.nupkg -d ort "runtimes/linux-arm64/native/" "build/native/include/"

sudo cp ort/runtimes/linux-arm64/native/libonnxruntime.so /usr/local/lib/libonnxruntime.so.1.19.2

sudo cp ort/runtimes/linux-arm64/native/libonnxruntime_providers_shared.so /usr/local/lib/

sudo ln -sf libonnxruntime.so.1.19.2 /usr/local/lib/libonnxruntime.so.1

sudo ln -sf libonnxruntime.so.1 /usr/local/lib/libonnxruntime.so

sudo cp -r ort/build/native/include/* /usr/local/include/

sudo ldconfig

```

2d. piper-phonemize

Verify each: Check that .so files exist in /usr/local/lib/ and headers are in place.

Phase 3: Clone and Build

Reference: GETTING_STARTED.md section 3.

  1. If not already in a dawn repo, clone with --recursive
  2. If in repo but submodules missing, run git submodule update --init --recursive
  3. Build WebRTC audio processing:
  1. Run cmake --preset <selected-preset>
  1. Run cmake --build --preset <selected-preset> (or make -C <build-dir> -j$(nproc))

Verify:

Note: LD_LIBRARY_PATH=/usr/local/lib is needed when core libraries (ONNX Runtime, espeak-ng, piper-phonemize) are installed to /usr/local/lib/. Use it for all ./build/dawn and ./build/dawn-admin invocations.

Phase 4: Download Models

Reference: GETTING_STARTED.md section 4.

  1. Run ./setup_models.sh --whisper-model <selected-size>
  2. If user selected Vosk, add --vosk

Verify:

Phase 5: Configure

Reference: GETTING_STARTED.md section 5.

  1. Copy dawn.toml.example to dawn.toml (if not exists)
  2. Copy secrets.toml.example to secrets.toml (if not exists)
  3. Set file permissions: chmod 600 secrets.toml
  4. Write API keys the user provided in Phase 0 into secrets.toml
  5. Configure dawn.toml based on user's choices:

/etc/modules-load.d/snd-dummy.conf, and set capture_device = "plughw:CARD=Dummy,DEV=0".

This allows the daemon to start; voice input works via WebUI and satellites.

  1. If Plex was selected, ask for Plex token and configure [music.plex]
  2. If Home Assistant was selected, ask for HA token and configure

Verify:

Phase 6: API Key Validation

For each configured API key, make a minimal test call:

OpenAI

curl -s -o /dev/null -w "%{http_code}" https://api.openai.com/v1/models \
  -H "Authorization: Bearer <key>"

Expected: 200

Claude

curl -s -o /dev/null -w "%{http_code}" https://api.anthropic.com/v1/messages \
  -H "x-api-key: <key>" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-haiku-4-5-20251001","max_tokens":1,"messages":[{"role":"user","content":"hi"}]}'

Expected: 200

Gemini

curl -s -o /dev/null -w "%{http_code}" \
  "https://generativelanguage.googleapis.com/v1beta/models?key=<key>"

Expected: 200

Local LLM

curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8080/v1/models

Expected: 200 (if server is running)

Report results: which keys are valid, which failed, and what the error means.

Phase 7: SSL Setup (if selected)

Reference: GETTING_STARTED.md section 7.

  1. Run ./generate_ssl_cert.sh (interactive — prompts for CA passphrase)
  2. Update dawn.toml with SSL paths
  3. Optionally generate satellite registration key: ./generate_ssl_cert.sh --gen-key

Verify:

Phase 8: Create Admin Account

Reference: GETTING_STARTED.md section 6.

The admin creation requires the daemon running (it generates a setup token). Use environment

variables for fully non-interactive creation:

  1. Start DAWN in the background, capturing all output (the token appears in the combined

stdout/stderr stream, printed by the admin socket after full initialization):

```bash

LD_LIBRARY_PATH=/usr/local/lib ./build/dawn > /tmp/dawn_startup.log 2>&1 &

DAWN_PID=$!

sleep 6

TOKEN=$(grep -oP 'Token: \K[A-Z0-9-]+' /tmp/dawn_startup.log)

```

If TOKEN is empty, check /tmp/dawn_startup.log for startup errors (audio device, missing

model, etc.) and fix them before retrying.

  1. Create the admin account using env vars (no interactive prompts):

```bash

ADMIN_PASS=$(tr -dc 'A-Za-z0-9' </dev/urandom | head -c 16)

DAWN_SETUP_TOKEN="$TOKEN" DAWN_PASSWORD="$ADMIN_PASS" \

LD_LIBRARY_PATH=/usr/local/lib ./build/dawn-admin user create admin --admin

```

  1. Stop the background daemon: kill $DAWN_PID
  2. Display the generated password prominently and warn the user to save it (it will not be shown again)

Verify:

Phase 9: Optional Features Setup

SearXNG (if selected)

Reference: GETTING_STARTED.md — SearXNG section.

  1. Check Docker is available
  2. Create directory structure and docker-compose.yml
  3. Start container: docker compose up -d
  4. Verify: curl -s "http://localhost:8384/search?q=test&format=json" | head -c 200

FlareSolverr (if selected)

  1. docker run -d --name flaresolverr -p 8191:8191 ghcr.io/flaresolverr/flaresolverr:latest
  2. Update dawn.toml with FlareSolverr settings
  3. Verify: curl -s http://localhost:8191/health

Home Assistant (if selected)

  1. Token should already be in secrets.toml from Phase 5
  2. Configure HA URL in dawn.toml
  3. Verify: Test HA API connection with curl

Plex (if selected)

  1. Token and config should already be set from Phase 5
  2. Verify: Test Plex API connection with curl

Tavily (if selected)

  1. tavily_api_key (starts tvly-) should be in secrets.toml from Phase 5
  2. Set [search] engine = "tavily" and/or [url_fetcher] fallback = "tavily" in dawn.toml
  3. Verify: curl -s -o /dev/null -w "%{http_code}" -H "Content-Type: application/json" -d '{"api_key":"<key>","query":"test"}' https://api.tavily.com/search → 200

OpenRouter (if selected)

  1. openrouter_api_key (starts sk-or-) should be in secrets.toml from Phase 5
  2. Set [llm.cloud] provider = "openrouter" in dawn.toml
  3. Verify: curl -s -o /dev/null -w "%{http_code}" https://openrouter.ai/api/v1/models -H "Authorization: Bearer <key>" → 200

Messaging channels (if selected)

  1. Bot/app tokens should be in secrets.toml from Phase 5 (telegram_bot_token, discord_bot_token, slack_app_token + slack_bot_token; SMS routes through ECHO, no token). Drivers load only when their token is present.
  2. After first run, link a channel: ./build/dawn-admin messaging generate-link-code --user <username>, then send /link CODE from the chat app (Slack: link CODE).
  3. Full per-provider bot setup: docs/MESSAGING_CHANNELS_SETUP.md.

Email (if selected)

  1. Requires a build with -DDAWN_ENABLE_EMAIL_TOOL=ON, and "email" in [llm.tools] local_enabled / remote_enabled for the model to use it.
  2. Accounts are added in the WebUI (Settings → Email Accounts), not the installer — app password or Google OAuth.
  3. Reference: GETTING_STARTED.md — Email section.

Phone & SMS via ECHO (if selected)

  1. ECHO is a separate daemon (~/code/The-OASIS-Project/echo) that owns the modem; it must share DAWN's MQTT broker.
  2. List "phone" in [llm.tools] local_enabled / remote_enabled in dawn.toml; [phone] holds its other settings (confirm_outbound, call audio; see dawn.toml.example).
  3. Reference: docs/PHONE_SMS_DESIGN.md. Note: two-way call audio through the browser is not yet shipped.

Phase 10: Deploy as Systemd Service (optional)

This phase is only run when explicitly requested via /install deploy or when the user asks

to deploy during installation. It installs the built binary as a production systemd service.

Both scripts require root. They are interactive (ask yes/no questions about config removal, etc.),

so guide the user through running them manually or run with sudo if passwordless.

Deploy Server

Script: services/dawn-server/install.sh

The script auto-discovers the binary, models, www, ssl, and config files from the project tree.

Override paths with flags if needed.

sudo ./services/dawn-server/install.sh [options]

Key options:

Installed paths:

Verify (run ALL of these post-deploy checks):

CUDA note: If CUDA was detected during install, scripts/install.sh --deploy server automatically

configures /usr/local/etc/dawn/dawn-server.conf with the correct GPU library paths and enables

CUDA_VISIBLE_DEVICES. For manual deploy, uncomment the CUDA lines in dawn-server.conf.

Deploy Satellite

Script: services/dawn-satellite/install.sh

sudo ./services/dawn-satellite/install.sh [options]

Key options:

Installed paths:

After deploy, remind user to edit the config:

  1. Set [server] host to the DAWN daemon IP
  2. Set [identity] name and location
  3. Configure [audio] capture/playback devices
  4. Restart: sudo systemctl restart dawn-satellite

Verify (run ALL of these post-deploy checks):

Uninstall

When /install uninstall server or /install uninstall satellite is used, run the

corresponding script with --uninstall. These are interactive (prompt about database

and config removal), so always let the user run them or confirm each step.

Uninstall Server

sudo ./services/dawn-server/install.sh --uninstall

What it removes:

  1. Stops and disables dawn-server.service
  2. Removes systemd unit file and logrotate config
  3. Removes /usr/local/bin/dawn
  4. Removes /var/lib/dawn/ (prompts about database preservation)
  5. Removes /var/log/dawn/
  6. Prompts about /usr/local/etc/dawn/ config removal
  7. Removes /etc/ld.so.conf.d/dawn.conf (only if satellite is not installed)
  8. Does NOT remove the dawn system user (may be shared with satellite)

Uninstall Satellite

sudo ./services/dawn-satellite/install.sh --uninstall

What it removes:

  1. Stops and disables dawn-satellite.service
  2. Removes systemd unit file and logrotate config
  3. Removes /usr/local/bin/dawn_satellite
  4. Removes /var/lib/dawn-satellite/
  5. Removes /var/log/dawn-satellite/
  6. Prompts about /usr/local/etc/dawn-satellite/ config removal
  7. Removes /etc/ld.so.conf.d/dawn.conf (only if server is not installed)
  8. Does NOT remove the dawn system user

After uninstall, report what was removed and what was preserved (config, database, user).

Note that the source code, build artifacts, and core libraries (ONNX, espeak-ng, piper-phonemize)

are NOT removed by uninstall — those are separate from the systemd service installation.

Phase 11: Final Verification Suite

Run ALL of these checks and present a summary table:

| Check | Status | Details |

|-------|--------|---------|

| Binary exists | | Path and size |

| Binary runs | | Version string |

| dawn-admin exists | | Path |

| Config loads | | --dump-config exit code |

| Whisper model | | Model name and size |

| TTS models | | Voice model name |

| VAD model | | File exists |

| secrets.toml permissions | | Should be 600 |

| API key: OpenAI | | Valid / Invalid / Not configured |

| API key: Claude | | Valid / Invalid / Not configured |

| API key: Gemini | | Valid / Invalid / Not configured |

| Local LLM | | Reachable / Not configured |

| SSL certificates | | Valid / Not configured / Expired |

| WebUI port | | Start daemon briefly, check port responds |

| Audio capture | | Device detected |

| Audio playback | | Device detected |

| Admin account | | Exists |

| SearXNG | | Reachable / Not configured |

| FlareSolverr | | Reachable / Not configured |

| MQTT broker | | Reachable / Not configured |

| Home Assistant | | Reachable / Not configured |

| Plex | | Reachable / Not configured |

| Git submodules | | All initialized |

Summary

At the end, print:

  1. The verification table
  2. Any warnings or issues that need attention
  3. How to start DAWN: the exact command to run
  4. How to access the WebUI: the URL with correct protocol (http/https) and port
  5. Quick tips: wake word, first voice command to try

If /install verify was used, skip all installation phases and jump directly to Phase 11.

If a systemd service is deployed, also check service-specific paths:

| Check | Status | Details |

|-------|--------|---------|

| dawn-server.service | | active / inactive / not installed |

| dawn-satellite.service | | active / inactive / not installed |

| Service binary | | /usr/local/bin/dawn exists |

| Service config | | /usr/local/etc/dawn/dawn.toml exists |

| Service secrets | | /usr/local/etc/dawn/secrets.toml permissions |

| Service logs | | Recent entries clean |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.