Your Phone as an AI Gateway Node, No Root Required
OpenClaw-Termux packages the OpenClaw AI gateway into an Android app by hiding an entire Ubuntu environment inside proot and wrapping it in Flutter.

What it does
It brings the OpenClaw AI gateway to Android by spinning up a headless Ubuntu container via proot-distro, installing Node.js 22 and the gateway inside it, and surfacing the whole thing through a Flutter UI. You get a built-in terminal, gateway start/stop controls, a WebView dashboard, and a Termux CLI alternative — all without rooting the device. The result is a self-hosted AI proxy on your phone that can route requests to Anthropic, OpenAI, Gemini, and four other providers.
The interesting bit
The Flutter app acts as a gateway “node,” using a WebSocket bridge to expose Android hardware — camera, GPS, screen recording, sensors, even the flashlight — as callable commands to the AI. It also patches the gateway’s openclaw.json on every startup to whitelist those 15 device commands, which is a blunt but effective way to keep the host and the container in sync.
Key highlights
- Ships as both a standalone Flutter APK and a Termux CLI package (
openclawx). - Bundles a full terminal emulator, SSH remote access, and optional dev tools (Go, Homebrew, OpenSSH) inside the app.
- Includes a “Bionic bypass” to fix Node.js
os.networkInterfaces()crashes on Android’s libc. - Foreground service keeps the gateway alive, though Android battery optimization can still kill it silently.
- Automatically provisions ~500 MB of Ubuntu rootfs and dependencies on first launch.
Caveats
- The Canvas device capability is listed but explicitly noted as “not implemented” in the README.
- Earlier versions automatically demanded broad storage permissions on launch, which led to data-loss reports; access is now opt-in, but the scars remain in the issue tracker.
- The gateway will likely crash silently after a few minutes unless you manually disable Android battery optimization for the app.
Verdict Mobile developers and AI tinkerers who want a pocket-sized gateway with hardware integration should take a look. If you already run your AI stack on a server and don’t need Android sensors, this is elaborate glue code for a problem you don’t have.
Frequently asked
- What is mithun50/openclaw-termux?
- OpenClaw-Termux packages the OpenClaw AI gateway into an Android app by hiding an entire Ubuntu environment inside proot and wrapping it in Flutter.
- Is openclaw-termux open source?
- Yes — mithun50/openclaw-termux is open source, released under the MIT license.
- What language is openclaw-termux written in?
- mithun50/openclaw-termux is primarily written in Dart.
- How popular is openclaw-termux?
- mithun50/openclaw-termux has 1.7k stars on GitHub.
- Where can I find openclaw-termux?
- mithun50/openclaw-termux is on GitHub at https://github.com/mithun50/openclaw-termux.