← Back to Skills Marketplace
binbin

Install OpenClaw

by Beta · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
393
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install auto-install-openclaw
Description
OpenClaw 全自动安装、配置和修复工具。包括:OpenClaw 安装、Claude API 中转站配置、飞书插件集成、bug 自动修复。当用户需要安装、配置或修复 OpenClaw 时使用此技能。
README (SKILL.md)

OpenClaw 全自动安装与配置

概述

本技能提供 OpenClaw 的一站式安装、配置和维护服务:

  1. 全自动安装 OpenClaw - 一键安装最新版本的 OpenClaw
  2. Claude API 中转站配置 - 接入用户的 AI 中转站
  3. 飞书插件集成 - 安装并配置飞书消息通道
  4. Bug 自动修复 - 检测并修复 OpenClaw 的常见问题

依赖

确保已安装:

  • Node.js 18+
  • pnpm
  • Python 3.8+

工作流程

阶段一:学习 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 是一个自托管网关,连接聊天应用(WhatsApp、Telegram、Discord、iMessage 等)到 AI 助手
  • 核心组件:Gateway(网关)、Control UI(控制界面)、Plugins(插件)
  • 配置文件位置:~/.openclaw/
  • 日志文件位置:~/.openclaw/logs/

阶段二:检查 OpenClaw 安装状态

# 检查是否已安装
which openclaw
openclaw --version

# 检查网关状态
openclaw gateway status

# 查看日志
openclaw logs --tail 100

阶段三:全自动安装 OpenClaw

如果未安装或需要重新安装:

# 使用官方安装脚本
curl -fsSL https://openclaw.ai/install.sh | bash

# 或使用 pnpm 安装
pnpm add -g openclaw

# 验证安装
openclaw --version

阶段四:配置 Claude API 中转站

根据用户提供的中转站配置文档进行配置:

配置信息:

  • AI 中转站 URL:https://ai.jiexi6.cn
  • API Key:用户自行提供

配置步骤:

  1. 编辑 OpenClaw 配置文件:
# 编辑模型配置
nano ~/.openclaw/config/models.json
  1. 添加中转站配置:
{
  "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"]
    }
  }
}
  1. 验证配置:
openclaw models list
openclaw models test claude

阶段五:安装飞书插件

步骤:

  1. 获取飞书应用凭证:

    • 访问 飞书开放平台
    • 创建自建应用
    • 获取 App ID 和 App Secret
    • 配置 Bot 权限
  2. 安装飞书插件:

# 安装飞书通道插件
openclaw plugins install feishu

# 或手动安装
cd ~/.openclaw/plugins
git clone https://github.com/openclaw/feishu-plugin.git
  1. 配置飞书插件:
# 编辑飞书配置
nano ~/.openclaw/config/feishu.json

配置内容:

{
  "appId": "cli_xxxxxxxxxxxxx",
  "appSecret": "xxxxxxxxxxxxxxxxxxxxx",
  "verificationToken": "xxxxxxxxxxxxxxxxxxxxx",
  "encryptKey": "xxxxxxxxxxxxxxxxxxxxx"
}
  1. 启动飞书通道:
openclaw channels enable feishu
openclaw channels status feishu

阶段六:Bug 自动检测与修复

常见问题及修复:

  1. 网关无法启动:
# 检查端口占用
lsof -i :8080

# 清理并重启
openclaw gateway stop
openclaw gateway clean
openclaw gateway start
  1. 模型连接失败:
# 测试 API 连接
curl -X POST https://ai.jiexi6.cn/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

# 更新模型配置
openclaw models refresh
  1. 插件加载失败:
# 重新安装插件
openclaw plugins reinstall feishu

# 检查插件依赖
cd ~/.openclaw/plugins/feishu
pnpm install
  1. 日志文件过大:
# 清理旧日志
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

常见问题

  1. 权限问题:
chmod -R 755 ~/.openclaw
  1. 依赖问题:
cd ~/.openclaw
pnpm install
  1. 配置问题:
# 重置配置
openclaw config reset

# 重新配置
openclaw onboard

记忆要点

