Native performance via Termux & glibc. No Proot. No VM. Pure ARM64 power.
π Quick Start β’ β‘ Features β’ π Docs β’ π Architecture β’ π€ Community
Your old Android phone is not e-waste. It's a powerful ARM64 server waiting to happen.
OCA seamlessly installs the OpenClaw AI ecosystem directly onto your device via Termux. This completely bypasses sluggish Linux distributions (like Ubuntu on Proot), running natively with full glibc compatibility instead of Android's default Bionic libraries.
| Before OCA β | After OCA β |
|---|---|
| Slow Proot containers | Native ARM64 execution |
| Bionic libc limitations | Full glibc compatibility |
| Manual setup (hours) | Zero-Prompt Auto-Install (2 mins) |
| Limited AI tools | Optimized Qwen/Gemini Arsenal |
| Individual tool prompts | Total Autonomous Deployment |
| Static installation | Auto-updating ecosystem |
Configure Developer Options, Stay Awake, and battery optimization to prevent Android from killing Termux.
π Read Phone Setup Guide for step-by-step instructions.
β οΈ Important: The Play Store version of Termux is discontinued. You must install from F-Droid.
- Open browser and go to f-droid.org
- Search for Termux β Tap Download APK
- Install and allow "Install from unknown sources"
Open Termux and run:
pkg update -y && pkg upgrade -y
pkg install -y curl openssl libngtcp2 ca-certificatesIf Termux prints an error like CANNOT LINK EXECUTABLE "curl" or mentions
SSL_set_quic_tls_transport_params, your Termux SSL/HTTP packages are out of
sync. Re-run the two commands above, then start a fresh Termux session or run
hash -r before installing OCA.
BOOTSTRAP="${TMPDIR:-/tmp}/oca-bootstrap.sh"
curl -fsSL https://raw.githubusercontent.com/PsProsen-Dev/OpenClaw-On-Android/master/bootstrap.sh -o "$BOOTSTRAP" \
&& bash "$BOOTSTRAP" \
&& [ -f "$HOME/.bashrc" ] && source "$HOME/.bashrc"This downloads the bootstrap script first instead of piping directly into
bash, so a broken curl cannot accidentally run an empty installer and then
try to source a missing ~/.bashrc.
Takes 3-10 minutes depending on network and device.
On the OpenClaw platform, OCA now installs Homebrew (Linuxbrew) and the Go toolchain automatically once the glibc runtime is ready.
Why automatic?
glibc-runnerprovides the glibc dynamic linker that standard Linux binaries need on Android. Since Homebrew and many Go-based helper tools depend on that same Linux-compatible layer, OCA treats them as part of the default glibc stack instead of separate opt-in extras.
After install completes, verify the extra toolchain:
source ~/.bashrc && brew --version && go versionopenclaw onboardFollow the on-screen instructions.
openclaw gateway
β οΈ Important: Run directly in Termux app, not via SSH. SSH session disconnect will stop the gateway.
That's it. You now have a full AI server on your phone.
| π± Native Execution | βοΈ Full Node.js v24 |
|---|---|
| OpenClaw runs bare-metal in Termux | glibc-patched Node.js v24.14.1 |
| No Proot overhead | Official linux-arm64 binaries |
| 100% ARM64 optimized | Bypasses Android linker restrictions |
| π€ AI CLI Tools |
|---|
| Qwen Code, Gemini CLI, OpenCode |
| Zero-prompt auto-setup |
| Cloud API routing only |
| π Remote Access | π‘οΈ Safe Root |
|---|---|
| SSH server on port 8022 | oca-root wrapper for rooted devices |
| Remote terminal access | Selective root commands |
| 24/7 headless operation | No system compromise |
| π Auto-Updates | π§ Master CLI |
|---|---|
One-command updates via oca --update |
oca command for all operations |
| Automatic security patches | Global status, health, & maintenance |
| Rolling release model | Platform-aware architecture |
After installation, use the oca command for managing your installation:
| Command | Description |
|---|---|
oca --update |
Update OpenClaw and Android patches |
oca --status |
Show global installation health |
oca --clean |
Purge caches and binary junk |
oca --uninstall |
Clean removal of OCA ecosystem |
oca --version |
Show version info |
oca --help |
Show Jarvis-grade help |
Update example:
oca --update && source ~/.bashrcThis updates: OpenClaw core, code-server, OpenCode, AI CLI tools, Android patches
β οΈ Local LLM/model inference is NOT supported on mobile/Android. Due to RAM, storage, and CPU limitations, only cloud-hosted LLMs (Gemini, GPT-OSS, etc) are available in OCA.
Run powerful language models with zero local RAM/storage usage!
# Example cloud model usage
# (Follow CLI tool docs for details β only cloud endpoints are supported)Recommended Cloud Models:
- Gemini (Google Cloud)
- Qwen (Alibaba Cloud)
- GPT-OSS:120b-cloud (Open OSS; cloud-hosted)
Want to use powerful LLMs like GPT-4.1, GPT-5 mini, MiniMax, Big PickleβFREE? OpenCode, GitHub, and Zen offer incredible models at zero cost for development, hobby coding, or tinkering.
- GitHub Copilot/Opencode App: Simply open the model picker (
/modelscommand or menu) β youβll see models like:GPT-4.1,GPT-5 mini(both free! green tick)- GPT-5.2-Codex, Claude, MiniMax, and more
- See screenshot β
- Fun fact: Main (Jarvis RTXβ‘) bhi GPT-4.1 hoonβvohi model OpenCode free mode me available hai!
- Free endpoints bhi active
OpenCode API key(or provider key) maangte hain.- Register at OpenCode Zen for a free key.
| Model Name | Platform | Use-case | Cost | Free Limit |
|---|---|---|---|---|
| GPT-4.1, 5-mini | GitHub/Copilot | Coding/chat/agents | βΉ0 | ~200 requests/5hr |
| MiniMax, Kimi | Zen | Coding/AI agents | βΉ0 | Quota + fair use |
| Big Pickle | Zen, OpenCode | Reasoning/coding | βΉ0 | Shared pool, capped |
| GLM-5 | Zen/Copilot | Big context/agents | βΉ0 | Shared pool, capped |
- Most free models rotate! Check Zen dashboard or model picker for live free options.
- Personal/sensitive code: Avoid using free APIs for private IPβdata may be logged for model improvements.
- Usage limits: Each provider sets request/token quota and/or rate throttling; expect pauses or slowdowns.
- Upgrade available: If you hit free cap, OpenCode Go plan is cheap and offers full privacy + speed.
- Data sent to free/experimental models may be retained for quality improvementβuse only for safe code/playground!
- Free models change frequently; always check docs/model picker.
For advanced usage, quotas, and API docs:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Android Device (Termux) β
β β β
β βΌ β
β ββββββββββββββββββββ β
β β glibc-runner β β
β β (ld.so wrapper) β β
β ββββββββββ¬ββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββ β
β β Node.js v24 β β
β β linux-arm64 β β
β ββββββββββ¬ββββββββββ β
β β β
β βββββββββββββββ΄βββββββββββββββ β
β βΌ βΌ β
β ββββββββββββββββ ββββββββββββββββ β
β β OpenClaw β β Local LLM β β
β β Gateway β β (Optional) β β
β β β β β β
β β β’ AI CLIs β β β’ llama.cpp β β
β β β’ SSH β β β’ Ollama β β
β β β’ clawdhub β β β’ GGUF β β
β ββββββββββββββββ ββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
- Pacman
glibc-runner: Injectsld-linux-aarch64.so.1to bypass Android's restricted linker - Path Rewriting: UNIX paths (
/tmp,/bin/sh) dynamically mapped to Termux prefixes - JS Runtime Shims:
glibc-compat.jspolyfillsos.cpus()andos.networkInterfaces()for V8
| π Guide | Description |
|---|---|
| π Quick Start | Get running in 5 minutes |
| π± Phone Setup | Developer Options, Stay Awake, Battery |
| π§ Installation | Full 8-step installer breakdown |
| π€ AI CLI Tools | Qwen, Claude, Gemini, Codex setup |
| π Dashboard Connect | Multi-device management from PC | | π SSH Setup | Remote access configuration | | βοΈ Configuration | Manage settings and preferences | | π§ Troubleshooting | Common errors and fixes | | π» Phantom Process Killer | Android 12+ fix |
π Browse all docs:
docs/
If you see [Process completed (signal 9)], Android's Phantom Process Killer has terminated Termux.
Fix it in 30 seconds:
adb shell settings put global development_settings_enabled 1
adb shell settings put global max_phantom_processes 64π Read Full Fix Guide
Android may kill background processes or throttle them when the screen is off. For 24/7 operation:
| Setting | Purpose | How To |
|---|---|---|
| Developer Options | Enable advanced controls | Settings β About β Tap Build Number 7x |
| Stay Awake | Prevent CPU throttling | Developer Options β Stay Awake |
| Battery Optimization | Prevent app killing | Settings β Apps β Termux β Battery β Unrestricted |
| Charge Limit | Protect battery during 24/7 use | Use AccuBattery or similar |
π Read Complete Phone Setup Guide for detailed instructions.
Access your OCA dashboard from PC browser via SSH tunnel:
# From your PC terminal
ssh -L 3000:localhost:3000 -L 8080:localhost:8080 u0_aXXX@192.168.X.X -p 8022π Read SSH Setup Guide for complete instructions.
Running OCA on multiple devices? Use Dashboard Connect to manage them from your PC:
- Save connection settings (IP, token, ports) for each device with a nickname
- Generates SSH tunnel commands automatically
- Switch between devices with one click
- Your data stays local β Settings saved only in browser localStorage
π‘ Tip: Name your devices (e.g., "Old Pixel", "Bedroom Phone") for easy identification.
OCA uses a platform-plugin architecture that separates platform-agnostic infrastructure from platform-specific code:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Orchestrators (install.sh, update-core.sh, uninstall.sh) β
β ββ Platform-agnostic. Read config.env and delegate. β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Shared Scripts (scripts/) β
β ββ RTXβ‘1: install-infra-deps.sh (always) β
β ββ RTXβ‘2: install-glibc.sh, install-nodejs.sh (conditional)β
β ββ RTXβ‘3: Optional tools (user-selected) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Platform Plugins (platforms/<platform>/) β
β ββ config.env: declares dependencies β
β ββ install.sh / update.sh / uninstall.sh / ... β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Dependency layers:
| Layer | Scope | Examples | Controlled by |
|---|---|---|---|
| RTXβ‘1 | Infrastructure (always) | git, pkg update | Orchestrator |
| RTXβ‘2 | Platform runtime (conditional) | glibc, Node.js, build tools | config.env flags |
| RTXβ‘3 | Optional tools (user-selected) | tmux, code-server, AI CLIs | User prompts |
Core Infrastructure (RTXβ‘1): git
Platform Runtime (RTXβ‘2): pacman, glibc-runner, Node.js v24, python, make, cmake, clang, binutils
OpenClaw Platform: OpenClaw, clawdhub, PyYAML, libvips
Optional Tools (RTXβ‘3): tmux, ttyd, dufs, android-tools, code-server, OpenCode, Qwen Code CLI, Gemini CLI.
| Feature | Description |
|---|---|
| RTXβ‘ Protocol | New tiered 3-tier architecture (Infra, Engine, Arsenal) |
Master CLI (oca) |
Updated for protocol-aware health & sync |
| Playwright Arsenal | Native Chromium FHS automation suite |
| Repo Cleanup | Optimized infrastructure for 0% crash rate |
π¦ View Release Notes
Join the discussion! Ask questions, share your Android setup, or request features.
π¬ GitHub Discussions ββ’β π Report an Issue

