Claude Home
2026 (in progress)A self-hosted voice assistant and smart display built on the Claude Agent SDK and Home Assistant, replacing a Google Home and Nest Hub. A Raspberry Pi handles the mic, wake word and touchscreen; a PC runs speech, Claude and the tools.
- Raspberry Pi
- Python
- Claude Agent SDK
- Home Assistant
- MCP
- Audio

A voice assistant and smart display for my house, built to replace a Google Home and a Nest Hub. Say the wake word, ask anything, and Claude answers out loud. It can also set timers and alarms, run the shopping list, play Spotify, show the doorbell camera, and control the house through Home Assistant.
Why build it
Home Assistant already ships a voice pipeline and an official Claude integration, and that setup takes an afternoon. I set it up first as the benchmark, then built my own for two reasons. Its voice satellites are audio-only, and I wanted a screen whose content follows the conversation. I also wanted control of the Claude side: which model, sentence-by-sentence streaming to speech, web search, memory that persists, and cards on the screen.
- Satellite
- Raspberry Pi 3, a 5" 800×480 touchscreen, and a ReSpeaker XVF3800 4-mic array that does echo cancellation on-chip.
- Brain
- One Python asyncio service (FastAPI) on a Windows PC.
- Speech
- openWakeWord and Silero VAD on the Pi; Groq Whisper for speech to text; Piper for text to speech, run locally.
- Language model
- Claude Haiku 5.5 through the Claude Agent SDK.
- Integrations
- Home Assistant over MCP, Spotify Connect, Todoist, iCal calendars, Open-Meteo weather.
Architecture
The system is split in two. The satellite in the room owns everything that has to be real-time and local: the mic, wake word, end-of-speech detection, playback, and the screen. It holds no API keys and has no Claude logic; it is dumb on purpose. The brain owns everything else: speech to text, Claude, the tools, text to speech, timers, and memory.
They talk over one WebSocket per satellite, with JSON for control messages and raw 16 kHz PCM for audio. That keeps a second room, a second screen, or a bigger brain machine a config change rather than a rewrite. It is also why the brain runs on a PC for now: the Agent SDK runs the Claude Code binary as a subprocess, which is too much for a Pi 3 with 1 GB of RAM.
A turn goes like this:
- The wake word fires on the Pi, which plays a chime and starts streaming mic audio to the brain.
- Silero VAD hears the end of speech, and the brain sends the whole utterance to Groq Whisper in one request.
- The transcript goes to Claude, with the current time prefixed so the cached part of the prompt stays stable.
- As Claude streams text back, the brain cuts it at sentence boundaries and sends each finished sentence to Piper. Sentence one plays while sentence two is still being written, which is the biggest single latency win in the system.
- If the reply ends in a question, the Pi listens again without the wake word, so follow-ups like "what about tomorrow?" work.
Timers and alarms live in the brain's SQLite database, not in Claude. One loop checks them every half second, so they survive a restart and ring without a network call. Claude only creates and cancels them.
Locking down the Agent SDK
Out of the box the Agent SDK behaves like a coding agent, with a shell and file access on the machine it runs on. For a device that listens to anyone in the room, that had to go. The brain replaces the system prompt, loads no settings, hooks, or plugins from disk, and turns off every built-in tool except web search. Claude can call only the brain's own tools and Home Assistant's, and the permission mode refuses anything else, because nobody is there to approve a tool call.
One leak only showed up by checking. On a subscription login, the account's claude.ai connectors (Gmail, Drive, and so on) loaded into every session even with all settings disabled. I found them in the session's initial tool list and shut them off with a flag and an environment variable.
Latency
The target was under 2 s from the end of speech to the first audio. Every turn logs each stage's timing, so I could measure it instead of guessing.
| Stage | Target | Median (90th percentile) |
|---|---|---|
| Speech to text | under 0.4 s | 0.67 s (1.12 s) |
| Claude, first complete sentence | under 0.9 s | 2.31 s (4.65 s) |
| Text to speech, first audio | under 0.15 s | 0.12 s (0.29 s) |
| End of speech to first audio | under 2 s | 3.10 s (5.64 s) |
Show data
| Turn | End of speech to first audio | Claude first sentence | Speech to text |
|---|---|---|---|
| 1 | 4.29 | 3.03 | 0.98 |
| 2 | 4.52 | 2.42 | 1.97 |
| 3 | 3.28 | 1.84 | 1.24 |
| 4 | 11.17 | 9.72 | 1.32 |
| 5 | 3.91 | 2.42 | 1.41 |
| 6 | 2.42 | 1.57 | 0.67 |
| 7 | 3.05 | 2.09 | 0.87 |
| 8 | 1.7 | 0.86 | 0.8 |
| 9 | 2.21 | 1.22 | 0.91 |
| 10 | 1.28 | 0.87 | 0.36 |
| 11 | 1.32 | 0.92 | 0.32 |
| 12 | 5.41 | 3.92 | 1.35 |
| 13 | 4.93 | 3.7 | 1.2 |
| 14 | 4.36 | 2.56 | 1.46 |
| 15 | 3.9 | 3.16 | 0.57 |
| 16 | 3.46 | 2.76 | 0.53 |
| 17 | 2.3 | 1.92 | 0.33 |
| 18 | 3.61 | 2.31 | 1.12 |
| 19 | 2.79 | 1.89 | 0.72 |
| 20 | 2.31 | 1.39 | 0.8 |
| 21 | 3.88 | 2.81 | 0.74 |
| 22 | 2.39 | 1.92 | 0.41 |
| 23 | 2.74 | 1.91 | 0.68 |
| 24 | 4.66 | 3.6 | 0.67 |
| 25 | 3.41 | 2.51 | 0.74 |
| 26 | 3.95 | 3.19 | 0.47 |
| 27 | 3.04 | 2.02 | 0.86 |
| 28 | 2.57 | 2 | 0.52 |
| 29 | 5.41 | 4.48 | 0.61 |
| 30 | 3.02 | 2.27 | 0.68 |
| 31 | 2.11 | 1.41 | 0.67 |
| 32 | 2.8 | 1.95 | 0.74 |
| 33 | 4.78 | 3.75 | 0.9 |
| 34 | 2.64 | 1.52 | 0.96 |
| 35 | 2.94 | 2.11 | 0.76 |
| 36 | 7.26 | 6.61 | 0.45 |
| 37 | 5.64 | 4.65 | 0.87 |
| 38 | 3.71 | 3.12 | 0.52 |
| 39 | 5.95 | 5.17 | 0.58 |
| 40 | 3.55 | 2.74 | 0.74 |
| 41 | 4.8 | 4.1 | 0.63 |
| 42 | 2.98 | 2.18 | 0.75 |
| 43 | 2.85 | 2.14 | 0.62 |
| 44 | 7.06 | 6.36 | 0.63 |
| 45 | 4.11 | 3.48 | 0.49 |
| 46 | 3.69 | 2.82 | 0.69 |
| 47 | 3.17 | 2.38 | 0.62 |
| 48 | 3 | 2.45 | 0.48 |
| 49 | 3.06 | 2.5 | 0.51 |
| 50 | 2.37 | 1.93 | 0.39 |
| 51 | 2.89 | 1.91 | 0.91 |
| 52 | 2.71 | 2.02 | 0.59 |
| 53 | 2.71 | 1.86 | 0.76 |
| 54 | 2.66 | 1.86 | 0.7 |
| 55 | 4.51 | 3.79 | 0.52 |
| 56 | 2.64 | 2 | 0.55 |
| 57 | 2.62 | 2 | 0.51 |
| 58 | 2.67 | 1.83 | 0.73 |
| 59 | 2.69 | 2.08 | 0.54 |
| 60 | 2.27 | 1.51 | 0.59 |
| 61 | 3.36 | 2.6 | 0.65 |
| 62 | 2.97 | 2.28 | 0.62 |
| 63 | 3.1 | 2.35 | 0.44 |
| 64 | 6.6 | 5.87 | 0.54 |
| 65 | 4.67 | 3.8 | 0.78 |
| 66 | 5.08 | 4.09 | 0.81 |
| 67 | 8.49 | 7.34 | 0.61 |
| 68 | 2.62 | 1.95 | 0.41 |
| 69 | 5.06 | 4.35 | 0.54 |
| 70 | 3.54 | 3.07 | 0.41 |
| 71 | 3.11 | 2.22 | 0.7 |
| 72 | 2.76 | 1.81 | 0.8 |
| 73 | 2.11 | 1.55 | 0.46 |
| 74 | 6.77 | 5.73 | 0.8 |
| 75 | 3.98 | 3.28 | 0.56 |
| 76 | 2.35 | 1.65 | 0.41 |
| 77 | 1.72 | 1.21 | 0.45 |
It misses: the median is 3.1 s. The log makes the reason plain. Text to speech is already under its budget, and speech to text is close, but waiting for Claude's first sentence takes 2.3 s on its own, more than the whole target. The log doesn't record which turns used a tool or searched the web, so those slower turns are mixed into the same numbers.
The next step is to move from the Agent SDK to the plain Messages API, which drops the Claude Code subprocess from every turn. I started on the Agent SDK on purpose: it runs on my Claude subscription during development, and switching later only changes one function.
Home control
Claude gets Home Assistant's tools through its MCP Server, for exactly the devices exposed to Home Assistant's voice assistant. That exposure setting is the main permission boundary: a device that isn't exposed doesn't exist as far as Claude is concerned. New abilities are mostly Home Assistant config, since any script exposed there shows up as a tool automatically.
A few rules came out of treating the language model as something that can be wrong or be manipulated:
- Every action is logged with the transcript that led to it, so a light turning on unexpectedly can be traced to a mishearing or to Claude's choice.
- Locks, alarm panels, and garage doors stay unexposed until spoken confirmation is enforced in code. Web search results can carry prompt injection, so a rule that lives only in the prompt isn't good enough.
- Touch never goes through Claude. The screen's Home pages read Home Assistant directly and turn taps into service calls. Flipping a light switch shouldn't cost an API call or a second of waiting. Taps are still treated as untrusted: the brain accepts only devices it showed that screen, and clamps every number.

