Author: Ali Solanki
Before starting, watch this full walkthrough video by Ali Solanki:
▶ https://youtu.be/hM5LHJByJZk
“I Turned an Old Android into a 24/7 AI Employee (OpenClaw)”
This guide follows the exact process demonstrated by Ali, with clear steps you can execute directly on your Android device.
By the end of this guide, your Android phone will:
- Run OpenClaw locally
- Act as a 24/7 AI agent
- Be controllable from a web dashboard
- Operate without a PC or cloud server
Make sure you have:
- Android phone (Android 10 or above recommended)
- Stable internet connection
- Gemini API key (from Google AI Studio)
- Termux installed from F-Droid (not Play Store)
- Go to F-Droid.org
- Download and install F-Droid
- Search for Termux
- Install Termux
- Open the Termux app
Inside Termux, run:
pkg update && pkg upgrade -y
Then install proot-distro:
pkg install proot-distro -y
Install Ubuntu:
proot-distro install ubuntu
Enter the Ubuntu environment:
proot-distro login ubuntu
Inside the Ubuntu shell, run:
apt update && apt upgrade -y apt install curl git build-essential -y
Install Node.js version 22:
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - apt install -y nodejs
Verify installation:
node -v npm -v
Run:
npm install -g openclaw@latest
After installation, check:
openclaw --version
Create the hijack script:
cat < /root/hijack.js const os = require('os'); os.networkInterfaces = () => ({}); EOF
Make it load automatically:
echo 'export NODE_OPTIONS="-r /root/hijack.js"' >> ~/.bashrc source ~/.bashrc
Start onboarding:
openclaw onboard
When prompted for Gateway Bind, select:
127.0.0.1 (Loopback)
Start the agent:
openclaw gateway --verbose
Open your mobile browser and go to:
Get your gateway token:
openclaw config get gateway.auth.token
Paste the token into the dashboard login screen.
/status
Check agent health.
/think high
Enable deep reasoning mode.
/reset
Clear memory and restart the session.
termux-wake-lock
- Go to Android Settings
- Apps → Termux
- Battery
- Disable optimization
For true 24/7 operation, keep the phone connected to power.
- Never share your API keys publicly
- Do not share your gateway token
- Use a separate Google account for AI keys if possible
- Automate research tasks
- Build a personal AI assistant
- Connect it to messaging apps
- Use it as a mobile automation node
If you followed each step correctly, your Android device is now running a fully functional AI agent locally.
Watch the full walkthrough again:
Turn Your Old Android Into a 24/7 AI Employee
OpenClaw Setup Guide for Android (Termux)
Author: Ali Solanki
Before starting, watch this full walkthrough video by Ali Solanki:
▶ https://youtu.be/hM5LHJByJZk
“I Turned an Old Android into a 24/7 AI Employee (OpenClaw)”
This guide follows the exact process demonstrated by Ali, with clear steps you can execute directly on your Android device.
What You’re Building
By the end of this guide, your Android phone will:
Requirements
Make sure you have:
Step 1: Install Termux
Step 2: Update Packages
Inside Termux, run:
Then install proot-distro:
Step 3: Install Ubuntu Inside Termux
Install Ubuntu:
Enter the Ubuntu environment:
Step 4: Install Core Dependencies
Inside the Ubuntu shell, run:
apt update && apt upgrade -y
apt install curl git build-essential -y
Step 5: Install Node.js (Required for OpenClaw)
Install Node.js version 22:
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -Verify installation:
Step 6: Install OpenClaw
Run:
or
curl -fsSL https://openclaw.ai/install.sh | bashAfter installation, check:
Step 7: Fix Android Network Interface Error
Create the hijack script:
Make it load automatically:
Step 8: Run OpenClaw Setup Wizard
Start onboarding:
When prompted for Gateway Bind, select:
Step 9: Launch the OpenClaw Gateway
Start the agent:
Step 10: Access the Web Dashboard
Open your mobile browser and go to:
Get your gateway token:
Paste the token into the dashboard login screen.
Useful Agent Commands
Check agent health.
Enable deep reasoning mode.
Clear memory and restart the session.
Stability Tips
Prevent Termux from Sleeping
Disable Battery Optimization
Keep Device Plugged In
For true 24/7 operation, keep the phone connected to power.
Security Tips
What You Can Do Next
Final Note
If you followed each step correctly, your Android device is now running a fully functional AI agent locally.
Watch the full walkthrough again:
https://youtu.be/hM5LHJByJZk