Dev setup

Server

export PATH="$HOME/.cargo/bin:$PATH"
cargo build -j1                      # this machine is low on memory
cargo test -j1 -- --test-threads=2   # unit and golden tests
cargo test -j1 -p agent-node         # the computer program (node/)

# Any OpenAI-compatible model (Ollama shown):
AGENT_MODEL_BASE_URL=http://127.0.0.1:11434/v1 AGENT_MODEL_NAME=llama3.1 cargo run -j1
# No model at all, scripted replies:
AGENT_MODEL_KIND=mock AGENT_MOCK_SCRIPT=script.json cargo run -j1
# Tokens from the CLI:
cargo run -j1 -- token create client phone

First run writes the owner token to data/owner.token (mode 0600); the DB keeps only its hash.

Working here

Android

Open android/ in Android Studio, or run ./gradlew assembleDebug. Release APKs are built on the server (Updates and release). android/ is in the same git repo as the server.