The display
The screen is a plain HTML, CSS, and JavaScript page with no build step, served by the brain and shown in Chromium in kiosk mode.The screenshots on this page come from a test server that drives the real display page with canned data and a stand-in image in place of the photos. It shows a clock over a slideshow of the household's photos, the weather, and a strip of what's next: timers, the next alarm, the next calendar event, and the song playing. During a conversation it shows what it heard and Claude's reply as it's spoken. Tools whose answer belongs on the screen, like timers, the forecast, the shopping list, or recipe steps, push a card as they run, so the picture arrives with the spoken answer or before it.


The Pi 3's GPU set the design limits: only opacity and transform animate, there's no blur, and nothing runs while idle except the clock and the slideshow timer.
Audio
The first build used a USB headset, which needs no echo cancellation. A speaker in the room does: the mic hears the assistant's own voice and music. The ReSpeaker XVF3800 array cancels whatever it plays from what it hears, but only if playback goes through it. So all audio, the voice and Spotify alike, is mixed in ALSA onto the array's own output. The cost is that the array's stock firmware only takes 16 kHz, so music loses everything above 8 kHz. In return the wake word works over music, though it still struggles when the music is loud.
Music ducks to 20% while it listens and talks, through a separate software volume control for music that the satellite turns down on wake.
Cost
Running on an API key, a typical day of 30 turns with 3 web searches works out to about $1.60 a month on Haiku 5.5, and most of that is the web search fee. Prompt caching helps less than expected: the cache lasts 5 minutes and home use is sparse, so most turns pay to write the cache rather than read it.
What's next
- Cut Claude's latency by moving to the direct Messages API, then measure again against the 2 s target.
- A local fast path that sends simple commands like "kitchen lights off" to Home Assistant's own intent matcher, with no Claude call, aiming for under 1 s.
- Spoken confirmation for locks and garage doors, enforced in code before any of them are exposed.
- The Pi 5 build, with the mic array, an amp, and real speakers, so it can hear the wake word over its own music at a normal volume.