Build your own AI friend
Go to file
小鹏 7bb12f31f0
Some checks are pending
Build and Test / build (push) Waiting to run
增加ottoRobot和electronBot的支持 (#757)
* otto v1.4.0 MCP

1.使用MCP协议控制机器人
2.gif继承lcdDisplay,避免修改lcdDisplay

* otto v1.4.1 gif as components

gif as components

* electronBot v1.1.0 mcp

1.增加electronBot支持
2.mcp协议
3.gif 作为组件
4.display子类

* 规范代码

1.规范代码
2.修复切换主题死机bug
2025-06-05 23:51:49 +08:00
.github add ci build.yml (#475) 2025-04-12 09:34:33 +08:00
docs 增加ottoRobot和electronBot的支持 (#757) 2025-06-05 23:51:49 +08:00
main 增加ottoRobot和electronBot的支持 (#757) 2025-06-05 23:51:49 +08:00
partitions/v1 v1.6.8: Move partition CSV files into a folder 2025-06-04 12:11:55 +08:00
scripts Add v2.0 to versions.py 2025-04-28 17:05:56 +08:00
.gitignore feat: 添加 ESP-Hi WebUI (#739) 2025-06-03 15:24:11 +08:00
CMakeLists.txt Bump to 1.7.0 2025-06-04 20:32:41 +08:00
LICENSE Initial commit 2024-08-31 18:08:16 +08:00
README_en.md Update documentation (An MCP-based Chatbot) 2025-06-04 04:17:49 +08:00
README_ja.md Update documentation (An MCP-based Chatbot) 2025-06-04 04:17:49 +08:00
README.md Update related projects 2025-06-05 20:42:45 +08:00
sdkconfig.defaults Bump to 1.7.0 2025-06-04 20:32:41 +08:00
sdkconfig.defaults.esp32c3 Add wake word to xmini-c3 (#730) 2025-05-31 22:21:03 +08:00
sdkconfig.defaults.esp32p4 v1.6.8: Move partition CSV files into a folder 2025-06-04 12:11:55 +08:00
sdkconfig.defaults.esp32s3 更新Wi-Fi组件版本,从OTA接口读取Websocket服务器 2025-04-21 15:13:11 +08:00

An MCP-based Chatbot

(English | 中文 | 日本語)

Video

👉 Human: Give AI a camera vs AI: Instantly finds out the owner hasn't washed hair for three days【bilibili】

👉 Handcraft your AI girlfriend, beginner's guide【bilibili】

Introduction

This is an open-source ESP32 project, released under the MIT license, allowing anyone to use it for free, including for commercial purposes.

We hope this project helps everyone understand AI hardware development and apply rapidly evolving large language models to real hardware devices.

If you have any ideas or suggestions, please feel free to raise Issues or join the QQ group: 575180511

Control Everything with MCP

As a voice interaction entry, the XiaoZhi AI chatbot leverages the AI capabilities of large models like Qwen / DeepSeek, and achieves multi-terminal control via the MCP protocol.

Control everything via MCP

Features Implemented

  • Wi-Fi / ML307 Cat.1 4G
  • Offline voice wake-up ESP-SR
  • Supports two communication protocols (Websocket or MQTT+UDP)
  • Uses OPUS audio codec
  • Voice interaction based on streaming ASR + LLM + TTS architecture
  • Speaker recognition, identifies the current speaker 3D Speaker
  • OLED / LCD display, supports emoji display
  • Battery display and power management
  • Multi-language support (Chinese, English, Japanese)
  • Supports ESP32-C3, ESP32-S3, ESP32-P4 chip platforms
  • Device-side MCP for device control (Speaker, LED, Servo, GPIO, etc.)
  • Cloud-side MCP to extend large model capabilities (smart home control, PC desktop operation, knowledge search, email, etc.)

Hardware

Breadboard DIY Practice

See the Feishu document tutorial:

👉 "XiaoZhi AI Chatbot Encyclopedia"

Breadboard demo:

Breadboard Demo

Supports 70+ Open Source Hardware (Partial List)

Software

Firmware Flashing

For beginners, it is recommended to use the firmware that can be flashed without setting up a development environment.

The firmware connects to the official xiaozhi.me server by default. Personal users can register an account to use the Qwen real-time model for free.

👉 Beginner's Firmware Flashing Guide

Development Environment

  • Cursor or VSCode
  • Install ESP-IDF plugin, select SDK version 5.4 or above
  • Linux is better than Windows for faster compilation and fewer driver issues
  • This project uses Google C++ code style, please ensure compliance when submitting code

Developer Documentation

Large Model Configuration

If you already have a XiaoZhi AI chatbot device and have connected to the official server, you can log in to the xiaozhi.me console for configuration.

👉 Backend Operation Video Tutorial (Old Interface)

For server deployment on personal computers, refer to the following open-source projects:

Other client projects using the XiaoZhi communication protocol:

Star History

Star History Chart