# 🤖 BoBe: free firmware turns a cheap ESP32 talking toy into a body for a local AI companion

All Today · published 2026-11-27T07:50:00Z · https://all-today.com/product/8f71e320-adf8-40c5-8f8a-245b3059bdb9?lang=en

![Two hands hold a small AI toy robot over a keyboard, its square screen showing BoBe's face](https://img.all-today.com/d/9154d9d51bed43f2a680f93c58802381/BIgFfOXMnZa8Af47iqTt8icw-2hH9UvBOu1TYai-UvY.jpg)

- 🤖 John Kozaris rebuilt a palm-sized talking toy with an ESP32-S3 chip into a body for his open-source AI companion BoBe.
- 🧠 The toy is only a client: speech recognition and the AI run on a Mac or Linux machine, and no API keys sit on the chip.
- 🔒 The link is encrypted with pinned certificates; updates are signed and roll back automatically.
- 🛠️ Firmware and build notes are free on GitHub (MIT); the body itself is a prototype and not for sale.

🤖 Developer [John Kozaris](https://johnkozaris.com/blog/bobe-toy-robot-body) has turned a palm-sized talking AI toy he bought in China in July into a desk body for his AI companion BoBe. BoBe is an open-source assistant for the Mac that sits on the screen as a small face, keeps goals and notes in Markdown files and can work with files, a shell and Git. The firmware, protocol and test rig for the body are in the [Sombrace/BoBe project on GitHub](https://github.com/Sombrace/BoBe) under the MIT licence. 🧠 The idea: the microcontroller only records and plays sound and shows BoBe's face. Speech recognition and reasoning are handled by a background program on a Mac or Linux machine, and the toy holds no API keys. Which language model answers is the user's choice: according to the project page OpenAI, Anthropic, DeepSeek, OpenRouter, GitHub Copilot and others, or a local model through Ollama. 🛠️ To rebuild it you need an ESP32-S3 device that originally runs the open xiaozhi-esp32 firmware, plus a computer running BoBe. According to the [BoBe website](https://www.bobebot.com/body) the yellow body is a prototype and not for sale; instead the project offers an ESP32 kit for building your own bodies. It is a tinkering project for people who can flash firmware, not a finished product.

🔎 **What is inside the toy.** Kozaris describes the device as fitting in one hand, with a square screen, a microphone, a speaker, a battery and three buttons. During Wi-Fi setup it broadcast a network whose name started with Xiaozhi, which pointed to xiaozhi-esp32, a widely used open firmware for talking ESP32 gadgets. Inside sits an ESP32-S3 with 16 MB of flash. The appeal, in his words, is that someone had already tuned the speaker cavity, built the battery board and molded a case.

⚠️ **Care when flashing.** Before writing his own code he backed up the entire factory flash twice and compared the dumps: only 7,807 bytes changed between reboots, where the chip stores its Wi-Fi calibration, so each backup belongs to exactly one unit. The bigger risk is the chip's eFuses, bits that can be set only once. One holds the factory activation key; touch it or switch on flash encryption by accident and the stock firmware never activates again. Every flashing script of the project therefore refuses to touch eFuses.

🎭 **Face and sound.** On the screen BoBe shows 15 expressions across seven face themes, drawn with the LVGL graphics library, according to Kozaris. On battery the audio was clean; on USB it broke into clicks and dropouts. The chip's power-saving modes were shifting the timing, so he turned all three off. Two pins caused extra trouble: one latches the battery power rail on, and the big hold-to-talk button doubles as the pin that puts the chip into flashing mode. The pin map lives in its own board folder, so another ESP32 body only has to swap that folder.

🔗 **How body and brain talk.** The Mac app, the iPhone app, the command line and the ESP32 body are all thin clients of one Rust background program that manages identity, history, queues, schedules and credentials. The agent loop itself runs in the pi agent harness inside a separate Node process. The body connects through BodyLink, an encrypted WebSocket on which both sides check pinned certificates. Short JSON frames carry faces and button presses, binary frames carry audio in 20-millisecond chunks. Over-the-air updates are written from signed manifests into two alternating slots, skipped when the battery is low, and rolled back automatically if a new build cannot reconnect within ten minutes.

🧪 **A second robot as tester.** For buttons, reboots and bad Wi-Fi, Kozaris built an automated test bench: a Raspberry Pi Pico 2 presses the buttons through isolated transistors, a camera watches the screen and an OpenWrt router injects packet loss. Every test run writes a chained log that records whether a result came from simulation or real hardware.

🚧 **What is still missing.** Kozaris lists the gaps himself: the battery reading still uses the factory's uncalibrated curve, wake-word detection is only available behind a build flag, and the test bench cannot yet confirm real audio quality. Without hardware flash encryption, anyone holding the toy can also read its pairing key out of the flash.

💻 **The software behind it.** According to the GitHub page, the BoBe Mac app needs an Apple Silicon Mac with macOS 26 and access to a model (an API key, a sign-in or Ollama); without the app BoBe also runs as a command-line program on Mac and Linux. Everything BoBe knows lives in the ~/.bobe/ folder of the machine, with memories and goals in Markdown. A cloud model receives only the context a request needs, the project says. The background program listens only on 127.0.0.1 by default, and the project points out that BoBe's tools run with the rights of the user account and are not sandboxed. The source code is MIT licensed; the BoBe name, logo and character are excluded.

## Sources

- [A body for BoBe · ESP32 prototype](https://www.bobebot.com/body)
- [Sombrace/BoBe repository](https://github.com/Sombrace/BoBe)
- [Made a toy robot into a body for my AI assistant](https://johnkozaris.com/blog/bobe-toy-robot-body)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
