Skip to content

LJBaboo/OpenClaw-Android-AI-Station

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 

Repository files navigation

๐Ÿ“ฑ OpenClaw Android AI Station

A portable, low-cost AI workstation powered by a Samsung phone, running a full Linux environment and AI agent engine via Termux.

This project combines a Samsung DeX-powered mobile desktop, a Termux-based Linux environment, and the OpenClaw AI agent framework to create a fully functional, remotely accessible AI automation system.

It turns an old phone into a self-hosted AI engine capable of executing real-world tasks like messaging, scheduling, and automation.


๐Ÿš€ Overview

This setup uses:

  • A Samsung S-series phone as the core hardware
  • Samsung DeX for a desktop-like experience
  • Termux to run a Linux environment
  • SSH to connect from a PC
  • OpenClaw API to power an AI agent

The result is a portable AI server that you can control locally or remotely.


๐Ÿง  Architecture

[ Windows PC ]
      โ”‚
      โ”‚  SSH (PowerShell)
      โ–ผ
[ Samsung Phone (DeX Mode) ]
      โ”‚
      โ–ผ
[ Termux ]
      โ”‚
      โ–ผ
[ Ubuntu (proot-distro) ]
      โ”‚
      โ–ผ
[ OpenClaw AI Engine ]
      โ”‚
      โ–ผ
[ External Actions (Messages, Calendar, Automation) ]

๐Ÿงฐ Tech Stack

  • Samsung DeX (desktop environment)
  • Termux (Linux compatibility layer)
  • Ubuntu (via proot-distro)
  • SSH (remote access)
  • Node.js (runtime)
  • OpenClaw (AI agent framework)
  • Anthropic API (Claude models)

๐Ÿ›  Prerequisites

  • Android Device: Samsung S-series recommended (8GB+ RAM ideal)
  • Monitor + peripherals (for DeX)
  • Termux: Install via F-Droid (Play Store version is outdated)
  • Anthropic API Key: https://console.anthropic.com/

๐Ÿ“ฅ Installation Guide

1. Setup Termux & Linux Environment

pkg update && pkg upgrade -y
pkg install proot-distro openssh -y
proot-distro install ubuntu
proot-distro login ubuntu

2. Install Dependencies (Inside Ubuntu)

# Install Node.js 20
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt update && apt install -y nodejs git nano htop

# Clone OpenClaw
git clone https://github.com/v-zhivkov/OpenClaw.git
cd OpenClaw
npm install

3. Configure API Key

nano .env

Add:

ANTHROPIC_API_KEY=your_api_key_here

Save with:

  • CTRL + O โ†’ Enter
  • CTRL + X

๐Ÿš€ The "One-Word" Workflow (Aliases)

Edit your bash config:

nano ~/.bashrc

Add:

# Start AI Engine (with Android network fix)
alias engine='cd ~/OpenClaw && OPENCLAW_DISCOVERY_BACKEND=dummy ./openclaw.mjs gateway --force'

# Launch Chat UI
alias chat='cd ~/OpenClaw && ./openclaw.mjs tui'

# System Monitor
alias monitor='htop'

Apply changes:

source ~/.bashrc

๐Ÿƒ Running the AI System

Local (on Phone)

Terminal 1:

engine

Terminal 2:

chat

Remote Access (PC โ†’ Phone)

On Phone (Termux):

sshd

On PC (PowerShell):

ssh <user>@<phone_ip> -p 8022
proot-distro login ubuntu

Then run:

engine
# then
chat

๐Ÿค– Features

  • AI-powered command execution
  • Chat-based interface (TUI)
  • Remote control via SSH
  • Persistent agent running on mobile hardware

  • OpenClaw โ€“ Core Capabilities (No Plugins)

  • Run terminal commands and scripts

  • Execute Python code

  • Create, edit, and refactor code

  • Read, write, and manage files and folders

  • Generate and modify documents

  • Search the web and fetch page data

  • Control a browser (navigate, click, screenshot)

  • Break tasks into steps and complete them autonomously

  • Run multi-step workflows

  • Spawn and manage sub-agents

  • Schedule and run automated jobs

  • Execute background processes

  • Send messages and return structured outputs

  • Interact with user interfaces and display results

  • Generate images, audio, and other media


๐Ÿ”ง Troubleshooting & Tips

โš ๏ธ "System Error 13" Fix

Android blocks certain local network discovery features.

This project solves it using:

OPENCLAW_DISCOVERY_BACKEND=dummy

This is required for the engine and chat interface to communicate properly.


๐Ÿง  Memory Management

  • Use:

    monitor
  • Claude models are resource-heavy

  • Restart engine if performance drops


๐Ÿ”‘ API Errors


๐Ÿ’ก Why This Project Matters

  • โ™ป๏ธ Reuses old hardware
  • ๐Ÿ’ธ Avoids expensive cloud setups
  • ๐Ÿงณ Fully portable AI workstation
  • ๐Ÿ”“ Highly customizable Linux environment
  • ๐Ÿค– Brings AI agents closer to personal devices

๐Ÿ”ฎ Future Improvements

  • Web-based interface
  • Better automation integrations (APIs, webhooks)
  • Persistent background services
  • Enhanced security (auth layers, encryption)
  • Multi-agent workflows

๐Ÿ“ License

This repository is a configuration and setup guide.


๐Ÿ™Œ Acknowledgements

  • Termux community
  • Samsung DeX ecosystem
  • OpenClaw contributors
  • Anthropic (Claude API)

โšก Final Notes

This is not just a project โ€” itโ€™s a proof-of-concept that powerful AI systems donโ€™t need expensive infrastructure.

A phone, a bit of Linux, and some creativity can go a long way.

About

A portable, low-cost AI workstation powered by a Samsung phone, running a full Linux environment and AI agent engine via Termux.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors