openclaw-droid 4.20.69 → 5.1.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 +27 -267
- package/install.sh +32 -758
- package/package.json +29 -43
- package/bin/openclaw +0 -4
- package/openclaw-wrapper.sh +0 -302
- package/verify.sh +0 -193
package/README.md
CHANGED
|
@@ -1,298 +1,58 @@
|
|
|
1
|
-
# OpenClaw Droid
|
|
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**: Automatically patches Android network restrictions
|
|
16
|
-
- **Systemd Compatibility**: Enhanced proot-distro compatibility with fake systemctl
|
|
17
|
-
- **Seamless Gateway Management**: Automatic service management without systemd
|
|
18
|
-
- **V4.20 Release**: Latest stable version with improved reliability
|
|
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 network patch
|
|
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
|
-
```
|
|
65
|
-
|
|
66
|
-
**Step 4: Login to Ubuntu**
|
|
67
|
-
```bash
|
|
68
|
-
proot-distro login ubuntu
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
**Step 5: Update Ubuntu and install Node.js 22**
|
|
72
|
-
```bash
|
|
73
|
-
apt update && apt upgrade -y
|
|
74
|
-
apt install curl git build-essential -y
|
|
75
|
-
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
|
|
76
|
-
apt install -y nodejs
|
|
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
|
-
JS
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**Step 8: Configure environment**
|
|
93
|
-
```bash
|
|
94
|
-
echo 'export NODE_OPTIONS="-r /root/hijack.js"' >> ~/.bashrc
|
|
95
|
-
source ~/.bashrc
|
|
96
|
-
```
|
|
21
|
+
## Manual Steps (What the script does)
|
|
97
22
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
```
|
|
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`.
|
|
109
35
|
|
|
110
36
|
## Usage
|
|
111
37
|
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
openclaw gateway --verbose
|
|
115
|
-
```
|
|
38
|
+
After installation, you will be logged into Ubuntu.
|
|
116
39
|
|
|
117
|
-
|
|
40
|
+
**1. Run Onboarding:**
|
|
118
41
|
```bash
|
|
119
42
|
openclaw onboard
|
|
120
43
|
```
|
|
44
|
+
*Select **Loopback (127.0.0.1)** for Gateway Bind.*
|
|
121
45
|
|
|
122
|
-
|
|
46
|
+
**2. Start Gateway:**
|
|
123
47
|
```bash
|
|
124
|
-
openclaw
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
### Get help
|
|
128
|
-
```bash
|
|
129
|
-
openclaw --help
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### Check gateway status
|
|
133
|
-
```bash
|
|
134
|
-
openclaw-service-manager status
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### Stop the gateway
|
|
138
|
-
```bash
|
|
139
|
-
openclaw-service-manager stop
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
### Restart the gateway
|
|
143
|
-
```bash
|
|
144
|
-
openclaw-service-manager restart
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
## Access the Dashboard
|
|
148
|
-
|
|
149
|
-
Once the gateway is running, open your browser to:
|
|
150
|
-
|
|
151
|
-
```
|
|
152
|
-
http://127.0.0.1:18789
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
**Note**: To use the Web Gateway chat, copy the `token` from `~/.openclaw/openclaw.json` and paste it in the dashboard under **Overview -> Gateway Access**.
|
|
156
|
-
You can also fetch the token with `openclaw config get gateway.auth.token`.
|
|
157
|
-
|
|
158
|
-
## Verifying Installation
|
|
159
|
-
|
|
160
|
-
After installation completes, you can verify everything is working by running:
|
|
161
|
-
|
|
162
|
-
```bash
|
|
163
|
-
# From Termux (outside Ubuntu)
|
|
164
|
-
bash verify.sh
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
This will check:
|
|
168
|
-
- Termux/Ubuntu environment
|
|
169
|
-
- proot-distro and Ubuntu container
|
|
170
|
-
- Node.js and npm installation
|
|
171
|
-
- OpenClaw global package
|
|
172
|
-
- Termux shortcut and Ubuntu command
|
|
173
|
-
- Network bypass script
|
|
174
|
-
- Environment configuration
|
|
175
|
-
|
|
176
|
-
If all checks pass, you're ready to use OpenClaw!
|
|
177
|
-
|
|
178
|
-
### Quick Test Commands
|
|
179
|
-
|
|
180
|
-
**From Termux (after reopening):**
|
|
181
|
-
```bash
|
|
182
|
-
openclaw --help
|
|
183
|
-
```
|
|
184
|
-
|
|
185
|
-
**From inside Ubuntu:**
|
|
186
|
-
```bash
|
|
187
|
-
openclaw --help
|
|
48
|
+
openclaw gateway --verbose
|
|
188
49
|
```
|
|
189
50
|
|
|
190
|
-
Both should show the OpenClaw help menu.
|
|
191
|
-
|
|
192
51
|
## Troubleshooting
|
|
193
52
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
1. Ensure you are inside Ubuntu (`proot-distro login ubuntu`)
|
|
197
|
-
2. Run `source ~/.bashrc` to reload your path
|
|
198
|
-
3. If that fails, run `npm install -g openclaw@latest` again inside Ubuntu
|
|
199
|
-
|
|
200
|
-
### Gateway not starting / System Error 13
|
|
201
|
-
This usually means the network patch isn't applied.
|
|
202
|
-
1. Check if patch exists: `ls /root/hijack.js`
|
|
203
|
-
2. Check if NODE_OPTIONS is set: `echo $NODE_OPTIONS`
|
|
204
|
-
3. It should print `--require /root/hijack.js`. If empty, run `export NODE_OPTIONS="--require /root/hijack.js"`
|
|
205
|
-
|
|
206
|
-
### "systemctl --user unavailable" error
|
|
207
|
-
This is automatically handled in v4.20 with our proot-distro compatibility wrapper. The installer creates a fake systemctl that provides fallback functionality for gateway management.
|
|
208
|
-
|
|
209
|
-
### Gateway service management issues
|
|
210
|
-
Use the built-in service manager:
|
|
211
|
-
- Check status: `openclaw-service-manager status`
|
|
212
|
-
- Start service: `openclaw-service-manager start`
|
|
213
|
-
- Stop service: `openclaw-service-manager stop`
|
|
214
|
-
- Restart service: `openclaw-service-manager restart`
|
|
215
|
-
|
|
216
|
-
### Termux crashes or kills process
|
|
217
|
-
Android kills background apps to save battery.
|
|
218
|
-
1. **Disable Battery Optimization**: Go to Android Settings -> Apps -> Termux -> Battery -> Unrestricted
|
|
219
|
-
2. **Acquire Wake Lock**: Run `termux-wake-lock` in a separate Termux session
|
|
220
|
-
3. **Use tmux**: `pkg install tmux -y` then run `tmux` before logging into Ubuntu. This keeps your session alive even if the app closes.
|
|
221
|
-
|
|
222
|
-
## Pro Tips
|
|
223
|
-
|
|
224
|
-
- **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.
|
|
225
|
-
- **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`.
|
|
226
|
-
- **Security**: Never show your full API keys or Gateway tokens in videos. Revoke keys if exposed.
|
|
227
|
-
- **Remote Access**: Install `openssh` in Termux to SSH into your phone from your PC.
|
|
228
|
-
- **Reset**: If things get messy, you can reinstall Ubuntu: `proot-distro remove ubuntu && proot-distro install ubuntu`
|
|
229
|
-
|
|
230
|
-
## What's New in v4.20
|
|
231
|
-
|
|
232
|
-
### Enhanced proot-distro Compatibility
|
|
233
|
-
- **Fake systemctl**: Automatically creates a compatibility layer for systemd commands
|
|
234
|
-
- **Service Manager**: Built-in service management without requiring systemd
|
|
235
|
-
- **Gateway Auto-Start**: Seamless gateway startup without manual intervention
|
|
236
|
-
- **Error Handling**: Improved error messages and recovery mechanisms
|
|
237
|
-
|
|
238
|
-
### Improved Installation Process
|
|
239
|
-
- **One-Command Setup**: Enhanced installer with automatic compatibility detection
|
|
240
|
-
- **Systemd Fallback**: Automatic fallback when systemd is unavailable
|
|
241
|
-
- **Better Logging**: Enhanced logging for troubleshooting installation issues
|
|
242
|
-
- **Service Management**: Integrated service manager for gateway control
|
|
243
|
-
|
|
244
|
-
### Enhanced User Experience
|
|
245
|
-
- **Simplified Commands**: Use `openclaw-service-manager` for gateway control
|
|
246
|
-
- **Better Status Reporting**: Clear status messages for service operations
|
|
247
|
-
- **Automatic Recovery**: Self-healing mechanisms for common issues
|
|
248
|
-
- **Backward Compatibility**: Maintains compatibility with existing OpenClaw features
|
|
249
|
-
|
|
250
|
-
## Verified Commands
|
|
251
|
-
|
|
252
|
-
Once the gateway is live, use these chat commands in your linked WhatsApp/Telegram:
|
|
253
|
-
|
|
254
|
-
- `/status` — Check the health of your pocket agent
|
|
255
|
-
- `/think high` — Put the bot in "deep reasoning" mode
|
|
256
|
-
- `/reset` — Clear the current session memory
|
|
257
|
-
|
|
258
|
-
## Additional Resources
|
|
259
|
-
|
|
260
|
-
### Access the Web Gateway
|
|
261
|
-
To chat using the web gateway, copy the `token` value from `~/.openclaw/openclaw.json` and paste it at:
|
|
262
|
-
```
|
|
263
|
-
http://127.0.0.1:18789
|
|
264
|
-
```
|
|
265
|
-
Navigate to **Overview → Gateway Access → Gateway Token**.
|
|
266
|
-
|
|
267
|
-
### Get Gateway Token
|
|
268
|
-
```bash
|
|
269
|
-
openclaw config get gateway.auth.token
|
|
270
|
-
```
|
|
271
|
-
|
|
272
|
-
## Project Structure
|
|
273
|
-
|
|
274
|
-
```
|
|
275
|
-
openclaw-droid/
|
|
276
|
-
├── install.sh # Main installer script
|
|
277
|
-
├── hijack.js # Network interface patch (reference)
|
|
278
|
-
├── openclaw-wrapper.sh # proot-distro compatibility wrapper
|
|
279
|
-
├── README.md # This file
|
|
280
|
-
└── package.json # NPM package configuration
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
## Useful Resources
|
|
284
|
-
|
|
285
|
-
- **[OpenClaw](https://github.com/openclaw/openclaw)**: Core AI Gateway
|
|
286
|
-
- **[ClawHub](https://clawhub.ai/)**: Discover and install skills
|
|
287
|
-
- **[OpenClaw Skills](https://github.com/openclaw/skills)**: Official skill library
|
|
288
|
-
- **[Termux Wiki](https://wiki.termux.com/)**: Termux documentation
|
|
289
|
-
- **[proot-distro](https://github.com/termux/proot-distro)**: Linux distro manager
|
|
53
|
+
- **System Error 13**: Ensure `NODE_OPTIONS` is set (`echo $NODE_OPTIONS`). If not, run `source ~/.bashrc`.
|
|
54
|
+
- **Gateway Bind Crash**: You MUST select Loopback (127.0.0.1) during onboarding.
|
|
290
55
|
|
|
291
56
|
## License
|
|
292
57
|
|
|
293
|
-
MIT
|
|
294
|
-
|
|
295
|
-
## Support
|
|
296
|
-
|
|
297
|
-
- **Issues**: https://github.com/NosytLabs/openclaw-droid/issues
|
|
298
|
-
- **Discussions**: https://github.com/NosytLabs/openclaw-droid/discussions
|
|
58
|
+
MIT
|