Skip to main content

Overview

Give your old Android phone a second life! Turn it into a smart AI Assistant with PicoClaw. This guide shows you how to run PicoClaw on Android using Termux, a powerful terminal emulator.

Why Run PicoClaw on Android?

  • Repurpose old devices - Turn decade-old phones into AI assistants
  • Ultra-lightweight - Runs with <10MB RAM
  • Always-on - Keep your assistant running 24/7
  • Portable - Take your AI assistant anywhere
PicoClaw on Android

Prerequisites

  • Android device (ARM64 architecture)
  • Termux app installed
  • Stable internet connection

Installing Termux

Download Termux from one of these sources:
Do not install Termux from unofficial sources, as they may contain malware or be outdated.

Installation Steps

1. Open Termux

Launch the Termux app on your Android device.

2. Update Termux Packages

pkg update && pkg upgrade
Press Y when prompted to confirm updates.

3. Install Required Packages

pkg install proot wget

4. Download PicoClaw

Download the latest ARM64 binary:
# Note: Replace v0.1.1 with the latest version from the Releases page
wget https://github.com/sipeed/picoclaw/releases/download/v0.1.1/picoclaw-linux-arm64
Check the Releases page for the latest version number and replace v0.1.1 accordingly.

5. Make the Binary Executable

chmod +x picoclaw-linux-arm64

6. Run PicoClaw Setup

Use termux-chroot to run PicoClaw in a proper Linux environment:
termux-chroot ./picoclaw-linux-arm64 onboard
This initializes the configuration and workspace.

7. Configure API Keys

Edit the configuration file:
nano ~/.picoclaw/config.json
Add your API keys:
{
  "agents": {
    "defaults": {
      "workspace": "~/.picoclaw/workspace",
      "model_name": "gpt4",
      "max_tokens": 8192,
      "temperature": 0.7
    }
  },
  "model_list": [
    {
      "model_name": "gpt4",
      "model": "openai/gpt-5.2",
      "api_key": "your-api-key"
    }
  ]
}
Save with Ctrl+O, then exit with Ctrl+X.

8. Test the Installation

Run a test query:
termux-chroot ./picoclaw-linux-arm64 agent -m "Hello from Android!"

Running the Gateway

To enable chat integrations (Telegram, Discord, etc.), run the gateway:
termux-chroot ./picoclaw-linux-arm64 gateway

Configuration Tips

Get API Keys

Configure Telegram Bot

Add Telegram integration to your config:
{
  "channels": {
    "telegram": {
      "enabled": true,
      "token": "YOUR_BOT_TOKEN",
      "allow_from": ["YOUR_USER_ID"]
    }
  }
}
Get your user ID from @userinfobot on Telegram.

Keeping PicoClaw Running

Use Termux:Boot

To run PicoClaw automatically on device boot:
  1. Install Termux:Boot from F-Droid
  2. Create a boot script:
mkdir -p ~/.termux/boot
nano ~/.termux/boot/start-picoclaw.sh
  1. Add this content:
#!/data/data/com.termux/files/usr/bin/sh
termux-chroot /data/data/com.termux/files/home/picoclaw-linux-arm64 gateway
  1. Make it executable:
chmod +x ~/.termux/boot/start-picoclaw.sh

Use Termux:Wake Lock

Prevent Android from killing Termux:
  1. Install Termux:Wake Lock from F-Droid
  2. Open Termux:Wake Lock and enable it
  3. This keeps Termux running in the background

Troubleshooting

Permission Denied Errors

If you get permission errors, use termux-chroot:
termux-chroot ./picoclaw-linux-arm64 agent

Network Errors

Ensure you have internet connectivity:
ping -c 3 google.com

App Keeps Closing

  • Disable battery optimization for Termux in Android settings
  • Use Termux:Wake Lock to prevent the app from sleeping
  • Keep the device charging for 24/7 operation

Storage Space

Check available storage:
df -h
PicoClaw requires minimal space (<50MB), but ensure you have room for conversation history and logs.

Performance Tips

Optimize for Low Memory

Reduce memory usage by lowering max_tokens:
{
  "agents": {
    "defaults": {
      "max_tokens": 4096
    }
  }
}

Monitor Resource Usage

Check PicoClaw’s resource usage:
top
Press q to exit.

Creating a Shortcut

For easier access, create an alias:
echo 'alias picoclaw="termux-chroot ~/picoclaw-linux-arm64"' >> ~/.bashrc
source ~/.bashrc
Now you can run:
picoclaw agent -m "Test"
picoclaw gateway

Next Steps

Community Examples

PicoClaw running on Android Share your Android deployment on our Discord community!

Build docs developers (and LLMs) love