xgg
eyaeya/xiaomi-central-hub-gateway-cli
CLI that lets AI agents control Mi Home devices and write Xiaomi central hub automations
xgg is a command-line tool that lets AI agents control Xiaomi Mi Home devices and build automations on the Xiaomi central hub gateway. Its description names Hermes among the agents it is meant to be driven by.
What xgg does
xgg combines Mi Home cloud control with rule-graph automation on the central hub gateway. The cloud side handles device discovery, property reads and writes and actions. The hub side handles rule graphs, variables, backups, habit learning and run logs.
It outputs stable JSON with actionable errors, and the npm package carries a self-contained skill so agents such as Codex and Claude can operate rule graphs. Safety features include pre-write snapshots, change leases, strict schema checks, lint, and creation disabled by default. The repo has two packages, @eyaeya/xgg-core and @eyaeya/xgg-cli. The README is mainly in Chinese.
Key features
- Direct Mi Home cloud device reads, writes and actions
- Rule-graph automation on the central hub with 25 executable node types
- Stable JSON output and an agent skill bundled in the npm package
- Write safeguards: snapshots, leases, strict validation and lint
- Rule export, import, clone and backup
When to use it
- Asking an agent to write and verify a home automation
- Debugging a rule using logs and traces
- Backing up and cloning central hub rules
Who it is for: Xiaomi smart-home users who want an AI agent such as Hermes to operate devices and automations.
How it fits with Hermes Agent
xgg is a general tool whose description names Codex, Claude, OpenClaw and Hermes as agents that can drive it.
Requirements: A Mi Home account scan for authorization and a Xiaomi central hub gateway
Note: The README is mainly in Chinese and states it does not claim full parity with the upstream mijia-api project.
FAQ
What is xgg?
xgg is a CLI that combines Mi Home cloud device control with automation programming on the Xiaomi central hub gateway, designed to be driven by AI agents.
Does xgg work with Hermes Agent?
The repository description names Hermes among the agents that can drive it, and the npm package bundles a SKILL.md-style agent skill. The excerpt shows no Hermes-specific setup.
Is xgg free and open source?
The repository is released under the GPL-3.0 license.
Similar dev tools for Hermes Agent
All dev toolsRust agent runtime with a terminal UI, chat gateway, cron and a Nous OAuth login option
Obedience-Corp FestivalFilesystem and Git framework for planning agent work in camp workspaces and stepping through it with fest next
ultraworkers hbackupRust CLI that backs up and restores Hermes Agent and OpenClaw installations to tar.zst archives
The-AIE The GibsonGovernance harness with a gated plan-to-ship pipeline for agent fleets on Claude Code, Codex, Grok or Hermes
nicolasmelo1 LogionDeveloper tooling for a registry that measures whether AI-agent skills and plugins actually work
huangrichao2020 hermescheckArchitecture and runtime health checks for Hermes Agent checkouts, forks and deployments
Related guides: How to install Hermes Agent · Run multiple Hermes agents with profiles