CPE Box is a setup script and a web dashboard for the Xiaomi 5G CPE Pro router family, model CB0401V2. It opens persistent root SSH, gives you a local panel for cellular, Wi-Fi and device settings, and removes the telemetry the stock firmware phones home with. Everything runs locally.

What it does
- Overview
- The page you open to check that all is well: LTE and 5G signal with RSRP, RSRQ and SINR per link, operator and registration, active bands, and data used today and this month with a live down and up rate. The totals come from the modem itself, the same numbers the stock web UI shows. CPU, memory, SoC temperature and uptime sit below.
- Cellular
- A 5G mode selector (SA+NSA auto, SA only, NSA only, LTE only), band presets for Europe, America and Asia, single bands by hand, an APN switcher, data and roaming toggles and SIM PIN handling in the panel. There is also an IMEI editor that reads the modem's IMEI and writes a new one, for carriers that allow SA only for whitelisted device IDs. It sits behind a large warning and cannot be reversed to a factory value. Changing an IMEI is illegal in many countries, Germany included.
- Wi-Fi
- 2.4 and 5 GHz side by side: SSID, password, channel, width, hidden network, Wi-Fi 6 on or off and a live client count. The 2.4 GHz channel scan scores signal strength and overlap together. The 160 MHz width on 5 GHz works with DFS channels, and the form shows what the radio is really running.
- Devices
- Every device on the network gets a Trusted switch that is saved to the router the moment you flip it. Anything untrusted sends a push notification when it joins, and a lock blocks a device after a confirm. If a device sends no hostname, the panel guesses the manufacturer from its MAC and asks over mDNS.
- Messages
- An SMS inbox and thread view for the SIM in the router. Incoming texts are forwarded to ntfy.sh or Telegram, and on Telegram a reply to a forwarded message goes out as a real SMS.
- Router and Console
- Reboot now or on a schedule run by the router's own cron, the router name, a root password change, and a console that takes SSH commands as root and AT commands straight to the modem. Whatever the panel leaves out, you can still do from here.
- Runs on
- Web · Router · macOS · Windows · Linux
- Built with
- Go · JavaScript · Shell · PowerShell · Lua
- Version · License
- v1.0.15 · MIT
I can build a tool like this for your team or product.
Need something like this?