OpenClaw + Codex + Claude Code · Android
Three AI coding agents in one APK. OpenClaw gateway, Codex CLI, and Claude Code (via Claw Code / OpenClaude) — all running in a full Linux environment on your phone. No root. No server. No PC.
In action
Capabilities
AnyClaw bundles OpenClaw (personal AI gateway), OpenAI Codex CLI (terminal coding agent), and Claude Code (via Claw Code / OpenClaude — the leaked Claude Code architecture, 48K+ stars) 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.
Full Claw Code agent — 19 tools, query engine, MCP integration, multi-agent swarms. Claude Code architecture on your phone.
Complete Termux-derived userland — sh, apt, Node.js 24, Python, 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) │ │ │ │ │ │ │ │ │ │ │ │ claw-code agent → Claude Code (OpenClaude) │ │ │ │ │ │ │ │ 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.
Install Claude Code agent (Claw Code). 19 tools, query engine, MCP, multi-agent swarms.
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 |
| AI Agent | Claw Code / OpenClaude (Claude Code) | latest |
| 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) | — |
Latest upstream release
Released Apr 09, 2026