# Willow

> Self-hosted, privacy-focused voice assistant firmware for the ESP32-S3-BOX

- Category: Agents & Automation / Assistants & Chatbots
- Language: C
- Licence: Apache-2.0
- Repository: https://github.com/HeyWillow/willow
- Website: https://heywillow.io
- Canonical page: https://ai-tldr.dev/tools/willow/

## In short

Willow is open-source firmware, built on Espressif's ESP-IDF, that turns an ESP32-S3-BOX into a self-hosted smart-speaker front end. It sits in the Assistants & Chatbots category of the Agents & Automation tools and is open-source, written in C and licensed Apache-2.0. To get started: run the Willow Application Server.

## Overview

Willow is open-source firmware, built on Espressif's ESP-IDF, that turns an ESP32-S3-BOX into a self-hosted smart-speaker front end. Its stated goal is Amazon Echo/Google Home competitive performance, accuracy and cost with Home Assistant, openHAB and other platforms, on commercially available hardware the project puts at roughly $50 plus a USB-C power supply. Nothing depends on a vendor cloud: you can build and flash the firmware yourself, run it on a network without internet access, or proxy its traffic to inspect it.

The project is deliberately narrow about its job. The device listens for a wake word ("Hi ESP" or "Alexa"), uses voice-activity detection to tell when you have stopped talking, cleans the audio with automatic gain control, acoustic echo cancellation and noise suppression, then either streams it to a speech-to-text server or recognises the command on the device itself. The resulting text is sent to a command endpoint — Home Assistant, openHAB or any HTTP POST target — and the device plays a success/failure tone or speaks the reply, showing the transcript on its screen.

Willow is one piece of a small stack. The Willow Application Server (WAS), run as a Docker container, handles configuration, over-the-air firmware updates and basic monitoring for every device; Willow Web Flash does the first flash from the browser; and the separate Willow Inference Server (WIS) provides GPU-optimised Whisper speech recognition, text-to-speech and optional LLM pass-through for fully self-hosted transcription. The firmware repository is Apache-2.0 licensed and written in C; its 0.4.3 release shipped on 2026-07-21 with concurrency and memory-correctness fixes.

## What it does

- Wake word engine ("Hi ESP" or "Alexa", user selectable) with voice-activity detection to end listening automatically
- Audio front end with automatic gain control, acoustic echo cancellation, noise suppression and blind source separation, tested for far-field wake and recognition at roughly 25 feet
- Two recognition modes: stream audio to the Willow Inference Server for full speech-to-text, or recognise up to 400 commands entirely on the device with ESP-SR MultiNet
- Command endpoints for Home Assistant, openHAB and generic REST APIs — anything that accepts an HTTP POST can receive the transcript
- Willow Application Server for fleet-wide configuration and over-the-air updates, caching firmware so devices can update on an isolated network
- Colour LCD and capacitive touchscreen support on the ESP32-S3-BOX-3, plus optional audio compression for congested 2.4 GHz Wi-Fi

## Getting started

Willow needs its Application Server running before you flash a device. The quick-start guide on heywillow.io walks through WAS, the browser-based flasher and the device itself; supported hardware is the ESP32-S3-BOX family (the docs recommend the BOX-3 and advise against the Lite).

1. Run the Willow Application Server

   Start WAS as a Docker container on a machine on the same network as the device.

```bash
docker run --detach --name=willow-application-server --pull=always --network=host --restart=unless-stopped --volume=was-storage:/app/storage ghcr.io/heywillow/willow-application-server
```

2. Open the WAS web interface

   Find the host's IP address, then browse to it on port 8502 (for example http://192.168.1.1:8502).

```bash
ip route get 1.1.1.1 | grep -oP 'src \K\S+'
```

3. Configure connectivity and the command endpoint

   On the Configuration tab, enter your WAS URL and Wi-Fi credentials under Connectivity, then pick your Willow Command Endpoint (such as Home Assistant or openHAB) under Main settings and save both sections to reveal the Willow Web Flash link.

4. Flash the device from the browser

   Open Willow Web Flash in Chrome/Chromium, Edge or Opera (the Web Serial API is required), click Connect, pick the device's port, confirm Wi-Fi and the WAS URL, choose your hardware type and click Flash. After a few minutes the device should appear on the WAS Home or Clients tab.

5. Optionally self-host speech recognition

   For fully self-hosted transcription, deploy the Willow Inference Server (NVIDIA driver and nvidia-container-toolkit recommended) and point Willow at https://<your host>:19000/api/willow.

```bash
git clone https://github.com/toverainc/willow-inference-server.git && cd willow-inference-server
./utils.sh install
./utils.sh gen-cert [your hostname]
./utils.sh run
```

## When to use it

- Reach for it when you want to replace an Echo or Google Home with a voice front end that never sends audio to a vendor cloud
- Reach for it when adding voice control to Home Assistant or openHAB using off-the-shelf ESP32-S3-BOX hardware
- Reach for it when a small set of device commands must work with no server at all, via on-device MultiNet recognition
- Reach for it when you need a wake-word microphone that forwards transcripts to your own HTTP endpoint or automation
