当前位置: 首页 > Skill >

agentCreate

agentCreate

agentCreate

创建或卸载独立的 OpenClaw 代理,支持独立工作区、可选通道绑定(飞书/微信等)和模型选择。触发词:创建agent、new agent、创建机器人、agent setup、new bot、卸载agent、删除agent、remove agent

1.0.4 2026.11.26 350
获取Skill文件查看使用说明
作 者:陆澄 许可证: 更新时间:2026.11.26
本文目录收起

agentCreate

创建或卸载独立的 OpenClaw Agent。每个 Agent 拥有独立工作区、独立会话、独立模型,与主 Agent 完全隔离。

技术实现细节:

  • 创建流程 → 见 references/create.md
  • 卸载流程 → 见 references/delete.md

所有 CLI 操作必须通过 qclaw-openclaw skill 的 wrapper 脚本执行,禁止直接调用 openclaw 命令。

创建 Agent

收集信息(按顺序引导,每次只问必要项):

  1. Agent ID(英文,小写字母/数字/连字符,唯一)
  2. 通道绑定(可选):先运行 config get channels 列出已有通道和账号供选择;若新建账号,收集对应凭据;也可跳过不绑定
  3. 模型:运行 models list 获取实时列表供用户选择,默认 qclaw/modelroute
  4. 确认:展示汇总表,用户确认后再执行

执行前检查:

  • Agent ID 未被占用(agents list)
  • 若绑定通道,账号已存在或已新建

详细命令见 references/create.md。

卸载 Agent

  1. 列出所有 agent(agents list + agents bindings)
  2. 用户选择目标 agent(禁止选择 main)
  3. 展示 agent 信息,用户选择卸载模式:
    • 仅取消通道绑定(保留工作区和账号)
    • 完全卸载(删除 agent + 工作区 + 通道账号)
  4. 完全卸载需用户输入 yes 二次确认(不可恢复)

详细命令见 references/delete.md。

核心约束

  • 禁止删除 main agent
  • 完全卸载时必须同步删除通道账号配置,否则消息可能 fallback 到 main agent
  • 删除账号配置必须用 Python 直接操作 openclaw.json(gateway config.patch 只能合并写入,无法删除 key)
  • 新增/修改配置通过 gateway config.patch 写入,禁止直接编辑配置文件
  • 修改配置前先备份当前值,失败时立即回滚

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件

相关 Skill

更多
New Agent New Agent 创建新的OpenClaw代理并将其连接到消息渠道(Telegram、Discord、Slack、飞书、WhatsApp、Signal、Google Chat),支持单条和批量操作。
备份自己 备份自己 Back up the entire agent memory system of the current WorkBuddy account and package it into a single portable .tar.gz file, so a new agent on a new device/account can quickly learn and inherit all of this account's memory (identity, long-term memory, self-created skills, and config). Use when the user wants to "back up myself / 备份自己 / 备份记忆 / 记忆传承 / 迁移agent记忆 / 让新agent继承我的记忆 / 导出我的人设和记忆", or to restore such a backup into a new environment. Automatically redacts secrets (appSecret/token/apikey) in
Create And Use New Agent Email Address Create And Use New Agent Email Address 在需要向 Crustacean 邮件网关注册 OpenClaw 身份,或恢复已注册实例的丢失 Bearer 令牌时使用此技能。
x-creat-agent x-creat-agent 规范化创建 OpenClaw Agent 的完整工作流。当用户说"创建 agent"、"新建 agent"、"添加 agent"、"new agent"时触发。执行三步流程:(1) 收集 agent_id/中文名/职能描述;(2) 执行脚本创建 agent 和工作区文件(--user-name 防硬编码);(3) 引导用户创建飞书机器人并提交 AppID/AppSecret 完成配对。
技能创造流水线 技能创造流水线 Build a NEW agent skill from scratch, end-to-end — a thin conductor dispatches fresh subagents through five gated roles (compose spec -> design structure -> red-green build -> compress -> independent attack). EXPENSIVE (large token cost): trigger ONLY on an explicit user request to author/build/create an agent skill — "build me a skill", "create a new skill", "package this repeated workflow so it triggers automatically", "$skill-creator-max". Do-NOT fire for: summarizing or writing daily/session