乐于分享
好东西不私藏

OpenClaw避坑安装教程|必备skills技能+常用命令

OpenClaw避坑安装教程|必备skills技能+常用命令

先简单科普下:OpenClaw(前身为 Clawdbot/Moltbot)是一款开源、本地优先、可执行任务的 AI 自动化代理引擎,遵循 MIT 协议。它以自然语言指令为驱动,在本地或私有云环境中完成文件操作、流程编排、浏览器自动化、多 IM 平台交互等任务,实现从 “对话式建议” 到 “自动化执行” 的跨越,是面向个人与企业的自托管式 AI 数字员工。

本文安装方式是为了避开windows安装的坑,以及必备skills技能+常用命令不含配置教程(网上一搜一堆,没啥技术含量);

mac和linux没有坑,按官网安装方式安装就行,不懂可以留言

一、前置软件安装

安装OpenClaw前,需先部署3个基础软件,直接点击链接下载安装,全程下一步即可,无需复杂配置。

1. Node.js 22(核心运行环境)https://nodejs.org/dist/v22.22.1/node-v22.22.1-x64.msi

2. Git(版本控制工具)https://github.com/git-for-windows/git/releases/download/v2.53.0.windows.2/Git-2.53.0.2-64-bit.exe

3. VC++ 运行库(依赖组件,避免安装报错)https://aka.ms/vs/17/release/vc_redist.x64.exe

二、OpenClaw 核心安装步骤(3步搞定)

按照以下步骤操作,全程复制命令即可,避免手动输入出错。

1. 打开管理员权限的PowerShellWin键搜索PowerShell,右键选择以管理员身份运行);

2. 输入命令,给执行权限(复制粘贴后按回车):

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

出现提示时,输入Y并回车确认即可。

3. 执行全局安装命令(复制粘贴后按回车,等待安装完成):

npm i -g openclaw

4. 首次安装必做:执行全流程引导配置(去随便搜一个配置教程就行):

openclaw onboard

提示:全流程按照上面的方式安装,可避免win的坑,后面的安装配置教程可以直接网上搜索

三、必备技能(ClawHub 资源直达)

OpenClaw的强大之处在于可搭配各类技能,以下是常用必备技能和辅助技能,点击链接即可直达使用,按需收藏。

1. 必备技能(核心常用)

技能类型

链接地址

自我改进学习

https://clawhub.ai/pskoett/self-improving-agent

自动寻找技能

https://clawhub.ai/JimLiuxinghai/find-skills

文本文件总结

https://clawhub.ai/steipete/summarize

文本拟人化

https://clawhub.ai/biostartechnology/humanizer

技能审核

https://clawhub.ai/spclaudehome/skill-vetter

主动思考

https://clawhub.ai/halthelobster/proactive-agent

生成图片

https://clawhub.ai/steipete/nano-banana-pro

桌面控制

https://clawhub.ai/matagul/desktop-control

搜索能力

https://clawhub.ai/Jacky1n7/openclaw-tavily-search

2. 辅助技能(扩展功能)

技能类型

链接地址

技能仓库

https://clawhub.ai/steipete/clawdhub

营销技能

https://clawhub.ai/TheSethRose/marketing-mode

Playwright 浏览器

https://clawhub.ai/Spiceman161/playwright-mcp

Rust 浏览器

https://clawhub.ai/TheSethRose/agent-browser

创造技能

https://clawhub.ai/chindden/skill-creator

语音转文字

https://clawhub.ai/steipete/openai-whisper

天气

https://clawhub.ai/steipete/weather

长久记忆

https://clawhub.ai/jrbobbyhansen-pixel/memory-setup

github

https://clawhub.ai/steipete/github

pdf处理

https://clawhub.ai/steipete/nano-pdf

四、常用命令大全(新手必备,复制即用)

整理了OpenClaw日常使用高频命令,按功能分类,标注核心用途,新手直接复制粘贴执行,无需记命令!

1. 基础命令(入门必会)

# 查看当前安装版本openclaw --version# 查看帮助信息openclaw --help# 首次安装全流程引导配置openclaw onboard# 强制重新初始化(配置出错时用)openclaw onboard --force

2. 配置管理(高频使用)

# 查看所有配置项openclaw config list# 获取全部配置详情openclaw config get all# 单独查看模型配置openclaw config get models# 单独查看通道配置openclaw config get channels# 设置网关端口openclaw config set gateway.port 18789# 重置所有配置(慎用)openclaw config reset

3. 模型管理(核心功能)

# 列出所有已配置模型openclaw models list# 查看模型在线状态openclaw models status# 探测模型可用性(排障)openclaw models probe# 设置默认模型openclaw models set default "glm5" 

4. 通道管理(交互桥梁)

# 列出所有通道openclaw channels list # 查看通道连接状态openclaw channels status# 登录Telegram通道openclaw channels login telegram# 登出所有通道openclaw channels logout all

5. 网关管理(日常运维核心)

# 启动网关服务openclaw gateway start# 停止网关服务openclaw gateway stop# 重启网关(改配置后必用)openclaw gateway restart# 查看网关运行状态 openclaw gateway status # 安装为系统服务(开机自启,推荐)openclaw gateway install# 卸载系统服务openclaw gateway uninstall

6. 日志与调试(排障必备)

# 查看最近日志openclaw logs# 实时跟踪日志(类似tail -f)openclaw logs -f# 只看错误日志openclaw logs --error# 健康检查(自动诊断问题)openclaw doctor# 自动修复发现的问题openclaw doctor --fix

7. 插件与技能管理(扩展功能)

# 列出已安装插件openclaw plugins list# 安装新插件openclaw plugins install [插件名]# 启用插件openclaw plugins enable [插件名]# 禁用插件openclaw plugins disable [插件名]# 列出所有技能openclaw skills list# 启用指定技能openclaw skills enable [技能名]# 禁用指定技能openclaw skills disable [技能名]

8. 智能体管理(多智能体配置)

# 列出所有智能体openclaw agent list#创建新智能体openclaw agent create myagent# 删除智能体openclaw agent delete myagent# 切换到主智能体openclaw agent use main# 直接和智能体对话openclaw agent chat "你好"