Skip to content

i7m7r8/ArchClaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

55 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‰ ArchClaw - Standalone AI Tools APK

Install APK β†’ Setup wizard β†’ Use Qwen Code, ZeroClaw, OpenClaw. No Termux, no root, no dependencies.

License: GPL-3.0 APK Size Platform

🎯 How It Works

Install APK (150MB)
  ↓
First Launch: Setup Wizard
  β”œβ”€ Downloads Arch Linux rootfs (~300MB)
  β”œβ”€ Sets up proot environment
  β”œβ”€ Installs Node.js, Python
  β”œβ”€ Installs Qwen Code, ZeroClaw, OpenClaw, Aider
  └─ Takes ~5-10 minutes (one-time)
  ↓
Ready to Use:
  β”œβ”€ Tap "Qwen Code" β†’ Start coding
  β”œβ”€ Tap "ZeroClaw" β†’ Start lightweight gateway
  β”œβ”€ Tap "OpenClaw" β†’ Start full gateway
  └─ All FREE with Qwen OAuth (2,000 req/day)

πŸš€ Quick Start

1. Install APK

# Download from releases
adb install archclaw.apk
# Or transfer to device and tap to install

2. First Launch β†’ Setup Wizard

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    πŸ‰ Welcome to ArchClaw        β”‚
β”‚                                  β”‚
β”‚    Setup will install:           β”‚
β”‚    βœ“ Arch Linux environment      β”‚
β”‚    βœ“ Qwen Code, ZeroClaw, etc    β”‚
β”‚    βœ“ ~300MB download (one-time)  β”‚
β”‚                                  β”‚
β”‚       [ Start Setup ]            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

3. Setup Progress

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    Setting up...                 β”‚
β”‚                                  β”‚
β”‚    β–“β–“β–“β–“β–“β–“β–“β–“β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘  45%       β”‚
β”‚                                  β”‚
β”‚    Downloading Arch Linux...     β”‚
β”‚    (3 of 5 steps)                β”‚
β”‚                                  β”‚
β”‚    ETA: 4 minutes                β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

4. Qwen OAuth Login

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    πŸ” Login with Qwen (FREE)     β”‚
β”‚    2,000 requests/day           β”‚
β”‚    No credit card needed         β”‚
β”‚                                  β”‚
β”‚    [ Login with Qwen ]           β”‚
β”‚    (Opens WebView β†’ qwen.ai)     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

5. Use AI Tools

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    πŸ‰ ArchClaw                   β”‚
β”‚    βœ“ Qwen OAuth Active           β”‚
β”‚                                  β”‚
β”‚    [β–Ά Qwen Code]   [β–Ά ZeroClaw]  β”‚
β”‚    [β–Ά OpenClaw]    [β–Ά Aider]     β”‚
β”‚    [β–Ά Claude]      [β–Ά Gemini]    β”‚
β”‚                                  β”‚
β”‚    [ Terminal ]  [ Settings ]    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ€– Supported AI Tools

Tool Type Auth Size
Qwen Code CLI βœ… FREE OAuth ~50MB
ZeroClaw Gateway βœ… FREE OAuth ~9MB
OpenClaw Gateway βœ… FREE OAuth ~100MB
Aider Pair βœ… FREE OAuth ~30MB
Claude Code CLI ❌ API key ~50MB
Gemini CLI CLI ❌ API key ~30MB
Codex CLI CLI ❌ API key ~40MB

✨ Features

πŸ“¦ Standalone APK

  • No Termux needed - everything bundled
  • No root needed - uses proot (user-space chroot)
  • One-time setup - downloads ~300MB on first launch
  • Background service - tools keep running

πŸ” Qwen OAuth (FREE)

  • Built-in WebView - no browser switching
  • 2,000 requests/day - completely free
  • No credit card - just qwen.ai account
  • Auto token refresh - stays logged in

πŸ–₯️ Built-in Terminal

  • Full PTY support - real terminal
  • Extra key row - Ctrl, Alt, Tab, Esc, etc.
  • Copy/paste - long press to select
  • Multiple sessions - tab support

