SkillAgentSearch skills...

Clawbot

OpenClaw Android Setup Guide Transform any old Android device into a 24/7 AI agent running locally. This guide provides step-by-step instructions for installing and running OpenClaw on Android using Termux and Ubuntu (proot), no PC or cloud server required. What You'll Get Fully local AI agent running on Android 10+ Web-based dashboard accessible

Install / Use

/learn @AbuZar-Ansarii/Clawbot
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

OpenClaw Setup Guide for Android


<p align="center"> <img src= openclaw-dashboard.jpeg width="45%" /> <img src= termux-setup.jpeg width="45%" /> </p>

What You’re Building

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

Requirements

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)

Install Termux

  1. Go to F-Droid.org
  2. Download and install F-Droid
  3. Search for Termux
  4. Install Termux
  5. Open the Termux app

Commands

pkg update && pkg upgrade -y

install proot-distro

pkg install proot-distro

install ubuntu

proot-distro install ubuntu

login ubuntu

proot-distro login ubuntu

Update system

apt update && apt upgrade -y

Install curl

apt install -y curl

Add NodeSource repo

curl -fsSL https://deb.nodesource.com/setup_22.x | bash -

Install Node.js

apt install -y nodejs

Verify

node -v
npm -v

update and install git

apt update
apt install -y git

Install OpenClaw

npm install -g openclaw@latest

After installation, check:

openclaw --version


Fix Android Network Interface Error

Create the hijack script:

cat <<EOF > /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

Run OpenClaw Setup Wizard

Start onboarding:

openclaw onboard

When prompted for Gateway Bind, select:

127.0.0.1 (Loopback)


Launch the OpenClaw Gateway

Start the agent:

openclaw gateway --verbose

Access the Web Dashboard

Open your mobile browser and go to:

http://127.0.0.1:18789

Get your gateway token: start new terminal session login ubuntu run -

cat ~/.openclaw/openclaw.json

openclaw config get gateway.auth.token

Paste the token into the dashboard login screen.


Useful Agent Commands

/status

Check agent health.

/think high

Enable deep reasoning mode.

/reset

Clear memory and restart the session.


Stability Tips

Prevent Termux from Sleeping

termux-wake-lock

Disable Battery Optimization

  1. Go to Android Settings
  2. Apps → Termux
  3. Battery
  4. Disable optimization

Keep Device Plugged In

For true 24/7 operation, keep the phone connected to power.


Security Tips

  • Never share your API keys publicly
  • Do not share your gateway token
  • Use a separate Google account for AI keys if possible

What You Can Do Next

  • Automate research tasks
  • Build a personal AI assistant
  • Connect it to messaging apps
  • Use it as a mobile automation node

Related Skills

View on GitHub
GitHub Stars196
CategoryDevelopment
Updated7h ago
Forks70

Security Score

80/100

Audited on Mar 26, 2026

No findings