智能家居未来探索方案 Xiaomi Local Copilot ,以米家摄像机为视觉信息来源,以自研大模型为核心,打通全屋 IoT 设备。基于大模型的开发范式,让用户能够以自然语言定义家庭的各种需求和规则,实现更广泛、更具创意的智能联动。
Xiaomi MiMo-VL-Miloco
English | 简体中文
Xiaomi's open-source AI solution for the future of whole-home intelligence. It uses the video and audio from Mi Home cameras as a full-modal perception gateway, the in-house MiMo large model as its intelligent brain, and runs as an Agent plugin on top of OpenClaw to orchestrate whole-home devices for a proactive, intelligent experience.
Miloco 2.0 perceives what happens at home, makes proactive decisions and controls devices based on common sense, breaks down "vague and long-term" goals into trackable household tasks, recognizes family members, and—drawing on home memory—delivers personalized service to each member: querying and controlling devices, tuning the home to each member's comfort, or offering useful reminders at the right moment.
Tip
Raise your own Miloco. Its out-of-the-box behavior won't always match your taste—just tell Miloco through OpenClaw (e.g. "don't remind me when the place is messy"), and it remembers your preference and adjusts what it does proactively. Every remark "raises" a Miloco that's tuned to your home, and it knows you better the longer you live with it.
Caution
Cost note: Miloco 2.0's perception and Agent rely primarily on cloud-based large models and will incur ongoing API usage costs—keep an eye on your usage. You can review token consumption on the "Models" page of the home dashboard.
Send the following instruction to OpenClaw to complete the installation automatically:
Please install the Miloco plugin for me: https://raw.githubusercontent.com/XiaoMi/xiaomi-miloco/main/scripts/install-guide.md
curl -LsSf https://github.com/XiaoMi/xiaomi-miloco/releases/latest/download/install.sh | bash
From the project root, run:
bash scripts/install.sh --dev # build from source (scripts/build.sh), then install locally
Whichever method you choose above, native Windows is not supported—install and run everything inside WSL.
Important
Local camera streaming requires extra WSL networking setup. The dashboard's live "right now at home" view pulls camera streams over the LAN, and WSL's default NAT mode blocks the UDP packets cameras send—so the feed won't load until you enable mirrored networking and allow the Hyper-V firewall.
On Windows — Add the following to %USERPROFILE%\.wslconfig (i.e. C:\Users\<you>\.wslconfig; create the file if missing), then run wsl --shutdown in PowerShell to restart WSL:
[wsl2]
networkingMode=mirrored
On Windows (elevated PowerShell) — Allow inbound traffic to WSL:
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow
In WSL — Once Miloco is installed, verify with miloco-cli doctor (it checks both the firewall and WSL networking).
After installation, restart the OpenClaw gateway so the plugin takes effect:
openclaw gateway restart
Then open the home dashboard to complete the initial setup:
miloco-cli dashboard # open the home dashboard in your browser (or visit http://<host>:1810/ directly)
Get started in three steps from the dashboard:
api_key (skip if already filled in during installation). The model name and Base URL default to MiMo and need no changes.You can also do this from the command line:
miloco-cli config set model.omni.api_key sk-xxx # configure the model key (defaults to MiMo; usually the only thing needed)
miloco-cli account bind # bind your Xiaomi account
miloco-cli scope camera enable <did> # enable perception for a specific camera
Once it's running, see the User Manual for how to use Miloco day to day.
miloco-plugin/
├── backend/ # uv workspace
│ ├── miloco/ # main service: perception engine, rules, MIoT gateway
│ └── miot/ # MIoT SDK (standalone subpackage)
├── cli/ # miloco-cli command-line tool
├── plugins/
│ ├── openclaw/ # OpenClaw plugin (TypeScript)
│ └── skills/ # Agent Skill docs
├── web/ # home dashboard (React 19 + Vite)
├── scripts/ # build.sh / install.sh / manifest.json
└── knowledge/ # project knowledge base
Run into issues, want to give feedback, or just chat about use cases? Scan the QR code to join our Feishu user group (the QR code never expires):
Miloco stands on the shoulders of the following open-source projects:
See LICENSE.md for the full license terms.
Important notice: This project is for non-commercial use only. Without written authorization from Xiaomi Inc., it may not be used to develop applications (apps), web services, or other forms of software.