2026-01-15 06:12:54 +00:00
---
2026-01-30 03:15:10 +01:00
summary: "CLI reference for `openclaw agent` (send one agent turn via the Gateway)"
2026-01-15 06:12:54 +00:00
read_when:
- You want to run one agent turn from scripts (optionally deliver reply)
2026-01-31 16:04:03 -05:00
title: "agent"
2026-01-15 06:12:54 +00:00
---
2026-01-30 03:15:10 +01:00
# `openclaw agent`
2026-01-15 06:12:54 +00:00
Run an agent turn via the Gateway (use `--local` for embedded).
2026-01-18 22:49:55 +00:00
Use `--agent <id>` to target a configured agent directly.
2026-01-15 06:12:54 +00:00
Related:
2026-01-31 21:13:13 +09:00
2026-01-15 06:12:54 +00:00
- Agent send tool: [Agent send ](/tools/agent-send )
## Examples
```bash
2026-01-30 03:15:10 +01:00
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 "
2026-01-15 06:12:54 +00:00
```
2026-03-07 11:28:39 -06:00
## Notes
- When this command triggers `models.json` regeneration, SecretRef-managed provider credentials are persisted as non-secret markers (for example env var names or `secretref-managed` ), not resolved secret plaintext.