The core Statewave loop in ~50 lines: record episodes → compile memories → retrieve a context bundle → delete.
# Requires Statewave server at http://localhost:8100
pip install statewave
python quickstart.py
# or
npx tsx quickstart.tsBy default (heuristic compiler, no embeddings) this example runs fully local — no calls leave the Statewave server. To use the LLM compiler or hosted embeddings, configure STATEWAVE_COMPILER_TYPE=llm (and provider keys) on the server. See Privacy & Data Flow.