玩转龙虾🦞,openclaw 核心命令行收藏(持续更新)v2026.3.2

0 阅读3分钟

其实吧,没必要传的那么神乎其神,本质吧 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 命令行。

image.png

点赞 + 收藏 == 学会~

1、启动

安装

安装下载:开 TUN 模式

npm install -g openclaw@latest

启动 webui

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 链接解析社交

查看/写入配置(核心文件)

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'

2、飞书

飞书开发平台:open.feishu.cn/app

验证码(第一次用)

openclaw pairing approve feishu X******3

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 skills

clawhub 传送门:clawhub.ai/

# 安装 Skills
npx clawhub@latest install sonoscli

常用 Skills:

  • weather - 天气查询
  • bird - Twitter 操作
  • coding-agent - 代码助手
  • mcporter - MCP 服务器集成

查询

查询状态

openclaw status

查询网关

openclaw gateway status

查询模型

openclaw models status

查询插件列表

默认安装的时候会选择一些:

openclaw plugins list 

4、卸载

卸载

npm uninstall -g openclaw

卸载确认:

which openclaw

清理:

rm -rf ~/.openclaw

清插件缓存

rm -rf ~/.npm-global/lib/node_modules/openclaw

查杀18789

lsof -i :18789  
kill -9 PID