【AI】Windows 10 部署 OpenClaw 龙虾
安装node24下载页Node.js — 下载 Node.js®下载地址https://nodejs.org/dist/v24.14.0/node-v24.14.0-x64.msi验证安装powershellPS 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一键安装OpenClawPS 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 (openclawlatest)... [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选择yeso 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选择QuickStarto 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 Providero 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-compatibleo 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 wont 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选择以后配置skillo 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, backupC:\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/#token3e1e45fc925077d37a0fea7071c8edd34551d1bc2e8d8e63 | | 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/#token3e1e45fc925077d37a0fea7071c8edd34551d1bc2e8d8e63 | | 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.启动失败了手动启动gatewayPS 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/ (authtoken) 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 device93f39242bf125dc222916878d661ace3d43e3eec198023ad54a13830d9ac981c roleoperator 20:51:10 [ws] webchat connected conne953cb9f-66c4-4cbd-995d-7b8a6ba7241d remote127.0.0.1 clientopenclaw-control-ui webchat v2026.3.13 20:51:16 [agent/embedded] low context window: custom-api-inference-modelscope-cn/ZhipuAI/GLM-5 ctx16000 (warn32000) sourcemodelsConfig 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.访问webOpenClaw Control今天就先到这里吧。参考Getting Started - OpenClaw