Get the code running
Install one tool, download the kit, and run its tests. Five minutes.
/setup laptopworkstationcloud
Then answer its questions. It installs uv if you don't have it, syncs the kit for your preset, and runs the tests.
uv is a tool that installs Python and everything Lumi needs, without touching the rest of your computer. Copy each block into a terminal (Terminal on macOS, PowerShell on Windows).
minilumi/ is one small Python package: listen.py (when you stop talking), hear.py, think.py, speak.py, visit.py (the conversation loop) and screen.py (the face). config.toml holds three presets: workstation, laptop and cloud.
Python 3.11+. Base dependencies are just numpy, sounddevice and anthropic; local speech is the optional local extra. HTTP to model servers is the standard library, so any OpenAI-compatible server works.
Install uv:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Get the kit:
git clone https://github.com/ckellum/build-your-own-lumi
cd build-your-own-lumi/minilumi
uv sync --extra localuv syncOn Linux, also install the audio library: sudo apt install libportaudio2
uv run pytest -q ends with 62 passed.- On Windows, open a new terminal after installing uv so it's on your PATH.
- The first local run downloads the speech models (a few hundred MB), once.