πŸ“± Android Integration

  • Foreground service - tools run in background
  • Notifications - shows active tools
  • File sharing - shared folder between Android ↔ Arch
  • Battery optimization - handles Doze mode

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              ArchClaw APK                    β”‚
β”‚                                              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚         Flutter UI Layer            β”‚    β”‚
β”‚  β”‚  β€’ Setup Wizard                     β”‚    β”‚
β”‚  β”‚  β€’ Tool Launcher                    β”‚    β”‚
β”‚  β”‚  β€’ Terminal Emulator                β”‚    β”‚
β”‚  β”‚  β€’ OAuth WebView                    β”‚    β”‚
β”‚  β”‚  β€’ Settings                         β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                 β”‚ Platform Channel          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚       Kotlin Native Layer           β”‚    β”‚
β”‚  β”‚  β€’ ProotManager (JNI)               β”‚    β”‚
β”‚  β”‚  β€’ ForegroundService                β”‚    β”‚
β”‚  β”‚  β€’ OAuth WebView                    β”‚    β”‚
β”‚  β”‚  β€’ File Manager                     β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β”‚                 β”‚ Process                   β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”‚
β”‚  β”‚      Arch Linux Environment         β”‚    β”‚
β”‚  β”‚  (Extracted to app storage)         β”‚    β”‚
β”‚  β”‚  β€’ proot binary                     β”‚    β”‚
β”‚  β”‚  β€’ Node.js 22 β†’ Qwen Code, etc      β”‚    β”‚
β”‚  β”‚  β€’ Python 3.12 β†’ Aider              β”‚    β”‚
β”‚  β”‚  β€’ Base system (pacman, git, etc)   β”‚    β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“– Setup Process (Detailed)

Step 1: Download Rootfs

Downloads Arch Linux ARM64 from mirror
Size: ~300MB compressed
Source: https://mirror.archlinuxarm.org/
Verifies: SHA256 checksum

Step 2: Extract

Extracts to: /data/data/io.archclaw/files/archlinux/
Uses: tar xzf (streaming decompression)
Time: ~2-3 minutes

Step 3: Bootstrap

Inside proot:
- pacman -Syu (update system)
- Install: nodejs, npm, python, pip, git
- Install AI tools: Qwen Code, ZeroClaw, etc
Time: ~3-5 minutes

Step 4: Configure

- Setup DNS resolution
- Create shared storage folder
- Configure OAuth directory
- Save setup complete flag

Total Setup Time: ~5-10 minutes (depends on network)

πŸ” Qwen OAuth Flow (Built-in)

1. User taps "Login with Qwen"
2. App opens WebView to qwen.ai/oauth
3. User signs in (or creates account)
4. OAuth callback captured by app
5. Token encrypted β†’ saved securely
6. All Qwen tools unlocked

No browser switching. No Termux. All in-app.

πŸ“Š Storage Usage

Component Size
APK (compressed) ~150MB
APK (installed) ~300MB
Arch Linux rootfs ~800MB
AI tools ~400MB
Total on device ~1.5GB

πŸ› οΈ Build from Source

Prerequisites

# On any platform with Docker:
docker pull archclaw/build:latest

# Or native:
# - Android SDK + NDK
# - Flutter 3.16+
# - Gradle 8+

Build APK

git clone https://github.com/archclaw/archclaw.git
cd archclaw/android

# Debug build
./gradlew assembleDebug

# Release build
./gradlew assembleRelease
# Output: app/build/outputs/apk/release/app-release.apk

GitHub Actions

Push to main β†’ Auto-build β†’ APK artifact
PR β†’ Auto-build + test

πŸ“š Documentation

🀝 Credits

πŸ“„ License

GPL-3.0 - See LICENSE


Install. Setup. Code with Qwen. All in one APK. πŸ‰

About

πŸ‰ Qwen AI on Android - Standalone APK with Qwen Code, ZeroClaw, OpenClaw. FREE OAuth, no credit card needed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors