Open-source AI assistant ecosystem with MCP integrations, multimodal workflows, IoT support, and cross-platform voice interaction.
# Add to your Claude Code skills
git clone https://github.com/huangjunsen0406/py-xiaozhiLast scanned: 11/28/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-11-28T21:47:14.970Z",
"npmAuditRan": true,
"pipAuditRan": false,
"promptInjectionRan": true
}py-xiaozhi is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by huangjunsen0406. Open-source AI assistant ecosystem with MCP integrations, multimodal workflows, IoT support, and cross-platform voice interaction. It has 3,571 GitHub stars.
Yes. py-xiaozhi passed AgentsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/huangjunsen0406/py-xiaozhi" and add it to your Claude Code skills directory (see the Installation section above).
py-xiaozhi is primarily written in Python. It is open-source under huangjunsen0406 on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh py-xiaozhi against similar tools.
No comments yet. Be the first to share your thoughts!
English | 简体中文
Dynadot是ICANN认证,域名保有量全球前五的域名注册商,首屈一指的国际域名交易平台。为所有用户提供以域名为中心的域名注册,域名交易,域名管理,以及企业邮箱及建站服务。为所有用户提供多种域名优惠,并支持免费提交域名抢注需求。Dynadot黑五活动正式上线!探索我们的官方优惠页面,个位数价格注册域名,五折购入建站工具与专业版邮箱。
py-xiaozhi is a lightweight, cross-platform multi-modal AI interaction framework built on Python's async architecture. It supports real-time voice streaming, vision-language tasks, and IoT device control. Deployable across Windows, macOS, Linux desktops, and ARM embedded platforms (Raspberry Pi, Horizon Robotics RDK, Jetson Nano), it bridges the gap between Large Language Models and physical hardware — out of the box.
Evolved from the xiaozhi-esp32 firmware project. Officially adopted by D-Robotics (xiaozhi-in-rdk) as an upstream dependency.

MediaPlayer over AudioMixer + FFmpeg AudioDecoder with automatic TTS audio focus and built-in cross-platform WebRTC APM echo cancellationzh_CN), English (en_US), and Vietnamese (vi_VN) across GUI, TUI, and activation flows, with zero-restart live switching and XIAOZHI_LANG overrideZero to Xiaozhi Client (Video Tutorial)
StateManager owns IDLE, LISTENING, SPEAKING and NOTIFYING;
ConversationSession coordinates transitions. A successful wake/button action enters
LISTENING after the protocol connects and accepts the listen request. TTS moves the
device to SPEAKING; once local playback drains, the session resumes LISTENING or
returns to IDLE. Server notifications play in NOTIFYING while otherwise idle,
then return to IDLE. Connection establishment belongs to the protocol lifecycle,
not a separate device state.
AudioMixer, SoXR resampling, and built-in WebRTC APM AECpy-xiaozhi/
├── main.py # Application entry point
├── src/
│ ├── activation/ # Device activation
│ ├── audio_codecs/ # Audio codecs, multi-track AudioMixer, FFmpeg AudioDecoder
│ ├── audio_processing/ # Built-in WebRTC APM AEC & wake word detection
│ ├── bootstrap/ # Application bootstrap & dependency injection
│ ├── constants/ # Constants
│ ├── core/ # Core infrastructure (event bus, state management, task management, etc.)
│ ├── i18n/ # Pure-stdlib i18n engine & zh_CN / en_US / vi_VN locale catalogs
│ ├── logging/ # Logging subsystem
│ ├── mcp/ # MCP tool system & external plugin host
│ │ ├── mcp_server.py # MCP server
│ │ ├── plugins/ # External plugin loader, ZIP installer, subprocess RPC, MediaPlayerFacade
│ │ └── tools/ # Built-in tools (camera/scre