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 會從當前來源設定快照寫入標記,而非從已解析的執行階段密碼值寫入。