# openwrt-xiaomi/xmir-patcher

Firmware patcher for Xiaomi routers

Repository: https://github.com/openwrt-xiaomi/xmir-patcher
Canonical: https://ross.abutalabs.com/products/xmir-patcher
Language: Python
License Family: other
Topics: xiaomi, router, exploit, installer, patch, firmware, ssh
Last push: 2026-08-26T04:31:26+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 1771, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3408, forks 394 (observed 2026-08-28T04:08:03.188499+00:00)

## What it is
XMiR-Patcher is a Python-based firmware patcher for Xiaomi routers that exploits vulnerabilities to unlock SSH and install custom firmware such as OpenWrt. It provides a simple installer runnable on Windows, Linux, and macOS.

## Use cases
- unlock ssh on xiaomi router
- install openwrt on xiaomi router
- patch xiaomi router firmware
- flash custom firmware on xiaomi router
- gain root access to xiaomi router
- remove vendor restrictions from router firmware

## When to choose
- you own a supported Xiaomi router and want SSH access or custom firmware
- you want an automated exploit-based patching tool rather than manual flashing
- you need a cross-platform Python tool for router modification

## When to avoid
- your router model is not supported by the tool
- you are unwilling to risk bricking your device or voiding warranty
- you need a fully supported, licensed product - the repo has no license

## Facets
- artifact type: cli-tool
- maturity: active
- function: security, cli, developer-tools
- domain: security, networking, self-hosted, hardware
- platform: python, windows, cli
- tags: firmware-patching, xiaomi-routers, openwrt, ssh-unlock, exploit, linux, macos

## Member repositories
- openwrt-xiaomi/xmir-patcher (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:03.188499+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:33.141608+00:00, confidence not recorded.
  - readme: https://github.com/openwrt-xiaomi/xmir-patcher (fetched 2026-08-28T04:08:03.188499+00:00, sha fd2cbb4715b4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
