Agent Send
Agent Send
remoteclaw agent runs a single agent turn from the command line without needing
an inbound chat message. Use it for scripted workflows, testing, and
programmatic delivery.
Quick start
This sends the message through the Gateway and prints the reply.# Target a phone number (derives session key)remoteclaw agent --to +15555550123 --message "Status update"
# Reuse an existing sessionremoteclaw agent --session-id abc123 --message "Continue the task"```# Deliver to Slackremoteclaw agent --agent ops --message "Generate report" \ --deliver --reply-channel slack --reply-to "#reports"```Flags
| Flag | Description |
|---|---|
--message \<text\> | Message to send (required) |
--to \<dest\> | Derive session key from a target (phone, chat id) |
--agent \<id\> | Target a configured agent (uses its main session) |
--session-id \<id\> | Reuse an existing session by id |
--local | Force local embedded runtime (skip Gateway) |
--deliver | Send the reply to a chat channel |
--channel \<name\> | Delivery channel (whatsapp, telegram, discord, slack, etc.) |
--reply-to \<target\> | Delivery target override |
--reply-channel \<name\> | Delivery channel override |
--reply-account \<id\> | Delivery account id override |
--verbose \<on|full|off\> | Set verbose level |
--timeout \<seconds\> | Override agent timeout |
--json | Output structured JSON |
Behavior
- By default, the CLI goes through the Gateway. Add
--localto force the embedded runtime on the current machine. - If the Gateway is unreachable, the CLI falls back to the local embedded run.
- Session selection:
--toderives the session key (group/channel targets preserve isolation; direct chats collapse tomain). - Verbose flag persists into the session store.
- Output: plain text by default, or
--jsonfor structured payload + metadata.
Examples
# Simple turn with JSON outputremoteclaw agent --to +15555550123 --message "Trace logs" --verbose on --json
# Reuse an existing session by idremoteclaw agent --session-id 1234 --message "Summarize inbox"
# Deliver to a different channel than the sessionremoteclaw agent --agent ops --message "Alert" --deliver --reply-channel telegram --reply-to "@admin"Related
- Agent CLI reference
- Sub-agents — background sub-agent spawning
- Sessions — how session keys work