========================================
其實吧,沒必要傳得那麼神乎其神,本質上 Node.js 框架打通了與各個聊天頻道(channel)的閘道層以及大模型呼叫.......
┌───────────────┐
│ 聊天工具層 │
│ Feishu / WA │
│ Slack / CLI │
└──────┬────────┘
│
網關 Gateway
│
┌───────────┴───────────┐
│ OpenClaw Core │
│ Node.js Runtime │
│ │
│ ┌──────────────────┐ │
│ │ 工作台層 │ │
│ │ logs / session │ │
│ │ 模型呼叫 │ │
│ │ 上下文管理 │ │
│ └─────────┬────────┘ │
│ │ │
│ ┌────────┴────────┐ │
│ │ Skills │ │
│ │ Agent 能力 │ │
│ └────────┬────────┘ │
│ │ │
│ ┌────────┴────────┐ │
│ │ Plugins │ │
│ │ 飛書 / 文件 │ │
│ │ 資料庫 / API │ │
│ └─────────────────┘ │
└────────────────────────┘
│
LLM Providers
OpenAI / Qwen / GLM / 等
但是吧,也確實很厲害,開源建設勢不可擋,這個確實是未來的趨勢,本篇記錄常用的 openclaw 命令列。

按讚 + 收藏 == 學會~
安裝下載:開 TUN 模式
npm install -g openclaw@latest
啟動 Web UI
openclaw onboard --install-daemon
nano ~/.openclaw/openclaw.json
openclaw gateway restart
重啟網關服務,會自動執行 openclaw doctor --fix
每次服務重啟,Dashboard 務必先關掉之前的,再透過「openclaw dashboard」重新開啟。
舉例(GLM):
設定 alias 註冊:
openclaw config set 'agents.defaults.models["zai/glm-4.6v-flash"].alias' GLM46V
提示:openclaw config set 的路徑使用 . 當分隔符,所以它會把 zai/glm-4.6v-flash 裡的 . 當成層級分隔,解析成:key = zai/glm-4 再往下 key = 6v-flash(於是出現 Unrecognized key: "6v-flash")。用中括號把完整 key 包起來最省事。
重啟 gateway 讓它重新載入設定:
openclaw gateway restart
openclaw models status
openclaw status
把 primary 指向它:
openclaw config set 'agents.defaults.model.primary' 'zai/glm-4.6v-flash'
飛書開發平台:https://open.feishu.cn/app
openclaw pairing approve feishu X****3
舉例:使用 AICodewith 服務(國內中轉,支援 GPT、Claude、Gemini),需要安裝此插件
openclaw plugins install openclaw-aicodewith-auth
openclaw plugins enable openclaw-aicodewith-auth
設定工具 Profile(建議):使用內建的 coding profile,它會自動啟用檔案系統、執行時、會話等核心工具
Profile 說明:
openclaw config set tools.profile coding
openclaw gateway restart
clawhub 傳送門:https://clawhub.ai/
# 安裝 Skills
npx clawhub@latest install sonoscli
常用 Skills:
openclaw status
openclaw gateway status
openclaw models status
openclaw plugins list
npm uninstall -g openclaw
移除確認:
which openclaw
清理:
rm -rf ~/.openclaw
清插件快取
rm -rf ~/.npm-global/lib/node_modules/openclaw
lsof -i :18789
kill -9 PID
---
原文出處:https://juejin.cn/post/7613555403787911206