> ## Documentation Index
> Fetch the complete documentation index at: https://aiwithapex.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent

# `crocbot agent`

Run an agent turn via the Gateway (use `--local` for embedded).
Use `--agent <id>` to target a configured agent directly.

Related:

* Agent send tool: [Agent send](/tools/agent-send)

## Examples

```bash theme={null}
crocbot agent --to +15555550123 --message "status update" --deliver
crocbot agent --agent ops --message "Summarize logs"
crocbot agent --session-id 1234 --message "Summarize inbox" --thinking medium
crocbot agent --agent ops --message "Generate report" --deliver --reply-channel telegram --reply-to "123456789"
```
