AI-Butler is the J.A.R.V.I.S. project: a local-first AI butler with a browser interface, voice interaction, contextual memory, extensible tools/widgets, and an ESP32-S3 LED-ring presence device.
apps/
server/ Local orchestration backend (planned first runtime)
web/ React interface (planned)
packages/
contracts/ Shared event and tool contracts
device-gateway/ ESP32 serial bridge (planned)
memory/ Local context and cache handler (planned)
docs/
architecture.md System boundaries and event flow
The LED-ring firmware lives in its own repository: Agent_Ring. AI-Butler communicates with it over the serial protocol; it does not build or own the firmware.
The current integration slice is:
Browser microphone → local speaker check → OpenAI Realtime voice session → backend event handler
→ ESP32 serial commands → LED state
The browser holds microphone audio locally until speaker verification passes. The backend maps voice activity to LISTENING, THINKING_DUO, SPEAKING, and IDLE, and translates outgoing assistant audio levels into LEVEL:0-255 commands. To configure the API key and start the voice session, see apps/server/README.md.
The companion Agent_Ring firmware targets an ESP32-S3 with:
- GPIO 4
- 72 NeoPixels
NEO_GRB + NEO_KHZ800- 115200 baud serial protocol
- Adafruit NeoPixel
Build and upload the firmware from the Agent_Ring repository. This project owns the serial gateway and sends the newline-delimited state and level commands.
- Keep API credentials in the local backend, never in the browser.
- Treat voice, memory, tools, UI, and hardware as replaceable boundaries.
- Use explicit typed events between services.
- Require confirmation for risky tools or external side effects.
- Keep the ESP32 firmware independent from cloud/API implementation details.