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: