openclaw agent
通过 Gateway 运行一次 Agent 轮次(用 --local 可切换为内嵌模式)。
用 --agent <id> 直接指定已配置的 Agent。
相关文档:
- Agent 发送工具: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"
注意事项
- 当此命令触发
models.json重新生成时,通过 SecretRef 管理的提供商凭据会以非敏感标记形式持久化(例如环境变量名secretref-env:ENV_VAR_NAME或secretref-managed),而非解析后的明文密钥。 - 标记写入以源配置为准:OpenClaw 持久化的是活跃源配置快照中的标记,而不是运行时解析出的密钥值。