`openclaw channels`

管理 Gateway 网关上的聊天渠道账户及其运行时状态。 相关文档: 渠道指南:渠道 Gateway 网关配置:配置 常用命令 openclaw channels list openclaw channels status openclaw channels capabilities openclaw channels capabilities --channel discord --target channel:123 openclaw channels resolve --channel slack "#general" "@jane" openclaw channels logs --channel all 添加/删除账户 openclaw channels add --channel telegram --token <bot-token> openclaw channels remove --channel telegram --delete 提示:openclaw channels add --help 显示每个渠道的标志(token、app token、signal-cli 路径等)。 登录/登出(交互式) openclaw channels login --channel whatsapp openclaw channels logout --channel whatsapp 故障排除 运行 openclaw status --deep 进行全面探测。 使用 openclaw doctor 获取引导式修复。 openclaw channels list 输出 Claude: HTTP 403 ... user:profile → 用量快照需要 user:profile 权限范围。使用 --no-usage,或提供 claude.ai 会话密钥(CLAUDE_WEB_SESSION_KEY / CLAUDE_WEB_COOKIE),或通过 Claude Code CLI 重新授权。 能力探测 获取提供商能力提示(可用的 intents/scopes)以及静态功能支持: ...

`openclaw browser`

管理 OpenClaw 的浏览器控制服务器并运行浏览器操作(标签页、快照、截图、导航、点击、输入)。 相关: 浏览器工具 + API:浏览器工具 Chrome 扩展中继:Chrome 扩展 通用标志 --url <gatewayWsUrl>:Gateway 网关 WebSocket URL(默认从配置获取)。 --token <token>:Gateway 网关令牌(如果需要)。 --timeout <ms>:请求超时(毫秒)。 --browser-profile <name>:选择浏览器配置文件(默认从配置获取)。 --json:机器可读输出(在支持的地方)。 快速开始(本地) openclaw browser --browser-profile chrome tabs openclaw browser --browser-profile openclaw start openclaw browser --browser-profile openclaw open https://example.com openclaw browser --browser-profile openclaw snapshot 配置文件 配置文件是命名的浏览器路由配置。实际上: openclaw:启动/附加到专用的 OpenClaw 管理的 Chrome 实例(隔离的用户数据目录)。 chrome:通过 Chrome 扩展中继控制你现有的 Chrome 标签页。 openclaw browser profiles openclaw browser create-profile --name work --color "#FF5A36" openclaw browser delete-profile --name work 使用特定配置文件: ...

`openclaw approvals`

管理本地主机、Gateway 网关主机或节点主机的执行审批。 默认情况下,命令针对磁盘上的本地审批文件。使用 --gateway 可针对 Gateway 网关,使用 --node 可针对特定节点。 相关内容: 执行审批:执行审批 节点:节点 常用命令 openclaw approvals get openclaw approvals get --node <id|name|ip> openclaw approvals get --gateway 从文件替换审批 openclaw approvals set --file ./exec-approvals.json openclaw approvals set --node <id|name|ip> --file ./exec-approvals.json openclaw approvals set --gateway --file ./exec-approvals.json 允许列表辅助命令 openclaw approvals allowlist add "~/Projects/**/bin/rg" openclaw approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime" openclaw approvals allowlist add --agent "*" "/usr/bin/uname" openclaw approvals allowlist remove "~/Projects/**/bin/rg" 注意事项 --node 使用与 openclaw nodes 相同的解析器(id、name、ip 或 id 前缀)。 --agent 默认为 "*",表示适用于所有智能体。 节点主机必须公开 system.execApprovals.get/set(macOS 应用或无头节点主机)。 审批文件按主机存储在 ~/.openclaw/exec-approvals.json。

`openclaw agents`

管理隔离的智能体(工作区 + 认证 + 路由)。 相关内容: 多智能体路由:多智能体路由 智能体工作区:智能体工作区 示例 openclaw agents list openclaw agents add work --workspace ~/.openclaw/workspace-work openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity openclaw agents set-identity --agent main --avatar avatars/openclaw.png openclaw agents delete work 身份文件 每个智能体工作区可以在工作区根目录包含一个 IDENTITY.md: 示例路径:~/.openclaw/workspace/IDENTITY.md set-identity --from-identity 从工作区根目录读取(或从显式指定的 --identity-file 读取) 头像路径相对于工作区根目录解析。 设置身份 set-identity 将字段写入 agents.list[].identity: name theme emoji avatar(工作区相对路径、http(s) URL 或 data URI) 从 IDENTITY.md 加载: openclaw agents set-identity --workspace ~/.openclaw/workspace --from-identity 显式覆盖字段: openclaw agents set-identity --agent main --name "OpenClaw" --emoji "🦞" --avatar avatars/openclaw.png 配置示例: ...

`openclaw agent`(直接智能体运行)

openclaw agent 运行单个智能体回合,无需入站聊天消息。 默认情况下它通过 Gateway 网关运行;添加 --local 以强制在当前机器上使用嵌入式运行时。 行为 必需:--message <text> 会话选择: --to <dest> 派生会话键(群组/频道目标保持隔离;直接聊天折叠到 main),或 --session-id <id> 通过 ID 重用现有会话,或 --agent <id> 直接定位已配置的智能体(使用该智能体的 main 会话键) 运行与正常入站回复相同的嵌入式智能体运行时。 思考/详细标志持久化到会话存储中。 输出: 默认:打印回复文本(加上 MEDIA:<url> 行) --json:打印结构化负载 + 元数据 可选使用 --deliver + --channel 将回复投递回渠道(目标格式与 openclaw message --target 匹配)。 使用 --reply-channel/--reply-to/--reply-account 覆盖投递而不更改会话。 如果 Gateway 网关不可达,CLI 会回退到嵌入式本地运行。 示例 openclaw agent --to +15555550123 --message "status update" openclaw agent --agent ops --message "Summarize logs" openclaw agent --session-id 1234 --message "Summarize inbox" --thinking medium openclaw agent --to +15555550123 --message "Trace logs" --verbose on --json openclaw agent --to +15555550123 --message "Summon reply" --deliver openclaw agent --agent ops --message "Generate report" --deliver --reply-channel slack --reply-to "#reports" 标志 --local:本地运行(需要你的 shell 中有模型提供商 API 密钥) --deliver:将回复发送到所选渠道 --channel:投递渠道(whatsapp|telegram|discord|googlechat|slack|signal|imessage,默认:whatsapp) --reply-to:投递目标覆盖 --reply-channel:投递渠道覆盖 --reply-account:投递账户 ID 覆盖 --thinking <off|minimal|low|medium|high|xhigh>:持久化思考级别(仅限 GPT-5.2 + Codex 模型) --verbose <on|full|off>:持久化详细级别 --timeout <seconds>:覆盖智能体超时 --json:输出结构化 JSON

`openclaw agent`

通过 Gateway 网关运行智能体回合(使用 --local 进行嵌入式运行)。使用 --agent <id> 直接指定已配置的智能体。 相关内容: 智能体发送工具:Agent send 示例 openclaw agent --to +15555550123 --message "status update" --deliver openclaw agent --agent ops --message "Summarize logs" openclaw agent --session-id 1234 --message "Summarize inbox" --thinking medium openclaw agent --agent ops --message "Generate report" --deliver --reply-channel slack --reply-to "#reports"