Make sure you’ve completed all prerequisites before starting, especially installing Termux and Termux:API from F-Droid.
One-Liner Installation
Run the Installation Command
Copy and paste the following command into Termux and press Enter:What this does:
- Installs Git
- Clones the OpenClaw-Android repository
- Makes scripts executable
- Runs the automated setup script
Wait for Installation to Complete
The
setup_claw.sh script will automatically:- Install Node.js, Python, Git, CMake, Ninja, and build tools
- Configure environment variables (
TMPDIR,TEMP) - Apply NDK workarounds for Android
- Patch hardcoded paths in OpenClaw
- Set up the background service using termux-services
Run OpenClaw Onboarding
After the setup script completes, run the onboarding process:Follow the interactive prompts to configure your OpenClaw instance.
Finalize the Installation
After onboarding completes, run these commands to start OpenClaw:What each command does:
source ~/.bashrc: Reloads your shell configurationsv up openclaw: Starts the OpenClaw background servicetermux-wake-lock: Keeps the CPU awake so OpenClaw doesn’t get killed when you minimize Termux
The
termux-wake-lock command is required to keep OpenClaw running in the background. Without it, Android may kill the process when you minimize the app.Accessing the Web UI
Once OpenClaw is running, you can access the web interface:- Open any browser on your Android device
- Navigate to:
http://localhost:18789 - You should see the OpenClaw web interface
The web UI is only accessible from the same device. To access it from other devices on your network, you’ll need to configure network settings.
Verification Steps
Verify that OpenClaw is running correctly:Check Service Status
run: openclaw: ...).Managing OpenClaw
Here are the essential commands for managing your OpenClaw service:Troubleshooting
Service Won’t Start
If the service fails to start:- Check the logs:
tail -f $PREFIX/var/log/openclaw/current - Verify the service is configured:
ls -la $PREFIX/var/service/openclaw - Try restarting:
sv down openclaw && sv up openclaw
OpenClaw Stops When Minimizing Termux
Make sure you’ve runtermux-wake-lock:
Cannot Access Web UI
- Verify the service is running:
sv status openclaw - Check if the port is listening:
netstat -an | grep 18789 - Make sure you’re using
http://localhost:18789(not HTTPS)
Next Steps
Now that OpenClaw is running on your Android device:- Explore the web UI to configure automations
- Learn about updating OpenClaw when new versions are released
- Configure OpenClaw to access device sensors through Termux:API
- Set up your device as a permanent IoT hub or automation server
Keep your device plugged in and ensure
termux-wake-lock is active if you want OpenClaw to run continuously in the background.