青灵
38.24M · 2026-03-07
其实吧,没必要传的那么神乎其神,本质吧 node 框架打通了和各个聊天 channel 的网关层以及大模型调用.......
┌───────────────┐
│ 聊天工具层 │
│ Feishu / WA │
│ Slack / CLI │
└──────┬────────┘
│
网关 Gateway
│
┌───────────┴───────────┐
│ OpenClaw Core │
│ Node.js Runtime │
│ │
│ ┌──────────────────┐ │
│ │ 工作台层 │ │
│ │ logs / session │ │
│ │ 模型调用 │ │
│ │ context管理 │ │
│ └─────────┬────────┘ │
│ │ │
│ ┌────────┴────────┐ │
│ │ Skills │ │
│ │ Agent能力 │ │
│ └────────┬────────┘ │
│ │ │
│ ┌────────┴────────┐ │
│ │ Plugins │ │
│ │ 飞书 / 文件 │ │
│ │ 数据库 / API │ │
│ └─────────────────┘ │
└────────────────────────┘
│
LLM Providers
OpenAI / Qwen / GLM / 等
但是吧,也确实牛逼,开源建设势不可挡,这个确实是未来的趋势,本篇记录常用的 openclaw 命令行。
点赞 + 收藏 == 学会~
安装下载:开 TUN 模式
npm install -g openclaw@latest
启动 webui
openclaw onboard --install-daemon
| 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 链接解析 | 社交 |
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
重启 gateway 让它重新加载配置:
openclaw gateway restart
openclaw models status
openclaw status
把 primary 指到它:
openclaw config set 'agents.defaults.model.primary' 'zai/glm-4.6v-flash'
飞书开发平台: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 说明:
minimal:仅 session_status
coding:包含 group:fs(read/write/edit/apply_patch)、group:runtime(exec/process)、group:sessions 等
messaging:仅消息相关工具
full:无限制,所有工具可用
openclaw config set tools.profile coding
openclaw gateway restart
clawhub 传送门: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