piotrmachowski/xiaomi-cloud-tokens-extractor

This tool retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 38 minutes ago
Added to GitGenius on September 14th, 2026
Created on October 22nd, 2020
Open Issues & Pull Requests: 16 (+0)
GitHub issues: Enabled
Number of forks: 447
Total Stargazers: 4,784 (+0)
Total Subscribers: 77 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.3 hours
Mean response time: 42.3 days
90th percentile: 80.1 days
Tracked items: 57

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 9
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 158 days
Stale 30+ days: 6
Stale 90+ days: 4

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

Detailed Description

Xiaomi Cloud Tokens Extractor is a utility that retrieves authentication tokens for devices connected to Xiaomi cloud accounts and encryption keys for Bluetooth Low Energy devices.

The tool solves the problem of obtaining device tokens needed to control Xiaomi devices programmatically. It works by authenticating to the Xiaomi cloud service using either username and password credentials or QR code authentication, then querying the cloud for all registered devices. After authentication, users select a Xiaomi server region to query, and the tool returns a list of all connected devices along with their names, IP addresses, and the necessary tokens for local control.

The tool is designed for users who need to integrate Xiaomi devices into home automation systems or other applications requiring direct device communication. It suits anyone with a Xiaomi cloud account who wants to extract tokens without manual configuration. The tool provides multiple deployment options: a standalone Windows executable, command-line execution on Linux and Home Assistant, Docker containerization, or manual Python execution. The README notes that users should provide credentials from their Xiaomi Cloud account rather than from device-specific apps like Roborock, and documents several troubleshooting steps including disabling network ad blockers, checking spam folders for two-factor authentication emails, and being aware of rate limits on authentication requests.

The project maintains active troubleshooting documentation addressing common authentication issues and regional server selection. The tool supports multiple authentication methods and deployment environments, indicating ongoing attention to accessibility across different user setups. The README includes references to complementary tools for Xiaomi vacuum integration with Home Assistant, suggesting the project exists within a broader ecosystem of related utilities.