OpenClaw Integration
This guide explains how to connect the OpenClaw AI Gateway (for WhatsApp/Telegram messaging and dashboard control) with the Fusion CLI (for safe, high-speed terminal execution).
Architecture
[📱 User via Chat] <--> [OpenClaw Gateway (Node.js)] <--> [Fusion CLI (Rust Binary)] <--> [Filesystem]1. Setup Ubuntu / Termux Environment
On Android (Termux PRoot)
pkg install proot-distro
proot-distro install ubuntu
proot-distro login ubuntuOn iOS (UTM Virtual Machine)
Install Ubuntu Server ISO in UTM, set up user account, and open terminal.
2. Install OpenClaw & Node.js 22
apt update && apt upgrade -y
apt install curl git ripgrep ca-certificates build-essential -y
# Install Node.js 22
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt install -y nodejs
# Install OpenClaw globally
npm install -g openclaw@latest3. Install Fusion
curl -fsSL https://fusioncode.app/install | bash
fusion --version4. Delegate Code Tasks to Fusion
In your OpenClaw system instructions or agent prompt, add:
You have access to the 'fusion' CLI tool on the system.
For any multi-file code exploration, precise search-replace edits, and compilation tasks:
Run: fusion -p "<detailed description of task>" --always-approveAlternatively, create a wrapper script ~/.openclaw/tools/fusion-tool.sh:
#!/bin/bash
fusion -p "$1" --always-approve5. Launch OpenClaw Gateway
openclaw gateway --verboseYou can now send code modification requests from WhatsApp or Telegram, and Fusion will execute them safely on your local filesystem!