moltbot agent(直接运行代理)
moltbot agent 可在无需入站聊天消息的情况下运行单轮代理。默认经网关执行;加 --local 可强制在当前机器使用内嵌运行时。
行为
- 必填:
--message <文本> - 会话选择:
--to <目标>推导会话键(群组/频道目标保持隔离;单聊收敛为main),或--session-id <id>按 id 复用已有会话,或--agent <id>直接指定已配置的代理(使用该代理的main会话键)
- 与正常入站回复使用相同的内嵌代理运行时。
- Thinking/verbose 标志会写入会话存储。
- 输出:默认打印回复文本(及
MEDIA:<url>行);--json输出结构化负载与元数据。 - 可选通过
--deliver+--channel将回复发回频道(目标格式与moltbot message --target一致)。 - 用
--reply-channel/--reply-to/--reply-account覆盖投递目标而不改变会话。
若网关不可达,CLI 回退到内嵌本地运行。
示例
moltbot agent --to +15555550123 --message "status update"
moltbot agent --agent ops --message "Summarize logs"
moltbot agent --session-id 1234 --message "Summarize inbox" --thinking medium
moltbot agent --to +15555550123 --message "Trace logs" --verbose on --json
moltbot agent --to +15555550123 --message "Summon reply" --deliver
moltbot agent --agent ops --message "Generate report" --deliver --reply-channel slack --reply-to "#reports"标志
--local:本地运行(需在环境中配置模型 API 密钥)--deliver:将回复发往所选频道--channel:投递频道(whatsapp|telegram|discord|googlechat|slack|signal|imessage,默认whatsapp)--reply-to:投递目标覆盖--reply-channel:投递频道覆盖--reply-account:投递账号 id 覆盖--thinking <off|minimal|low|medium|high|xhigh>:持久化思考级别(仅 GPT-5.2 + Codex 模型)--verbose <on|full|off>:持久化详细级别--timeout <秒>:覆盖代理超时--json:输出结构化 JSON
最后更新于: