【AI】Windows 10 部署 OpenClaw 龙虾

安装node24

下载页

Node.js — 下载 Node.js®

下载地址

https://nodejs.org/dist/v24.14.0/node-v24.14.0-x64.msi

验证安装(powershell)

PS C:\Users\yeqiang> node -v v24.14.0 PS C:\Users\yeqiang> npm.cmd -v 11.9.0

初始化在线模型(modelscope)

获取参考文档(api地址)

GLM-5 · 模型库

API推理介绍 · 文档中心

得到api地址为

https://api-inference.modelscope.cn

获取访问令牌

转到个人中心

个人中心 · 魔搭社区

访问控制->新建访问口令

创建一个长期使用的口令

复制这个口令

获取模型id

访问

api-inference.modelscope.cn/v1/models

找到glm5模型

准确的id是 ZhipuAI/GLM-5

一键安装OpenClaw

PS C:\Users\yeqiang> iwr -useb https://openclaw.ai/install.ps1 | iex OpenClaw Installer [OK] Windows detected [OK] Node.js v24.14.0 found [*] Installing OpenClaw (openclaw@latest)... [OK] OpenClaw installed OpenClaw installed successfully (OpenClaw 2026.3.13 (61d171a))! Installation complete. Your productivity is about to get weird. Starting setup... 🦞 OpenClaw 2026.3.13 (61d171a) — Less clicking, more shipping, fewer "where did that file go" moments. Windows detected - OpenClaw runs great on WSL2! Native Windows might be trickier. Quick setup: wsl --install (one command, one reboot) Guide: https://docs.openclaw.ai/windows ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██ ██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██ ██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ 🦞 OPENCLAW 🦞 T OpenClaw onboarding | o Security ---------------------------------------------------------------------------------+ | | | Security warning — please read. | | | | OpenClaw is a hobby project and still in beta. Expect sharp edges. | | By default, OpenClaw is a personal agent: one trusted operator boundary. | | This bot can read files and run actions if tools are enabled. | | A bad prompt can trick it into doing unsafe things. | | | | OpenClaw is not a hostile multi-tenant boundary by default. | | If multiple users can message one tool-enabled agent, they share that delegated tool | | authority. | | | | If you’re not comfortable with security hardening and access control, don’t run | | OpenClaw. | | Ask someone experienced to help before enabling tools or exposing it to the internet. | | | | Recommended baseline: | | - Pairing/allowlists + mention gating. | | - Multi-user/shared inbox: split trust boundaries (separate gateway/credentials, ideally | | separate OS users/hosts). | | - Sandbox + least-privilege tools. | | - Shared inboxes: isolate DM sessions (`session.dmScope: per-channel-peer`) and keep | | tool access minimal. | | - Keep secrets out of the agent’s reachable filesystem. | | - Use the strongest available model for any bot with tools or untrusted inboxes. | | | | Run regularly: | | openclaw security audit --deep | | openclaw security audit --fix | | | | Must read: https://docs.openclaw.ai/gateway/security | | | +--------------------------------------------------------------------------------------------+ | * I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue? | Yes / > No

选择yes

o I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue? | Yes | * Onboarding mode | > QuickStart (Configure details later via openclaw configure.) | Manual

选择QuickStart

o Onboarding mode | QuickStart | o QuickStart -------------------------+ | | | Gateway port: 18789 | | Gateway bind: Loopback (127.0.0.1) | | Gateway auth: Token (default) | | Tailscale exposure: Off | | Direct to chat channels. | | | +--------------------------------------+ | * Model/auth provider | OpenAI | Anthropic | Chutes | MiniMax | Moonshot AI (Kimi K2.5) | Google | xAI (Grok) | Mistral AI | Volcano Engine | BytePlus | OpenRouter | Kilo Gateway | Qwen | Z.AI | Qianfan | Alibaba Cloud Model Studio | Copilot | Vercel AI Gateway | OpenCode | Xiaomi | Synthetic | Together AI | Hugging Face | Venice AI | LiteLLM | Cloudflare AI Gateway | > Custom Provider (Any OpenAI or Anthropic compatible endpoint) | Ollama | SGLang | vLLM | Skip for now

选择Custom Provider

o Model/auth provider | Custom Provider | * API Base URL | https://api-inference.modelscope.cn

输入modelscope的api地址

* How do you want to provide this API key? | > Paste API key now (Stores the key directly in OpenClaw config) | Use external secret provider * API Key (leave blank if not required) 粘贴正确的apikey

粘贴正确的apikey

* Endpoint compatibility | OpenAI-compatible | > Anthropic-compatible (Uses /messages) | Unknown (detect automatically)

选择Anthropic-compatible

