https://github.com/openclaw/openclaw
這是 OpenClaw(原 Clawdbot/Moltbot)的官方開源倉庫。
https://github.com/MaoTouHU/OpenClawChinese
全中文界面,每小時自動同步官方版本。
https://github.com/ChatGPT3a01/Moltbot-Tutorial
1Clone 倉庫
git clone https://github.com/openclaw/openclaw.git cd openclaw
2安裝依賴
pnpm install
3建置 UI 與專案
pnpm ui:build pnpm build
4執行初始化設定
openclaw onboard --install-daemon
如果你想修改程式碼並即時測試:
pnpm gateway:watch
這會啟動監視模式,任何 TypeScript 變更都會自動重新編譯。
pnpm openclaw onboard --install-daemon
pnpm test
pnpm lint
npm install -g @qingchencloud/openclaw-zh@latest
直接安裝已翻譯好的中文版本。
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 Invoke-WebRequest -Uri "https://cdn.jsdelivr.net/gh/1186258278/OpenClawChineseTranslation@main/install.ps1" -OutFile "install.ps1" -Encoding UTF8 powershell -ExecutionPolicy Bypass -File ".\install.ps1"
openclaw --version
# npm 安裝的用戶 npm update -g openclaw # 或使用內建更新 openclaw update --channel stable
# 穩定版(推薦)- npm 標籤: latest openclaw update --channel stable # 測試版(有新功能但可能不穩定)- npm 標籤: beta openclaw update --channel beta # 開發版(main 分支最新代碼)- npm 標籤: dev openclaw update --channel dev
openclaw/ ├── src/ # 原始碼 │ ├── cli/ # 命令列介面 │ ├── gateway/ # Gateway 服務 │ ├── plugins/ # 外掛系統 │ └── core/ # 核心功能 ├── extensions/ # 官方外掛 │ ├── line/ # LINE 外掛 │ ├── telegram/ # Telegram 外掛 │ └── discord/ # Discord 外掛 ├── docs/ # 文件 ├── tests/ # 測試 ├── package.json # 專案配置 └── README.md # 說明文件
extensions/ 資料夾中的官方外掛作為範例。
git pull origin main
git checkout -b feature/my-feature
git add . git commit -m "feat: 新增某功能" git push origin feature/my-feature
feat:、fix:、docs: 等。
你已經學會了 OpenClaw 的所有安裝方式!