by AidanPark
Run OpenClaw on Android with a single command — no proot, no Linux
# Add to your Claude Code skills
git clone https://github.com/AidanPark/openclaw-android
Because Android deserves a shell.
The standard approach to running OpenClaw on Android requires installing proot-distro with Linux, adding 700MB-1GB of overhead. OpenClaw on Android eliminates this by installing just the glibc dynamic linker (ld.so), letting you run OpenClaw without a full Linux distribution.
Standard approach: Install a full Linux distribution in Termux via proot-distro.
┌───────────────────────────────────────────────────┐
│ Linux Kernel │
│ ┌───────────────────────────────────────────────┐ │
│ │ Android · Bionic libc · Termux │ │
│ │ ┌───────────────────────────────────────────┐ │ │
│ │ │ proot-distro · Debian/Ubuntu │ │ │
│ │ │ ┌───────────────────────────────────────┐ │ │ │
│ │ │ │ GNU glibc │ │ │ │
│ │ │ │ Node.js → OpenClaw │ │ │ │
│ │ │ └───────────────────────────────────────┘ │ │ │
│ │ └───────────────────────────────────────────┘ │ │
│ └───────────────────────────────────────────────┘ │
└───────────────────────────────────────────────────┘
This project: No proot-distro — just the glibc dynamic linker.
┌───────────────────────────────────────────────────┐
│ Linux Kernel │
│ ┌───────────────────────────────────────────────┐ │
│ │ Android · Bionic libc · Termux │ │
│ │ ┌───────────────────────────────────────────┐ │ │
│ │ │ glibc ld.so (linker only) │ │ │
│ │ │ ld.so → Node.js → OpenClaw │ │ │
│ │ └───────────────────────────────────────────┘ │ │
│ └───────────────────────────────────────────────┘ │
└───────────────────────────────────────────────────┘
| | Standard (proot-distro) | This project | |---|---|---| | Storage overhead | 1-2GB (Linux + packages) | ~200MB | | Setup time | 20-30 min | 3-10 min | | Performance | Slower (proot layer) | Native speed | | Setup steps | Install distro, configure Linux, install Node.js, fix paths... | Run one command |
A standalone Android app is also available. It bundles a terminal emulator and a WebView-based UI into a single APK — no Termux required.
oa setupDownload the APK from the Releases page.
The installer automatically resolves the differences between Termux and standard Linux. There's nothing you need to do manually — the single install command handles all of these:
/tmp, /bin/sh, /usr/bin/env) to Termux pathsConfigure Developer Options, Stay Awake, charge limit, and battery optimization. See the Keeping Processes Alive guide for step-by-step instructions.
Important: The Play Store version of Termux is discontinued and will not work. You must install from F-Droid.
Termux, then tap Download APK to download and install
Open the Termux app and paste the following command to install curl (needed for the next step).
pkg update -y && pkg install -y curl
You may be asked to choose a mirror on first run. Pick any — a geographically closer mirror will be faster.
Tip: Use SSH for easier typing From this step on, you can type commands from your computer keyboard instead of the phone screen. See the Termux SSH Setup Guide for details.
Paste the following command in Termux.
curl -sL myopenclawhub.com/install | bash && source ~/.bashrc
Everything is installed automatically with a single command. This takes 3–10 minutes depending on network speed and device. Wi-Fi is recommended.
Once complete, the OpenClaw version is displayed along with instructions to run openclaw onboard.
As instructed in the installation output, run:
openclaw onboard
Follow the on-screen instructions to complete the initial setup.

Once setup is complete, start the gateway:
Important: Run
openclaw gatewaydirectly in the Termux app on your phone, not via SSH. If you run it over SSH, the gateway will stop when the SSH session disconnects.
The gateway occupies the terminal while running, so open a new tab for it. Tap the hamburger icon (☰) on the bottom menu bar, or swipe right from the left edge of the screen (above the bottom menu bar) to open the side menu. Then tap NEW SESSION.
In the new tab, run:
openclaw gateway
To stop the gateway, press
Ctrl+C. Do not useCtrl+Z— it only suspends the process without terminating it.
Android may kill background processes or throttle them when the screen is off. See the Keeping Processes Alive guide for all recommended settings (Developer Options, Stay Awake, charge limit, battery optimization, and Phantom Process Killer).
See the Termux SSH Setup Guide for SSH access and dashboard tunnel setup.
If you run OpenClaw on multiple devices on the same network, use the Dashboard Connect tool to manage them from your PC.
After installation, the oa command is available for managing your installation:
| Option | Description |
|--------|-------------|
| oa --update | Update OpenClaw and Android patches |
| oa --install | Install optional tools (tmux, code-server, AI CLIs, etc.) |
| oa --uninstall | Remove OpenClaw on Android |
| oa --backup | Create a full backup of OpenClaw data |
| oa --restore | Restore from a backup |
| oa --status | Show installation status and all installed components |
| oa --version | Show version |
| oa --help | Show available options |
oa --update && source ~/.bashrc
This single command updates all installed components at once:
openclaw@latest)Already up-to-date components are skipped. Components you haven't installed are not touched — only what's already on your device gets updated. Safe to run multiple times.
If the
oacommand is not available (older installations), run it with curl:curl -sL myopenclawhub.com/update | bash && source ~/.bashrc
OpenClaw's built-in backup command (openclaw backup create) often fails on Android because it relies on hardlinks, which are blocked in Android's app-private storage. The oa --backup command works around this by using tar directly while maintaining full compatibility with the OpenClaw backup specification.
To create a backup:
oa --backup
Backups are stored in ~/.openclaw-android/backup/ with a timestamped filename (e.g., 2026-03-14T00-00-00.000Z-openclaw-backup.tar.gz). You can also specify a custom path: oa --backup ~/my-backups/. Each backup includes your configuration, state, workspaces, and agents.
To restore from a backup
No comments yet. Be the first to share your thoughts!