openclaw-droid 2.0.6 → 3.0.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 CHANGED
@@ -1,210 +1,209 @@
1
- # OpenClaw Droid 🤖
2
-
3
- > **Run OpenClaw AI Gateway on Android via Termux**
4
- > One-command setup. Optimized for mobile. Bionic Bypass included.
5
-
6
- ![License](https://img.shields.io/badge/license-MIT-blue.svg)
7
- ![Platform](https://img.shields.io/badge/platform-Android%20%7C%20Termux-green.svg)
8
- ![Version](https://img.shields.io/npm/v/openclaw-droid.svg)
9
-
10
- **OpenClaw Droid** makes running [OpenClaw](https://github.com/openclaw/openclaw) on Android effortless. It handles environment setup (proot-distro, Ubuntu, Node.js) and fixes Android-specific issues automatically.
11
-
12
- ## 🚀 Why OpenClaw Droid?
13
-
14
- Running standard Node.js AI tools on Android is painful because of:
15
- * **Bionic libc**: Android's C library differs from Linux (glibc), breaking `os.networkInterfaces()` and DNS lookups.
16
- * **Permissions**: Termux has restricted access to system resources.
17
- * **Environment**: Many tools expect a full Linux userland (Ubuntu/Debian).
18
-
19
- **OpenClaw Droid solves this by:**
20
- 1. Creating a lightweight **Ubuntu** container inside Termux.
21
- 2. Injecting a **Bionic Bypass** script to fix networking.
22
- 3. Providing a simple CLI (`openclaw`) to manage the gateway.
23
-
24
- ## 📦 Installation
25
-
26
- ### Prerequisites
27
- * **Android 10+**
28
- * **Termux** (Install from [F-Droid](https://f-droid.org/packages/com.termux/), NOT Play Store)
29
- * **Termux:API** and **Termux:GUI** apps (from F-Droid)
30
- * ~2GB free storage
31
-
32
- ### Required Apps Setup
33
-
34
- 1. **Install Termux** from [F-Droid](https://f-droid.org/packages/com.termux/)
35
- 2. **Install Termux:API** from [F-Droid](https://f-droid.org/packages/com.termux.api/)
36
- 3. **Install Termux:GUI** from [F-Droid](https://f-droid.org/packages/com.termux.gui/)
37
- 4. **Grant permissions** in Android Settings:
38
- - Go to Settings → Apps → Termux → Permissions
39
- - Grant all permissions (Camera, Microphone, Storage, Location, etc.)
40
- - Repeat for Termux:API and Termux:GUI
41
- 5. **Disable battery optimization** for Termux:
42
- - Go to Settings → Apps → Termux → Battery
43
- - Set to "Unrestricted" or "Don't optimize"
44
- 6. **Grant storage permissions** in Termux:
45
- ```bash
46
- termux-setup-storage
47
- ```
48
-
49
- ### Install Required Packages
50
-
51
- Update package lists and install essential tools:
52
-
53
- ```bash
54
- # Update package lists
55
- pkg update && pkg upgrade
56
-
57
- # Install x11-repo (required for termux-gui)
58
- pkg install -y x11-repo
59
-
60
- # Install required packages
61
- pkg install -y git python nodejs-lts proot-distro termux-api termux-gui
62
-
63
- # Verify installations
64
- node --version
65
- python --version
66
- ```
67
-
68
- If termux-gui is unavailable, continue without it (overlay features disabled).
69
-
70
- ### One-Command Setup
71
- Open Termux and run:
72
-
73
- ```bash
74
- curl -fsSL https://raw.githubusercontent.com/NosytLabs/openclaw-droid/main/install.sh | bash
75
- ```
76
-
77
- Or via npm:
78
-
79
- ```bash
80
- npm install -g openclaw-droid
81
- openclaw setup
82
- ```
83
-
84
- **IMPORTANT:** Use `npm install -g openclaw@latest` installation method (not bash script) as it's more reliable on Android. The installation may take 15-30 minutes due to llama.cpp compilation from scratch.
85
-
86
- ## 🎮 Usage
87
-
88
- ### 1. Initialize
89
- First, configure your API keys:
90
-
91
- ```bash
92
- openclaw onboarding
93
- ```
94
- > **IMPORTANT:** Select **Loopback (127.0.0.1)** for Binding.
95
-
96
- ### 2. Start Gateway
97
- Launch the OpenClaw gateway:
98
-
99
- ```bash
100
- openclaw start
101
- ```
102
-
103
- **Recommended:** Run the gateway in a tmux session for better process management:
104
-
105
- ```bash
106
- # Install tmux first if not installed
107
- pkg install tmux
108
-
109
- # Start a new tmux session
110
- tmux new -s openclaw
111
-
112
- # Run the gateway
113
- openclaw start
114
-
115
- # Detach from tmux (keep it running): Ctrl+B, then D
116
- # Reattach to tmux session: tmux attach -t openclaw
117
- ```
118
-
119
- The dashboard will be available at:
120
- - **http://127.0.0.1:18789** (on the phone)
121
- - **http://<phone-ip>:18789** (from other devices on WiFi, requires gateway.bind = lan)
122
-
123
- ### 3. Enable Screen Overlay (Optional)
124
-
125
- To allow OpenClaw to display overlay messages on your screen:
126
-
127
- ```bash
128
- # In a separate tmux window or terminal:
129
- tmux new-window
130
- cd ~
131
- python ~/overlay_daemon.py
132
- ```
133
-
134
- Or use the built-in command:
135
-
136
- ```bash
137
- openclaw overlay
138
- ```
139
-
140
- Now OpenClaw can write to the screen by creating `~/overlay.txt`:
141
-
142
- ```bash
143
- printf 'Hello from OpenClaw!' > ~/overlay.txt
144
- ```
145
-
146
- The overlay daemon watches for changes to `~/overlay.txt` and displays the content as a screen overlay. This is useful for displaying status updates, notifications, or important information to the user.
147
-
148
- ### 4. Other Commands
149
-
150
- | Command | Description |
151
- | :--- | :--- |
152
- | `openclaw status` | Check installation health |
153
- | `openclaw update` | Update OpenClaw to latest version |
154
- | `openclaw shell` | Open Ubuntu shell |
155
- | `openclaw repair` | Re-install dependencies if broken |
156
- | `openclaw <cmd>` | Run any OpenClaw command (e.g., `openclaw doctor`) |
157
-
158
- ## ⚠️ Troubleshooting
159
-
160
- **"Setup not complete" error**
161
- * Run `openclaw setup` again.
162
- * If it persists, run `openclaw repair`.
163
-
164
- **Process killed in background**
165
- * Go to Android Settings → Apps → Termux → Battery → **Unrestricted**.
166
-
167
- **Permission denied errors**
168
- * Run `termux-setup-storage` to grant storage permissions
169
- * Ensure Termux:API and Termux:GUI have proper permissions
170
-
171
- **Cannot access /tmp/openclaw errors**
172
- * OpenClaw requires a custom TMPDIR on Termux. The installer should configure this automatically.
173
- * If you still see these errors, manually add to `~/.bashrc`:
174
- ```bash
175
- echo 'export TMPDIR="$PREFIX/tmp"' >> ~/.bashrc
176
- echo 'export TMP="$TMPDIR"' >> ~/.bashrc
177
- echo 'export TEMP="$TMPDIR"' >> ~/.bashrc
178
- echo 'if [ ! -d "$TMPDIR" ]; then mkdir -p "$TMPDIR"; fi' >> ~/.bashrc
179
- source ~/.bashrc
180
- mkdir -p /data/data/com.termux/files/usr/tmp/openclaw
181
- ```
182
-
183
- **"systemd not found" errors**
184
- * These are normal on Android/Termux and can be safely ignored.
185
- * OpenClaw will function without systemd.
186
-
187
- **Installation fails on dependencies**
188
- * Some dependencies may fail to install initially. Install them manually:
189
- ```bash
190
- pkg install -y python git proot-distro
191
- npm install -g openclaw@latest
192
- ```
193
- * The llama.cpp compilation takes 15-30 minutes - let it complete.
194
-
195
- **"E: unable to locate package termux-git" errors**
196
- * Install Termux from F-Droid and update repositories: `pkg update && pkg upgrade`
197
- * Use `pkg install git` (the Termux package name is `git`, not `termux-git`)
198
-
199
- **"E: unable to locate package termux-gui" errors**
200
- * Run `pkg install x11-repo` then retry `pkg install termux-gui`
201
- * If it still fails, continue without termux-gui (overlay features disabled)
202
-
203
- **Gateway not accessible from other devices**
204
- * Ensure `gateway.bind` is set to `lan` in your openclaw.json
205
- * Check your phone's IP address: `ip addr show wlan0`
206
- * Access via: `http://<phone-ip>:18789`
207
-
208
- ## 📜 License
209
-
210
- MIT License.
1
+ # OpenClaw Droid
2
+
3
+ > **The Android AI Gateway Installer** by [NosytLabs](https://github.com/NosytLabs)
4
+
5
+ Turn your Android device into a 24/7 AI Gateway using OpenClaw with proot-distro Ubuntu.
6
+
7
+ ## Features
8
+
9
+ - **Zero Root Required**: Runs in Termux + proot-distro Ubuntu container
10
+ - **Full Linux Environment**: Complete Ubuntu container with Node.js 22
11
+ - **24/7 Operation**: Optimized for long-running background sessions
12
+ - **Easy Installation**: One-command installer with automatic setup
13
+
14
+ ## Prerequisites
15
+
16
+ - **Android**: 10 or newer
17
+ - **Termux**: F-Droid version only (https://f-droid.org/packages/com.termux/)
18
+ - **API Key**: OpenClaw API key or compatible AI service
19
+
20
+ ## Installation
21
+
22
+ ### Quick Install (Recommended)
23
+
24
+ Run this single command in Termux:
25
+
26
+ ```bash
27
+ curl -fsSL https://raw.githubusercontent.com/NosytLabs/openclaw-droid/main/install.sh | bash
28
+ ```
29
+
30
+ This will:
31
+ 1. Update Termux packages
32
+ 2. Install proot-distro
33
+ 3. Set up Ubuntu container
34
+ 4. Configure auto-login to Ubuntu
35
+ 5. Install Node.js 22
36
+ 6. Install OpenClaw globally
37
+ 7. Apply network interface patch
38
+ 8. Run onboarding wizard
39
+
40
+ ### Manual Install
41
+
42
+ If you prefer step-by-step installation:
43
+
44
+ **Step 1: Update Termux and install dependencies**
45
+ ```bash
46
+ pkg update && pkg upgrade -y
47
+ pkg install proot-distro -y
48
+ ```
49
+
50
+ **Step 2: Install Ubuntu container**
51
+ ```bash
52
+ proot-distro install ubuntu
53
+ ```
54
+
55
+ **Step 3: Configure auto-login**
56
+ ```bash
57
+ echo "proot-distro login ubuntu" >> ~/.bashrc
58
+ ```
59
+
60
+ **Step 4: Login to Ubuntu**
61
+ ```bash
62
+ proot-distro login ubuntu
63
+ ```
64
+
65
+ **Step 5: Update Ubuntu and install Node.js 22**
66
+ ```bash
67
+ apt update && apt upgrade -y
68
+ curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
69
+ apt install -y nodejs
70
+ ```
71
+
72
+ **Step 6: Install OpenClaw**
73
+ ```bash
74
+ npm install -g openclaw
75
+ ```
76
+
77
+ **Step 7: Create network interface patch**
78
+ ```bash
79
+ cat << 'EOF' > /root/patch.js
80
+ const os = require('os');
81
+ os.networkInterfaces = function() {
82
+ return {
83
+ "lo": [
84
+ {
85
+ "address": "127.0.0.1",
86
+ "netmask": "255.0.0.0",
87
+ "family": "IPv4",
88
+ "mac": "00:00:00:00:00:00",
89
+ "internal": true,
90
+ "cidr": "127.0.0.1/8"
91
+ }
92
+ ]
93
+ };
94
+ };
95
+ EOF
96
+ ```
97
+
98
+ **Step 8: Configure environment**
99
+ ```bash
100
+ echo "export NODE_OPTIONS='--require /root/patch.js'" >> ~/.bashrc
101
+ ```
102
+
103
+ **Step 9: Run onboarding**
104
+ ```bash
105
+ export NODE_OPTIONS='--require /root/patch.js'
106
+ openclaw onboard
107
+ ```
108
+
109
+ **Step 10: Start the gateway**
110
+ ```bash
111
+ openclaw gateway --token YOUR_TOKEN
112
+ ```
113
+
114
+ ## Usage
115
+
116
+ ### Start the AI Gateway
117
+ ```bash
118
+ openclaw gateway --token YOUR_TOKEN
119
+ ```
120
+
121
+ ### Run onboarding wizard
122
+ ```bash
123
+ openclaw onboard
124
+ ```
125
+
126
+ ### Analyze a website
127
+ ```bash
128
+ openclaw analyze https://example.com
129
+ ```
130
+
131
+ ### Get help
132
+ ```bash
133
+ openclaw --help
134
+ ```
135
+
136
+ ## Access the Dashboard
137
+
138
+ Once the gateway is running, open your browser to:
139
+
140
+ ```
141
+ http://127.0.0.1:18789/chat?
142
+ ```
143
+
144
+ ## Troubleshooting
145
+
146
+ ### Gateway not starting
147
+ - Ensure Ubuntu container is running: `proot-distro login ubuntu`
148
+ - Check Node.js version: `node -v` (should be v22.x)
149
+ - Verify network patch is applied: `ls /root/patch.js`
150
+
151
+ ### Network interface errors
152
+ - The patch.js file fixes Android network restrictions
153
+ - Make sure `NODE_OPTIONS` is set: `echo $NODE_OPTIONS`
154
+ - Reapply the patch if needed
155
+
156
+ ### Termux crashes or kills process
157
+ - Disable battery optimization for Termux in Android settings
158
+ - Keep Termux notification active
159
+ - Consider using tmux for persistent sessions: `pkg install tmux -y`
160
+
161
+ ### Ubuntu container issues
162
+ - Reinstall container: `proot-distro remove ubuntu && proot-distro install ubuntu`
163
+ - Check disk space: `df -h`
164
+
165
+ ## Advanced Usage
166
+
167
+ ### 24/7 Mode with tmux
168
+ ```bash
169
+ pkg install tmux -y
170
+ tmux new -s openclaw
171
+ proot-distro login ubuntu
172
+ openclaw gateway --token YOUR_TOKEN
173
+ ```
174
+
175
+ Detach with `Ctrl+b` then `d`. Reattach with `tmux attach -t openclaw`.
176
+
177
+ ### Update OpenClaw
178
+ ```bash
179
+ proot-distro login ubuntu
180
+ npm update -g openclaw
181
+ ```
182
+
183
+ ## Project Structure
184
+
185
+ ```
186
+ openclaw-droid/
187
+ ├── install.sh # Main installer script
188
+ ├── patch.js # Network interface patch
189
+ ├── README.md # This file
190
+ ├── LICENSE # MIT License
191
+ └── package.json # NPM package configuration
192
+ ```
193
+
194
+ ## Useful Resources
195
+
196
+ - **[OpenClaw](https://github.com/openclaw/openclaw)**: Core AI Gateway
197
+ - **[ClawHub](https://clawhub.ai/)**: Discover and install skills
198
+ - **[OpenClaw Skills](https://github.com/openclaw/skills)**: Official skill library
199
+ - **[Termux Wiki](https://wiki.termux.com/)**: Termux documentation
200
+ - **[proot-distro](https://github.com/termux/proot-distro)**: Linux distro manager
201
+
202
+ ## License
203
+
204
+ MIT © [NosytLabs](https://github.com/NosytLabs)
205
+
206
+ ## Support
207
+
208
+ - **Issues**: https://github.com/NosytLabs/openclaw-droid/issues
209
+ - **Discussions**: https://github.com/NosytLabs/openclaw-droid/discussions
package/install.sh CHANGED
@@ -1,79 +1,104 @@
1
1
  #!/bin/bash
2
- #
3
- # OpenClaw Droid Installer
4
- # One-liner: curl -fsSL https://raw.githubusercontent.com/NosytLabs/openclaw-droid/main/install.sh | bash
5
- #
6
-
7
2
  set -e
8
3
 
9
- # Colors
10
4
  RED='\033[0;31m'
11
5
  GREEN='\033[0;32m'
12
- YELLOW='\033[1;33m'
13
6
  BLUE='\033[0;34m'
7
+ YELLOW='\033[1;33m'
14
8
  NC='\033[0m'
15
9
 
16
10
  echo -e "${BLUE}"
17
11
  echo "╔═══════════════════════════════════════════╗"
18
- echo "║ OpenClaw Droid Installer v2.0.6 ║"
19
- echo "║ AI Gateway for Android (via Ubuntu Proot) ║"
12
+ echo "║ OPENCLAW DROID INSTALLER ║"
13
+ echo "║ NosytLabs 2026 ║"
20
14
  echo "╚═══════════════════════════════════════════╝"
21
15
  echo -e "${NC}"
22
16
 
23
- # Check if running in Termux
24
17
  if [ -z "$TERMUX_VERSION" ]; then
25
- echo -e "${YELLOW}Warning:${NC} Not running in Termux - this script is designed for Termux."
18
+ echo -e "${RED}Error:${NC} This script must be run inside Termux."
19
+ echo -e "Install Termux from F-Droid: ${BLUE}https://f-droid.org/packages/com.termux/${NC}"
20
+ exit 1
26
21
  fi
27
22
 
28
- # Update and install packages
29
- echo -e "\n${BLUE}[1/3]${NC} Setting up Termux environment..."
23
+ echo -e "\n${BLUE}[1/6]${NC} Updating Termux packages..."
24
+ # Set non-interactive mode to avoid prompts
25
+ export DEBIAN_FRONTEND=noninteractive
30
26
 
31
- pkg update -y && pkg upgrade -y
32
- pkg install proot-distro -y
27
+ # Attempt update, but don't exit if it fails (common due to repo mirrors or dependency conflicts)
28
+ # We use -o Dpkg::Options::="--force-confnew" to automatically accept new config files
29
+ if ! pkg update -y -o Dpkg::Options::="--force-confnew" || ! pkg upgrade -y -o Dpkg::Options::="--force-confnew"; then
30
+ echo -e "${YELLOW}Warning: Termux package update had issues.${NC}"
31
+ echo -e "Attempting to proceed. If installation fails, try running 'pkg remove nodejs' manually."
32
+ fi
33
+
34
+ echo -e "\n${BLUE}[2/6]${NC} Installing proot-distro..."
35
+ # Check if proot-distro is already installed to avoid re-installation issues
36
+ if command -v proot-distro &> /dev/null; then
37
+ echo -e " ${GREEN}✓${NC} proot-distro already installed."
38
+ else
39
+ if ! pkg install proot-distro -y; then
40
+ echo -e "${RED}Error:${NC} Failed to install proot-distro."
41
+ echo -e "${YELLOW}Tip:${NC} Try running 'pkg remove nodejs' if you have dependency conflicts, then run this script again."
42
+ exit 1
43
+ fi
44
+ fi
33
45
 
34
- # Install Ubuntu
35
- echo -e "\n${BLUE}[2/3]${NC} Installing Ubuntu environment..."
46
+ echo -e "\n${BLUE}[3/6]${NC} Installing Ubuntu container..."
36
47
  if proot-distro list | grep -q "ubuntu.*(installed)"; then
37
- echo -e " ${GREEN}✓${NC} Ubuntu is already installed. Skipping installation."
48
+ echo -e " ${GREEN}✓${NC} Ubuntu container already installed."
38
49
  else
39
- proot-distro install ubuntu || true
50
+ echo -e " ${YELLOW}Installing Ubuntu...${NC}"
51
+ if ! proot-distro install ubuntu; then
52
+ echo -e "${RED}Error:${NC} Failed to install Ubuntu container."
53
+ echo -e "Check your internet connection and disk space."
54
+ exit 1
55
+ fi
40
56
  fi
41
57
 
42
- # Add login alias
58
+ echo -e "\n${BLUE}[4/6]${NC} Configuring auto-login..."
43
59
  if ! grep -q "proot-distro login ubuntu" ~/.bashrc; then
44
60
  echo "proot-distro login ubuntu" >> ~/.bashrc
45
- echo -e " ${GREEN}✓${NC} Added 'proot-distro login ubuntu' alias to .bashrc"
61
+ echo -e " ${GREEN}✓${NC} Auto-login configured."
62
+ else
63
+ echo -e " ${GREEN}✓${NC} Auto-login already configured."
46
64
  fi
47
65
 
66
+ echo -e "\n${BLUE}[5/6]${NC} Creating internal setup script..."
48
67
  TERMUX_HOME="$HOME"
49
- INTERNAL_SCRIPT="$TERMUX_HOME/openclaw_setup_internal.sh"
68
+ INTERNAL_SCRIPT="$TERMUX_HOME/openclaw_internal_setup.sh"
50
69
 
51
- # Create the internal setup script
52
70
  cat << 'EOF' > "$INTERNAL_SCRIPT"
53
71
  #!/bin/bash
54
72
  set -e
55
73
 
56
- # Colors inside proot
57
74
  GREEN='\033[0;32m'
58
75
  BLUE='\033[0;34m'
76
+ YELLOW='\033[1;33m'
59
77
  NC='\033[0m'
60
78
 
61
- echo -e "\n${BLUE}[3/3]${NC} Configuring Ubuntu and installing OpenClaw..."
79
+ echo -e "\n${BLUE}[6/6]${NC} Setting up OpenClaw in Ubuntu..."
80
+
81
+ # Cleanup locks in case of previous failures
82
+ rm -f /var/lib/dpkg/lock-frontend /var/lib/dpkg/lock
83
+ dpkg --configure -a || true
62
84
 
63
- apt update && apt upgrade -y
64
- apt install -y curl nano git
85
+ echo -e "\n${YELLOW}Updating Ubuntu packages...${NC}"
86
+ export DEBIAN_FRONTEND=noninteractive
87
+ apt update && apt upgrade -y -o Dpkg::Options::="--force-confnew"
65
88
 
66
- # Install Node.js 22
67
- echo -e " Installing Node.js 22..."
68
- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
69
- apt install -y nodejs
89
+ echo -e "\n${YELLOW}Installing Node.js 22 from NodeSource...${NC}"
90
+ # Check if already installed
91
+ if ! command -v node &> /dev/null; then
92
+ curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
93
+ apt install -y nodejs
94
+ else
95
+ echo -e " ${GREEN}✓${NC} Node.js already installed."
96
+ fi
70
97
 
71
- # Install OpenClaw
72
- echo -e " Installing OpenClaw..."
98
+ echo -e "\n${YELLOW}Installing OpenClaw globally...${NC}"
73
99
  npm install -g openclaw
74
100
 
75
- # Create patch for network interfaces
76
- echo -e " Applying network patch..."
101
+ echo -e "\n${YELLOW}Creating network interface patch...${NC}"
77
102
  cat << 'JS' > /root/patch.js
78
103
  const os = require('os');
79
104
  os.networkInterfaces = function() {
@@ -92,34 +117,28 @@ os.networkInterfaces = function() {
92
117
  };
93
118
  JS
94
119
 
95
- # Set NODE_OPTIONS permanently
120
+ echo -e "\n${YELLOW}Configuring environment...${NC}"
96
121
  if ! grep -q "NODE_OPTIONS" /root/.bashrc; then
97
122
  echo "export NODE_OPTIONS='--require /root/patch.js'" >> /root/.bashrc
98
123
  fi
99
124
 
100
- # Run onboarding
101
- echo -e "\n${GREEN}Starting OpenClaw Onboarding...${NC}"
125
+ echo -e "\n${GREEN}Starting OpenClaw onboarding...${NC}"
102
126
  export NODE_OPTIONS='--require /root/patch.js'
103
- openclaw onboard
104
-
105
- echo -e "\n${GREEN}Installation complete!${NC}"
106
- echo -e "To start OpenClaw in the future:"
107
- echo -e "1. Run 'proot-distro login ubuntu'"
108
- echo -e "2. Run 'openclaw gateway'"
127
+ openclaw onboard || echo -e "${YELLOW}Onboarding skipped or already completed.${NC}"
109
128
 
110
- # Optional: Start gateway now
111
- # openclaw gateway --token 1234
129
+ echo -e "\n${GREEN}╔═══════════════════════════════════════════╗${NC}"
130
+ echo -e "${GREEN}║ INSTALLATION COMPLETE! ║${NC}"
131
+ echo -e "${GREEN}╚═══════════════════════════════════════════╝${NC}"
112
132
  EOF
113
133
 
114
134
  chmod +x "$INTERNAL_SCRIPT"
115
135
 
116
- # Execute the internal script inside Ubuntu
117
- echo -e "\n${BLUE}Entering Ubuntu to finish setup...${NC}"
118
- proot-distro login ubuntu --bind "$TERMUX_HOME":/mnt/termux -- bash /mnt/termux/openclaw_setup_internal.sh
136
+ echo -e "\n${BLUE}Entering Ubuntu container to run setup...${NC}"
137
+ # Run the internal script
138
+ proot-distro login ubuntu --bind "$TERMUX_HOME":/mnt/termux -- bash /mnt/termux/openclaw_internal_setup.sh
119
139
 
120
- # Cleanup
140
+ echo -e "\n${GREEN}Cleaning up temporary files...${NC}"
121
141
  rm -f "$INTERNAL_SCRIPT"
122
142
 
123
- echo -e "\n${GREEN}═══════════════════════════════════════════${NC}"
124
- echo -e "${GREEN}OpenClaw Droid Setup Complete!${NC}"
125
- echo -e "${GREEN}═══════════════════════════════════════════${NC}"
143
+ echo -e "\n${BLUE}Logging you into Ubuntu now...${NC}"
144
+ exec proot-distro login ubuntu