Skip to content

Installation

Zlatko Lakisic edited this page Aug 3, 2026 · 1 revision

Installation

Installation flow


Clone

git clone https://github.com/zlatko-lakisic/comstar.git
cd comstar

Vendor submodules (AO / Reach) may need:

git submodule update --init --recursive

1 — Bridge (Pi or Mac)

cd terminal/bridge
dart pub get
dart compile exe bin/comstar_bridge.dart -o /usr/local/bin/comstar-bridge

On Mac bring-up, prefer make bridge-dev instead of installing a system binary.


2 — Audio (Pi)

cd terminal/audio
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt

3 — Kiosk

cd terminal/kiosk
# Static files; production is served by the bridge HTTP :8776
# Dev:
# make kiosk-dev  → http://127.0.0.1:5173/

4 — Register the overlay

The bridge registers client.* agents with the AO daemon at session start from overlays/comstar/agent_providers/*.yaml. These are ephemeral — they exist for the life of the session and are not mounted on the host.

Ensure the AO daemon has:

export AGENTIC_SERVE_SESSION_OVERLAY=1
export AGENTIC_SERVE_MCP_TUNNEL=1

5 — Local speech fallback (optional)

# Prefer Python 3.12 for faster-whisper
python3.12 -m venv .venv-stt && source .venv-stt/bin/activate
pip install -r scripts/requirements-stt.txt
make stt-dev   # :8090

python3 scripts/tts_server.py   # :8091
export COMSTAR_STT_URL=http://127.0.0.1:8090
export COMSTAR_TTS_URL=http://127.0.0.1:8091

Production prefers Ada speech via Reach — see Speech and ADR 0003.


6 — systemd (Pi)

systemctl --user enable --now comstar-bridge comstar-audio comstar-kiosk
# Optional until Ada speech is proven:
# systemctl --user enable --now comstar-stt comstar-tts

Enable linger once:

sudo loginctl enable-linger $USER

Unit files: deploy/systemd/. Deploy helper: make deploy / deploy/deploy.sh.

Deploy layout on Pi


Config before first run

cp config/comstar.example.yaml config/comstar.yaml
# set orchestration.base_url, vision.codeproject_url, token

Never commit real comstar.yaml, comstar.dev.yaml, or comstar.mac.env.

Configuration


Verify

make doctor
make test

Health table: Runbook § Health checks.


Related pages

Clone this wiki locally