CLI reference for `openclaw agent` (send one agent turn via the Gateway)

Read when…
  • You want to run one agent turn from scripts (optionally deliver reply)

openclaw agent

通过网关运行代理回合(使用 --local 用于嵌入式环境)。 使用 --agent <id> 直接指定已配置的代理。

相关:

示例

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"