create-openclaw-bot 5.7.10 β†’ 5.8.1

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.
package/README.md CHANGED
@@ -3,287 +3,130 @@
3
3
  # 🦞 OpenClaw Setup
4
4
 
5
5
  <p align="center">
6
- <a href="https://github.com/tuanminhhole/openclaw-setup/releases"><img src="https://img.shields.io/badge/RELEASE-v5.7.10-0EA5E9?style=for-the-badge" alt="Version 5.7.10" /></a>
6
+ <a href="https://github.com/tuanminhhole/openclaw-setup/releases"><img src="https://img.shields.io/badge/RELEASE-v5.8.0-0EA5E9?style=for-the-badge" alt="Version 5.8.0" /></a>
7
7
  <a href="https://github.com/tuanminhhole/openclaw-setup?tab=MIT-1-ov-file"><img src="https://img.shields.io/badge/LICENSE-MIT-success?style=for-the-badge" alt="MIT License" /></a>
8
8
  <a href="https://www.npmjs.com/package/create-openclaw-bot"><img src="https://img.shields.io/npm/v/create-openclaw-bot?style=for-the-badge&label=CLI&color=2563EB&logo=npm&logoColor=white" alt="NPM Version" /></a>
9
9
  <a href="https://github.com/tuanminhhole/openclaw-setup/stargazers"><img src="https://img.shields.io/github/stars/tuanminhhole/openclaw-setup?style=for-the-badge&color=eab308&logo=github&logoColor=white" alt="GitHub Stars" /></a>
10
10
  </p>
11
11
 
