How I Turned an Old Android into a 24/7 AI Employee? (OpenClaw)
No need for mac-minis or any expensive hardware when all you need is an internet connection and an old Android phone.
Watch the above video and follow the steps below:
In this guide, you’ll learn how to run OpenClaw locally on your Android phone using Termux.
This lets you control the agent directly from your android device and chat with it without needing a PC or cloud server.
Requirements
Android phone (preferably Android 10 or above)
Termux installed (from F-Droid, not Playstore)
Gemini or OpenAI or Anthropic or any LLM’s API key
Step 1: Set Up Environment
Open Termux and run:
pkg update && pkg upgrade -y
pkg install proot-distro -yInstall and enter Ubuntu:
proot-distro install ubuntu
proot-distro login ubuntuStep 2: Install Dependencies
Inside the Ubuntu shell:
apt update && apt upgrade -y
apt install curl git build-essential -yInstall Node.js 22:
curl -fsSL <https://deb.nodesource.com/setup_22.x> | bash -
apt install -y nodejsInstall OpenClaw:
npm install -g openclaw@latestStep 3: Fix Android Network Error
Create a hijack script:
cat <<EOF >/root/hijack.jsconst os = require('os');
os.networkInterfaces =() => ({});EOFMake it permanent:
echo'export NODE_OPTIONS="-r /root/hijack.js"' >> ~/.bashrcsource ~/.bashrcStep 4: Run Setup Wizard
Start onboarding:
openclaw onboardWhen asked for Gateway Bind, select (very important to run Openclaw on phone):
127.0.0.1 (Loopback)Step 5: Launch the Agent
Start the gateway:
openclaw gateway --verboseUseful Commands (WhatsApp/Telegram)
/status → Check agent health
/think high → Deep reasoning mode
/reset → Clear session memoryAccess the Web Dashboard
Open in your browser:
<http://127.0.0.1:18789>To get your gateway token:
openclaw config get gateway.auth.tokenTips
Run this to keep Termux active:
termux-wake-lockDisable battery optimization for Termux.
Never share API keys or tokens publicly.
Instagram - https://www.instagram.com/ali.1cr/
Youtube - https://www.youtube.com/@AliSolanki

