Harness 与 Agent 工程 · 运行控制与长任务 · 2026-03-04

OpenClaw超级速查表

OpenClaw超级速查表,一键掌握所有核心命令,养虾摸鱼必备神器!

核心内容:

  1. 核心CLI命令详解与参数选项
  2. 全局标志功能说明与使用场景
  3. 多模块管理(模型、代理、日志等)操作指南

“一图胜前言,大家养虾摸鱼的时候可以用到~

OpenClaw Mega Cheatsheet 命令速查表

⌨️ 核心CLI命令 (Core CLI Commands)

命令 说明 参数选项
openclaw gateway 运行WebSocket Gateway服务器 --port, --bind, --token
openclaw gateway start\\|stop\\|restart 管理Gateway服务 (launchd/systemd) -
openclaw channels login WhatsApp QR配对 (Web流程) -
openclaw channels add 添加Telegram/Discord/Slack机器人 --token
openclaw channels status --probe 检查频道健康状态和连接性 -
openclaw onboard 交互式设置向导 --install-daemon
openclaw doctor 健康检查 + 快速修复 --deep, --yes
openclaw config get\\|set\\|unset 读取/写入配置值 (JSON5或原始) -
openclaw models list\\|set\\|status 模型管理 + 认证状态 -
openclaw models auth setup-token Anthropic首选认证流程 -
openclaw models fallbacks add\\|remove 配置模型故障转移链 -
openclaw memory status\\|index\\|search 对MEMORY.md + 日志进行向量搜索 -
openclaw Agents list\\|add\\|delete 多代理工作区管理 -
openclaw logs --follow 通过RPC追踪Gateway日志文件 -
openclaw status --all --deep 完整诊断 (可粘贴) --usage
openclaw sessions --json 列出存储的会话记录 -
openclaw security audit 审计配置的安全风险 --fix
openclaw browser start\\|tabs\\|screenshot 无头浏览器自动化 -
openclaw cron list\\|add\\|run 定时任务管理 -
openclaw pairing list\\|approve 批准DM配对请求 -
openclaw reset --scope 重置 config/creds/sessions/full -

🚩 全局标志 (Global Flags)

标志 说明
--dev 在 ~/.openclaw-dev 下隔离状态,切换端口
--profile <name> 在 ~/.openclaw-
--no-color 禁用ANSI颜色 (遵循 NO_COLOR=1)
--update openclaw update 的简写 (仅源码安装)
-V, --version, -v 打印版本并退出

🛠️ 高级命令 (Power Commands)

命令 说明
openclaw plugins list\\|enable\\|disable 管理插件生命周期
openclaw approvals get\\|set\\|allowlist 执行审批策略 + 白名单
openclaw sandbox list\\|recreate\\|explain 检查/重建沙箱容器
openclaw system event --text "X" 立即/心跳时排队系统事件
openclaw system heartbeat enable\\|disable\\|last 控制心跳运行
openclaw update status\\|wizard 管理发布渠道更新
openclaw nodes list\\|pending\\|approve 批准/管理远程节点
openclaw devices list\\|approve\\|rotate\\|revoke 设备令牌生命周期
openclaw directory peers\\|groups list 发送消息前解析ID
openclaw health --json --verbose 直接gateway健康探测
openclaw dashboard 使用当前令牌打开控制UI
openclaw tui --url --token 远程安全的终端UI

⚠️ 命令注意事项 (Command Gotchas)

命令 注意事项
models status --probe 实时探测会消耗tokens,可能达到提供商限制
channels status --probe 使用 status --deep 进行完整的gateway级诊断
security audit --fix 将安全更改应用到配置/权限
--update 简写行为针对源码安装

💬 频道设置 (Channel Setup)

平台 方式 命令
📱 WhatsApp QR扫描 openclaw channels login
✈️ Telegram Bot Token channels add --channel telegram --token $TOKEN
🎮 Discord Bot Token channels add --channel discord --token $TOKEN
💬 iMessage macOS原生 macOS bridge
🏢 Slack Bot Token channels add --channel slack
💬 Google Chat 服务账户 channels add --channel googlechat
🔒 Signal 关联设备 channels add --channel signal
📎 MS Teams Bot注册 channels add --channel msteams

快速诊断:


📁 工作区文件 (Workspace Files)

文件 说明
🤖 AGENTS.md 代理的操作指令
✨ SOUL.md 人设、语气、边界
👤 USER.md 用户信息和偏好
🆔 IDENTITY.md 代理名称、表情符号、主题
🧠 MEMORY.md 精选长期记忆 (仅DM)
📅 memory/YYYY-MM-DD.md 每日追加日志
🔧 TOOLS.md 本地工具说明
💓 HEARTBEAT.md 心跳检查清单
🚀 BOOT.md 启动检查清单

根目录:~/.openclaw/workspace


🧠 记忆系统 (Memory System)

功能 说明
每日日志 memory/YYYY-MM-DD.md - 仅追加,会话开始时读取今天+昨天的日志
长期记忆 MEMORY.md - 精选事实,仅在主DM会话中加载
向量搜索 memory_search 工具 - 对记忆块进行语义搜索 (~400 tokens)
提供商 memorySearch.provider - 自动选择: local GGUF → OpenAI → Gemini → Voyage
QMD后端 memory.backend = "qmd" - BM25 + 向量 + 重排序 (实验性)
混合搜索 0.7/0.3 默认权重 - 向量相似度 + BM25关键词相关性

命令:


🤖 模型与认证 (Models & Auth)

命令 说明
openclaw models list --all 查看所有可用模型
openclaw models set <model> 设置 agents.defaults.model.primary
openclaw models set-image <model> 设置默认图像模型
openclaw models fallbacks add <model> 添加到故障转移链
openclaw models auth setup-token Anthropic首选认证 (setup-token)
openclaw models auth add --provider <p> 添加提供商API密钥
openclaw models status…
— 以上为试看内容(约 40%),开通会员后阅读全文 —

原文出处:https://www.53ai.com/news/Openclaw/2026030424918.html