COR Brief
Audio & Voice

Xiaogpt

Xiaogpt is an open-source Python tool designed to enable voice interaction with ChatGPT and multiple other large language models (LLMs) through Xiaomi AI Speakers. It supports integration with nine different AI models, including ChatGPT, New Bing, ChatGLM, Gemini, and Llama3, among others. The tool can be configured via command-line parameters, environment variables, or YAML files, and it supports deployment on both X86 and ARM architectures using Docker. Xiaogpt handles authentication for Xiaomi accounts and various LLM APIs, routing voice queries from the speaker to the selected AI models and playing back responses through the speaker hardware. The project is hosted on GitHub under the MIT License and has an active development history with over 500 commits and more than 1,600 stars. It requires users to provide their own API keys for the supported LLMs and a Xiaomi account for device integration. The setup involves configuring network parameters such as host IP and port mapping to enable communication between the Xiaomi AI Speaker and the Xiaogpt service. The tool targets developers and Xiaomi AI Speaker owners who want to add voice-based AI chat capabilities to their existing hardware.

Updated Jan 5, 2026open-source

Xiaogpt enables voice interaction with multiple large language models through Xiaomi AI Speakers using an open-source Python tool.

Pricing
open-source
Category
Audio & Voice
Company
Interactive PresentationOpen Fullscreen ↗
01
Supports nine AI models including ChatGPT, New Bing, ChatGLM, Gemini, Doubao, Moonshot, Q1 (01), Llama3, and 通义千问, allowing users to route queries to various LLMs.
02
Provides Docker images compatible with X86 and ARM architectures for easy cross-platform deployment, with configurable environment variables and volume mounting.
03
Allows configuration through command-line parameters, environment variables, or YAML files for hardware model, Xiaomi account credentials, and API keys for different LLMs.
04
Enables voice playback of AI responses directly through Xiaomi AI Speakers by setting up host IP and port 9527 for communication.

Voice Interaction with LLMs on Xiaomi AI Speakers

Users can ask questions or issue commands to ChatGPT and other supported LLMs via Xiaomi AI Speakers and receive spoken responses.

Developer Customization

Developers can customize the tool's configuration to integrate different AI models and deploy Xiaogpt on various hardware platforms using Docker.

1
Clone Repository
Run git clone https://github.com/yihong0618/xiaogpt to download the source code.
2
Configure Environment
Set environment variables or create a config.yaml file with Xiaomi account credentials, hardware model, and API keys for LLMs such as OpenAI.
3
Run with Docker
Use the command docker run -e OPENAI_API_KEY= -e XIAOGPT_HOSTNAME= yihong0618/xiaogpt --account= --password= --hardware= ensuring port 9527 is mapped.
4
Connect Xiaomi Speaker
Configure the Xiaomi AI Speaker to connect to the host IP and port 9527 for voice playback.
5
Test CLI
After installing dependencies via pdm or pip, run the xiaogpt CLI script to verify functionality.
📊

Strategic Context for Xiaogpt

Get weekly analysis on market dynamics, competitive positioning, and implementation ROI frameworks with AI Intelligence briefings.

Try Intelligence Free →
7 days free · No credit card
Pricing
Model: open-source

Xiaogpt is free and open-source under the MIT License. Users must provide their own API keys for LLM services and a Xiaomi account. There are no additional costs for using the tool itself.

Assessment
Strengths
  • Supports multiple large language models including both Chinese and global AI models in a single tool.
  • Cross-platform Docker deployment supports both X86 and ARM architectures.
  • Open-source MIT license with active maintenance and a substantial commit history.
  • Integrates directly with existing Xiaomi AI Speaker hardware without requiring new devices.
  • Flexible configuration options via YAML, environment variables, and CLI parameters.
Limitations
  • Requires users to provide and manage personal API keys and Xiaomi account credentials, which may expose sensitive information in configuration files or Docker environments.
  • Setup requires specific network configuration including host IP and port 9527 to enable speaker communication.
  • Limited to Xiaomi AI Speakers and does not support other hardware platforms without modification.