OpenClaw + Codex · Android
Two AI coding agents in one APK. Full Linux environment, Node.js runtime, native Rust binary — all on your phone. No root. No Termux.
In action
Capabilities
AnyClaw bundles OpenClaw (personal AI gateway with agents, skills & Canvas) and OpenAI Codex CLI (terminal coding agent) inside a self-contained Android app.
Full Control UI — chat, agents, sessions, skills, Canvas. Runs locally on your device.
Conversational coding agent with streaming, reasoning visibility, and multi-thread sessions.
73MB Rust binary (aarch64-musl) running natively. Full codex app-server with JSON-RPC.
Complete Termux-derived userland — sh, apt, Node.js 24, npm, SSL certs. Extracted from APK.
No permission popups. danger-full-access sandbox mode by default.
Foreground service + battery exemption. Keeps running when you switch apps.
Under the hood
┌────────────────────────────────────────────────────────┐ │ Android APK │ │ │ │ WebView (Vue.js) ←→ CodexServerManager │ │ │ │ ┌──────────────────────────────────────────────────┐ │ │ │ codex-web-local → :18923 (HTTP + Vue UI) │ │ │ │ └─ codex app-server (Rust/musl, JSON-RPC) │ │ │ │ │ │ │ │ openclaw gateway → :18789 (WebSocket) │ │ │ │ openclaw ctrl UI → :19001 (Static files) │ │ │ │ │ │ │ │ proxy.js → :18924 (CONNECT, DNS/TLS) │ │ │ └──────────────────────────────────────────────────┘ │ └────────────────────────────────────────────────────────┘
Boot sequence
Request Doze exemption. Start foreground service with persistent notification.
Extract Termux bootstrap zip into app’s private storage. Fix hardcoded paths.
Install Node.js 24, Python, clang/cmake/make/lld for native module builds.
Install OpenClaw globally. Build koffi FFI module from source with Termux toolchain.
Extract server bundle. Download native Rust binary from npm registry.
Start CONNECT proxy, OAuth login, gateway, Control UI server, then load WebView.
Get started
# clone
git clone https://github.com/friuns2/openclaw-android-assistant.git
cd openclaw-android-assistant
# build frontend
npm install && npm run build
# prepare android
cd android && bash scripts/download-bootstrap.sh
# build + install + launch
bash scripts/build-server-bundle.sh && ./gradlew assembleDebug \
&& adb install -r app/build/outputs/apk/debug/app-debug.apk \
&& adb shell am start -n com.codex.mobile/.MainActivity
Or just download the latest APK directly.
Stack
| Layer | Technology | Version |
|---|---|---|
| AI Gateway | OpenClaw | 2026.2.21 |
| AI Agent | OpenAI Codex CLI | 0.104.0 |
| Model | gpt-5.3-codex (via Codex OAuth) | — |
| Runtime | Node.js (Termux) | 24.13.0 |
| Native | Rust (musl, aarch64) | — |
| Frontend | Vue.js 3 + Vite + Tailwind | 3.x |
| Android | Kotlin + WebView | 2.1.0 |
| Linux | Termux bootstrap (aarch64) | — |