windows11环境下的openclaw 保姆级安装教程
openclaw 官网:https://docs.openclaw.ai/
powershell一键安装
win + R 打开运行,输入powershell,如果显示红色报错,那么可能的原因是没有开启脚本执行权限 #右击开始菜单,选择终端管理员,并且输入以下命令 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Machine #或者执行 Set-ExecutionPolicy RemoteSigned -Scope CurrentUser #开启权限后执行 iwr -useb https://openclaw.ai/install.ps1 | iex

如果期间仍然报错,看是否安装了git和node,其安装教程不在这里陈述,如需要可以转到:https://blog.csdn.net/feigerger/article/details/159584455
安装期间可能遇到的问题
[OK] Windows detected [!] Node.js v18.14.1 found, but v22+ required [*] Installing Node.js... Using winget... /[!] Node.js v18.14.1 found, but v22+ required [!] winget completed, but Node.js is still unavailable in this shell Restart PowerShell and re-run the installer if Node.js was installed successfully.
脚本要求 node版本v22+**
OpenClaw 安装第一步的“安全确认”界面了
🦞 OpenClaw 2026.3.13 (61d171a) — I'll butter your workflow like a lobster roll: messy, delicious, effective. 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 | | | +--------------------------------------------------------------------------------------------+ | o I understand this is personal-by-default and shared/multi-user use requires lock-down. Continue? ##你是否理解这个工具默认是“高权限代理”,并愿意承担风险继续 | No
查看openclaw是否正确的安装金PATH
Settled in. Time to automate your life whether you're ready or not. Starting setup... openclaw command not found on PATH. 所在位置 行:325 字符: 9 + throw "openclaw command not found on PATH." + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (openclaw command not found on PATH.:String) [], RuntimeException + FullyQualifiedErrorId : openclaw command not found on PATH.
检测到你有配置文件 但没有关键配置(比如 API Key) 可以选择Update values
如果只是尝鲜,建议选择qwen,因为他属于认证登录,不用购买token
如果选择qwen,模型可以选择qwen-portal/coder-model

加入联网能力,建议选择Skip for now,到最后在配置即可

选择安装什么插件,建议先跳过
Install missing skill dependencies | [•] Skip for now (Continue without installing dependencies) | [ ] 🔐 1password | [ ] 📰 blogwatcher | [ ] 🫐 blucli | [ ] 📸 camsnap | [ ] 🧩 clawhub | [ ] 🛌 eightctl | [ ] ✨ gemini | [ ] 🧲 gifgrep | [ ] 🐙 github | [ ] 🎮 gog | [ ] 📍 goplaces | [ ] 📧 himalaya | [ ] 📦 mcporter | [ ] 🍌 nano-banana-pro | [ ] 📄 nano-pdf | [ ] 💎 obsidian | [ ] 🎤 openai-whisper | [ ] 💡 openhue | [ ] 🧿 oracle | [ ] 🛵 ordercli | [ ] 🔊 sag | [ ] 🌊 songsee | [ ] 🔊 sonoscli | ...
后续的都选择no即可
Set GOOGLE_PLACES_API_KEY for goplaces? | Yes / > No — Set GEMINI_API_KEY for nano-banana-pro? | Yes / > No — Set NOTION_API_KEY for notion? | Yes / > No — Set NOTION_API_KEY for notion? | Yes / > No —
选择Skip for now
Set OPENAI_API_KEY for openai-image-gen? | No | o Set OPENAI_API_KEY for openai-whisper-api? | No | o Set ELEVENLABS_API_KEY for sag? | 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 —
OpenClaw 命令中文速查表
基础参数
openclaw -h / --help # 查看帮助(所有命令说明) openclaw -V / --version # 查看版本号 openclaw --dev # 开发模式(隔离环境,避免污染正式配置) openclaw --log-level # 设置日志级别(调试用) openclaw --no-color # 关闭终端颜色 openclaw --profile <name> # 使用不同配置环境(多账号/多项目)
Agent / AI 核心
openclaw agent # 执行一次 AI 对话/任务 openclaw agents # 管理 AI 实例(创建/查看/删除) openclaw sessions # 查看对话历史(会话)
渠道(飞书/Telegram等)
openclaw channels # 管理聊天渠道(飞书/Telegram/Discord) openclaw message # 发送/读取消息 openclaw directory # 查询用户ID/群ID(很关键) openclaw pairing # 设备/账号绑定
网关(最重要的后台)
openclaw gateway # 启动网关(必须运行) openclaw gateway stop # 停止网关 openclaw health # 检查网关状态 openclaw logs # 查看日志(排错神器) openclaw status # 查看整体运行状态
配置 & 初始化
openclaw onboard # 一键初始化(推荐新手用) openclaw setup # 初始化配置 openclaw configure # 重新配置(交互式) openclaw config # 修改配置(高级) openclaw reset # 重置环境
自动化 / 定时任务
openclaw cron # 定时任务(自动执行) openclaw hooks # 触发器(自动响应事件)
工具 / 扩展
openclaw plugins # 插件管理 openclaw skills # AI能力(技能) openclaw sandbox # 沙箱(隔离运行环境) openclaw browser # 内置浏览器控制
数据 / 记忆
openclaw memory # AI记忆管理 openclaw backup # 备份数据
安全 &权限
openclaw security # 安全检查(非常重要) openclaw approvals # 执行权限控制 openclaw secrets # 密钥管理
网络 /系统
openclaw dns # 网络解析工具 openclaw system # 系统状态/事件 openclaw node # 节点服务 openclaw nodes # 节点管理
其他辅助
openclaw docs # 查官方文档 openclaw doctor # 自动诊断问题(强烈推荐) openclaw update # 更新版本 openclaw uninstall # 卸载(保留CLI) openclaw tui # 终端UI界面 openclaw dashboard # 打开网页控制台
常用命令
openclaw gateway # 启动系统 openclaw logs --follow # 实时看日志 openclaw status # 看状态 openclaw agent # 调用AI openclaw directory # 查群ID
检测到你有配置文件
但没有关键配置(比如 API Key)
可以选择Update values
如果只是尝鲜,建议选择qwen,因为他属于认证登录,不用购买token

952

被折叠的 条评论
为什么被折叠?



