abm1click-openclaw
v1.0.7
Published
OneClick OpenClaw Launcher — 1 lệnh cài đặt 9router + openclaw, từ zero đến production-ready
Maintainers
Readme
ABM 1Click OpenClaw Launcher
1 lệnh duy nhất — cài đặt 9Router + OpenClaw tự động, không cần biết gì về terminal.
⚡ Cài đặt — Chỉ 1 lệnh
npx -y abm1click-openclaw🎯 Chỉ vậy thôi! Hệ thống sẽ tự động:
- ✅ Kiểm tra môi trường (Node, npm, ports)
- ✅ Cài đặt & khởi động 9Router gateway
- ✅ Xác thực Google OAuth
- ✅ Cấu hình OpenClaw CLI
- ✅ Chạy smoke test end-to-end
💡 Nếu muốn dùng nhiều lần mà không cần chờ tải:
npm i -g abm1click-openclaw abm1click-openclaw
📋 Các lệnh khác (dành cho power user)
| Lệnh | Mô tả |
|-------|--------|
| npx -y abm1click-openclaw | 1-Click install (mặc định) |
| npx -y abm1click-openclaw resume | Tiếp tục từ checkpoint (sau lỗi) |
| npx -y abm1click-openclaw doctor | Kiểm tra sức khỏe hệ thống |
| npx -y abm1click-openclaw dashboard | Mở web dashboard (port 20199) |
| npx -y abm1click-openclaw auth google | Xác thực lại Google OAuth |
| npx -y abm1click-openclaw logs | Xem log cài đặt |
| npx -y abm1click-openclaw reset | Xóa state, bắt đầu lại |
| npx -y abm1click-openclaw uninstall | Gỡ cài đặt hoàn toàn |
🏗️ Architecture
┌──────────────────────┐
│ CLI (Commander.js) │
│ 8 commands │
└──────────┬───────────┘
│
┌──────────▼───────────┐
│ State Machine │
│ 14 steps │
│ Idempotent │
│ Resumable │
└──────────┬───────────┘
│
┌────────────────┼────────────────┐
│ │ │
┌─────────▼──────┐ ┌──────▼───────┐ ┌──────▼───────┐
│ 9Router │ │ OpenClaw │ │ Config │
│ Adapter │ │ Adapter │ │ Adapter │
│ (Gateway API) │ │ (CLI tool) │ │ (JSON merge)│
└────────────────┘ └──────────────┘ └──────────────┘
┌────────────────────────────────────────────────────┐
│ Web Dashboard (ABMedu Style) │
│ WebSocket real-time | Service monitor | Pipeline │
└────────────────────────────────────────────────────┘🎨 Dashboard
Web dashboard tại http://127.0.0.1:20199/dashboard:
- Hero section: Tổng quan hệ thống
- 4 stat cards: 9Router, OpenClaw, Auth, Smoke Test
- Service Monitor: Trạng thái dịch vụ real-time
- Install Pipeline: 14-step progress tracker
- WebSocket Live: Cập nhật real-time (fallback polling)
npx -y abm1click-openclaw dashboard🔒 Security
- API key encryption: AES-256-GCM trong state file
- Secret redaction: Tự động ẩn keys trong logs
- Local-only server: Bind
127.0.0.1(không expose internet) - Atomic writes: State file không bị corrupt
🩺 Troubleshooting
| Vấn đề | Giải pháp |
|---------|-----------|
| Port 20128 đã dùng | npx -y abm1click-openclaw reset rồi thử lại |
| OAuth timeout | npx -y abm1click-openclaw auth google |
| Config sai | npx -y abm1click-openclaw doctor |
| Muốn làm lại từ đầu | npx -y abm1click-openclaw reset |
| Xem chi tiết lỗi | npx -y abm1click-openclaw logs |
📄 License
MIT © ABM — AI Business Master
