<!-- Canonical page: https://reversedwithai.com/p/roborock-local-cloud-server -->
Canonical page: https://reversedwithai.com/p/roborock-local-cloud-server

# Built a self-hosted Roborock cloud so vacuums run locally, with Claude Code and Codex finding the way in

> A vacuum cloud rebuilt on a home server, found with coding agents.

A python-roborock maintainer gave coding agents a rooted vacuum, its firmware and the app, and they helped find a way to run Roborock's cloud on a local server.

## Key facts

- Target: Roborock vacuum cloud
- Category: APIs and protocols
- Platform: Roborock vacuums / Home Assistant
- Models: Claude Opus 4.6, Codex 5.3 max
- Tools: Claude Code, Codex, QEMU, python-roborock
- Outcome: Works
- Checks: Source available: yes; Repro steps: yes; Real hardware: yes; Verified by others: not reported
- Author: [Lash-L](https://github.com/Lash-L)
- Added: 2026-10-15
- Updated: 2026-10-15
- Sources reviewed: 2026-10-15 (editor)

## What was done

Lash-L, who maintains the python-roborock library, built a self-hostable version of Roborock's cloud so a vacuum can run with no internet. He says long-running coding agents found the key step after a firmware-based approach he gave up on in early 2025 had stalled; he retried with agents in early 2026.

The agent was given SSH access to a rooted Roborock S7, the firmware, python-roborock, the Roborock app and decompiled app bundles. The firmware was emulated in a QEMU-backed ARM chroot, so the agent could test ideas without touching a real vacuum. The author first used Claude Code with Opus 4.6, then switched to Codex with 5.3 max because his $20 plan lasted longer. The agent independently found the same onboarding weakness he had already considered. He then prompted it toward recovering Roborock's RSA public key, and it worked out how to derive it from the signatures the vacuum attaches to its /region requests. The human supplied context, vetoed some ideas and wrote the server, TLS setup and app redirection.

## What the server does

The README describes a working local stack: live maps and room cleanups without cloud access, onboarding by DNS redirect and a handshake, and no hardware changes, so there is no need to open or root the device. It relays MQTT and lets the app and Home Assistant work against the local server, including map data that normally goes through the cloud. It supports most Roborock models, including v2 protocol ones, but not the entry-level Q series such as the Q7; check the tested vacuums list before choosing a certificate path. No date is given. It has an MIT licence and carries a disclaimer that you are responsible for any damage. Resetting the vacuum's Wi-Fi returns it to factory pairing. Technical details are in the author's write-up.

You need a domain you control with local DNS rewriting, a host running Docker Compose or Home Assistant add-ons, a valid SSL certificate for the domain and a second computer with Wi-Fi for onboarding. The image is ghcr.io/python-roborock/local_roborock_server.

Sources:
- https://github.com/Python-roborock/local_roborock_server
- https://python-roborock.github.io/local_roborock_server/technical_writeup/

## What the commit history shows

19 of 143 commits in the public repository credit an AI, over 8 days between 2026-04-14 and 2026-11-15. Credited: Claude Opus 5.5 (15), GitHub Copilot (3), Claude Sonnet 5.5 (2), Claude Fable 5.1 (2).

Measured by this site from public git history.

## Questions about Roborock vacuum cloud

### What is the Roborock vacuum cloud project?

A python-roborock maintainer gave coding agents a rooted vacuum, its firmware and the app, and they helped find a way to run Roborock's cloud on a local server. It is listed under APIs and protocols for Roborock vacuums / Home Assistant.

### Which AI model was used on Roborock vacuum cloud?

The entry names Claude Opus 4.6 and Codex 5.3 max. The tools named alongside are Claude Code, Codex, QEMU and python-roborock.

### Did the AI reverse engineering of Roborock vacuum cloud work?

Its author reports that it works. Checks recorded: source available yes, repro steps yes, real hardware yes.

### Is the source code for Roborock vacuum cloud available?

Yes. The code, patches or tooling are public: https://github.com/Python-roborock/local_roborock_server. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/Python-roborock/local_roborock_server)
- [Write-up](https://python-roborock.github.io/local_roborock_server/technical_writeup/)
- [Discussion](https://news.ycombinator.com/item?id=49877182)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Lash-L (2026). Built a self-hosted Roborock cloud so vacuums run locally, with Claude Code and Codex finding the way in. Reversed with AI. https://reversedwithai.com/p/roborock-local-cloud-server
