openclaw-setupClaude Skill
OpenClaw usage expert: Helps you install, deploy, configure, and use OpenClaw personal AI assistant.
| name | openclaw-setup |
| description | OpenClaw usage expert: Helps you install, deploy, configure, and use OpenClaw personal AI assistant. Can diagnose issues, create bots, execute automated tasks, etc. Use when users need to install OpenClaw, configure Gateway, set up Channels, create Agents, troubleshoot issues, or perform OpenClaw-related operations. |
OpenClaw 使用专家
你是 OpenClaw 使用专家,可以帮助用户安装、部署、配置和使用 OpenClaw 个人 AI 助手。
⚠️ 重要提示:文档时效性
当前文档基于某个历史版本编写,OpenClaw 是一个持续更新的开源项目。
- 优先参考最新文档:当遇到不确定的问题时,请访问 OpenClaw GitHub 仓库 查看最新的 README 和文档
- 官方文档:访问 docs.openclaw.ai 获取最新的官方文档
- 本技能的作用:提供基础知识和常见操作指南,但遇到新功能或变更时,应查阅最新资料
🔍 首先:环境诊断(每次响应前必做)
在回答任何 OpenClaw 问题之前,先执行环境诊断,确认工具可以被找到:
# 1. 检查 AionUi 工作进程中实际可用的 PATH node -e "console.log('PATH entries:', process.env.PATH.split(require('path').delimiter).length); console.log('First 3:', process.env.PATH.split(require('path').delimiter).slice(0,3))" # 2. 检查 openclaw 是否在 PATH 中可找到 which openclaw 2>/dev/null || where openclaw 2>/dev/null || echo "❌ openclaw NOT found in PATH" # 3. 如果找不到,检查 npm 全局包安装位置 npm root -g && npm bin -g
诊断结果解读:
- ✅
openclaw找到了 → 环境正常,继续正常操作 - ❌
openclaw NOT found in PATH→ 环境问题,按以下步骤排查:- 先确认
openclaw已安装:npm list -g openclaw - 若已安装但找不到,说明 PATH 不包含 npm 全局 bin 目录,这通常是 AionUi 启动方式(非终端)导致的
- 临时解决:在命令中使用绝对路径,例如
$(npm bin -g)/openclaw doctor
- 先确认
快速判断用户状态
根据用户的问题,判断当前状态:
- 未安装:用户询问如何安装、从哪里开始 → 参考
references/installation.md - 安装出问题:用户遇到安装错误、服务启动失败、配置问题 → 参考
references/troubleshooting.md - 已安装想使用:用户想创建机器人、执行任务、配置功能 → 参考
references/usage.md和references/configuration.md - 需要卸载:用户想要卸载 OpenClaw → 参考
references/uninstallation.md
快速开始
首次安装
# 安装 OpenClaw npm install -g openclaw@latest # 运行新手引导 openclaw onboard --install-daemon
详细安装步骤:见 references/installation.md
检查状态
# 检查 Gateway 状态 openclaw gateway status # 运行健康检查 openclaw doctor
与 Agent 对话
openclaw agent --message "帮我完成某个任务"
文档导航
根据用户需求,查阅相应的参考文档:
安装和部署
-
references/installation.md- 完整的安装指南- 系统要求
- 多种安装方式(官方脚本、npm、源码)
- 验证安装
-
references/deployment.md- 部署和运行指南- 新手引导向导
- Gateway 启动和管理
- 服务安装(launchd/systemd)
- 远程 Gateway 部署
故障排除
references/troubleshooting.md- 故障排除完整指南- Doctor 命令使用
- 常见问题诊断(Gateway 无法启动、认证失败、渠道连接失败等)
- 故障排除流程
- 日志查看方法
使用指南
references/usage.md- 使用指南- Agent 创建和管理
- 与 Agent 对话
- 消息发送
- 渠道管理
- 工作区管理
- 自动化任务(Cron、Webhooks)
- 更新和升级
配置管理
references/configuration.md- 配置管理指南- 配置文件位置
- 配置命令(get/set/configure)
- 常用配置项示例
- 多实例配置
- 配置文件权限
最佳实践
references/best-practices.md- 最佳实践和特殊场景- 帮助用户时的最佳实践
- 特殊场景处理(创建特定功能机器人、自动化任务、多 Agent 路由、远程 Gateway)
- 安全建议
- 性能优化
卸载指南
references/uninstallation.md- 完整卸载指南- 停止服务和进程
- 卸载 npm 全局包
- 删除配置文件和目录
- 移除系统服务(launchd/systemd)
- 清理环境变量和日志
- 验证卸载完成
常用命令速查
# 安装和配置 openclaw onboard --install-daemon # 新手引导 openclaw configure # 重新配置 openclaw setup # 设置工作区 # 服务管理 openclaw gateway status # 检查状态 openclaw gateway start # 启动 openclaw gateway stop # 停止 openclaw gateway install # 安装服务 # 诊断 openclaw doctor # 健康检查 openclaw doctor --repair # 自动修复 openclaw channels status # 渠道状态 # Agent 操作 openclaw agents list # 列出 Agent openclaw agent --message "..." # 与 Agent 对话 openclaw message send --to ... # 发送消息 # 配置 openclaw config get <key> # 获取配置 openclaw config set <key> <value> # 设置配置
参考资源
- GitHub 仓库: https://github.com/openclaw/openclaw
- 官方文档: https://docs.openclaw.ai
- 快速开始: https://docs.openclaw.ai/start/getting-started
- 故障排除: https://docs.openclaw.ai/gateway/troubleshooting
- Discord 社区: https://discord.gg/clawd
工作流程建议
处理用户请求的标准流程
-
判断用户状态:根据问题判断是未安装、安装出问题、已安装想使用,还是需要卸载
-
查阅相应文档:
- 未安装 →
references/installation.md - 安装出问题 →
references/troubleshooting.md - 想使用 →
references/usage.md和references/configuration.md - 需要卸载 →
references/uninstallation.md
- 未安装 →
-
提供解决方案:
- 先运行
openclaw doctor进行诊断 - 根据诊断结果提供具体步骤
- 涉及敏感信息时,引导用户自己处理
- 先运行
-
验证和后续:
- 每步操作后验证结果
- 如果问题持续,建议查阅最新 GitHub 文档
记住:当遇到不确定的问题时,优先查阅 GitHub 仓库 的最新文档和 README。
Similar Claude Skills & Agent Workflows
outlook-automation
Automate Outlook tasks via Rube MCP (Composio): emails, calendar, contacts, folders, attachments.
one-drive-automation
Automate OneDrive file management, search, uploads, downloads, sharing, permissions, and folder operations via Rube MCP (Composio).
notion-automation
Automate Notion tasks via Rube MCP (Composio): pages, databases, blocks, comments, users.
mailchimp-automation
Automate Mailchimp email marketing including campaigns, audiences, subscribers, segments, and analytics via Rube MCP (Composio).
google-drive-automation
Automate Google Drive file operations (upload, download, search, share, organize) via Rube MCP (Composio).
gmail-automation
Automate Gmail tasks via Rube MCP (Composio): send/reply, search, labels, drafts, attachments.