OpenClaw 全自动安装、配置和修复工具。包括:OpenClaw 安装、Claude API 中转站配置、飞书插件集成、bug 自动修复。当用户需要安装、配置或修复 OpenClaw 时使用此技能。
本技能提供 OpenClaw 的一站式安装、配置和维护服务:
确保已安装:
首先阅读 OpenClaw 官方文档,成为 OpenClaw 专家:
# 阅读本地文档
ls ~/Library/pnpm/global/*/node_modules/openclaw/docs/
# 查看安装文档
cat ~/Library/pnpm/global/*/node_modules/openclaw/docs/install/*.md
# 查看网关配置文档
cat ~/Library/pnpm/global/*/node_modules/openclaw/docs/gateway/*.md
关键知识点:
~/.openclaw/~/.openclaw/logs/# 检查是否已安装
which openclaw
openclaw --version
# 检查网关状态
openclaw gateway status
# 查看日志
openclaw logs --tail 100
如果未安装或需要重新安装:
# 使用官方安装脚本
curl -fsSL https://openclaw.ai/install.sh | bash
# 或使用 pnpm 安装
pnpm add -g openclaw
# 验证安装
openclaw --version
根据用户提供的中转站配置文档进行配置:
配置信息:
https://ai.jiexi6.cn配置步骤:
# 编辑模型配置
nano ~/.openclaw/config/models.json
{
"models": {
"claude": {
"provider": "openai-compatible",
"baseUrl": "https://ai.jiexi6.cn/v1",
"apiKey": "用户_API_Key",
"models": ["claude-sonnet-4-5-20250929", "claude-opus-4-5-20250929"]
}
}
}
openclaw models list
openclaw models test claude
步骤:
获取飞书应用凭证:
安装飞书插件:
# 安装飞书通道插件
openclaw plugins install feishu
# 或手动安装
cd ~/.openclaw/plugins
git clone https://github.com/openclaw/feishu-plugin.git
# 编辑飞书配置
nano ~/.openclaw/config/feishu.json
配置内容:
{
"appId": "cli_xxxxxxxxxxxxx",
"appSecret": "xxxxxxxxxxxxxxxxxxxxx",
"verificationToken": "xxxxxxxxxxxxxxxxxxxxx",
"encryptKey": "xxxxxxxxxxxxxxxxxxxxx"
}
openclaw channels enable feishu
openclaw channels status feishu
常见问题及修复:
# 检查端口占用
lsof -i :8080
# 清理并重启
openclaw gateway stop
openclaw gateway clean
openclaw gateway start
# 测试 API 连接
curl -X POST https://ai.jiexi6.cn/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
# 更新模型配置
openclaw models refresh
# 重新安装插件
openclaw plugins reinstall feishu
# 检查插件依赖
cd ~/.openclaw/plugins/feishu
pnpm install
# 清理旧日志
openclaw logs clean --days 7
# 配置日志轮转
nano ~/.openclaw/config/logging.json
# 检查整体状态
openclaw status
# 测试消息发送
openclaw message send --channel feishu --to "测试用户" --message "测试消息"
# 查看运行状态
openclaw gateway logs --tail 50
运行全自动安装脚本:
# 进入技能目录
cd ~/.openclaw/workspace/skills/install-openclaw
# 运行安装脚本
./scripts/install.sh
# 运行配置脚本
./scripts/configure-claude.sh
# 运行飞书安装脚本
./scripts/install-feishu.sh
# 运行修复脚本
./scripts/fix-bugs.sh
# 查看网关日志
tail -f ~/.openclaw/logs/gateway.log
# 查看插件日志
tail -f ~/.openclaw/logs/plugins/feishu.log
# 使用 openclaw 命令查看
openclaw logs --follow
chmod -R 755 ~/.openclaw
cd ~/.openclaw
pnpm install
# 重置配置
openclaw config reset
# 重新配置
openclaw onboard
将以下信息写入 MEMORY.md:
~/Library/pnpm/global/*/node_modules/openclaw/~/.openclaw/~/.openclaw/logs/https://ai.jiexi6.cn安装完成后:
openclaw onboard 完成向导设置参考文档: