以下是完整的解決步驟:
問題分析
你目前的版本是 clawdbot 2026.1.24-3,這是 clawdbot 的最後一個版本。該專案經歷了 Clawdbot → Moltbot → OpenClaw 的改名過程,而 clawdbot 套件已棄用,不會再收到修補。目前最新版本是 OpenClaw v2026.2.24。
此外,clawdbot <= 2026.1.24-3 存在一個 Webhook 路由漏洞(CVE,嚴重程度:中等),所以遷移也有安全上的必要。
遷移步驟
1. 先停止 clawdbot gateway
clawdbot gateway stop
2. 卸載舊的 clawdbot
npm uninstall -g clawdbot
3. 確認 Node.js 版本(需要 22+)
node -v
OpenClaw 需要 Node.js 22.12.0 以上。如果版本不夠,請先升級 Node。
4. 安裝 OpenClaw
npm install -g openclaw@latest
5. 執行 onboarding(會自動遷移設定檔)
openclaw onboard --install-daemon
安裝 openclaw 時,所有重要檔案會自動遷移,例如 .clawdbot 目錄會被遷移至 .openclaw,並建立 symlink。
6. 健康檢查
openclaw doctor
7. 如果舊的 systemd 服務還在(Linux VPS 環境)
可能需要手動清理舊的 clawdbot 服務:
systemctl --user stop clawdbot-gateway.service
systemctl --user disable clawdbot-gateway.service
rm -f ~/.config/systemd/user/clawdbot-gateway.service
systemctl --user daemon-reload
systemctl --user reset-failed
關於 Gateway 重啟權限被阻擋
截圖中提到 gateway 重啟被權限設定阻擋,這在遷移到 openclaw 後應該會解決,因為 openclaw onboard --install-daemon 會重新設定 daemon 服務的權限。如果遷移後仍有問題,可以執行:
openclaw gateway restart
openclaw doctor --fix
簡單來說:不是升級,是換套件。clawdbot 已死,直接裝 openclaw@latest 就對了 ![]()