跳转到主要内容

openclaw agent

通过 Gateway 网关 运行一次 agent 轮次(嵌入式使用 --local)。 使用 --agent <id> 直接定位到已配置的 agent。 相关:

示例

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"

注意

  • 当此命令触发 models.json 重新生成时,SecretRef 管理的提供商凭证将以非机密标记形式(例如环境变量名称、secretref-env:ENV_VAR_NAMEsecretref-managed)持久化,而不是已解析的机密明文。
  • 标记写入具有源权威性:OpenClaw 从活动的源配置快照中持久化标记,而不是从解析后的运行时机密值中持久化。

本页面源自 openclaw/openclaw,由 BeaversLab 翻译,遵循 MIT 协议 发布。
Last modified on March 27, 2026