12
- <p style="margin-top: 16px;">
13
- <img src="https://flagcdn.com/24x18/gb.png" alt="English" width="24" height="18" style="vertical-align: sub;"> <strong>English</strong> Β·
14
- <img src="https://flagcdn.com/24x18/vn.png" alt="TiαΊΏng Việt" width="24" height="18" style="vertical-align: sub;"> <a href="README.vi.md">TiαΊΏng Việt</a>
15
- </p>
12
+ [![TiαΊΏng Việt](https://flagcdn.com/20x15/vn.png) TiαΊΏng Việt](README.vi.md) Β· ![English](https://flagcdn.com/20x15/gb.png) **English**
16
13
 
17
- An interactive **CLI tool** and **Setup Wizard** to deploy your own free AI Bot on Telegram or Zalo in minutes β€” supports **Windows, macOS, Ubuntu, and VPS**.
14
+ A next-generation **Web UI Setup** and management dashboard that automates 100% of the project scaffolding, deployment, and control of free multi-bot AI assistants on Telegram or Zalo β€” supports **Windows, macOS, Ubuntu, and VPS**.
18
15
 
19
- <a href="https://github.com/tuanminhhole/openclaw-setup">
20
- <img src="https://raw.githubusercontent.com/tuanminhhole/openclaw-setup/main/docs/preview.png" alt="OpenClaw Setup Hero Image" width="100%" style="border-radius: 8px; margin: 16px 0; border: 1px solid #333;" />
21
- </a>
16
+ <p align="center" style="margin: 24px 0;">
17
+ <img src="https://raw.githubusercontent.com/tuanminhhole/openclaw-setup/main/docs/openclaw-setup.png" alt="OpenClaw Setup" width="90%" style="border-radius: 8px; border: 1px solid #333; margin-bottom: 16px;" />
18
+ <img src="https://raw.githubusercontent.com/tuanminhhole/openclaw-setup/main/docs/dashboard.png" alt="OpenClaw Dashboard" width="90%" style="border-radius: 8px; border: 1px solid #333; margin-bottom: 16px;" />
19
+ <img src="https://raw.githubusercontent.com/tuanminhhole/openclaw-setup/main/docs/bot.png" alt="OpenClaw Bot in Action" width="90%" style="border-radius: 8px; border: 1px solid #333;" />
20
+ </p>
22
21
 
23
22
  </div>
24
23
 
25
24
  ---
26
25
 
27
- ## πŸ†• What's new in v5.7.10
28
-
29
- - πŸ”§ **Rename Zalo Plugin Reference** β€” Updated internal string references from `zalo-mod` to `openclaw-zalo-mod` to align with the new NPM package identity.
30
-
31
- <details>
32
- <summary><b>Previous: What's new in v5.7.8</b></summary>
26
+ ## πŸ†• What's New in v5.8.0 (Major Release)
33
27
 
34
- - 🧹 **Zalo Mod Plugin Cleanup** β€” Removed auto-injection of `zalo-mod` into generated configs. The plugin now must be installed manually via ClawHub, eliminating persistent installation loops and Docker permission conflicts.
35
- - πŸ”§ **Cleaner Docker Build** β€” `openclaw-zalo-mod` is no longer baked into the Docker image during build or runtime entrypoint, reducing image size and startup errors.
36
- - πŸ“ **Standardized Release Workflow** β€” Added `.agent/workflows/update.md` as the canonical release checklist for this repo.
28
+ - 🎨 **Modern Web UI Dashboard**: Completely replaces the legacy `index.html` static wizard and terminal-based manual setups with a highly intuitive, premium dark red/black themed web dashboard to install and manage bots.
29
+ - πŸ”€ **Centralized AI Proxy via 9Router**: The installer now relies exclusively on **9Router** as the unified AI gateway. You no longer need to manually manage separate API keys or endpoints for each provider. Through 9Router's OAuth sign-in flow, you can easily route requests to free models (like Google Gemini free tier, Ollama local offline models) as well as premium paid models (like OpenAI GPT-4o, Anthropic Claude...).
30
+ - πŸ“Š **Process Controller**: Directly Start, Stop, or Recreate bot containers and processes via user-friendly dashboard buttons without ever touching Docker CLI commands.
31
+ - πŸ“‘ **Real-Time Live Logs**: View real-time streaming console logs of your bot processes directly on the Web UI for instant debugging and monitoring.
32
+ - πŸ“ **File Tree Editor**: Read, modify, and save configuration files (`openclaw.json`, `SOUL.md`, `AGENTS.md`) directly in the browser.
33
+ - πŸ”‘ **Zalo QR Authorization**: Authorize Zalo Personal bots in seconds by scanning the Zalo login QR code rendered directly on the management dashboard.
34
+ - πŸ”„ **Smart Port Conflict Resolution**: Automatically scans and dynamically assigns unique network ports (`routerPort`) to avoid conflicts when launching multiple bot instances.
37
35
 
38
- ## </details>
36
+ ---
39
37
 
40
38
  ## ✨ Features
41
39
 
42
- - πŸ€– **Multi-channel** β€” Telegram (single or multi-bot), Zalo Bot API, or Zalo Personal
43
- - πŸ§‘β€πŸ€β€πŸ§‘ **Multi-bot team** β€” Run up to 5 Telegram bots simultaneously. Bots share a workspace, collaborate on tasks, and coordinate in a group chat using the Department Room Model
44
- - 🧠 **Multi-provider AI** β€” Google Gemini, Claude, GPT-4o, OpenRouter, Ollama (local), 9Router
45
- - 🧩 **Skills** β€” Web Search, Browser Automation, Memory, RAG, Code Interpreter, Image Gen
46
- - πŸ”Œ **Plugins** β€” Voice Call, Matrix, MS Teams, Nostr
47
- - πŸ”€ **9Router** β€” Free AI proxy. OAuth login, no API keys. Supports Claude Code, Codex, Gemini CLI.
48
- - πŸ§™ **Setup Wizard** β€” 5-step visual web UI (`index.html`). No terminal required.
49
- - πŸ’» **Interactive CLI** β€” `npx create-openclaw-bot` β€” best for Ubuntu, VPS, engineers.
50
- - πŸ†“ **100% Free to start** β€” 9Router + Gemini free tier requires zero spending
51
- - πŸ”’ **Private** β€” API keys stay on your machine, never sent anywhere
52
- - ⚑ **Fast** β€” From zero to working bot in under 5 minutes
40
+ - πŸ€– **Multi-Channel** β€” Telegram (single or multi-bot relay), Zalo Bot API, or Zalo Personal.
41
+ - πŸ§‘β€πŸ€β€πŸ§‘ **Multi-Bot Team** β€” Run multiple Telegram/Zalo bots simultaneously with synchronized workspaces and teamwork.
42
+ - 🧠 **Unified AI Routing via 9Router** β€” Easily route messages to Google Gemini, Claude, GPT-4o, OpenRouter, and Ollama (local offline models).
43
+ - 🧩 **Built-in Skills** β€” Web Search, Browser Automation (Chrome CDP), and Cron/Scheduler tasks.
44
+ - πŸ”Œ **Integrated Marketplace** β€” Install advanced plugins (like `openclaw-zalo-mod`, Facebook Crawler...) with a single click.
45
+ - πŸ”€ **9Router Integration** β€” Open-source OAuth-based AI proxy that gets you up and running for free without individual API keys.
46
+ - πŸ”’ **Safe & Private** β€” All configurations and API keys are stored locally on your own machine.
53
47
 
54
48
  ---
55
49
 
56
- ## πŸ—ΊοΈ Choose your path
57
-
58
- > **Not sure which method to use?** The table below has you covered:
59
-
60
- | Who you are | Environment | Recommended path |
61
- | -------------------------- | --------------- | ------------------------------------- |
62
- | Not familiar with terminal | Windows / macOS | **Web Wizard** (`index.html`) |
63
- | Not familiar with terminal | Ubuntu Desktop | **Web Wizard** β†’ choose Native |
64
- | Comfortable with terminal | Ubuntu / VPS | **CLI** (`npx create-openclaw-bot`) |
65
- | Want full automation | Anywhere | **AI Agent** (Antigravity + SETUP.md) |
66
-
67
- ### 1️⃣ Option A β€” Web Wizard (No terminal required)
68
-
69
- Best for **Windows and macOS**. No command line at all.
70
-
71
- 1. [Download ZIP](https://github.com/tuanminhhole/openclaw-setup/archive/refs/heads/main.zip) or clone this repo.
72
- 2. Open `index.html` in your browser.
73
- 3. Follow the **5-step wizard**:
74
- - **Step 1:** Choose your OS (Windows / macOS / Ubuntu / VPS)
75
- - **Step 2:** Choose your bot channel (Telegram / Zalo)
76
- - **Step 3:** Choose your AI provider and model
77
- - **Step 4:** Enter bot token and configure settings
78
- - **Step 5:** Download your script and run it β€” done!
79
- 4. The downloaded script automatically installs everything needed (9Router, Ollama, Docker, etc.) based on your choices.
80
-
81
- > **Docker or no Docker?**
82
- >
83
- > - **Windows / macOS** β†’ Use **Docker** (fully isolated, easy to manage)
84
- > - **Ubuntu / VPS** β†’ Use **Native (no Docker)** (less RAM, more stable)
85
-
86
- ### 2️⃣ Option B β€” Interactive CLI (`npx`)
87
-
88
- Best for **engineers, Ubuntu Desktop, VPS**. Fastest and most powerful.
50
+ ## πŸ—ΊοΈ Quick Start
89
51
 
52
+ ### 1️⃣ Method 1: Using NPX (Recommended)
53
+ Open your terminal and run this single command:
90
54
  ```bash
91
55
  npx create-openclaw-bot
92
56
  ```
57
+ *The bootstrapper will automatically download package files, launch the local backend server, and open the Setup UI in your browser.*
93
58
 
94
- Run in your terminal β†’ follow the interactive prompts β†’ startup script is generated automatically.
95
-
96
- > Requires: **Node.js 20/22/24**. Check: `node -v`
97
- >
98
- > Note: **avoid Node.js 25 for now**. There are reports of OpenClaw failing on Node 25.
99
-
100
- <details>
101
- <summary><b>3️⃣ Option C β€” AI Agent (Antigravity)</b></summary>
102
- <br>
103
-
104
- 1. Open [Antigravity IDE](https://antigravity.dev/)
105
- 2. Open this repo as your workspace
106
- 3. Paste into chat:
107
- ```
108
- Read SETUP.md and set up OpenClaw v5.3.1 for me.
109
- My bot token is X. Use 9Router (no API key).
110
- My project folder: <YOUR_PATH>
111
- ```
112
-
113
- </details>
59
+ ### 2️⃣ Method 2: Manual Clone
60
+ If you downloaded or cloned the repository files locally:
61
+ ```bash
62
+ npm install
63
+ npm start
64
+ ```
114
65
 
115
66
  ---
116
67
 
117
- ## πŸ“‹ Prerequisites
118
-
119
- ### Without Docker (Native β€” recommended for Ubuntu/VPS)
120
-
121
- | Requirement | Notes |
122
- | ----------------------- | -------------------------------------------------------------------------- |
123
- | **Node.js 20/22/24** | [Download](https://nodejs.org/) Β· Check: `node -v` Β· Avoid Node 25 for now |
124
- | **An AI provider** | 9Router (free) or Gemini/Claude/GPT-4o |
125
- | **Bot Token** | From Telegram BotFather or Zalo Developer |
126
- | **Ollama** _(optional)_ | Only if you want to run Gemma 4 locally Β· [Download](https://ollama.com/) |
127
-
128
- ### With Docker (recommended for Windows/macOS)
68
+ ## πŸ“‹ System Prerequisites
129
69
 
130
- | Requirement | Notes |
131
- | ------------------------------- | --------------------------------------------------------------------------------------------- |
132
- | **Node.js 20/22/24** | [Download](https://nodejs.org/) Β· Check: `node -v` Β· Avoid Node 25 for now |
133
- | **Docker Desktop + Compose V2** | [Download](https://www.docker.com/products/docker-desktop/) Β· Check: `docker compose version` |
134
- | **An AI provider** | 9Router runs as a sidecar container β€” no separate install needed |
135
- | **Bot Token** | From Telegram BotFather or Zalo Developer |
70
+ - **Node.js**: Version 20, 22, or 24 (Avoid Node 25 due to runtime library deprecations).
71
+ - **Git**: Installed and available in your environment PATH.
72
+ - **Docker Desktop** (If deploying via Docker): Support for Docker Compose V2.
136
73
 
137
74
  ---
138
75
 
139
- ## 🧠 Supported Providers
76
+ ## 🧠 Supported AI Providers (via 9Router)
140
77
 
141
- | Provider | Cost | API Key | Notes |
142
- | -------------------- | ------------ | -------- | ----------------------------------------------------------------------------------------- |
143
- | **9Router** | πŸ†“ Free | ❌ OAuth | Recommended for beginners. Auto-routes to best model. Supports Claude CLI, Codex, Gemini. |
144
- | **Google Gemini** | πŸ†“ Free tier | βœ… Yes | High quality. Very generous free tier. |
145
- | **Ollama / Gemma 4** | 🏠 Free | ❌ No | Runs 100% offline. Auto-pulls model on first start. |
146
- | **Anthropic Claude** | πŸ’° Paid | βœ… Yes | Best reasoning and writing quality. |
147
- | **OpenAI / Codex** | πŸ’° Paid | βœ… Yes | GPT-4o, Codex Mini. |
148
- | **OpenRouter** | πŸ†“/πŸ’° Mixed | βœ… Yes | Many models under one key. Some are free. |
149
-
150
- > πŸ”€ **9Router v0.3.75+** adds lossless passthrough for Claude Code, Codex, Gemini CLI, and Antigravity β€” meaning these AI tools can use 9Router as their endpoint without any data loss. See [docs/ai-providers.md](docs/ai-providers.md) for setup details.
78
+ - [9Router GitHub](https://github.com/decolua/9router)
151
79
 
152
80
  ---
153
81
 
154
82
  ## πŸ”Œ Supported Channels
155
83
 
156
- - **Telegram** (βœ… Official) β€” Search **@BotFather** β†’ `/newbot` β†’ Copy token.
157
- - **Zalo Bot API** (βœ… Official) β€” Go to [developers.zalo.me](https://developers.zalo.me) β†’ Create bot β†’ Copy token.
158
- - **Zalo Personal** (⚠️ Unofficial) β€” Scan QR after setup (no token needed). Use a secondary account.
159
-
160
- > ⚠️ **Zalo Personal** uses an unofficial API. Your account may be restricted. Use a secondary account only.
84
+ - **Telegram**: Acquire your official Bot Token from `@BotFather`.
85
+ - **Zalo Bot API**: Obtain credentials from [developers.zalo.me](https://developers.zalo.me).
86
+ - **Zalo Personal**: Scan the QR authorization image displayed on the OpenClaw Dashboard.
161
87
 
162
88
  ---
163
89
 
164
- ## πŸ“ Repo Structure
90
+ ## πŸ“ Repository Structure
165
91
 
92
+ ```text
93
+ openclaw-setup/
94
+ |-- README.md ← English documentation (You are here)
95
+ |-- README.vi.md ← Vietnamese documentation
96
+ |-- package.json ← NPM entry and runner scripts
97
+ |-- dist/ ← Compiled Web UI and CLI bundles
98
+ `-- src/ ← Source code (UI, local API backend, build tools)
166
99
  ```
167
- index.html ← Setup Wizard UI (open in browser)
168
- style.css ← Wizard styles
169
- setup.js ← Wizard logic
170
- cli.js ← Interactive CLI (npx create-openclaw-bot)
171
- CHANGELOG.md/.vi.md ← Version history
172
- README.md ← You're here (English)
173
- README.vi.md ← HΖ°α»›ng dαΊ«n tiαΊΏng Việt
174
- SETUP.md/.vi.md ← Technical guide for AI Agent
175
- docs/
176
- install-docker.md/.vi.md ← Docker setup per OS
177
- install-native.md/.vi.md ← Native/PM2 install per OS
178
- ai-providers.md/.vi.md ← AI provider configuration
179
- hardware-guide.md/.vi.md ← RAM planning for Ollama/Gemma 4
180
- faq.md/.vi.md ← Frequently asked questions
181
- ```
182
-
183
- > **Note:** Startup scripts (`.bat`, `.sh`) are **not included** in the repo β€” they are generated by the Web Wizard or CLI based on your specific configuration.
184
100
 
185
101
  ---
186
102
 
187
103
  ## ❓ FAQ
188
104
 
189
105
  <details>
190
- <summary><b>Is it really free?</b></summary>
191
-
192
- Yes. Docker, Google Gemini API (free tier), and Telegram/Zalo bot tokens are all free. You only pay if you choose a paid AI provider like Claude or GPT-4o.
193
-
106
+ <summary><b>How do I start or stop the bot?</b></summary>
107
+ You no longer need to type terminal commands! Simply access the Setup Web UI, navigate to the <b>Bot</b> tab, and use the interactive <b>Start / Stop / Recreate</b> buttons to manage your bot lifecycle.
194
108
  </details>
195
109
 
196
110
  <details>
197
- <summary><b>Where does the bot run?</b></summary>
198
-
199
- On your computer or server. With Docker it runs in a container; with Native mode it runs as a PM2-managed process. If the machine is off, the bot is off. Use a VPS for 24/7 uptime.
200
-
201
- </details>
202
-
203
- <details>
204
- <summary><b>Do I need Docker?</b></summary>
205
-
206
- No. Docker is optional. Windows/macOS users should use Docker for clean isolation. Ubuntu/VPS users should install natively with PM2 β€” less overhead and OpenClaw is already secure by design.
207
-
111
+ <summary><b>Where do I edit the bot's persona and instructions?</b></summary>
112
+ You can edit them directly in your browser. Go to the <b>Bot</b> tab, scroll down to the <b>Bot file tree</b> section, and select the file you want to edit (e.g., `SOUL.md` or `AGENTS.md`). Click <b>Save</b> to apply changes instantly.
208
113
  </details>
209
114
 
210
115
  <details>
211
- <summary><b>How do I stop/restart the bot?</b></summary>
212
-
213
- **Docker:**
214
-
215
- ```bash
216
- docker compose down # Stop
217
- docker compose up -d # Start
218
- docker compose restart # Restart
219
- ```
220
-
221
- **PM2 (native):**
222
-
223
- ```bash
224
- pm2 stop openclaw-bot
225
- pm2 start openclaw-bot
226
- pm2 restart openclaw-bot
227
- ```
228
-
229
- </details>
230
-
231
- <details>
232
- <summary><b>Can I switch AI models later?</b></summary>
233
-
234
- Yes. Re-run `npx create-openclaw-bot` in your bot folder, or edit `.openclaw/openclaw.json` directly and restart the bot.
235
-
236
- </details>
237
-
238
- <details>
239
- <summary><b>Is it safe?</b></summary>
240
-
241
- Your API keys are stored only on your machine in a local `.env` file. OpenClaw never transmits them anywhere. When using Ollama, all AI inference runs completely offline.
242
-
243
- </details>
244
-
245
- <details>
246
- <summary><b>What is 9Router?</b></summary>
247
-
248
- 9Router is an open-source AI proxy. Instead of managing API keys from multiple providers, you log in once via OAuth at `localhost:20128/dashboard`. It auto-routes requests to the best available AI model. Starting v0.3.75, it also supports lossless passthrough for Claude Code, Codex, Gemini CLI, and Antigravity.
249
-
250
- </details>
251
-
252
- <details>
253
- <summary><b>What's the difference between Skills and Plugins?</b></summary>
254
-
255
- **Skills** add agent capabilities (Web Search, Browser Automation, Memory, RAG, Code Interpreter...) β€” install via `openclaw skills install` from ClawHub.
256
-
257
- **Plugins** add channels or runtime extensions (Voice Call, Matrix, MS Teams...) β€” install via `openclaw plugins install` from npm.
258
-
259
- </details>
260
-
261
- <details>
262
- <summary><b>How much RAM do I need for Gemma 4?</b></summary>
263
-
264
- | Model | Min RAM (Native) | Min RAM (Docker) |
265
- | ------------ | ---------------- | ---------------- |
266
- | `gemma4:e2b` | ~4 GB | ~5 GB |
267
- | `gemma4:e4b` | ~8 GB | ~9 GB |
268
- | `gemma4:26b` | ~18 GB | ~20 GB |
269
- | `gemma4:31b` | ~24 GB | ~26 GB |
270
-
271
- See [docs/hardware-guide.md](docs/hardware-guide.md) for full details including VPS swap setup.
272
-
116
+ <summary><b>Can I change the AI model configuration later?</b></summary>
117
+ Yes. You can edit the config JSON directly via the integrated File Editor in the Web UI, or re-run the setup script pointing to your existing project folder.
273
118
  </details>
274
119
 
275
120
  ---
276
121
 
277
- ## πŸ”— Links
122
+ ## πŸ”— Useful Links
278
123
 
279
124
  - [OpenClaw Docs](https://openclaw.ai/docs)
280
- - [9Router](https://github.com/decolua/9router)
125
+ - [9Router GitHub](https://github.com/decolua/9router)
281
126
  - [Google AI Studio](https://aistudio.google.com/)
282
127
  - [Telegram BotFather](https://t.me/BotFather)
283
128
  - [Zalo Developer Platform](https://developers.zalo.me)
284
129
  - [Docker Desktop](https://www.docker.com/products/docker-desktop/)
285
- - [Ollama](https://ollama.com)
286
- - [OpenRouter](https://openrouter.ai)
287
130
  - [ClawHub (Skills)](https://clawhub.com)
288
131
 
289
132
  ---
@@ -300,10 +143,9 @@ See [docs/hardware-guide.md](docs/hardware-guide.md) for full details including
300
143
 
301
144
  ## πŸ™ Acknowledgments
302
145
 
303
- - [OpenClaw](https://openclaw.ai) β€” AI Gateway framework
146
+ - [OpenClaw](https://openclaw.ai) β€” Core AI Gateway framework
304
147
  - [9Router](https://github.com/decolua/9router) β€” Open-source AI proxy (OAuth-based, no API keys)
305
- - [Playwright](https://playwright.dev) β€” Browser automation engine
306
- - [ClawHub](https://clawhub.com) β€” Skills registry
148
+ - [ClawHub](https://clawhub.com) β€” Bot skills registry
307
149
  - [TheSVG](https://thesvg.org) β€” High-quality SVG brand icons
308
150
 
309
151
  ---