xiaogpt is a Python tool that enables ChatGPT and other large language models to run on Xiaomi AI speakers.
The tool solves the problem of accessing advanced AI capabilities through existing smart speaker hardware. It works by connecting to Xiaomi speakers via their device identifiers and routing queries to supported language models including ChatGPT, New Bing, ChatGLM, Gemini, Doubao, Moonshot, Llama3, and others. Users interact with these models through voice commands on their Xiaomi devices, with responses played back through the speaker.
Adoption requires a Xiaomi AI speaker, Python 3.8 or later, and credentials for at least one supported language model service. The tool is suited for users who already own Xiaomi speakers and want to augment them with modern AI capabilities without replacing the hardware. Setup involves obtaining the speaker's device identifier through the miservice package and configuring environment variables with Xiaomi account credentials and the chosen AI service API keys. The project supports multiple AI backends, allowing users to choose based on availability and preference rather than being locked into a single provider.
Development shows consistent activity with regular commits addressing bug fixes and feature additions. The project maintains responsiveness to issues and pull requests from the community. Updates include support for new language model providers and improvements to the speaker integration layer. The codebase remains actively maintained with attention to compatibility across different operating systems and shell environments.