openclaw-droid 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openclaw-droid might be problematic. Click here for more details.
- package/README.md +41 -289
- package/hijack.js +0 -3
- package/install.sh +62 -810
- package/package.json +29 -43
- package/bin/openclaw +0 -4
- package/openclaw-wrapper.sh +0 -330
- package/verify.sh +0 -200
package/README.md
CHANGED
|
@@ -1,321 +1,73 @@
|
|
|
1
|
-
# OpenClaw Droid v5.
|
|
1
|
+
# OpenClaw Droid v5.1
|
|
2
2
|
|
|
3
|
-
> **The
|
|
3
|
+
> **The Simplified Installer** based on [Sagar Tamang's Guide](https://sagartamang.com/blog/openclaw-on-android-termux).
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
**Keywords**: Android AI Gateway, OpenClaw Android, Termux AI Gateway, proot-distro Ubuntu, Android AI Agent, Mobile AI Gateway, OpenClaw Installer, Android AI Tools, AI Gateway Setup, Termux AI Tools
|
|
5
|
+
This installer automates the exact steps from the "Bionic Bypass" guide to run OpenClaw on Android using Termux and Ubuntu.
|
|
8
6
|
|
|
9
7
|
## Features
|
|
10
8
|
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **Easy Installation**: One-command installer with automatic setup
|
|
15
|
-
- **Bionic Bypass v2**: Enhanced network patch preventing "System Error 13"
|
|
16
|
-
- **Systemd Compatibility**: Enhanced proot-distro compatibility with fake systemctl
|
|
17
|
-
- **Seamless Gateway Management**: Automatic service management without systemd
|
|
18
|
-
- **V5.0 Release**: Major stability update with robust self-healing
|
|
19
|
-
|
|
20
|
-
## Prerequisites
|
|
21
|
-
|
|
22
|
-
- **Android**: 10 or newer
|
|
23
|
-
- **Termux**: F-Droid version only (https://f-droid.org/packages/com.termux/)
|
|
24
|
-
- **API Key**: Gemini API key from Google AI Studio
|
|
9
|
+
- **Strict Adherence**: Follows the blog guide exactly (no extra wrappers or complex logic).
|
|
10
|
+
- **Automated Setup**: Installs Node 22, OpenClaw, and the Bionic Bypass automatically.
|
|
11
|
+
- **Zero Root**: Runs in Termux + proot-distro.
|
|
25
12
|
|
|
26
13
|
## Installation
|
|
27
14
|
|
|
28
|
-
### Quick Install (Recommended)
|
|
29
|
-
|
|
30
15
|
Run this single command in Termux:
|
|
31
16
|
|
|
32
17
|
```bash
|
|
33
18
|
curl -fsSL https://raw.githubusercontent.com/NosytLabs/openclaw-droid/main/install.sh | bash
|
|
34
19
|
```
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
1. Update Termux packages
|
|
38
|
-
2. Install proot-distro and Ubuntu
|
|
39
|
-
3. Configure auto-login
|
|
40
|
-
4. Install Node.js 22 and OpenClaw
|
|
41
|
-
5. Apply enhanced network patch (Bionic Bypass v2)
|
|
42
|
-
6. Install proot-distro compatibility wrapper
|
|
43
|
-
7. Configure systemd fallback for gateway management
|
|
44
|
-
8. Run onboarding wizard
|
|
45
|
-
|
|
46
|
-
### Manual Install
|
|
47
|
-
|
|
48
|
-
If you prefer step-by-step installation:
|
|
49
|
-
|
|
50
|
-
**Step 1: Update Termux and install dependencies**
|
|
51
|
-
```bash
|
|
52
|
-
pkg update && pkg upgrade -y
|
|
53
|
-
pkg install proot-distro -y
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
**Step 2: Install Ubuntu container**
|
|
57
|
-
```bash
|
|
58
|
-
proot-distro install ubuntu
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
**Step 3: Configure auto-login**
|
|
62
|
-
```bash
|
|
63
|
-
echo "proot-distro login ubuntu" >> ~/.bashrc
|
|
64
|
-
```
|
|
21
|
+
## Manual Steps (What the script does)
|
|
65
22
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
**Step 6: Install OpenClaw**
|
|
80
|
-
```bash
|
|
81
|
-
npm install -g openclaw@latest
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
**Step 7: Create network interface patch (Bionic Bypass)**
|
|
85
|
-
```bash
|
|
86
|
-
cat << 'JS' > /root/hijack.js
|
|
87
|
-
const os = require('os');
|
|
88
|
-
os.networkInterfaces = () => ({
|
|
89
|
-
'lo': [{
|
|
90
|
-
address: '127.0.0.1',
|
|
91
|
-
netmask: '255.0.0.0',
|
|
92
|
-
family: 'IPv4',
|
|
93
|
-
mac: '00:00:00:00:00:00',
|
|
94
|
-
internal: true,
|
|
95
|
-
cidr: '127.0.0.1/8'
|
|
96
|
-
}]
|
|
97
|
-
});
|
|
98
|
-
JS
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Step 8: Configure environment**
|
|
102
|
-
```bash
|
|
103
|
-
echo 'export NODE_OPTIONS="-r /root/hijack.js"' >> ~/.bashrc
|
|
104
|
-
source ~/.bashrc
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Step 9: Run onboarding**
|
|
108
|
-
```bash
|
|
109
|
-
openclaw onboard
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
When asked for Gateway Bind, select **Loopback (127.0.0.1)**.
|
|
113
|
-
|
|
114
|
-
**Step 10: Start the gateway**
|
|
115
|
-
```bash
|
|
116
|
-
openclaw gateway --verbose
|
|
117
|
-
```
|
|
23
|
+
1. Updates Termux and installs `proot-distro`.
|
|
24
|
+
2. Installs `ubuntu` container.
|
|
25
|
+
3. Logs into Ubuntu and installs:
|
|
26
|
+
- `curl`, `git`, `build-essential`
|
|
27
|
+
- `Node.js 22`
|
|
28
|
+
- `openclaw` (global)
|
|
29
|
+
4. Creates the **Bionic Bypass** (`/root/hijack.js`):
|
|
30
|
+
```js
|
|
31
|
+
const os = require('os');
|
|
32
|
+
os.networkInterfaces = () => ({});
|
|
33
|
+
```
|
|
34
|
+
5. Adds `export NODE_OPTIONS="-r /root/hijack.js"` to `.bashrc`.
|
|
118
35
|
|
|
119
36
|
## Usage
|
|
120
37
|
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
openclaw gateway --verbose
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Run onboarding wizard
|
|
127
|
-
```bash
|
|
128
|
-
openclaw onboard
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
### Analyze a website
|
|
132
|
-
```bash
|
|
133
|
-
openclaw analyze https://example.com
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Get help
|
|
137
|
-
```bash
|
|
138
|
-
openclaw --help
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### Check gateway status
|
|
142
|
-
```bash
|
|
143
|
-
openclaw-service-manager status
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
### Stop the gateway
|
|
147
|
-
```bash
|
|
148
|
-
openclaw-service-manager stop
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### Restart the gateway
|
|
152
|
-
```bash
|
|
153
|
-
openclaw-service-manager restart
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
## Access the Dashboard
|
|
157
|
-
|
|
158
|
-
Once the gateway is running, open your browser to:
|
|
159
|
-
|
|
160
|
-
```
|
|
161
|
-
http://127.0.0.1:18789
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
**Note**: To use the Web Gateway chat, copy the `token` from `~/.openclaw/openclaw.json` and paste it in the dashboard under **Overview -> Gateway Access**.
|
|
165
|
-
You can also fetch the token with `openclaw config get gateway.auth.token`.
|
|
166
|
-
|
|
167
|
-
## Verifying Installation
|
|
168
|
-
|
|
169
|
-
After installation completes, you can verify everything is working by running:
|
|
38
|
+
After installation, you will be automatically logged into the Ubuntu environment.
|
|
170
39
|
|
|
40
|
+
**1. Setup & Configuration:**
|
|
41
|
+
Run the configuration wizard to set up your Gateway, LLM Models, and Social Channels (Telegram/WhatsApp):
|
|
171
42
|
```bash
|
|
172
|
-
|
|
173
|
-
bash verify.sh
|
|
43
|
+
openclaw config
|
|
174
44
|
```
|
|
45
|
+
* **Gateway Bind**: MUST be `127.0.0.1` (Loopback).
|
|
46
|
+
* **Telegram Pairing**: Select "Telegram" in the menu. You will be prompted to enter your Bot Token and then given a pairing code/link to verify in your Telegram app.
|
|
175
47
|
|
|
176
|
-
|
|
177
|
-
- Termux/Ubuntu environment
|
|
178
|
-
- proot-distro and Ubuntu container
|
|
179
|
-
- Node.js and npm installation
|
|
180
|
-
- OpenClaw global package
|
|
181
|
-
- Termux shortcut and Ubuntu command
|
|
182
|
-
- Network bypass script
|
|
183
|
-
- Environment configuration
|
|
184
|
-
|
|
185
|
-
If all checks pass, you're ready to use OpenClaw!
|
|
186
|
-
|
|
187
|
-
### Quick Test Commands
|
|
188
|
-
|
|
189
|
-
**From Termux (after reopening):**
|
|
48
|
+
**2. Start Gateway:**
|
|
190
49
|
```bash
|
|
191
|
-
openclaw --
|
|
50
|
+
openclaw gateway --verbose
|
|
192
51
|
```
|
|
193
52
|
|
|
194
|
-
|
|
195
|
-
```bash
|
|
196
|
-
openclaw --help
|
|
197
|
-
```
|
|
53
|
+
## Termux Controls & Tips
|
|
198
54
|
|
|
199
|
-
|
|
55
|
+
- **Backing Out / Exit**:
|
|
56
|
+
- To kill a running process (like the gateway): Press `CTRL` + `C`.
|
|
57
|
+
- To exit the Ubuntu shell (back to Termux): Press `CTRL` + `D` (or `CAPS LOCK` + `CTRL` + `D`) or type `exit`.
|
|
58
|
+
- **Keyboard Shortcuts**:
|
|
59
|
+
- On touch keyboards, `Volume Down` often acts as `CTRL`.
|
|
60
|
+
- `Volume Up` + `Q` can toggle extra keys row.
|
|
200
61
|
|
|
201
62
|
## Troubleshooting
|
|
202
63
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
### "System Error 13" or "Failed to start CLI"
|
|
210
|
-
This is a critical issue on Android caused by network interface restrictions.
|
|
211
|
-
v5.0 fixes this with an enhanced Bionic Bypass.
|
|
212
|
-
1. Run `cat /root/hijack.js` and verify it contains the 'lo' interface mock.
|
|
213
|
-
2. Check if NODE_OPTIONS is set: `echo $NODE_OPTIONS`
|
|
214
|
-
3. If empty, run `export NODE_OPTIONS="--require /root/hijack.js"`
|
|
215
|
-
4. **Self-Repair**: The new wrapper automatically fixes this. Just run `openclaw gateway` again.
|
|
216
|
-
|
|
217
|
-
### Gateway not starting / System Error 13
|
|
218
|
-
This usually means the network patch isn't applied.
|
|
219
|
-
1. Check if patch exists: `ls /root/hijack.js`
|
|
220
|
-
2. Check if NODE_OPTIONS is set: `echo $NODE_OPTIONS`
|
|
221
|
-
3. It should print `--require /root/hijack.js`. If empty, run `export NODE_OPTIONS="--require /root/hijack.js"`
|
|
222
|
-
4. **Best Solution**: Run `bash full_repair.sh` to fix everything automatically.
|
|
223
|
-
|
|
224
|
-
### "systemctl --user unavailable" error
|
|
225
|
-
This is automatically handled in v5.0 with our proot-distro compatibility wrapper. The installer creates a fake systemctl that provides fallback functionality for gateway management.
|
|
226
|
-
|
|
227
|
-
### Gateway service management issues
|
|
228
|
-
Use the built-in service manager:
|
|
229
|
-
- Check status: `openclaw-service-manager status`
|
|
230
|
-
- Start service: `openclaw-service-manager start`
|
|
231
|
-
- Stop service: `openclaw-service-manager stop`
|
|
232
|
-
- Restart service: `openclaw-service-manager restart`
|
|
233
|
-
|
|
234
|
-
### Termux crashes or kills process
|
|
235
|
-
Android kills background apps to save battery.
|
|
236
|
-
1. **Disable Battery Optimization**: Go to Android Settings -> Apps -> Termux -> Battery -> Unrestricted
|
|
237
|
-
2. **Acquire Wake Lock**: Run `termux-wake-lock` in a separate Termux session
|
|
238
|
-
3. **Use tmux**: `pkg install tmux -y` then run `tmux` before logging into Ubuntu. This keeps your session alive even if the app closes.
|
|
239
|
-
|
|
240
|
-
## Pro Tips
|
|
241
|
-
|
|
242
|
-
- **Keep it Alive**: Android will kill Termux in the background. Run `termux-wake-lock` in a separate Termux session and disable "Battery Optimization" for Termux.
|
|
243
|
-
- **The UI**: Access your dashboard by going to `http://127.0.0.1:18789` in your phone's browser. Get your token using `openclaw config get gateway.auth.token`.
|
|
244
|
-
- **Security**: Never show your full API keys or Gateway tokens in videos. Revoke keys if exposed.
|
|
245
|
-
- **Remote Access**: Install `openssh` in Termux to SSH into your phone from your PC.
|
|
246
|
-
- **Reset**: If things get messy, you can reinstall Ubuntu: `proot-distro remove ubuntu && proot-distro install ubuntu`
|
|
247
|
-
|
|
248
|
-
## What's New in v5.0
|
|
249
|
-
|
|
250
|
-
### Bionic Bypass v2
|
|
251
|
-
- **Enhanced Mocking**: Mocks loopback interface to satisfy strict Node.js networking checks
|
|
252
|
-
- **Self-Healing**: Wrapper automatically restores the bypass if deleted
|
|
253
|
-
- **Robustness**: Prevents System Error 13 in more edge cases
|
|
254
|
-
|
|
255
|
-
### Enhanced proot-distro Compatibility
|
|
256
|
-
- **Fake systemctl**: Automatically creates a compatibility layer for systemd commands
|
|
257
|
-
- **Service Manager**: Built-in service management without requiring systemd
|
|
258
|
-
- **Gateway Auto-Start**: Seamless gateway startup without manual intervention
|
|
259
|
-
- **Error Handling**: Improved error messages and recovery mechanisms
|
|
260
|
-
|
|
261
|
-
### Improved Installation Process
|
|
262
|
-
- **One-Command Setup**: Enhanced installer with automatic compatibility detection
|
|
263
|
-
- **Systemd Fallback**: Automatic fallback when systemd is unavailable
|
|
264
|
-
- **Better Logging**: Enhanced logging for troubleshooting installation issues
|
|
265
|
-
- **Service Management**: Integrated service manager for gateway control
|
|
266
|
-
|
|
267
|
-
### Enhanced User Experience
|
|
268
|
-
- **Simplified Commands**: Use `openclaw-service-manager` for gateway control
|
|
269
|
-
- **Better Status Reporting**: Clear status messages for service operations
|
|
270
|
-
- **Automatic Recovery**: Self-healing mechanisms for common issues
|
|
271
|
-
- **Backward Compatibility**: Maintains compatibility with existing OpenClaw features
|
|
272
|
-
|
|
273
|
-
## Verified Commands
|
|
274
|
-
|
|
275
|
-
Once the gateway is live, use these chat commands in your linked WhatsApp/Telegram:
|
|
276
|
-
|
|
277
|
-
- `/status` — Check the health of your pocket agent
|
|
278
|
-
- `/think high` — Put the bot in "deep reasoning" mode
|
|
279
|
-
- `/reset` — Clear the current session memory
|
|
280
|
-
|
|
281
|
-
## Additional Resources
|
|
282
|
-
|
|
283
|
-
### Access the Web Gateway
|
|
284
|
-
To chat using the web gateway, copy the `token` value from `~/.openclaw/openclaw.json` and paste it at:
|
|
285
|
-
```
|
|
286
|
-
http://127.0.0.1:18789
|
|
287
|
-
```
|
|
288
|
-
Navigate to **Overview → Gateway Access → Gateway Token**.
|
|
289
|
-
|
|
290
|
-
### Get Gateway Token
|
|
291
|
-
```bash
|
|
292
|
-
openclaw config get gateway.auth.token
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
## Project Structure
|
|
296
|
-
|
|
297
|
-
```
|
|
298
|
-
openclaw-droid/
|
|
299
|
-
├── install.sh # Main installer script
|
|
300
|
-
├── hijack.js # Network interface patch (reference)
|
|
301
|
-
├── openclaw-wrapper.sh # proot-distro compatibility wrapper
|
|
302
|
-
├── README.md # This file
|
|
303
|
-
└── package.json # NPM package configuration
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
## Useful Resources
|
|
307
|
-
|
|
308
|
-
- **[OpenClaw](https://github.com/openclaw/openclaw)**: Core AI Gateway
|
|
309
|
-
- **[ClawHub](https://clawhub.ai/)**: Discover and install skills
|
|
310
|
-
- **[OpenClaw Skills](https://github.com/openclaw/skills)**: Official skill library
|
|
311
|
-
- **[Termux Wiki](https://wiki.termux.com/)**: Termux documentation
|
|
312
|
-
- **[proot-distro](https://github.com/termux/proot-distro)**: Linux distro manager
|
|
64
|
+
- **DPKG/APT Errors**: If installation fails with `dpkg error processing package` or `sub-process returned an error code (1)`:
|
|
65
|
+
- Run `dpkg --configure -a` manually in Termux.
|
|
66
|
+
- Run `apt --fix-broken install`.
|
|
67
|
+
- Re-run the installer.
|
|
68
|
+
- **System Error 13**: Ensure `NODE_OPTIONS` is set (`echo $NODE_OPTIONS`). If not, run `source ~/.bashrc`.
|
|
69
|
+
- **Gateway Bind Crash**: You MUST select Loopback (127.0.0.1) during onboarding.
|
|
313
70
|
|
|
314
71
|
## License
|
|
315
72
|
|
|
316
|
-
MIT
|
|
317
|
-
|
|
318
|
-
## Support
|
|
319
|
-
|
|
320
|
-
- **Issues**: https://github.com/NosytLabs/openclaw-droid/issues
|
|
321
|
-
- **Discussions**: https://github.com/NosytLabs/openclaw-droid/discussions
|
|
73
|
+
MIT
|