o Endpoint compatibility | Anthropic-compatible | * Model ID | ZhipuAI/GLM-5█

输入glm5的模型id,回车

| o Verification successful. | * Endpoint ID | custom-api-inference-modelscope-cn█

等待验证完成后,出现模型id,直接回车

* Model alias (optional) | e.g. local, ollama

别名,不管,直接回车

通道选择:

* Select channel (QuickStart) | Telegram (Bot API) | WhatsApp (QR link) | Discord (Bot API) | IRC (Server + Nick) | Google Chat (Chat API) | Slack (Socket Mode) | Signal (signal-cli) | iMessage (imsg) | LINE (Messaging API) | Feishu/Lark (飞书) | Nostr (NIP-04 DMs) | Microsoft Teams (Bot Framework) | Mattermost (plugin) | Nextcloud Talk (self-hosted) | Matrix (plugin) | BlueBubbles (macOS app) | Zalo (Bot API) | Zalo (Personal Account) | Synology Chat (Webhook) | Tlon (Urbit) | > Skip for now (You can add channels later via `openclaw channels add`) —

国内似乎只有飞书可用,直接跳过。

搜索引擎

o Web search ----------------------------------------+ | | | Web search lets your agent look things up online. | | Choose a provider and paste your API key. | | Docs: https://docs.openclaw.ai/tools/web | | | +-----------------------------------------------------+ | * Search provider | > Brave Search (Structured results · country/language/time filters) | Gemini (Google Search) | Grok (xAI) | Kimi (Moonshot) | Perplexity Search | Skip for now

默认第一个Brave Search,回车,后续看是否支持国内引擎

o Search provider | Brave Search | o Brave Search API key | | o Web search ----------------------------------------------------------+ | | | No API key stored — web_search won't work until a key is available. | | Get your key at: https://brave.com/search/api/ | | Docs: https://docs.openclaw.ai/tools/web | | | +-----------------------------------------------------------------------+ | o Skills status -------------+ | | | Eligible: 4 | | Missing requirements: 40 | | Unsupported on this OS: 8 | | Blocked by allowlist: 0 | | | +-----------------------------+ | * Configure skills now? (recommended) | Yes / > No

选择以后配置skill

o Configure skills now? (recommended) | No | o Hooks ------------------------------------------------------------------+ | | | Hooks let you automate actions when agent commands are issued. | | Example: Save session context to memory when you issue /new or /reset. | | | | Learn more: https://docs.openclaw.ai/automation/hooks | | | +--------------------------------------------------------------------------+ | * Enable hooks? | [ ] Skip for now | [ ] 🚀 boot-md | [ ] 📎 bootstrap-extra-files | [ ] 📝 command-logger | [+] 💾 session-memory (Save session context to memory when /new or /reset command is issued)

选择session-memory,方向下,然后空格选中,变成+号状态

