其实吧,没必要传的那么神乎其神,本质吧 node 框架打通了和各个聊天 channel 的网关层以及大模型调用.......
markdown
┌───────────────┐
│ 聊天工具层 │
│ Feishu / WA │
│ Slack / CLI │
└──────┬────────┘
│
网关 Gateway
│
┌───────────┴───────────┐
│ OpenClaw Core │
│ Node.js Runtime │
│ │
│ ┌──────────────────┐ │
│ │ 工作台层 │ │
│ │ logs / session │ │
│ │ 模型调用 │ │
│ │ context管理 │ │
│ └─────────┬────────┘ │
│ │ │
│ ┌────────┴────────┐ │
│ │ Skills │ │
│ │ Agent能力 │ │
│ └────────┬────────┘ │
│ │ │
│ ┌────────┴────────┐ │
│ │ Plugins │ │
│ │ 飞书 / 文件 │ │
│ │ 数据库 / API │ │
│ └─────────────────┘ │
└────────────────────────┘
│
LLM Providers
OpenAI / Qwen / GLM / 等
但是吧,也确实牛逼,开源建设势不可挡,这个确实是未来的趋势,本篇记录常用的 openclaw 命令行。

点赞 + 收藏 == 学会~
1、启动
安装
安装下载:开 TUN 模式
css
npm install -g openclaw@latest
启动 webui
css
openclaw onboard --install-daemon
安装可选 skills(全览)
| Skill | 是否建议安装 | 原因 | 典型作用 |
|---|---|---|---|
| 📊 model-usage | 必装 | 监控 token 使用量和模型调用 | 查看 AI 消耗与统计 |
| 🧾 summarize | 必装 | 最基础的 AI 工具之一 | 自动总结文本 |
| 👀 peekaboo | 必装 | Agent 读取文件内容必需 | 查看本地文件 |
| 📄 nano-pdf | 建议 | 处理 PDF 文档 | PDF 解析 |
| 🎙️ openai-whisper | 建议 | 语音转文本 | 语音识别 |
| 🎞️ video-frames | 可选 | 视频处理 | 抽取视频帧 |
| ♊️ gemini | 可选 | 接入 Gemini 模型 | 使用 Google AI |
| 🍌 nano-banana-pro | 可选 | Banana AI 服务 | AI 推理 |
| 💎 obsidian | 按需 | 如果你用 Obsidian | 读取知识库 |
| 🐻 bear-notes | 按需 | 如果你用 Bear | 读取笔记 |
| ⏰ apple-reminders | 按需 | macOS 提醒事项 | 管理待办 |
| ✅ things-mac | 按需 | Things 待办软件 | 管理任务 |
| 📨 imsg | 按需 | iMessage 自动发送 | 通信 |
| 📱 wacli | 按需 | WhatsApp CLI | 聊天自动化 |
| 💡 openhue | 按需 | 智能灯控制 | IoT |
| 🔊 sonoscli | 按需 | Sonos 音响 | 音频设备 |
| 🫐 blucli | 按需 | 蓝牙设备 | IoT |
| 📍 goplaces | 可选 | 地理位置查询 | 地图服务 |
| 🧲 gifgrep | 可选 | GIF 搜索 | 媒体 |
| 📰 blogwatcher | 可选 | RSS 监控 | 信息订阅 |
| 🎮 gog | 可选 | 游戏平台接口 | 娱乐 |
| 📧 himalaya | 可选 | 音频平台 | 媒体 |
| 📦 mcporter | 可选 | Minecraft 工具 | 游戏 |
| 🛵 ordercli | 可选 | 订单查询 | 电商 |
| 🧿 oracle | 按需 | Oracle 数据库 | 数据库 |
| 🔐 1password | 按需 | 密码管理 | Secret |
| 🎛️ eightctl | 按需 | 智能床垫 | IoT |
| 🧩 clawhub | 建议 | 管理和安装 skills | 插件管理 |
| 📸 camsnap | 可选 | 摄像头截图 | 多模态 |
| 🗣️ sag | 可选 | 语音生成 | TTS |
| 🌊 songsee | 可选 | 音乐识别 | 音频识别 |
| 𝕏 xurl | 可选 | X / Twitter 链接解析 | 社交 |
查看/写入配置(核心文件)
js
nano ~/.openclaw/openclaw.json
重启网关
openclaw gateway restart
重启网关服务,会自动openclaw doctor --fix
每次服务重启,Dashboard 务必关掉之前的,再通过"openclaw dashboard"重新打开。
设置主模型(同一模型商)
举例(GLM):
设置 alias 注册:
arduino
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 让它重新加载配置:
lua
openclaw gateway restart
openclaw models status
openclaw status
把 primary 指到它:
arduino
openclaw config set 'agents.defaults.model.primary' 'zai/glm-4.6v-flash'
2、飞书
飞书开发平台:open.feishu.cn/app
验证码(第一次用)
markdown
openclaw pairing approve feishu X******3
3、赋能
安装插件
举例:使用 AICodewith 服务(国内中转,支持 GPT、Claude、Gemini),需要安装这个插件
openclaw plugins install openclaw-aicodewith-auth
启用插件
bash
openclaw plugins enable openclaw-aicodewith-auth
启用文件系统
设置工具 Profile(推荐):使用内置的 coding profile,它会自动启用文件系统、运行时、会话等核心工具
Profile 说明:
-
minimal:仅 session_status
-
coding:包含 group:fs(read/write/edit/apply_patch)、group:runtime(exec/process)、group:sessions 等
-
messaging:仅消息相关工具
-
full:无限制,所有工具可用
arduino
openclaw config set tools.profile coding
openclaw gateway restart
安装 clawhub skills
clawhub 传送门:clawhub.ai/
perl
# 安装 Skills
npx clawhub@latest install sonoscli
常用 Skills:
- weather - 天气查询
- bird - Twitter 操作
- coding-agent - 代码助手
- mcporter - MCP 服务器集成
查询
查询状态
lua
openclaw status
查询网关
lua
openclaw gateway status
查询模型
lua
openclaw models status
查询插件列表
默认安装的时候会选择一些:
openclaw plugins list
4、卸载
卸载
npm uninstall -g openclaw
卸载确认:
bash
which openclaw
清理:
bash
rm -rf ~/.openclaw
清插件缓存
bash
rm -rf ~/.npm-global/lib/node_modules/openclaw
查杀18789
css
lsof -i :18789
bash
kill -9 PID