将以下信息写入 MEMORY.md:

  1. OpenClaw 安装路径: ~/Library/pnpm/global/*/node_modules/openclaw/
  2. 配置目录: ~/.openclaw/
  3. 日志目录: ~/.openclaw/logs/
  4. AI 中转站 URL: https://ai.jiexi6.cn
  5. 飞书文档: https://open.feishu.cn/document/server-docs/docs/docs/docx-v1/docx-overview

下一步

安装完成后:

  1. 运行 openclaw onboard 完成向导设置
  2. 访问 Control UI:http://localhost:8080
  3. 配对移动设备
  4. 测试消息收发

参考文档:

  • OpenClaw 官方文档:https://docs.openclaw.ai/
  • 飞书开放平台:https://open.feishu.cn/
  • AI 中转站配置文档:用户提供的飞书文档
Usage Guidance
This skill largely does what it says, but please do the following before running it: (1) Verify the ai.jiexi6.cn service—do not hand over API keys unless you trust that endpoint; consider using an official or self‑hosted gateway instead. (2) Inspect the remote installer (https://openclaw.ai/install.sh) before running curl | bash. (3) Be aware the scripts save API keys and Feishu credentials in plaintext under ~/.openclaw; if you proceed, restrict file permissions and consider storing secrets in a safer vault. (4) Review the cloned plugin repository (github.com/openclaw/feishu-plugin) after cloning and before starting the gateway. (5) If uncertain, run these scripts in a disposable/test environment or container first.
Capability Analysis
Type: OpenClaw Skill Name: auto-install-openclaw Version: 1.0.0 The skill bundle is designed to install OpenClaw and configure it to use a specific third-party API proxy (https://ai.jiexi6.cn). The scripts 'configure-claude.sh' and 'fix-bugs.sh' handle sensitive API keys and transmit them to this external endpoint via curl for 'connection testing.' While this aligns with the stated goal of using that specific service, the promotion of an unofficial proxy for sensitive AI traffic and the use of 'curl | bash' for installation in 'SKILL.md' are high-risk behaviors that could lead to credential harvesting or supply chain compromise.
Capability Assessment
Purpose & Capability
Name/description match the actual actions: installing OpenClaw, configuring a Claude-compatible model endpoint, and installing a Feishu plugin. However the skill consistently directs users to a specific third‑party AI gateway (https://ai.jiexi6.cn) rather than leaving provider choice generic; this is a design decision that should be questioned but is related to the stated purpose.
Instruction Scope
Runtime instructions and scripts perform expected operations (install, clone plugin, create ~/.openclaw configs, test API connections). They also instruct executing a remote install script via curl | bash (https://openclaw.ai/install.sh) and hardcode the ai.jiexi6.cn base URL in configs. The scripts prompt for and persist secrets (API keys, Feishu credentials) to ~/.openclaw/*.json in plaintext and read those files (e.g., fix-bugs.sh greps models.json). These actions are within install scope but widen the attack surface (remote script execution and plaintext credential storage).
Install Mechanism
No packaged install spec, but included scripts use standard package managers (pnpm, npm) and git clone from GitHub. There are no obscure or short‑URL downloads in the bundle. The one remote script execution is a curl of https://openclaw.ai/install.sh piped to bash—common but high‑risk if the target site is not verified.
Credentials
The skill does not declare required env vars but prompts the user for an AI gateway API key and Feishu credentials and writes them to config files. Requesting those secrets is proportional to the task, but storing them unencrypted in ~/.openclaw/models.json and ~/.openclaw/feishu.json is noteworthy and may expose credentials to other local users or processes. Also the use of ai.jiexi6.cn is not justified in metadata and is an external third party receiving validation requests.
Persistence & Privilege
The skill does not request always:true or elevated system privileges. It creates and modifies files under the user's home (~/.openclaw), installs global npm/pnpm packages if run (pnpm add -g openclaw), and may restart services via openclaw commands—reasonable for an installer but impactful. Nothing modifies other skills or system-wide agent configs beyond normal install behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install auto-install-openclaw
  3. After installation, invoke the skill by name or use /auto-install-openclaw
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
首次发布
Metadata
Slug auto-install-openclaw
Version 1.0.0
License
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Install OpenClaw?

OpenClaw 全自动安装、配置和修复工具。包括:OpenClaw 安装、Claude API 中转站配置、飞书插件集成、bug 自动修复。当用户需要安装、配置或修复 OpenClaw 时使用此技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 393 downloads so far.

How do I install Install OpenClaw?

Run "/install auto-install-openclaw" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Install OpenClaw free?

Yes, Install OpenClaw is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Install OpenClaw support?

Install OpenClaw is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Install OpenClaw?

It is built and maintained by Beta (@binbin); the current version is v1.0.0.

💬 Comments