create-openclaw-bot 4.1.4 → 5.0.2
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/CHANGELOG.md +88 -15
- package/CHANGELOG.vi.md +88 -15
- package/README.md +321 -228
- package/README.vi.md +321 -231
- package/cli.js +1613 -750
- package/docs/ai-providers.md +144 -0
- package/docs/ai-providers.vi.md +144 -0
- package/docs/faq.md +63 -0
- package/docs/faq.vi.md +63 -0
- package/docs/hardware-guide.md +55 -0
- package/docs/hardware-guide.vi.md +55 -0
- package/docs/install-docker.md +160 -0
- package/docs/install-docker.vi.md +160 -0
- package/docs/install-native.md +96 -0
- package/docs/install-native.vi.md +96 -0
- package/docs/preview.png +0 -0
- package/index.html +577 -344
- package/package.json +1 -1
- package/setup.js +2018 -172
- package/style.css +105 -0
- package/tele_docs.md +0 -0
- package/tele_docs_utf8.md +0 -987
- package/zalo_doc_tmp.md +0 -0
- package/zalo_docs.md +0 -0
- package/zalo_docs_utf8.md +0 -243
- /package/{SETUP.md → docs/SETUP.md} +0 -0
- /package/{SETUP.vi.md → docs/SETUP.vi.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,93 @@
|
|
|
1
1
|
# Changelog (English)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
3
|
+
## [5.0.1] — 2026-04-04
|
|
4
|
+
|
|
5
|
+
### 🚀 Native Install Mode — No Docker Required
|
|
6
|
+
|
|
7
|
+
OpenClaw now supports **native (non-Docker) installation** on Windows, Linux, macOS, VPS, and shared hosting. Users who prefer not to use Docker can deploy the bot directly on their machine.
|
|
8
|
+
|
|
9
|
+
- **CLI native mode** — new deployment mode selector: `docker` (default) or `native`
|
|
10
|
+
- **OS-specific startup scripts** auto-generated:
|
|
11
|
+
- 🪟 **Windows** → `setup-openclaw-win.bat` (double-click install)
|
|
12
|
+
- 🐧 **Linux / macOS** → `setup-openclaw-linux.sh`
|
|
13
|
+
- 🖥️ **VPS / Ubuntu** → `setup-openclaw-vps.sh` (PM2 background process)
|
|
14
|
+
- 🏠 **Shared Hosting / cPanel** → `setup-openclaw-hosting.sh` + `ecosystem.config.cjs`
|
|
15
|
+
- **Web Wizard updated** — Deploy Mode toggle (Docker / Native) with OS sub-selection cards
|
|
16
|
+
- **Dynamic host URLs** — Ollama and 9Router URLs switch automatically:
|
|
17
|
+
- Docker mode: `http://ollama:11434` / `http://9router:20128/v1`
|
|
18
|
+
- Native mode: `http://localhost:11434` / `http://localhost:20128/v1`
|
|
19
|
+
- **Node.js 18+ gate** — Native mode enforces minimum Node.js version at setup time
|
|
20
|
+
- **Test scripts** — `test-native-install.bat` (Windows) and `test-native-install.sh` (Linux/macOS)
|
|
21
|
+
|
|
22
|
+
### 🤖 Gemma 4 Model Updates
|
|
23
|
+
|
|
24
|
+
- **4 Gemma 4 variants** available via Ollama: `gemma4:e2b` (~4-6 GB), `gemma4:e4b` (~8-10 GB), `gemma4:26b` (~18-24 GB), `gemma4:31b` (~24+ GB)
|
|
25
|
+
- Auto-pull selected Gemma 4 variant on first `docker compose up` (container timeout extended to 15 min)
|
|
26
|
+
- Raised Ollama timeout to **300 seconds** to handle large model inference
|
|
27
|
+
- Added `OLLAMA_NUM_PARALLEL=1` and `OLLAMA_KEEP_ALIVE=24h` to Docker sidecar
|
|
28
|
+
|
|
29
|
+
### 🤖 Multi-Bot Deployment (up to 5 Telegram bots per workspace)
|
|
30
|
+
|
|
31
|
+
OpenClaw now supports deploying **multiple independent Telegram bots** from a single setup—each with its own identity, slash command, AI personality, and isolated workspace directory.
|
|
32
|
+
|
|
33
|
+
- **Deploy 1–5 bots in one go** — Web Wizard and CLI both support multi-bot configuration
|
|
34
|
+
- **Isolated workspaces** — each bot gets its own `botN/` directory with a separate `.env` and `.openclaw/` config, preventing any token or configuration collision
|
|
35
|
+
- **Port auto-assignment** — ports start at `18791` and increment per bot (`18791`, `18792`, ...) to avoid host binding conflicts
|
|
36
|
+
- **Multi-service Docker Compose** — automatically generates a `docker-compose.yml` with one service per bot, plus a shared provider container (9Router or Ollama)
|
|
37
|
+
- **Department Room Model** — when bots share a Telegram group they operate like a professional team:
|
|
38
|
+
- 🤫 **Silent by default** — bots react with emoji (👍 ❤️) to casual messages but never spam replies
|
|
39
|
+
- 📣 **@mention or /slash triggers** — only the addressed bot responds, like calling a colleague by name in a meeting room
|
|
40
|
+
- 🗃️ **Shared workspace** — all bots read from a common workspace folder and can collaborate on tasks, files, and reports
|
|
41
|
+
- **botGroup config** injected into each bot's `openclaw.json` so they are aware of each other's names and slash commands at runtime
|
|
42
|
+
|
|
43
|
+
### 🔗 Telegram Group ID Helper
|
|
44
|
+
|
|
45
|
+
Getting the Telegram Group ID is now frictionless:
|
|
46
|
+
|
|
47
|
+
- **Web Wizard**: "Đã có group" card now shows an inline `Lấy Group ID` button that opens **@userinfobot** directly, with step-by-step instructions (forward a group message → bot replies with Chat ID)
|
|
48
|
+
- **CLI**: selecting "existing group" prints an interactive guide with numbered steps and a direct link to `https://t.me/userinfobot`
|
|
49
|
+
|
|
50
|
+
### 🎨 UI Refinements
|
|
51
|
+
|
|
52
|
+
- **Group option selector** with **two interactive cards** with icon, description, hover glow, and animated selection checkmark
|
|
53
|
+
- Card active state: green tint + border for "create later", indigo tint + border for "existing group"
|
|
54
|
+
- Group ID input row includes inline helper button — no more hunting for documentation
|
|
55
|
+
|
|
56
|
+
## [5.0.0] — 2026-04-04
|
|
57
|
+
|
|
58
|
+
### 🚀 Gemma 4 Support — Google's Newest Open Model
|
|
59
|
+
|
|
60
|
+
OpenClaw v5.0.0 adds **support for Gemma 4**, Google DeepMind's brand-new open-weights model family released April 2, 2026.
|
|
61
|
+
|
|
62
|
+
- **Gemma 4 available in 3 sizes via Ollama** — `gemma4:4b` (~6 GB RAM), `gemma4` default (~10 GB), `gemma4:27b` (~18 GB)
|
|
63
|
+
- **Zero manual install** — When you select Local Ollama + a Gemma 4 model, the setup now **auto-generates an `ollama` sidecar service** in `docker-compose.yml`. Docker pulls the model automatically on first `docker compose up`. No separate Ollama installation needed.
|
|
64
|
+
- **OLLAMA_HOST auto-configured** — Points to the Docker sidecar (`http://ollama:11434`) instead of the host machine.
|
|
65
|
+
- **Full model list updated** — Added `gemma4`, `gemma4:27b`, `gemma4:4b` to the Ollama provider in both CLI and Web Wizard.
|
|
66
|
+
|
|
67
|
+
### 📋 Hardware Requirements for Gemma 4
|
|
68
|
+
|
|
69
|
+
| Model | Min RAM/VRAM (4-bit) | Recommended |
|
|
70
|
+
| ------------------ | -------------------- | ----------------------------- |
|
|
71
|
+
| `gemma4:4b` | ~6 GB | Laptop, Mac M1/M2 |
|
|
72
|
+
| `gemma4` (default) | ~10 GB | PC 16 GB RAM |
|
|
73
|
+
| `gemma4:27b` | ~18 GB | Workstation 32 GB / GPU 24 GB |
|
|
74
|
+
|
|
75
|
+
> Gemma 4 is **free, open-weights, Apache 2.0**. No API key required — runs 100% locally via Docker.
|
|
76
|
+
|
|
77
|
+
## [4.1.4] — 2026-04-03
|
|
78
|
+
|
|
79
|
+
### ✨ Improvements
|
|
80
|
+
|
|
81
|
+
- CLI/Wizard parity: synchronized all skills (Browser Automation, Memory, RAG, Code Interpreter, etc.)
|
|
82
|
+
- Browser Automation: added Desktop (Host Chrome) vs Server (Headless Chromium) mode selection for Linux/Ubuntu
|
|
83
|
+
- Fixed Dockerfile WORKDIR issue causing build failures on Linux
|
|
84
|
+
- Skills now install at container **runtime** (not build-time) to avoid ClawHub auth issues
|
|
85
|
+
- Dynamic TOOLS.md: auto-generated listing all installed skills with hints
|
|
86
|
+
- Added `browser-tool.js` (Desktop mode) and `BROWSER.md` for both modes
|
|
87
|
+
- Skills registration in `openclaw.json → skills.entries` at setup time
|
|
88
|
+
- Email SMTP config prompts and `.env` injection
|
|
89
|
+
- Single-source versioning via `bump-version.mjs` — one command to update all files
|
|
90
|
+
|
|
18
91
|
## [4.1.3] — 2026-04-02
|
|
19
92
|
|
|
20
93
|
### ✨ Improvements
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -1,20 +1,93 @@
|
|
|
1
1
|
# Changelog (Tiếng Việt)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
3
|
+
## [5.0.1] — 2026-04-04
|
|
4
|
+
|
|
5
|
+
### 🚀 Chế độ Native Install — Không cần Docker
|
|
6
|
+
|
|
7
|
+
OpenClaw giờ hỗ trợ **cài đặt native (không dùng Docker)** trên Windows, Linux, macOS, VPS và shared hosting.
|
|
8
|
+
|
|
9
|
+
- **CLI native mode** — thêm chọn chế độ: `docker` (mặc định) hoặc `native`
|
|
10
|
+
- **Script khởi động sinh tự động theo OS:**
|
|
11
|
+
- 🪟 **Windows** → `setup-openclaw-win.bat` (double-click cài ngay)
|
|
12
|
+
- 🐧 **Linux / macOS** → `setup-openclaw-linux.sh`
|
|
13
|
+
- 🖥️ **VPS / Ubuntu** → `setup-openclaw-vps.sh` (PM2 chạy nền)
|
|
14
|
+
- 🏠 **Shared Hosting / cPanel** → `setup-openclaw-hosting.sh` + `ecosystem.config.cjs`
|
|
15
|
+
- **Web Wizard cập nhật** — Thêm toggle Deploy Mode (Docker / Native) + chọn OS
|
|
16
|
+
- **URL host động** — Ollama và 9Router URL tự chuyển:
|
|
17
|
+
- Docker: `http://ollama:11434` / `http://9router:20128/v1`
|
|
18
|
+
- Native: `http://localhost:11434` / `http://localhost:20128/v1`
|
|
19
|
+
- **Kiểm tra Node.js 18+** — Native mode yêu cầu Node.js 18+ trước khi chạy
|
|
20
|
+
- **Test scripts** — `test-native-install.bat` (Windows) và `test-native-install.sh` (Linux/macOS)
|
|
21
|
+
|
|
22
|
+
### 🤖 Cập nhật Gemma 4
|
|
23
|
+
|
|
24
|
+
- **4 biến thể Gemma 4** qua Ollama: `gemma4:e2b` (~4-6 GB), `gemma4:e4b` (~8-10 GB), `gemma4:26b` (~18-24 GB), `gemma4:31b` (~24+ GB)
|
|
25
|
+
- Tự pull model Gemma 4 khi `docker compose up` lần đầu (timeout container tăng lên 15 phút)
|
|
26
|
+
- Nâng timeout Ollama lên **300 giây** để xử lý model lớn
|
|
27
|
+
- Thêm `OLLAMA_NUM_PARALLEL=1` và `OLLAMA_KEEP_ALIVE=24h` vào Docker sidecar
|
|
28
|
+
|
|
29
|
+
### 🤖 Multi-Bot Deployment (tối đa 5 bot Telegram trên mỗi workspace)
|
|
30
|
+
|
|
31
|
+
OpenClaw giờ hỗ trợ triển khai **nhiều bot Telegram độc lập** từ một setup duy nhất — mỗi bot có identity, slash command, AI personality và thư mục workspace riêng biệt.
|
|
32
|
+
|
|
33
|
+
- **Triển khai 1–5 bot cùng lúc** — Web Wizard và CLI đều hỗ trợ cấu hình multi-bot
|
|
34
|
+
- **Workspace riêng biệt** — mỗi bot có thư mục `botN/` riêng với `.env` và cấu hình `.openclaw/` riêng, không gây xung đột token hay cấu hình
|
|
35
|
+
- **Tự động gán cổng** — cổng bắt đầu từ `18791` và tăng dần cho mỗi bot (`18791`, `18792`, ...) để tránh xung đột binding host
|
|
36
|
+
- **Docker Compose đa-service** — tự động sinh `docker-compose.yml` với một service cho mỗi bot, cộng thêm một container provider chung (9Router hoặc Ollama)
|
|
37
|
+
- **Department Room Model** — khi các bot chia sẻ chung một nhóm Telegram, chúng hoạt động như một đội ngũ chuyên nghiệp:
|
|
38
|
+
- 🤫 **Mặc định im lặng** — bot phản hồi bằng emoji (👍 ❤️) với tin nhắn thông thường nhưng không bao giờ spam reply
|
|
39
|
+
- 📣 **Trigger bằng @mention hoặc /slash** — chỉ bot được nhắc tên hoặc được gọi lệnh mới phản hồi, giống như gọi tên đồng nghiệp trong phòng họp
|
|
40
|
+
- 🗃️ **Workspace chung** — tất cả bot đọc từ một thư mục workspace chung và có thể cộng tác trên các tác vụ, tệp và báo cáo
|
|
41
|
+
- **Cấu hình botGroup** được inject vào `openclaw.json` của mỗi bot để chúng biết tên và lệnh slash của nhau khi runtime
|
|
42
|
+
|
|
43
|
+
### 🔗 Trợ giúp lấy Telegram Group ID
|
|
44
|
+
|
|
45
|
+
Lấy Group ID giờ trở nên cực kỳ đơn giản:
|
|
46
|
+
|
|
47
|
+
- **Web Wizard**: card "Đã có group" giờ hiển thị nút inline `Lấy Group ID` mở thẳng **@userinfobot**, kèm hướng dẫn từng bước (forward tin nhắn nhóm → bot trả về Chat ID)
|
|
48
|
+
- **CLI**: chọn "existing group" sẽ in ra hướng dẫn tương tác với các bước đánh số và link trực tiếp đến `https://t.me/userinfobot`
|
|
49
|
+
|
|
50
|
+
### 🎨 Tinh chỉnh UI
|
|
51
|
+
|
|
52
|
+
- **Bộ chọn tùy chọn nhóm** được thiết kế dạng **hai thẻ tương tác** với icon, mô tả, hiệu ứng hover glow và dấu tick chọn động
|
|
53
|
+
- Trạng thái active của thẻ: màu xanh lá + viền cho "tạo sau", màu xanh chàm + viền cho "nhóm đã có"
|
|
54
|
+
- Hàng nhập Group ID bao gồm nút trợ giúp inline — không cần tìm kiếm tài liệu nữa
|
|
55
|
+
|
|
56
|
+
## [5.0.0] — 2026-04-04
|
|
57
|
+
|
|
58
|
+
### 🚀 Hỗ trợ Gemma 4 — Model mới nhất của Google
|
|
59
|
+
|
|
60
|
+
OpenClaw v5.0.0 cập nhật **Gemma 4** — dòng model open-weights mới của Google DeepMind, ra mắt 02/04/2026.
|
|
61
|
+
|
|
62
|
+
- **Gemma 4 có sẵn 3 size qua Ollama** — `gemma4:4b` (~6 GB RAM), `gemma4` mặc định (~10 GB), `gemma4:27b` (~18 GB)
|
|
63
|
+
- **Không cần cài Ollama thủ công** — Khi chọn Local Ollama + Gemma 4, setup tự động sinh **service `ollama` sát cạnh trong `docker-compose.yml`**. Docker tự pull model khi `docker compose up`. Không cần cài Ollama trước.
|
|
64
|
+
- **OLLAMA_HOST tự cấu hình** — Trỏ thẳng vào sidecar container (`http://ollama:11434`).
|
|
65
|
+
- **Cập nhật danh sách model** — Thêm `gemma4`, `gemma4:27b`, `gemma4:4b` vào Ollama provider trên cả CLI và Web Wizard.
|
|
66
|
+
|
|
67
|
+
### 💻 Yêu cầu phần cứng cho Gemma 4
|
|
68
|
+
|
|
69
|
+
| Model | RAM/VRAM tối thiểu (4-bit) | Phù hợp |
|
|
70
|
+
| ------------------- | -------------------------- | ------------------------------ |
|
|
71
|
+
| `gemma4:4b` | ~6 GB | Laptop thông thường, Mac M1/M2 |
|
|
72
|
+
| `gemma4` (mặc định) | ~10 GB | PC 16 GB RAM |
|
|
73
|
+
| `gemma4:27b` | ~18 GB | Workstation 32 GB / GPU 24 GB |
|
|
74
|
+
|
|
75
|
+
> Gemma 4 **miễn phí, open-weights, giấy phép Apache 2.0**. Không cần API key — chạy 100% local qua Docker.
|
|
76
|
+
|
|
77
|
+
## [4.1.4] — 2026-04-03
|
|
78
|
+
|
|
79
|
+
### ✨ Cải tiến
|
|
80
|
+
|
|
81
|
+
- CLI/Wizard đồng bộ đầy đủ skills (Browser Automation, Memory, RAG, Code Interpreter, v.v.)
|
|
82
|
+
- Browser Automation: chọn chế độ Desktop (Host Chrome) hoặc Server (Headless Chromium) cho Linux/Ubuntu
|
|
83
|
+
- Sửa lỗi Dockerfile WORKDIR gây lỗi build trên Linux
|
|
84
|
+
- Skills install tại **runtime** container (không phải lúc build) để tránh lỗi ClawHub auth
|
|
85
|
+
- TOOLS.md động: tự sinh theo danh sách skills đã chọn
|
|
86
|
+
- Tự tạo `browser-tool.js` (Desktop mode) và `BROWSER.md`
|
|
87
|
+
- Tự đăng ký skills vào `openclaw.json → skills.entries`
|
|
88
|
+
- Bổ sung prompt cấu hình Email SMTP và inject vào `.env`
|
|
89
|
+
- Single-source version qua `bump-version.mjs` — 1 lệnh cập nhật tất cả file
|
|
90
|
+
|
|
18
91
|
## [4.1.3] — 2026-04-02
|
|
19
92
|
|
|
20
93
|
### ✨ Cải tiến
|