o Enable hooks? | 💾 session-memory | o Hooks Configured -----------------+ | | | Enabled 1 hook: session-memory | | | | You can manage hooks later with: | | openclaw hooks list | | openclaw hooks enable <name> | | openclaw hooks disable <name> | | | +------------------------------------+ Config overwrite: C:\Users\yeqiang\.openclaw\openclaw.json (sha256 02f3ade747bef0d4bd5b49bfa30500a426be823f637b7ad9b00581d7825dc20d -> f3268ea6bf0acb2ffc3adce6048a69277bbca05be8be1b275c52a60bbae9db10, backup=C:\Users\yeqiang\.openclaw\openclaw.json.bak) | o Gateway service runtime --------------------------------------------+ | | | QuickStart uses Node for the Gateway service (stable + supported). | | | +----------------------------------------------------------------------+ | o Gateway service install failed. | o Gateway ---------------------------------------------------------------+ | | | Gateway service install failed: schtasks create failed: ����: �ܾ����ʡ� | | | +-------------------------------------------------------------------------+ | o Gateway ---------------------------------------------------------------------------+ | | | Tip: native Windows now falls back to a per-user Startup-folder login item when | | Scheduled Task creation is denied; if install still fails, rerun from an elevated | | PowerShell or skip service install. | | | +-------------------------------------------------------------------------------------+ | o Health check failed: gateway closed (1006 abnormal closure (no close frame)): no close reason Gateway target: ws://127.0.0.1:18789 Source: local loopback Config: C:\Users\yeqiang\.openclaw\openclaw.json Bind: loopback | o Health check help --------------------------------+ | | | Docs: | | https://docs.openclaw.ai/gateway/health | | https://docs.openclaw.ai/gateway/troubleshooting | | | +----------------------------------------------------+ | o Optional apps ------------------------+ | | | Add nodes for extra features: | | - macOS app (system + notifications) | | - iOS app (camera/canvas) | | - Android app (camera/canvas) | | | +----------------------------------------+ | o Control UI -------------------------------------------------------------------------------+ | | | Web UI: http://127.0.0.1:18789/ | | Web UI (with token): | | http://127.0.0.1:18789/#token=3e1e45fc925077d37a0fea7071c8edd34551d1bc2e8d8e63 | | Gateway WS: ws://127.0.0.1:18789 | | Gateway: not detected (gateway closed (1006 abnormal closure (no close frame)): no close | | reason) | | Docs: https://docs.openclaw.ai/web/control-ui | | | +--------------------------------------------------------------------------------------------+ | o Workspace backup ----------------------------------------+ | | | Back up your agent workspace. | | Docs: https://docs.openclaw.ai/concepts/agent-workspace | | | +-----------------------------------------------------------+ | o Security ------------------------------------------------------+ | | | Running agents on your computer is risky — harden your setup: | | https://docs.openclaw.ai/security | | | +-----------------------------------------------------------------+ | o Shell completion -------------------------------------------------------+ | | | Shell completion installed. Restart your shell or run: source ~/.zshrc | | | +--------------------------------------------------------------------------+ | o Dashboard ready ----------------------------------------------------------------+ | | | Dashboard link (with token): | | http://127.0.0.1:18789/#token=3e1e45fc925077d37a0fea7071c8edd34551d1bc2e8d8e63 | | Opened in your browser. Keep that tab to control OpenClaw. | | | +----------------------------------------------------------------------------------+ | o Web search --------------------------------------------------+ | | | Provider Brave Search is selected but no API key was found. | | web_search will not work until a key is added. | | openclaw configure --section web | | | | Get your key at: https://brave.com/search/api/ | | Docs: https://docs.openclaw.ai/tools/web | | | +---------------------------------------------------------------+ | o What now -------------------------------------------------------------+ | | | What now: https://openclaw.ai/showcase ("What People Are Building"). | | | +------------------------------------------------------------------------+ | — Onboarding complete. Dashboard opened; keep that tab to control OpenClaw.

启动失败了

手动启动gateway

PS C:\Users\yeqiang> openclaw.cmd gateway 🦞 OpenClaw 2026.3.13 (61d171a) — The only open-source project where the mascot could eat the competition. 20:50:58 [canvas] host mounted at http://127.0.0.1:18789/__openclaw__/canvas/ (root C:\Users\yeqiang\.openclaw\canvas) 20:50:59 [heartbeat] started 20:50:59 [health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s) 20:50:59 [gateway] agent model: custom-api-inference-modelscope-cn/ZhipuAI/GLM-5 20:50:59 [gateway] listening on ws://127.0.0.1:18789, ws://[::1]:18789 (PID 9880) 20:50:59 [gateway] log file: C:\Users\yeqiang\AppData\Local\Temp\openclaw\openclaw-2026-03-15.log 20:50:59 [browser/server] Browser control listening on http://127.0.0.1:18791/ (auth=token) 20:50:59 [hooks:loader] Registered hook: boot-md -> gateway:startup 20:50:59 [hooks:loader] Registered hook: bootstrap-extra-files -> agent:bootstrap 20:50:59 [hooks:loader] Registered hook: command-logger -> command 20:50:59 [hooks:loader] Registered hook: session-memory -> command:new, command:reset 20:50:59 [hooks] loaded 4 internal hook handlers 20:51:10 [gateway] device pairing auto-approved device=93f39242bf125dc222916878d661ace3d43e3eec198023ad54a13830d9ac981c role=operator 20:51:10 [ws] webchat connected conn=e953cb9f-66c4-4cbd-995d-7b8a6ba7241d remote=127.0.0.1 client=openclaw-control-ui webchat v2026.3.13 20:51:16 [agent/embedded] low context window: custom-api-inference-modelscope-cn/ZhipuAI/GLM-5 ctx=16000 (warn<32000) source=modelsConfig 20:51:16 [tools] tools.profile (coding) allowlist contains unknown entries (apply_patch, image). These entries are shipped core tools but unavailable in the current runtime/provider/model/config. 20:51:31 [compaction-safeguard] Compaction safeguard: cancelling compaction with no real conversation messages to summarize. 

访问web

OpenClaw Control

今天就先到这里吧。

参考:

Getting Started - OpenClaw

Read more

毕业设计:基于neo4j的知识图谱的智能问答系统(源码)

毕业设计:基于neo4j的知识图谱的智能问答系统(源码)

