跳到主要内容

agent

对特定的智能体执行操作,例如启动、停止或查询其状态。

clawdbot agent <id> <subcommand> [options]

子命令

  • status: 获取智能体的当前状态。
  • start: 如果智能体未运行,则启动它。
  • stop: 停止正在运行的智能体。
  • logs: 查看特定智能体的日志。

选项

  • --follow: 与 logs 配合使用以流式传输日志输出。
  • --n <lines>: 指定要显示的日志行数。

示例

# 检查智能体 'my-agent' 的状态
clawdbot agent my-agent status

# 跟随查看 'my-agent' 的日志
clawdbot agent my-agent logs --follow