AnyClaw: Ubuntu 24.04 with Android hardware access and AI agent for terminal development

What AnyClaw offers
AnyClaw (formerly OpenClaw) is a full Ubuntu 24.04 environment running in proot on Android that ships with an AI coding agent (OpenClaw/Codex) baked in, a web UI accessible from your phone's browser, and direct Android hardware access from the terminal.
Key differences from Termux
The entire terminal environment is real Ubuntu. apt install works normally for Node.js, Python, Go, Rust, and other packages without the limitations of Termux's package repositories or patching Makefiles.
Android hardware access from terminal
Every Android sensor and API is accessible from plain bash commands:
# Take a photo from terminal
termux-camera-photo selfie.jpg
Get GPS location as JSON
termux-location
Read battery status
termux-battery-status
Toggle flashlight
termux-torch on
Text-to-speech
termux-tts-speak "Hello from Linux"
Get WiFi info
termux-wifi-connectioninfo
Vibrate the device
termux-vibrate -d 500
Java execution on Android host
The bsh command provides a BeanShell interpreter that executes real Java code on the Android host from your terminal:
# Get battery percentage using Android's BatteryManager API
bsh -c 'BatteryManager bm = (BatteryManager)context.getSystemService("batterymanager"); print(bm.getIntProperty(4) + "%");'
Count installed packages
bsh -e 'pm.getInstalledPackages(0).size() + " packages"'
Take a photo with full camera API control
bsh -e 'camera.takePhoto("/sdcard/photo.jpg")'
This provides access to context, PackageManager, ContentResolver, and all Android APIs from bash.
Shizuku integration for ADB shell privileges
With Shizuku running, you get ADB shell privileges without root:
shizuku pm list packages
shizuku settings put global adb_enabled 1
shizuku dumpsys battery
shizuku ls /data/dataGoogle Workspace CLI
Manage Drive, Gmail, Calendar, and Sheets from the command line:
gws drive files list --params '{"pageSize": 5}'
gws gmail +triage
gws calendar +agenda
gws gmail +send --to [email protected] --subject "Sent from my phone terminal" --body "Yes really"AI agent capabilities
The built-in agent (OpenClaw/Codex) can use all of these tools. For example, asking it to "take a photo and email it to someone" will chain termux-camera-photo → gws gmail +send with the attachment. The agent has full context of what commands are available.
Architecture overview
The system architecture consists of:
- Android App (Kotlin)
- proot (Ubuntu 24.04 aarch64) containing Node.js server (gateway + web UI), AI agent (OpenClaw/Codex), and termux-/bsh/shizuku → host-bridge
- DeviceBridge (Kotlin ↔ proot IPC) handling Camera, Location, Sensors, Clipboard, Notifications, Calendar, Vibrator, Torch, Audio Recording, TTS, and Shizuku (privileged shell)
- GWS connector (Google Workspace CLI)
- Foreground Service (background execution)
Every termux- command and bsh call goes through a file-based bridge between proot and the Kotlin host. The bridge polls a directory for .req files, processes them through the Android APIs, and writes .resp files back.
The app has a web UI that runs on the phone and is accessible from any browser on the same network, functioning as a self-hosted coding environment with full Android device access.
📖 Read the full source: r/clawdbot
👀 See Also

How Mendral Cut LLM Costs by Upgrading to Opus: Triager Pattern, SQL Access, and Sub-Agent Architecture
Mendral switched from Sonnet to Opus 4.6 for CI failure analysis but reduced costs by using a Haiku triager to divert 80% of failures, giving agents SQL access to ClickHouse instead of pushing logs, and spawning cheap sub-agents to do the actual digging.

Dirac: Open-Source Agent Tops TerminalBench with 65.2%, Cheaper and Open
Dirac, an open-source coding agent, achieved a 65.2% score on TerminalBench 2.0 for gemini-3-flash-preview, beating Google's baseline (47.6%) and top closed-source agent Junie CLI (64.3%). It also reduces API costs by 64.8% vs competitors.

Code-Graph-MCP: Open Source MCP Server Reduces Claude Code Token Usage by 40-60%
code-graph-mcp is an MCP server that indexes codebases into an AST knowledge graph, replacing multiple grep/read calls with single structured queries. The developer reports 40-60% total session token savings and 80% fewer tool calls per navigation task.

Fingerprint's Free Web Bot Auth Testing Tool for AI Agent Developers
Fingerprint has released a free, public endpoint for testing Web Bot Auth implementations. The tool validates cryptographic signatures on HTTP requests, helping bot and AI agent developers ensure their WBA setup works correctly before hitting production.