一、项目背景 知识图谱作为人工智能领域重要的知识表示与推理技术,近年来已成为实现机器认知智能的核心基础设施。它将海量、异构的实体、属性及其复杂关系,以图结构的形式进行语义化组织与存储,形成了一张能够被计算机理解和处理的“知识网络”。在信息爆炸的时代,传统基于关键词匹配的搜索引擎和问答系统,往往难以理解用户查询背后的深层语义与意图,导致返回结果碎片化、准确性不足,尤其无法有效回答涉及多跳推理、关系路径挖掘的复杂问题。例如,面对“李白最欣赏的诗人是谁?”或“与《静夜思》情感基调相似的杜甫作品有哪些?”这类问题,传统系统往往束手无策。因此,构建能够理解复杂语义、进行关联分析与逻辑推理的智能问答系统,成为提升信息获取效率与智能化水平的关键需求。 在各行业知识密集型应用(如医疗诊断辅助、金融风控、智慧教育等)的驱动下,基于知识图谱的智能问答(KBQA)技术展现了巨大潜力。它通过将自然语言问题解析为对知识图谱的结构化查询,能够直接返回精准、结构化的答案,而非一系列相关网页链接,实现了从“信息检索”到“知识问答”的质变。这一技术路径对于传承与梳理中华优秀传统文化,特别是像古诗词这样蕴含丰富人物、

如何快速入门自主机器人:开源教材的终极指南

如何快速入门自主机器人:开源教材的终极指南 【免费下载链接】Introduction-to-Autonomous-RobotsIntroduction to Autonomous Robots 项目地址: https://gitcode.com/gh_mirrors/in/Introduction-to-Autonomous-Robots 想要学习自主机器人却不知从何开始?《Introduction-to-Autonomous-Robots》这本开源教材就是你需要的完整解决方案!作为一本权威的机器人学习资源,它涵盖了从基础概念到高级算法的全部内容,让机器人入门变得简单快速。 🚀 为什么选择这本自主机器人教程? 这本开源教材采用通俗易懂的方式讲解复杂的机器人概念,即使是零基础的机器人爱好者也能轻松上手。书中通过大量直观的图表和实例,帮助读者建立完整的知识体系。 教材内容涵盖了机器人的三大核心模块: * 感知系统:传感器原理与数据处理 * 决策系统:路径规划与算法设计 * 执行系统:机械结构与运动控制 📚 完整的机器人学习路径 传感器原理详解 书中详细讲

解锁超级生产力:手把手教你构建与GitHub深度集成的自动化工作流,让AI成为你的编程副驾驶

解锁超级生产力:手把手教你构建与GitHub深度集成的自动化工作流,让AI成为你的编程副驾驶

前言 在当今快节奏的软件开发世界中,效率就是生命线。每一位开发者、项目经理和技术爱好者都在不断寻求能够简化流程、自动化重复性任务并最终解放创造力的工具和方法。想象一下,如果你能用自然语言与你的开发环境对话,让它为你搜索代码库、管理项目任务,甚至直接在你最喜欢的代码托管平台GitHub上执行操作,那将会是怎样一种颠覆性的体验? 这并非遥不可及的科幻场景,而是已经可以实现的强大功能。本文将为你揭开这层神秘的面纱,通过一个名为“蓝耘”的平台(或任何支持此类功能的类似平台),一步步指导你从零开始构建一个基础的自动化工作流。更令人兴奋的是,我们将向你展示如何将这个工作流与强大的GitHub MCP(Multi-Capability Platform)工具无缝集成,从而赋予你的工作流直接与GitHub仓库进行深度交互的能力。 无论你是希望快速检索海量开源项目、自动追踪和创建任务(Issues),还是希望简化代码提交与拉取请求(Pull Request)的流程,本文都将为你提供详尽的、可操作的指南。我们将深入每一个步骤,从最基础的节点设置,到获取关键的GitHub密钥,再到最终实战演练,让你亲

不用 API Key 也能跑 AI 智能体?OpenClaw Zero Token 用浏览器自动化打通了大模型调用的新路线

不用 API Key 也能跑 AI 智能体?OpenClaw Zero Token 用浏览器自动化打通了大模型调用的新路线

OpenClaw Zero Token 深度解析:浏览器自动化实现大模型免 Token 调用的原理与实战 快速摘要 OpenClaw Zero Token 是开源 AI 智能体框架 OpenClaw 的一个社区衍生版本,它的核心思路是:通过 Playwright 浏览器自动化技术,复用你在各大模型网页端的登录状态,从而绕过传统 API Token 调用的方式,实现对 DeepSeek、千问、Kimi、豆包等主流大模型的本地 Agent 调用。 整个方案采用 MIT 开源协议,项目在 GitHub 上已获得 1800+ Star。如果你正在搭建本地 AI 智能体、或者对浏览器自动化与大模型结合的技术路线感兴趣,往下看有更详细的原理拆解和完整部署步骤。 从 OpenClaw 说起:为什么会出现 Zero