Skip to main content

Prerequisites

Install Termux from F-Droid — NOT the Google Play Store. The Play version is severely outdated and will cause failures.
  1. Install Termux from F-Droid
  2. Open Termux and run termux-setup-storage (required for storage permissions)
  3. Ensure you have a stable internet connection

Step 1 — Run the bootstrap

Open Termux and paste this single command:
curl -sL https://raw.githubusercontent.com/PsProsen-Dev/OpenClaw-On-Android/master/bootstrap.sh | bash && source ~/.bashrc

Step 2 — Answer the prompts

The installer walks you through 8 steps with yes/no prompts:
PromptRecommendation
Install tmux?✅ Yes — keeps sessions alive
Install ttyd (web terminal)?Optional
Install dufs (file server)?Optional
Install android-tools (adb)?✅ Yes — useful for debugging
Install code-server (browser IDE)?Optional
Install OpenCode (AI assistant)?Optional
Install Claude Code CLI?Your choice
Install Gemini CLI?Your choice
Install Codex CLI?Your choice
Install Qwen Code CLI?✅ Yes — works great on Android
Setup SSH server?✅ Yes — for remote access
Setup Termux:Boot auto-start?✅ Yes — for 24/7 operation
Install Termux:API tools?Optional

Step 3 — Verify installation

oca --status
Expected output:
[OK] OpenClaw gateway: running
[OK] Node.js v24.x.x (glibc, grun wrapper)
[OK] platform: linux

Step 4 — Start the gateway

openclaw start
Dashboard available at http://127.0.0.1:18789/

What’s next?

SSH Remote Access

Connect to your Android server from your PC

AI CLI Tools

Set up Claude Code, Qwen Code, Gemini CLI

Auto-start on Boot

Keep OpenClaw running 24/7

Troubleshooting

Fix common install errors