with one click
install-openclaw
// 在 RPM 包管理的 Linux 服务器(如 Alibaba Cloud Linux)上安装和配置 OpenClaw,接入钉钉频道与阿里云百炼(通义千问)模型。当用户需要部署 OpenClaw、配置钉钉机器人、接入 DashScope/Qwen 模型、排查 OpenClaw 网关无法启动、或遇到插件不加载等问题时使用此技能。包含完整踩坑记录与正确配置结构。
// 在 RPM 包管理的 Linux 服务器(如 Alibaba Cloud Linux)上安装和配置 OpenClaw,接入钉钉频道与阿里云百炼(通义千问)模型。当用户需要部署 OpenClaw、配置钉钉机器人、接入 DashScope/Qwen 模型、排查 OpenClaw 网关无法启动、或遇到插件不加载等问题时使用此技能。包含完整踩坑记录与正确配置结构。
| name | install-openclaw |
| version | 1.0.0 |
| description | 在 RPM 包管理的 Linux 服务器(如 Alibaba Cloud Linux)上安装和配置 OpenClaw,接入钉钉频道与阿里云百炼(通义千问)模型。当用户需要部署 OpenClaw、配置钉钉机器人、接入 DashScope/Qwen 模型、排查 OpenClaw 网关无法启动、或遇到插件不加载等问题时使用此技能。包含完整踩坑记录与正确配置结构。 |
| layer | application |
| lifecycle | usage |
install-openclaw/
├── SKILL.md # 本文件,主流程
├── scripts/
│ └── configure_openclaw_dingtalk.py # 配置写入脚本(钉钉频道)
└── references/
├── troubleshooting.md # 所有已知踩坑与排查手册
└── dingtalk-setup-guide.md # 钉钉开发者平台配置详细步骤
遇到问题时先查 references/troubleshooting.md,钉钉侧操作细节查 references/dingtalk-setup-guide.md。
优先使用系统包管理器(推荐)
# Linux 仓库自带 Node.js 22
dnf install -y nodejs
node -v && npm -v
nvm 方式(系统源没有 Node.js 22 时的备选)
touch ~/.zshrc
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.zshrc
nvm install 22 && nvm use 22 && node -v
⚠️ 先检查是否安装 git
dnf install git
# npm 方式安装
npm i -g openclaw
# 如果速度慢可以指定国内镜像
npm i -g openclaw --registry=https://registry.npmmirror.com
# 备选考虑使用脚本安装
curl -fsSL https://openclaw.ai/install.sh | bash
检验是否安装成功
openclaw --version
# 标准安装
openclaw plugins install @soimy/dingtalk
# 国内网络超时时加镜像
NPM_CONFIG_REGISTRY=https://registry.npmmirror.com openclaw plugins install @soimy/dingtalk
验证:
openclaw plugins list # 输出中应包含 dingtalk,状态为 installed
安装中断导致半安装状态的修复方法见
references/troubleshooting.md— 坑 7。
向用户收集以下信息:
| 参数 | 说明 | 来源 |
|---|---|---|
--dingtalk-client-id | 钉钉应用 AppKey | 钉钉开发者后台 |
--dingtalk-client-secret | 钉钉应用 AppSecret | 同上 |
--dashscope-api-key | 百炼 API Key | 百炼控制台 |
| 参数 | 默认值 | 说明 |
|---|---|---|
--model-id | qwen3-max-2026-01-23 | 模型版本 |
--dm-policy | open | 私聊策略:open / pairing / allowlist |
--group-policy | open | 群聊策略:open / allowlist |
--message-type | markdown | 消息类型:markdown / card |
--dingtalk-robot-code | - | 机器人代码(通常与 AppKey 相同) |
--dingtalk-corp-id | - | 企业 ID |
--dingtalk-agent-id | - | 应用 ID |
脚本位于 scripts/configure_openclaw_dingtalk.py,直接读写 ~/.openclaw/openclaw.json(deep_merge 策略,不覆盖已有 plugins.entries / installs / gateway.auth 等系统字段)。
python3 /path/to/scripts/configure_openclaw_dingtalk.py \
--dingtalk-client-id "dingxxxxxx" \
--dingtalk-client-secret "your-secret" \
--dashscope-api-key "sk-xxxxxxxx" \
--model-id "qwen3-max-2026-01-23" \
--dm-policy "open" \
--group-policy "open" \
--message-type "markdown"
卡片模式额外参数:
--message-type "card" \
--card-template-id "xxxxx-xxxxx-xxxxx.schema" \
--card-template-key "content"
脚本写入的配置节:plugins、models、agents、channels、messages、commands、session、gateway.mode、skills.load。
安装 gateway
openclaw gateway install
运行 doctor 生成 gateway.auth.token:
openclaw doctor --fix
重要:
doctor --fix只写gateway.auth.token,不写gateway.mode。 配置脚本已自动写入gateway.mode: "local",但如果跳过了脚本直接到这步,网关会启动失败。 详见references/troubleshooting.md— 坑 1。
doctor 完成后确认 openclaw.json 中同时存在:
"gateway": {
"mode": "local",
"auth": { "mode": "token", "token": "..." }
}
openclaw gateway restart
ss -tlnp | grep 18789 # 应看到端口监听
openclaw gateway status
如果端口不监听,立即运行:
openclaw gateway run --verbose 2>&1 | head -5 # 查看实际报错
常见原因和修复方法见 references/troubleshooting.md。
配置脚本执行完成后,告知用户完成以下钉钉侧设置:
Card.Instance.Write、Card.Streaming.Write、机器人消息发送、媒体文件上传详细步骤见 references/dingtalk-setup-guide.md。
| 操作 | 命令 |
|---|---|
| 重启 | openclaw gateway restart |
| 停止 | openclaw gateway stop |
| 状态 | openclaw gateway status |
| 健康检查 | openclaw gateway health |
| 前台调试 | openclaw gateway run --verbose |
| 更新插件 | openclaw plugins update dingtalk |
| 更新插件(国内) | NPM_CONFIG_REGISTRY=https://registry.npmmirror.com openclaw plugins update dingtalk |
{
"meta": { "lastTouchedVersion": "...", "lastTouchedAt": "..." },
"wizard": { "lastRunAt": "...", "lastRunVersion": "...", "lastRunCommand": "doctor", "lastRunMode": "local" },
"gateway": {
"mode": "local",
"auth": { "mode": "token", "token": "..." }
},
"plugins": {
"enabled": true,
"allow": ["dingtalk"],
"entries": { "dingtalk": { "enabled": true } },
"installs": { "dingtalk": { "source": "npm", "spec": "@soimy/dingtalk", ... } }
},
"models": {
"mode": "merge",
"providers": {
"bailian": {
"baseUrl": "https://dashscope.aliyuncs.com/compatible-mode/v1",
"apiKey": "sk-...",
"api": "openai-completions",
"models": [{ "id": "qwen3-max-2026-01-23", "name": "qwen3-max-thinking", "reasoning": false, "input": ["text"], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 262144, "maxTokens": 65536 }]
}
}
},
"agents": {
"defaults": {
"model": { "primary": "bailian/qwen3-max-2026-01-23" },
"models": { "bailian/qwen3-max-2026-01-23": { "alias": "qwen3-max-thinking" } },
"maxConcurrent": 4,
"subagents": { "maxConcurrent": 8 }
}
},
"channels": {
"dingtalk": {
"enabled": true,
"clientId": "dingxxxxxx",
"clientSecret": "...",
"dmPolicy": "open",
"groupPolicy": "open",
"debug": false,
"messageType": "markdown",
"allowFrom": ["*"]
}
},
"messages": { "ackReactionScope": "group-mentions" },
"commands": { "native": "auto", "nativeSkills": "auto", "restart": true, "ownerDisplay": "raw" },
"session": { "dmScope": "per-channel-peer" },
"skills": {
"load": {
"extraDirs": ["/usr/share/anolisa/skills"]
}
}
}
工作区快照管理。用户说"保存一下"、"存个快照"时创建 checkpoint; 说"回滚"、"撤销"、"恢复到之前"时 rollback;说"删掉快照"时 delete; 说"看看快照"、"有哪些快照"时 list;说"查看快照状态"、"查看快照剩余空间"时 status。
Skill 安全状态查看、快速扫描认证与可选深度扫描。支持用户主动查看或扫描单个/全部 Skill;当用户要求 agent 安装 Skill 且安装成功后,必须自动对最终本地目录执行快速扫描认证。
通过命令行或 Dashboard(前端) 查询 AgentSight 平台的 token 消耗数据、token 节省(优化)数据、审计事件和会话中断事件。当用户询问 token 用量、花费、消耗趋势、token 节省、优化效果、LLM 调用、进程行为审计,或询问会话中断、Agent 异常、LLM 错误等中断事件时使用此技能。
One-click installation and configuration of Hermes Agent by Nous Research. Handles installing Hermes from scratch, adding LLM providers (OpenRouter, Anthropic, OpenAI, z.ai/GLM, Kimi, DeepSeek, Alibaba Qwen, Ollama, etc.), setting up messaging platforms (Telegram, Discord, Slack, DingTalk, Feishu/Lark, Weixin, WeCom), installing Hermes Workspace web UI, and migrating from OpenClaw. Use when the user asks about installing Hermes, setting up a provider, configuring a messaging platform, adding a bot, or any Hermes setup task.
Search, install, uninstall, update and manage agent skills. Use when the user asks to find/search/install/uninstall/update/list/explore skills, asks "how do I do X" or "find a skill for X", or wants to extend agent capabilities in a specific domain.
Open, create, read, analyze, edit, or validate Excel/spreadsheet files (.xlsx, .xlsm, .csv, .tsv). Use when the user asks to create, build, modify, analyze, read, validate, or format any Excel spreadsheet, financial model, pivot table, or tabular data file. Covers: creating new xlsx from scratch, reading and analyzing existing files, editing existing xlsx with zero format loss, formula recalculation and validation, and applying professional financial formatting standards.