🦞

AnyClaw

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.

Download APK GitHub Quick Start

In action

See it running

OpenClaw Dashboard Codex Coding Agent

Capabilities

Two agents, one pocket

AnyClaw bundles OpenClaw (personal AI gateway with agents, skills & Canvas) and OpenAI Codex CLI (terminal coding agent) inside a self-contained Android app.

🦞

OpenClaw Dashboard

Full Control UI — chat, agents, sessions, skills, Canvas. Runs locally on your device.

💬

Codex Chat

Conversational coding agent with streaming, reasoning visibility, and multi-thread sessions.

🦀

Native Binary

73MB Rust binary (aarch64-musl) running natively. Full codex app-server with JSON-RPC.

🐧

Embedded Linux

Complete Termux-derived userland — sh, apt, Node.js 24, npm, SSL certs. Extracted from APK.

🔓

Full Auto-Approval

No permission popups. danger-full-access sandbox mode by default.

🔋

Background Execution

Foreground service + battery exemption. Keeps running when you switch apps.

Under the hood

Four layers, one device

┌────────────────────────────────────────────────────────┐
                    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

From cold start to ready

Battery & Service

Request Doze exemption. Start foreground service with persistent notification.

Bootstrap Extraction

Extract Termux bootstrap zip into app’s private storage. Fix hardcoded paths.

Node.js & Toolchain

Install Node.js 24, Python, clang/cmake/make/lld for native module builds.

OpenClaw + koffi

Install OpenClaw globally. Build koffi FFI module from source with Termux toolchain.

Codex CLI + Binary

Extract server bundle. Download native Rust binary from npm registry.

Proxy + Auth + Launch

Start CONNECT proxy, OAuth login, gateway, Control UI server, then load WebView.

Get started

Build from source

terminal
# 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

What’s inside

LayerTechnologyVersion
AI GatewayOpenClaw2026.2.21
AI AgentOpenAI Codex CLI0.104.0
Modelgpt-5.3-codex (via Codex OAuth)
RuntimeNode.js (Termux)24.13.0
NativeRust (musl, aarch64)
FrontendVue.js 3 + Vite + Tailwind3.x
AndroidKotlin + WebView2.1.0
LinuxTermux bootstrap (aarch64)