[{"data":1,"prerenderedAt":639},["ShallowReactive",2],{"article-openclaw":3,"mdc-dfgvo4-key":15},{"_path":4,"slug":5,"title":6,"description":7,"date":8,"tags":9,"type":12,"cover":13,"content":14},"\u002Fknowledge\u002Fopenclaw","openclaw","OpenClaw入门使用教程","OpenClaw入门使用教程 1 简介 ​ OpenClaw官网：https:\u002F\u002Fopenclaw.ai\u002F 2 安装 2.1 安装环境准备 - Node环境准备 - 2.2 一键安装 2.3 手动安装","2026-03-28",[10,11],"Node.js","OpenClaw","article","\u002Fknowledge-assets\u002Fopenclaw\u002Fpowershell-set.png","# OpenClaw入门使用教程\r\n\r\n# 1\t简介\r\n\r\n​\t\t[OpenClaw官网](https:\u002F\u002Fopenclaw.ai\u002F)：https:\u002F\u002Fopenclaw.ai\u002F\r\n\r\n\r\n\r\n# 2\t安装\r\n\r\n## 2.1\t安装环境准备\r\n\r\n- Node环境准备\r\n- \r\n\r\n```shell\r\n# 以管理员身份打开 PowerShell 窗口\r\n# 允许当前用户运行本地和下载脚本\r\nSet-ExecutionPolicy RemoteSigned -Scope CurrentUser\r\n\r\n# 临时跳过当前窗口的脚本执行限制\r\nSet-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass\r\n```\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fpowershell-set.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n\r\n\r\n## 2.2\t一键安装\r\n\r\n```SHELL\r\npowershell -c \"irm https:\u002F\u002Fopenclaw.ai\u002Finstall.ps1 | iex\"\r\n```\r\n\r\n\r\n\r\n## 2.3\t手动安装\r\n\r\n```shell\r\n# 安装 openClaw\r\nnpm install -g openclaw\r\n# 初始化配置\r\nopenclaw onboard\r\n# 初始化配置——设置为守护进程，开机自启，则添加 --install-daemon\r\nopenclaw onboard --install-daemon\r\n\r\n\r\n# 启动服务-启动网关 (Gateway) 默认端口：18789\r\nopenclaw gateway start\r\n\r\n# 打开管理页面 (Dashboard) —— http:\u002F\u002F127.0.0.1:18789\r\nopenclaw dashboard\r\n\r\n# 检查网关运行状态\r\nopenclaw gateway status\r\n```\r\n\r\n\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-1.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n等待安装步骤完成。\r\n\r\n安装完成后，进入配置页面。\r\n\r\n风险告知选择 YES，引导模式选择`QuickStart`(快速启动)\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-2.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n### 配置 AI 模型 API Key\r\n\r\nOpenClaw 需要连接到大语言模型才能工作。Openclaw 比较费token，国外模型成本高，门槛也高，这里我选择国内的智谱。\r\n\r\n> 如果没有智谱的API Key，点击官方地址自己注册账号获取API key：https:\u002F\u002Fwww.bigmodel.cn\u002Flogin\r\n\r\n选择模型：我这里选择智普模型（新用户注册免费赠送2000万token体验包）\r\n\r\n[智普官网](https:\u002F\u002Fwww.bigmodel.cn\u002Flogin)，模型注册参考另外：\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fmodel-1.png\" style=\"zoom:50%;\" \u002F>\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fmodel-2.png\" style=\"zoom:50%;\" \u002F>\r\n\r\n\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-3.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-model.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-model-2.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n### 选择 AI 模型\r\n\r\n因为我是新用户，领的是【新用户专享】1200万GLM-4.5-Air资源包，这里就选择了对应的。\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-model-3.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n\r\n\r\n连接即时通讯平台\r\n\r\n我这里选择先跳过，后面在安装。\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-channel.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n\r\n\r\n搜索引擎\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-search.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n\r\n\r\n\r\n\r\n### 选择Skills\r\n\r\n这里也选择：No，暂不配置，后面通过UI界面进行配置：\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-skills.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n接下来，设置会话的保持方式。（用空格键选择）\r\n\r\n操作步骤：先敲**空格**，表示选中当前项，再敲回车键\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-hooks.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n### 启动服务并打开UI界面\r\n\r\n此时它会自动再打开一个命令窗口来启动服务:\r\n\r\n\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fopenclaw-gateway.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-open.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n浏览器自动打开Web UI界面：\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Foepnclaw-chat.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n测试\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Foepnclaw-chat-1.png\" style=\"zoom:60%;\" \u002F>\r\n\r\n\r\n\r\n\r\n\r\n# QQ接入openClaw流程\r\n\r\n1\t登陆QQ平台\r\n\r\n[qqbot](https:\u002F\u002Fq.qq.com\u002Fqqbot\u002Fopenclaw\u002Flogin.html): https:\u002F\u002Fq.qq.com\u002Fqqbot\u002Fopenclaw\u002Flogin.html\r\n\r\n2\t手机扫码登陆，在手机QQ扫码后选择同意，即完成注册，进入QQ机器人配置页。\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-0.png\" style=\"zoom:30%;\" \u002F>\r\n\r\n3\t创建机器人，在QQ开放平台的QQ机器人页面，可以单击**创建机器人**，即可直接新建一个QQ机器人。\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-1.png\" style=\"zoom:50%;\" \u002F>\r\n\r\n机器人创建完成后，在页面中找到 “AppID” 和 “AppSecret” 两个参数，分别点击右侧 “复制” 按钮，将其保存到个人记事本或备忘录中（请妥善保存勿泄露，注意数据安全），后续步骤中需要使用。\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-2.png\" style=\"zoom:50%;\" \u002F>\r\n\r\n回到QQ软件，可以看到新建的QQ机器人已经被添加至您的消息列表中，并将会发送第一条消息。\r\n\r\n\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-3.jpg\" style=\"zoom:50%;\" \u002F>\r\n\r\n此时您还不能与该机器人正常进行对话，会提示“该机器人去火星了，稍后再试吧”，因为QQ机器人此时尚未与之前部署的OpenClaw应用打通。您需要继续后面的步骤，为OpenClaw应用配置QQ机器人的AppID和AppSecret。\r\n\r\n接下来需要为已经完成部署的OpenClaw配置模型和通道（即Channel，如QQ）。\r\n\r\n\r\n\r\n配置QQ插件\r\n创建好机器人以后，我们就可以安装QQ插件了。目前OpenClaw官方暂时不支持QQ，所以需要先安装插件才行。\r\n\r\n用管理员权限打开PowerShell终端，输入如下命令：\r\n\r\nopenClaw原生接入流程：\r\n\r\n```shell\r\n1.安装OpenClaw开源社区QQBot插件\r\nopenclaw plugins install @tencent-connect\u002Fopenclaw-qqbot@latest\r\n2.配置绑定当前QQ机器人\r\nopenclaw channels add --channel qqbot --token \"1903703697:gIivugEYeXCdrvlO\"\r\n3.重启本地OpenClaw服务\r\nopenclaw gateway restart\r\n```\r\n\r\n\r\n\r\n注意：\r\n\r\n```shell\r\n# 如果安装报下面的错误，等几分钟后再重试。\r\nPS C:\\Windows\\system32> openclaw plugins install @tencent-connect\u002Fopenclaw-qqbot@latest\r\n\r\n🦞 OpenClaw 2026.3.24 (cff6dc9) — The only open-source project where the mascot could eat the competition.\r\n\r\nResolving clawhub:@tencent-connect\u002Fopenclaw-qqbot@latest…\r\nClawHub \u002Fapi\u002Fv1\u002Fpackages\u002F%40tencent-connect%2Fopenclaw-qqbot failed (429): Rate limit exceeded\r\n```\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fopenclaw-qqbot.png\" style=\"zoom:67%;\" \u002F>\r\n\r\n\r\n\r\n\r\n\r\n# 3\t配置\r\n\r\n```shell\r\n# 打开openclaw配置\r\nOpenClaw configure\r\n```\r\n\r\n\r\n\r\n# 4\t安装skill\r\n\r\n```shell\r\n# 使用 npm 全局安装 ClawHub CLI\r\nnpm install -g clawhub@latest\r\n# 验证安装结果\r\nclawhub -V\r\n\r\n# 登录 ClawHub（可选，但推荐）\r\n# 登录后可以访问更多高级技能，提升请求频率限制：\r\n# 使用 CLI Token 登录（从 ClawHub 官网获取）\r\nclawhub login --token 你的CLI_TOKEN\r\n# 验证登录状态\r\nclawhub whoami\r\n\r\n# 搜索技能\r\nclawhub search sonoscli\r\n# 安装技能\r\nclawhub install sonoscli\r\n# 列出已安装的技能\r\nclawhub list\r\n# 更新技能\r\nclawhub update sonoscli\r\n# 卸载技能\r\nclawhub uninstall sonoscli\r\n\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n# 5\t心跳任务\r\n\r\n在实际使⽤中，Heartbeat的应⽤远超以上⽰例，你可以通过合理设计⼼跳规则，让OpenClaw持续在后台完成各种重复性⼯作。\r\n\r\n例如，定期整理⾏业资讯就是⼀个⾮常典型的应⽤场景。你可以设置⼼跳规则，让OpenClaw在每次⼼跳触发时检查指定的信息源，如果发现新的重要信息，就⾃动⽣成摘要并发送到⻜书。这样⼀来，你每天打开⻜书时，就能看到整理好的⾏业动态。\r\n\r\nHeartbeat还可以⽤于⾃动化资料积累。例如，你可以让OpenClaw在每次⼼跳时搜索某个主题的最新⽂章，并把有价值的内容保存到本地。随着时间推移，系统就会逐渐积累⼀份持续更新的资料库。\r\n\r\n在内容创作领域，Heartbeat也⾮常实⽤。例如，可以设置规则，让OpenClaw定期整理热点话题、提取潜在选题，或者⽣成内容灵感清单。这样，当你需要写作时，系统已经提前帮你准备好⼀批素材。\r\n\r\n可以说，当Heartbeat被合理利⽤之后，OpenClaw就不再只是⼀个被动响应的⼯具，而变成了⼀个在后台持续运⾏的⾃动化系统。它会不断巡视环境、检查信息、整理数据，并在必要时主动提醒⽤⼾。随着规则逐渐完善，这种⾃动化能⼒也会越来越强。\r\n\r\n# 6\t设置定时任务\r\n\r\n怎么让它每天⾃动给你发早报\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n# 7\t多agent配置\r\n\r\n为每个智能体创建 workspace\r\n\r\n使用向导，或手动创建 workspace：\r\n\r\n```\r\nopenclaw agents add coding\r\nopenclaw agents add social\r\n```\r\n\r\n每个智能体都会获得自己的 workspace，其中包含 `SOUL.md`、`AGENTS.md` 和可选的 `USER.md`，以及位于 `~\u002F.openclaw\u002Fagents\u002F\u003CagentId>` 下的专用 `agentDir` 和会话存储。\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fagents-1.png\" style=\"zoom:50%;\" \u002F>\r\n\r\n配置模型\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fagents-2.png\" style=\"zoom:50%;\" \u002F>\r\n\r\n\u003Cimg src=\"\u002Fknowledge-assets\u002Fopenclaw\u002Fagents-3.png\" style=\"zoom:50%;\" \u002F>\r\n\r\n配置通道\r\n\r\n```shell\r\n◇  Channel status ───────────────────────────────╮\r\n│                                                │\r\n│  Feishu: connected as OpenClaw                 │\r\n│  Google Chat: not configured                   │\r\n│  Nostr: not configured                         │\r\n│  Microsoft Teams: not configured               │\r\n│  Mattermost: not configured                    │\r\n│  Nextcloud Talk: not configured                │\r\n│  .......\r\n│  Slack: installed                              │\r\n│  Telegram: installed                           │\r\n│  Twitch: installed                             │\r\n│  WhatsApp: installed                           │\r\n│                                                │\r\n├────────────────────────────────────────────────╯\r\n◇  Configure chat channels now?\r\n│  Yes\r\n│\r\n◇  How channels work \r\n│\r\n◇  Select a channel\r\n│  Feishu\u002FLark (飞书)\r\n◇  Feishu already configured. What do you want to do?\r\n│  Modify settings\r\n│\r\n◇  We found an existing bot (App ID: cli_a9551cf4f34a5bb4). Use it for this setup?\r\n│  No\r\n│\r\n◇  Feishu scan-to-create ───────────────────────╮\r\n│                                               │\r\n│  Scan the QR with Lark\u002FFeishu on your phone.  │\r\n│                                               │\r\n├───────────────────────────────────────────────╯\r\n扫描二维码 快速创建机器人\r\n\r\n│\r\n◇  Scan completed.\r\n│\r\n◇  Group chat policy\r\n│  Allowlist - only respond in specific groups\r\n│\r\n◇  Bot configured.\r\n[info]: [ 'client ready' ]\r\n│\r\n◇  Select a channel\r\n│  Finished\r\n│\r\n◇  Selected channels ──────────────────────────────────────────╮\r\n│                                                              │\r\n│  Feishu — 飞书\u002FLark enterprise messaging. Docs:              │\r\n│  feishu  │\r\n│                                                              │\r\n├──────────────────────────────────────────────────────────────╯\r\n│\r\n◇  Configure DM access policies now? (default: pairing)\r\n│  Yes\r\n│\r\n◇  Feishu DM access ─────────────────────────────────────────────────────────────────────────╮\r\n│                                                                                            │\r\n│  Default: pairing (unknown DMs get a pairing code).                                        │\r\n│  Approve: openclaw pairing approve feishu \u003Ccode>                                           │\r\n│  Allowlist DMs: channels.feishu.dmPolicy=\"allowlist\" + channels.feishu.allowFrom entries.  │\r\n│  Public DMs: channels.feishu.dmPolicy=\"open\" + channels.feishu.allowFrom includes \"*\".     │\r\n│  Multi-user DMs: run: openclaw config set session.dmScope \"per-channel-peer\" (or           │\r\n│  \"per-account-channel-peer\" for multi-account channels) to isolate sessions.               │\r\n│  Docs: channels\u002Fpairing               │\r\n│                                                                                            │\r\n├────────────────────────────────────────────────────────────────────────────────────────────╯\r\n│\r\n◇  Feishu DM policy\r\n│  Pairing (recommended)\r\n│\r\n◇  Route selected channels to this agent now? (bindings)\r\n│  Yes\r\nConfig overwrite: \u002Froot\u002F.openclaw\u002Fopenclaw.json (sha256 7f17c571753d8df0b5e05e9fbe146f6b6c2e76b7f0160de185edfbacd8e072f0 -> 60d68e4017a5a27c115e4a38b2c452cb128de48dccb700dc8fda2df2ce3df61b, backup=\u002Froot\u002F.openclaw\u002Fopenclaw.json.bak)\r\nUpdated ~\u002F.openclaw\u002Fopenclaw.json\r\nWorkspace OK: ~\u002F.openclaw\u002Fworkspace\u002Fcoding\r\nSessions OK: ~\u002F.openclaw\u002Fagents\u002Fcoding\u002Fsessions\r\n│\r\n└  Agent \"coding\" ready.\r\n```\r\n\r\n",{"data":16,"body":17},{},{"type":18,"children":19},"root",[20,28,34,56,62,69,82,96,101,107,118,124,133,137,142,147,160,164,171,176,191,196,207,212,216,220,224,228,234,239,243,248,253,258,263,267,273,278,282,287,300,304,310,315,319,323,328,332,337,341,347,352,369,374,379,391,395,400,404,409,413,418,423,428,433,438,447,452,461,465,471,480,486,495,501,506,511,516,521,526,532,537,543,548,553,563,608,612,617,621,625,630],{"type":21,"tag":22,"props":23,"children":25},"element","h1",{"id":24},"openclaw入门使用教程",[26],{"type":27,"value":6},"text",{"type":21,"tag":22,"props":29,"children":31},{"id":30},"_1简介",[32],{"type":27,"value":33},"1\t简介",{"type":21,"tag":35,"props":36,"children":37},"p",{},[38,40,49,51],{"type":27,"value":39},"​\t\t",{"type":21,"tag":41,"props":42,"children":46},"a",{"href":43,"rel":44},"https:\u002F\u002Fopenclaw.ai\u002F",[45],"nofollow",[47],{"type":27,"value":48},"OpenClaw官网",{"type":27,"value":50},"：",{"type":21,"tag":41,"props":52,"children":54},{"href":43,"rel":53},[45],[55],{"type":27,"value":43},{"type":21,"tag":22,"props":57,"children":59},{"id":58},"_2安装",[60],{"type":27,"value":61},"2\t安装",{"type":21,"tag":63,"props":64,"children":66},"h2",{"id":65},"_21安装环境准备",[67],{"type":27,"value":68},"2.1\t安装环境准备",{"type":21,"tag":70,"props":71,"children":72},"ul",{},[73,79],{"type":21,"tag":74,"props":75,"children":76},"li",{},[77],{"type":27,"value":78},"Node环境准备",{"type":21,"tag":74,"props":80,"children":81},{},[],{"type":21,"tag":83,"props":84,"children":90},"pre",{"className":85,"code":87,"language":88,"meta":89},[86],"language-shell","# 以管理员身份打开 PowerShell 窗口\n# 允许当前用户运行本地和下载脚本\nSet-ExecutionPolicy RemoteSigned -Scope CurrentUser\n\n# 临时跳过当前窗口的脚本执行限制\nSet-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass\n","shell","",[91],{"type":21,"tag":92,"props":93,"children":94},"code",{"__ignoreMap":89},[95],{"type":27,"value":87},{"type":21,"tag":97,"props":98,"children":100},"img",{"src":13,"style":99},"zoom:67%;",[],{"type":21,"tag":63,"props":102,"children":104},{"id":103},"_22一键安装",[105],{"type":27,"value":106},"2.2\t一键安装",{"type":21,"tag":83,"props":108,"children":113},{"className":109,"code":111,"language":112,"meta":89},[110],"language-SHELL","powershell -c \"irm https:\u002F\u002Fopenclaw.ai\u002Finstall.ps1 | iex\"\n","SHELL",[114],{"type":21,"tag":92,"props":115,"children":116},{"__ignoreMap":89},[117],{"type":27,"value":111},{"type":21,"tag":63,"props":119,"children":121},{"id":120},"_23手动安装",[122],{"type":27,"value":123},"2.3\t手动安装",{"type":21,"tag":83,"props":125,"children":128},{"className":126,"code":127,"language":88,"meta":89},[86],"# 安装 openClaw\nnpm install -g openclaw\n# 初始化配置\nopenclaw onboard\n# 初始化配置——设置为守护进程，开机自启，则添加 --install-daemon\nopenclaw onboard --install-daemon\n\n\n# 启动服务-启动网关 (Gateway) 默认端口：18789\nopenclaw gateway start\n\n# 打开管理页面 (Dashboard) —— http:\u002F\u002F127.0.0.1:18789\nopenclaw dashboard\n\n# 检查网关运行状态\nopenclaw gateway status\n",[129],{"type":21,"tag":92,"props":130,"children":131},{"__ignoreMap":89},[132],{"type":27,"value":127},{"type":21,"tag":97,"props":134,"children":136},{"src":135,"style":99},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-1.png",[],{"type":21,"tag":35,"props":138,"children":139},{},[140],{"type":27,"value":141},"等待安装步骤完成。",{"type":21,"tag":35,"props":143,"children":144},{},[145],{"type":27,"value":146},"安装完成后，进入配置页面。",{"type":21,"tag":35,"props":148,"children":149},{},[150,152,158],{"type":27,"value":151},"风险告知选择 YES，引导模式选择",{"type":21,"tag":92,"props":153,"children":155},{"className":154},[],[156],{"type":27,"value":157},"QuickStart",{"type":27,"value":159},"(快速启动)",{"type":21,"tag":97,"props":161,"children":163},{"src":162,"style":99},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-2.png",[],{"type":21,"tag":165,"props":166,"children":168},"h3",{"id":167},"配置-ai-模型-api-key",[169],{"type":27,"value":170},"配置 AI 模型 API Key",{"type":21,"tag":35,"props":172,"children":173},{},[174],{"type":27,"value":175},"OpenClaw 需要连接到大语言模型才能工作。Openclaw 比较费token，国外模型成本高，门槛也高，这里我选择国内的智谱。",{"type":21,"tag":177,"props":178,"children":179},"blockquote",{},[180],{"type":21,"tag":35,"props":181,"children":182},{},[183,185],{"type":27,"value":184},"如果没有智谱的API Key，点击官方地址自己注册账号获取API key：",{"type":21,"tag":41,"props":186,"children":189},{"href":187,"rel":188},"https:\u002F\u002Fwww.bigmodel.cn\u002Flogin",[45],[190],{"type":27,"value":187},{"type":21,"tag":35,"props":192,"children":193},{},[194],{"type":27,"value":195},"选择模型：我这里选择智普模型（新用户注册免费赠送2000万token体验包）",{"type":21,"tag":35,"props":197,"children":198},{},[199,205],{"type":21,"tag":41,"props":200,"children":202},{"href":187,"rel":201},[45],[203],{"type":27,"value":204},"智普官网",{"type":27,"value":206},"，模型注册参考另外：",{"type":21,"tag":97,"props":208,"children":211},{"src":209,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fmodel-1.png","zoom:50%;",[],{"type":21,"tag":97,"props":213,"children":215},{"src":214,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fmodel-2.png",[],{"type":21,"tag":97,"props":217,"children":219},{"src":218,"style":99},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-3.png",[],{"type":21,"tag":97,"props":221,"children":223},{"src":222,"style":99},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-model.png",[],{"type":21,"tag":97,"props":225,"children":227},{"src":226,"style":99},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-model-2.png",[],{"type":21,"tag":165,"props":229,"children":231},{"id":230},"选择-ai-模型",[232],{"type":27,"value":233},"选择 AI 模型",{"type":21,"tag":35,"props":235,"children":236},{},[237],{"type":27,"value":238},"因为我是新用户，领的是【新用户专享】1200万GLM-4.5-Air资源包，这里就选择了对应的。",{"type":21,"tag":97,"props":240,"children":242},{"src":241,"style":99},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-model-3.png",[],{"type":21,"tag":35,"props":244,"children":245},{},[246],{"type":27,"value":247},"连接即时通讯平台",{"type":21,"tag":35,"props":249,"children":250},{},[251],{"type":27,"value":252},"我这里选择先跳过，后面在安装。",{"type":21,"tag":97,"props":254,"children":257},{"src":255,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-channel.png","zoom:60%;",[],{"type":21,"tag":35,"props":259,"children":260},{},[261],{"type":27,"value":262},"搜索引擎",{"type":21,"tag":97,"props":264,"children":266},{"src":265,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-search.png",[],{"type":21,"tag":165,"props":268,"children":270},{"id":269},"选择skills",[271],{"type":27,"value":272},"选择Skills",{"type":21,"tag":35,"props":274,"children":275},{},[276],{"type":27,"value":277},"这里也选择：No，暂不配置，后面通过UI界面进行配置：",{"type":21,"tag":97,"props":279,"children":281},{"src":280,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-skills.png",[],{"type":21,"tag":35,"props":283,"children":284},{},[285],{"type":27,"value":286},"接下来，设置会话的保持方式。（用空格键选择）",{"type":21,"tag":35,"props":288,"children":289},{},[290,292,298],{"type":27,"value":291},"操作步骤：先敲",{"type":21,"tag":293,"props":294,"children":295},"strong",{},[296],{"type":27,"value":297},"空格",{"type":27,"value":299},"，表示选中当前项，再敲回车键",{"type":21,"tag":97,"props":301,"children":303},{"src":302,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-hooks.png",[],{"type":21,"tag":165,"props":305,"children":307},{"id":306},"启动服务并打开ui界面",[308],{"type":27,"value":309},"启动服务并打开UI界面",{"type":21,"tag":35,"props":311,"children":312},{},[313],{"type":27,"value":314},"此时它会自动再打开一个命令窗口来启动服务:",{"type":21,"tag":97,"props":316,"children":318},{"src":317,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Fopenclaw-gateway.png",[],{"type":21,"tag":97,"props":320,"children":322},{"src":321,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Finstall-open.png",[],{"type":21,"tag":35,"props":324,"children":325},{},[326],{"type":27,"value":327},"浏览器自动打开Web UI界面：",{"type":21,"tag":97,"props":329,"children":331},{"src":330,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Foepnclaw-chat.png",[],{"type":21,"tag":35,"props":333,"children":334},{},[335],{"type":27,"value":336},"测试",{"type":21,"tag":97,"props":338,"children":340},{"src":339,"style":256},"\u002Fknowledge-assets\u002Fopenclaw\u002Foepnclaw-chat-1.png",[],{"type":21,"tag":22,"props":342,"children":344},{"id":343},"qq接入openclaw流程",[345],{"type":27,"value":346},"QQ接入openClaw流程",{"type":21,"tag":35,"props":348,"children":349},{},[350],{"type":27,"value":351},"1\t登陆QQ平台",{"type":21,"tag":35,"props":353,"children":354},{},[355,362,364],{"type":21,"tag":41,"props":356,"children":359},{"href":357,"rel":358},"https:\u002F\u002Fq.qq.com\u002Fqqbot\u002Fopenclaw\u002Flogin.html",[45],[360],{"type":27,"value":361},"qqbot",{"type":27,"value":363},": ",{"type":21,"tag":41,"props":365,"children":367},{"href":357,"rel":366},[45],[368],{"type":27,"value":357},{"type":21,"tag":35,"props":370,"children":371},{},[372],{"type":27,"value":373},"2\t手机扫码登陆，在手机QQ扫码后选择同意，即完成注册，进入QQ机器人配置页。",{"type":21,"tag":97,"props":375,"children":378},{"src":376,"style":377},"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-0.png","zoom:30%;",[],{"type":21,"tag":35,"props":380,"children":381},{},[382,384,389],{"type":27,"value":383},"3\t创建机器人，在QQ开放平台的QQ机器人页面，可以单击",{"type":21,"tag":293,"props":385,"children":386},{},[387],{"type":27,"value":388},"创建机器人",{"type":27,"value":390},"，即可直接新建一个QQ机器人。",{"type":21,"tag":97,"props":392,"children":394},{"src":393,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-1.png",[],{"type":21,"tag":35,"props":396,"children":397},{},[398],{"type":27,"value":399},"机器人创建完成后，在页面中找到 “AppID” 和 “AppSecret” 两个参数，分别点击右侧 “复制” 按钮，将其保存到个人记事本或备忘录中（请妥善保存勿泄露，注意数据安全），后续步骤中需要使用。",{"type":21,"tag":97,"props":401,"children":403},{"src":402,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-2.png",[],{"type":21,"tag":35,"props":405,"children":406},{},[407],{"type":27,"value":408},"回到QQ软件，可以看到新建的QQ机器人已经被添加至您的消息列表中，并将会发送第一条消息。",{"type":21,"tag":97,"props":410,"children":412},{"src":411,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fqq-3.jpg",[],{"type":21,"tag":35,"props":414,"children":415},{},[416],{"type":27,"value":417},"此时您还不能与该机器人正常进行对话，会提示“该机器人去火星了，稍后再试吧”，因为QQ机器人此时尚未与之前部署的OpenClaw应用打通。您需要继续后面的步骤，为OpenClaw应用配置QQ机器人的AppID和AppSecret。",{"type":21,"tag":35,"props":419,"children":420},{},[421],{"type":27,"value":422},"接下来需要为已经完成部署的OpenClaw配置模型和通道（即Channel，如QQ）。",{"type":21,"tag":35,"props":424,"children":425},{},[426],{"type":27,"value":427},"配置QQ插件\n创建好机器人以后，我们就可以安装QQ插件了。目前OpenClaw官方暂时不支持QQ，所以需要先安装插件才行。",{"type":21,"tag":35,"props":429,"children":430},{},[431],{"type":27,"value":432},"用管理员权限打开PowerShell终端，输入如下命令：",{"type":21,"tag":35,"props":434,"children":435},{},[436],{"type":27,"value":437},"openClaw原生接入流程：",{"type":21,"tag":83,"props":439,"children":442},{"className":440,"code":441,"language":88,"meta":89},[86],"1.安装OpenClaw开源社区QQBot插件\nopenclaw plugins install @tencent-connect\u002Fopenclaw-qqbot@latest\n2.配置绑定当前QQ机器人\nopenclaw channels add --channel qqbot --token \"1903703697:gIivugEYeXCdrvlO\"\n3.重启本地OpenClaw服务\nopenclaw gateway restart\n",[443],{"type":21,"tag":92,"props":444,"children":445},{"__ignoreMap":89},[446],{"type":27,"value":441},{"type":21,"tag":35,"props":448,"children":449},{},[450],{"type":27,"value":451},"注意：",{"type":21,"tag":83,"props":453,"children":456},{"className":454,"code":455,"language":88,"meta":89},[86],"# 如果安装报下面的错误，等几分钟后再重试。\nPS C:\\Windows\\system32> openclaw plugins install @tencent-connect\u002Fopenclaw-qqbot@latest\n\n🦞 OpenClaw 2026.3.24 (cff6dc9) — The only open-source project where the mascot could eat the competition.\n\nResolving clawhub:@tencent-connect\u002Fopenclaw-qqbot@latest…\nClawHub \u002Fapi\u002Fv1\u002Fpackages\u002F%40tencent-connect%2Fopenclaw-qqbot failed (429): Rate limit exceeded\n",[457],{"type":21,"tag":92,"props":458,"children":459},{"__ignoreMap":89},[460],{"type":27,"value":455},{"type":21,"tag":97,"props":462,"children":464},{"src":463,"style":99},"\u002Fknowledge-assets\u002Fopenclaw\u002Fopenclaw-qqbot.png",[],{"type":21,"tag":22,"props":466,"children":468},{"id":467},"_3配置",[469],{"type":27,"value":470},"3\t配置",{"type":21,"tag":83,"props":472,"children":475},{"className":473,"code":474,"language":88,"meta":89},[86],"# 打开openclaw配置\nOpenClaw configure\n",[476],{"type":21,"tag":92,"props":477,"children":478},{"__ignoreMap":89},[479],{"type":27,"value":474},{"type":21,"tag":22,"props":481,"children":483},{"id":482},"_4安装skill",[484],{"type":27,"value":485},"4\t安装skill",{"type":21,"tag":83,"props":487,"children":490},{"className":488,"code":489,"language":88,"meta":89},[86],"# 使用 npm 全局安装 ClawHub CLI\nnpm install -g clawhub@latest\n# 验证安装结果\nclawhub -V\n\n# 登录 ClawHub（可选，但推荐）\n# 登录后可以访问更多高级技能，提升请求频率限制：\n# 使用 CLI Token 登录（从 ClawHub 官网获取）\nclawhub login --token 你的CLI_TOKEN\n# 验证登录状态\nclawhub whoami\n\n# 搜索技能\nclawhub search sonoscli\n# 安装技能\nclawhub install sonoscli\n# 列出已安装的技能\nclawhub list\n# 更新技能\nclawhub update sonoscli\n# 卸载技能\nclawhub uninstall sonoscli\n\n",[491],{"type":21,"tag":92,"props":492,"children":493},{"__ignoreMap":89},[494],{"type":27,"value":489},{"type":21,"tag":22,"props":496,"children":498},{"id":497},"_5心跳任务",[499],{"type":27,"value":500},"5\t心跳任务",{"type":21,"tag":35,"props":502,"children":503},{},[504],{"type":27,"value":505},"在实际使⽤中，Heartbeat的应⽤远超以上⽰例，你可以通过合理设计⼼跳规则，让OpenClaw持续在后台完成各种重复性⼯作。",{"type":21,"tag":35,"props":507,"children":508},{},[509],{"type":27,"value":510},"例如，定期整理⾏业资讯就是⼀个⾮常典型的应⽤场景。你可以设置⼼跳规则，让OpenClaw在每次⼼跳触发时检查指定的信息源，如果发现新的重要信息，就⾃动⽣成摘要并发送到⻜书。这样⼀来，你每天打开⻜书时，就能看到整理好的⾏业动态。",{"type":21,"tag":35,"props":512,"children":513},{},[514],{"type":27,"value":515},"Heartbeat还可以⽤于⾃动化资料积累。例如，你可以让OpenClaw在每次⼼跳时搜索某个主题的最新⽂章，并把有价值的内容保存到本地。随着时间推移，系统就会逐渐积累⼀份持续更新的资料库。",{"type":21,"tag":35,"props":517,"children":518},{},[519],{"type":27,"value":520},"在内容创作领域，Heartbeat也⾮常实⽤。例如，可以设置规则，让OpenClaw定期整理热点话题、提取潜在选题，或者⽣成内容灵感清单。这样，当你需要写作时，系统已经提前帮你准备好⼀批素材。",{"type":21,"tag":35,"props":522,"children":523},{},[524],{"type":27,"value":525},"可以说，当Heartbeat被合理利⽤之后，OpenClaw就不再只是⼀个被动响应的⼯具，而变成了⼀个在后台持续运⾏的⾃动化系统。它会不断巡视环境、检查信息、整理数据，并在必要时主动提醒⽤⼾。随着规则逐渐完善，这种⾃动化能⼒也会越来越强。",{"type":21,"tag":22,"props":527,"children":529},{"id":528},"_6设置定时任务",[530],{"type":27,"value":531},"6\t设置定时任务",{"type":21,"tag":35,"props":533,"children":534},{},[535],{"type":27,"value":536},"怎么让它每天⾃动给你发早报",{"type":21,"tag":22,"props":538,"children":540},{"id":539},"_7多agent配置",[541],{"type":27,"value":542},"7\t多agent配置",{"type":21,"tag":35,"props":544,"children":545},{},[546],{"type":27,"value":547},"为每个智能体创建 workspace",{"type":21,"tag":35,"props":549,"children":550},{},[551],{"type":27,"value":552},"使用向导，或手动创建 workspace：",{"type":21,"tag":83,"props":554,"children":558},{"className":555,"code":557,"language":27},[556],"language-text","openclaw agents add coding\nopenclaw agents add social\n",[559],{"type":21,"tag":92,"props":560,"children":561},{"__ignoreMap":89},[562],{"type":27,"value":557},{"type":21,"tag":35,"props":564,"children":565},{},[566,568,574,576,582,584,590,592,598,600,606],{"type":27,"value":567},"每个智能体都会获得自己的 workspace，其中包含 ",{"type":21,"tag":92,"props":569,"children":571},{"className":570},[],[572],{"type":27,"value":573},"SOUL.md",{"type":27,"value":575},"、",{"type":21,"tag":92,"props":577,"children":579},{"className":578},[],[580],{"type":27,"value":581},"AGENTS.md",{"type":27,"value":583}," 和可选的 ",{"type":21,"tag":92,"props":585,"children":587},{"className":586},[],[588],{"type":27,"value":589},"USER.md",{"type":27,"value":591},"，以及位于 ",{"type":21,"tag":92,"props":593,"children":595},{"className":594},[],[596],{"type":27,"value":597},"~\u002F.openclaw\u002Fagents\u002F\u003CagentId>",{"type":27,"value":599}," 下的专用 ",{"type":21,"tag":92,"props":601,"children":603},{"className":602},[],[604],{"type":27,"value":605},"agentDir",{"type":27,"value":607}," 和会话存储。",{"type":21,"tag":97,"props":609,"children":611},{"src":610,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fagents-1.png",[],{"type":21,"tag":35,"props":613,"children":614},{},[615],{"type":27,"value":616},"配置模型",{"type":21,"tag":97,"props":618,"children":620},{"src":619,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fagents-2.png",[],{"type":21,"tag":97,"props":622,"children":624},{"src":623,"style":210},"\u002Fknowledge-assets\u002Fopenclaw\u002Fagents-3.png",[],{"type":21,"tag":35,"props":626,"children":627},{},[628],{"type":27,"value":629},"配置通道",{"type":21,"tag":83,"props":631,"children":634},{"className":632,"code":633,"language":88,"meta":89},[86],"◇  Channel status ───────────────────────────────╮\n│                                                │\n│  Feishu: connected as OpenClaw                 │\n│  Google Chat: not configured                   │\n│  Nostr: not configured                         │\n│  Microsoft Teams: not configured               │\n│  Mattermost: not configured                    │\n│  Nextcloud Talk: not configured                │\n│  .......\n│  Slack: installed                              │\n│  Telegram: installed                           │\n│  Twitch: installed                             │\n│  WhatsApp: installed                           │\n│                                                │\n├────────────────────────────────────────────────╯\n◇  Configure chat channels now?\n│  Yes\n│\n◇  How channels work \n│\n◇  Select a channel\n│  Feishu\u002FLark (飞书)\n◇  Feishu already configured. What do you want to do?\n│  Modify settings\n│\n◇  We found an existing bot (App ID: cli_a9551cf4f34a5bb4). Use it for this setup?\n│  No\n│\n◇  Feishu scan-to-create ───────────────────────╮\n│                                               │\n│  Scan the QR with Lark\u002FFeishu on your phone.  │\n│                                               │\n├───────────────────────────────────────────────╯\n扫描二维码 快速创建机器人\n\n│\n◇  Scan completed.\n│\n◇  Group chat policy\n│  Allowlist - only respond in specific groups\n│\n◇  Bot configured.\n[info]: [ 'client ready' ]\n│\n◇  Select a channel\n│  Finished\n│\n◇  Selected channels ──────────────────────────────────────────╮\n│                                                              │\n│  Feishu — 飞书\u002FLark enterprise messaging. Docs:              │\n│  feishu  │\n│                                                              │\n├──────────────────────────────────────────────────────────────╯\n│\n◇  Configure DM access policies now? (default: pairing)\n│  Yes\n│\n◇  Feishu DM access ─────────────────────────────────────────────────────────────────────────╮\n│                                                                                            │\n│  Default: pairing (unknown DMs get a pairing code).                                        │\n│  Approve: openclaw pairing approve feishu \u003Ccode>                                           │\n│  Allowlist DMs: channels.feishu.dmPolicy=\"allowlist\" + channels.feishu.allowFrom entries.  │\n│  Public DMs: channels.feishu.dmPolicy=\"open\" + channels.feishu.allowFrom includes \"*\".     │\n│  Multi-user DMs: run: openclaw config set session.dmScope \"per-channel-peer\" (or           │\n│  \"per-account-channel-peer\" for multi-account channels) to isolate sessions.               │\n│  Docs: channels\u002Fpairing               │\n│                                                                                            │\n├────────────────────────────────────────────────────────────────────────────────────────────╯\n│\n◇  Feishu DM policy\n│  Pairing (recommended)\n│\n◇  Route selected channels to this agent now? (bindings)\n│  Yes\nConfig overwrite: \u002Froot\u002F.openclaw\u002Fopenclaw.json (sha256 7f17c571753d8df0b5e05e9fbe146f6b6c2e76b7f0160de185edfbacd8e072f0 -> 60d68e4017a5a27c115e4a38b2c452cb128de48dccb700dc8fda2df2ce3df61b, backup=\u002Froot\u002F.openclaw\u002Fopenclaw.json.bak)\nUpdated ~\u002F.openclaw\u002Fopenclaw.json\nWorkspace OK: ~\u002F.openclaw\u002Fworkspace\u002Fcoding\nSessions OK: ~\u002F.openclaw\u002Fagents\u002Fcoding\u002Fsessions\n│\n└  Agent \"coding\" ready.\n",[635],{"type":21,"tag":92,"props":636,"children":637},{"__ignoreMap":89},[638],{"type":27,"value":633},1787799116021]