首页
开始 安装引导快速开始文档总览
文档 渠道接入模型与 APIGateway 运维Tools 与 Skills
更多 精选文章资源导航帮助中心
开始安装
文档导航 工具与 Skills
工具与 Skills 2 个部分

Direct Agent Run

Agent Send

openclaw agent 可以直接运行单个智能体回合,而不必真的从聊天渠道收到一条入站消息。适合自动化、测试、定向会话重用和按需投递。

常见用法

直接发消息

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 --agent ops --message "Generate report" --deliver --reply-channel slack --reply-to "#reports"

关键 flag

--local:强制在当前机器本地运行,而不是优先通过 Gateway。

--deliver / --channel / --reply-*:控制结果投递回哪个渠道。

--thinking / --verbose:把会话级推理与详细模式一起持久化。

--json:输出结构化结果,适合脚本调用。