Quickstart

Requires: Docker + a local LLM server atlocalhost:1234 (LM Studio recommended).

One-command stack

cp .env.example .env          # fill in LLM_MODEL and EMBEDDING_MODEL
docker compose --profile controlplane up -d
make db-create-viz
make viz-seed                 # seed memory graph from chat history or LoComo fallback
# Open http://localhost:8889

Quickstart target

make quickstart does it all in one step:

  1. Copies .env.example → .env (random password)
  2. Starts the Surgeon stack: docker compose --profile controlplane up -d
  3. Waits for health: localhost:8890/health
  4. Creates zoidmatter_viz_db
  5. Seeds demo memories (LoComo fallback)
  6. Opens Surgeon at http://localhost:8889 in the browser

Build from source

sh scripts/install-hooks.sh   # install pre-commit hooks (once)
rtk cargo build --workspace

First retain, first recall

The API serves POST /v1/retain and POST /v1/recall. With an API key set:

curl -X POST http://localhost:8890/v1/retain \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ZOIDMATTER_API_KEY" \
  -d '{"content":"The user prefers dark mode","source":"quickstart"}'

curl -X POST http://localhost:8890/v1/recall \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ZOIDMATTER_API_KEY" \
  -d '{"query_text":"user preferences","top_k":5}'

See Local LLM Setup for hardware-specific model recommendations, and the full documentation in docs/.