OpenClaw 是 BRTC 对接的第三方实时音视频 AI 引擎。通过 OpenClaw 实例管理接口,您可以创建、查询、释放 OpenClaw 实例,并在创建 AI 智能体时通过 external_agent_config 绑定使用。
external_agent_config
创建新的 OpenClaw 实例。创建为异步过程,接口返回后实例状态为 CREATING,系统后台自动完成资源分配后状态更新为 RUNNING。
CREATING
RUNNING
https://brtc-api.baijiayun.com/vcs/aiagent/v1/openclaw/create
{ "app_id": "456", "name": "test-openclaw-instance", "trace_id": "trace-test-001" }
返回示例
200 Response
{ "code": 200, "data": { "app_id": 456, "name": "test-openclaw-instance", "trace_id": "trace-test-001", "status": "CREATING" }, "msg": "succeed" }
查询当前应用下的 OpenClaw 实例列表,支持按状态、绑定状态等条件过滤。
https://brtc-api.baijiayun.com/vcs/aiagent/v1/openclaw/list
0
1
-1
status >= 0
true
false
app_id=456&limit=20&offset=0&status=1
STOPPED
{ "code": 200, "data": { "total": 1, "list": [ { "id": 1, "partner_id": 123, "app_id": 456, "name": "test-openclaw-instance", "trace_id": "trace-test-001", "room_id": "", "agent_id": "", "openclaw_id": "openclaw-838d70918dfc", "url": "ws://10.233.96.107:18789", "token": "c0a6f395410260b18191f4b3b83f2fc0be9513e2b5096d1d802cc5a299a59718", "device_id": "", "private_key_pem": "", "device_token": "", "status": "RUNNING", "error_msg": "", "is_bound": false, "created_at": "2025-08-13 10:21:38", "updated_at": "2025-08-13 10:21:38" } ] }, "msg": "succeed" }
根据 app_id 和 name 查询单个 OpenClaw 实例的详细信息。
app_id
name
https://brtc-api.baijiayun.com/vcs/aiagent/v1/openclaw/status
app_id=456&name=test-openclaw-instance
返回数据结构与列表接口的 OpenclawItem 结构一致。
OpenclawItem
{ "code": 200, "data": { "id": 1, "partner_id": 123, "app_id": 456, "name": "test-openclaw-instance", "trace_id": "trace-test-001", "room_id": "", "agent_id": "", "openclaw_id": "openclaw-838d70918dfc", "url": "ws://10.233.96.107:18789", "token": "c0a6f395410260b18191f4b3b83f2fc0be9513e2b5096d1d802cc5a299a59718", "device_id": "", "private_key_pem": "", "device_token": "", "status": "RUNNING", "error_msg": "", "is_bound": false, "created_at": "2025-08-13 10:21:38", "updated_at": "2025-08-13 10:21:38" }, "msg": "succeed" }
释放指定的 OpenClaw 实例。释放后实例状态变为 STOPPED,将无法再被 AI 智能体绑定使用。
https://brtc-api.baijiayun.com/vcs/aiagent/v1/openclaw/release
{ "app_id": "456", "openclaw_id": "openclaw-838d70918dfc" }
{ "code": 200, "data": { "openclaw_id": "openclaw-838d70918dfc", "success": true }, "msg": "succeed" }
openclaw_id
external_agent_enable: true
type: "openclaw"
OpenClaw 实例管理
OpenClaw 是 BRTC 对接的第三方实时音视频 AI 引擎。通过 OpenClaw 实例管理接口,您可以创建、查询、释放 OpenClaw 实例,并在创建 AI 智能体时通过
external_agent_config绑定使用。创建 OpenClaw 实例
创建新的 OpenClaw 实例。创建为异步过程,接口返回后实例状态为
CREATING,系统后台自动完成资源分配后状态更新为RUNNING。接口请求地址
请求参数
请求参数 json 模板
返回参数
返回数据结构
CREATING查询 OpenClaw 实例列表
查询当前应用下的 OpenClaw 实例列表,支持按状态、绑定状态等条件过滤。
接口请求地址
请求参数
-
0: CREATING(创建中)-
1: RUNNING(运行中,默认)-
-1: STOPPED(已删除)不传时默认查询
status >= 0的实例-
true: 已绑定的实例-
false: 未绑定的实例- 不传: 全部
请求参数示例
返回参数
返回数据结构
-
CREATING: 创建中-
RUNNING: 运行中-
STOPPED: 已删除查询 OpenClaw 实例状态
根据
app_id和name查询单个 OpenClaw 实例的详细信息。接口请求地址
请求参数
请求参数示例
返回参数
返回数据结构与列表接口的
OpenclawItem结构一致。释放 OpenClaw 实例
释放指定的 OpenClaw 实例。释放后实例状态变为
STOPPED,将无法再被 AI 智能体绑定使用。接口请求地址
请求参数
请求参数 json 模板
返回参数
返回数据结构
实例状态说明
CREATINGRUNNINGSTOPPED与 AI 智能体的关系
openclaw_id。external_agent_enable: true,并在external_agent_config中指定type: "openclaw"和openclaw_id。