← Back to Skills Marketplace
k55k32

DingTalk Channel Install

by Diamond Zhou · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
758
Downloads
0
Stars
5
Active Installs
3
Versions
Install in OpenClaw
/install dingtalk-channel-install
Description
安装和配置 OpenClaw 钉钉通道。使用当用户需要:(1) 安装 @soimy/dingtalk 插件,(2) 配置钉钉通道(Client ID/Secret 等),(3) 设置钉钉机器人连接。提供一键安装脚本和完整配置流程。
README (SKILL.md)

钉钉通道安装配置

快速安装和配置 OpenClaw 钉钉通道,实现钉钉与 OpenClaw 的双向通信。

⚠️ 安全提示

切勿将真实的 Client ID/Secret 提交到代码仓库! 示例中的凭证均为占位符,请替换为你自己的凭证。

快速开始

方式一:使用安装脚本(推荐)

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3C你的 Client ID> \
  --client-secret \x3C你的 Client Secret>

方式二:手动安装

  1. 安装插件

    openclaw plugins install @soimy/dingtalk
    
  2. 配置 channels - 编辑 ~/.openclaw/openclaw.json

    {
      "channels": {
        "dingtalk": {
          "enabled": true,
          "clientId": "\x3C你的 Client ID>",
          "clientSecret": "\x3C你的 Client Secret>",
          "dmPolicy": "open",
          "groupPolicy": "open",
          "showThinking": true,
          "thinkingMessage": "🤔 思考中,请稍候...",
          "debug": false,
          "messageType": "markdown",
          "allowFrom": ["*"]
        }
      }
    }
    
  3. 重启 Gateway

    openclaw gateway restart
    

脚本参数说明

参数 必填 说明
--client-id 钉钉应用 Client ID
--client-secret 钉钉应用 Client Secret
--robot-code 机器人 Code
--corp-id 企业 Corp ID
--agent-id 应用 Agent ID
--card-template-id 卡片模板 ID(仅 card 模式)
--card-template-key 卡片模板内容变量(仅 card 模式)
--message-type 消息类型:markdown/card,默认 markdown
--skip-restart 跳过 gateway 重启
--config-path 配置文件路径,默认 ~/.openclaw/openclaw.json

完整示例

基础配置(markdown 消息)

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3C你的 Client ID> \
  --client-secret \x3C你的 Client Secret>

卡片消息模式

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3CclientId> \
  --client-secret \x3CclientSecret> \
  --message-type card \
  --card-template-id \x3C模板 ID> \
  --card-template-key \x3C模板变量>

企业应用模式(带 corpId 和 agentId)

python3 ~/.openclaw/workspace/my-skills/skills/dingtalk-channel-install/scripts/install_dingtalk.py \
  --client-id \x3CclientId> \
  --client-secret \x3CclientSecret> \
  --corp-id \x3CcorpId> \
  --agent-id \x3CagentId>

配置说明

必填配置

  • clientId: 钉钉应用的唯一标识
  • clientSecret: 应用密钥,用于身份验证

可选配置

  • dmPolicy: "open" 允许私聊,"restricted" 限制私聊
  • groupPolicy: "open" 允许群聊,"restricted" 限制群聊
  • allowFrom: 允许的聊天来源,["*"] 表示允许所有
  • messageType: "markdown""card"
  • showThinking: 是否显示思考状态
  • debug: 调试模式

验证安装

  1. 检查插件状态:

    openclaw plugins list
    
  2. 检查配置:

    openclaw gateway status
    
  3. 在钉钉中添加机器人并发送消息测试

故障排查

插件重复警告

plugins.entries.dingtalk: plugin dingtalk: duplicate plugin id detected

这是正常警告,不影响使用。如需清理,删除重复的插件目录后重启。

配置验证失败

运行 openclaw doctor --fix 自动修复配置问题。

消息无法发送

  1. 检查 Client ID/Secret 是否正确
  2. 确认钉钉应用已配置机器人
  3. 检查 allowFrom 设置是否匹配 dmPolicy/groupPolicy

参考资源

Usage Guidance
This skill appears to do exactly what it says: install the @soimy/dingtalk plugin and add the DingTalk channel to your OpenClaw config. Before running it: (1) inspect the included script (it's short and readable) and confirm the config path is correct; (2) back up ~/.openclaw/openclaw.json so you can restore prior settings; (3) avoid committing clientId/clientSecret into source control — the script writes them in plaintext to the OpenClaw config; (4) verify you trust the @soimy/dingtalk plugin source (SKILL.md links the GitHub repo) and that the openclaw CLI on your system is legitimate; (5) consider running with --skip-restart and restarting the gateway manually after review. If you need greater assurance, confirm the plugin package contents and origin before installing.
Capability Analysis
Type: OpenClaw Skill Name: dingtalk-channel-install Version: 1.0.2 The skill bundle is a legitimate utility for installing and configuring the OpenClaw DingTalk channel. The provided Python script (scripts/install_dingtalk.py) safely automates the installation of the '@soimy/dingtalk' plugin and updates the local configuration file (~/.openclaw/openclaw.json) using standard practices, such as avoiding shell injection in subprocess calls and providing clear warnings about credential management in SKILL.md.
Capability Assessment
Purpose & Capability
Name/description state installing/configuring a DingTalk channel; the script installs the @soimy/dingtalk plugin, updates ~/.openclaw/openclaw.json, and restarts the gateway — all consistent with that purpose. No unrelated credentials or binaries are requested.
Instruction Scope
SKILL.md and the script limit actions to installing the plugin, writing the specified OpenClaw config path, and restarting the gateway. They do not read or transmit other system files or environment variables beyond what is needed.
Install Mechanism
This is an instruction-only skill with a local Python script. There are no remote downloads or extract steps in the skill itself; the script invokes the openclaw CLI to install the plugin (expected behavior). No suspicious install URLs or archive extraction are present.
Credentials
No required environment variables or hidden credentials are declared. The script requires client-id and client-secret as command-line arguments (appropriate for configuring the channel). No unrelated secrets or config paths are requested.
Persistence & Privilege
The skill does not request always:true and is user-invocable. It writes only to the OpenClaw config (user-specified path) and enables the plugin — expected for a channel installer.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dingtalk-channel-install
  3. After installation, invoke the skill by name or use /dingtalk-channel-install
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- 更新了参考文档链接,现指向 OpenClaw 钉钉通道文档。 - 其余内容保持不变,无功能和脚本调整。
v1.0.1
fix shell injection risk
v1.0.0
- Initial release of dingtalk-channel-install skill for OpenClaw. - Provides one-click script and manual steps for installing and configuring the DingTalk channel. - Includes detailed setup instructions, parameters, example commands, and troubleshooting tips. - Supports both markdown and card message types, with options for enterprise app configuration. - Emphasizes security best practices for handling credentials.
Metadata
Slug dingtalk-channel-install
Version 1.0.2
License MIT-0
All-time Installs 7
Active Installs 5
Total Versions 3
Frequently Asked Questions

What is DingTalk Channel Install?

安装和配置 OpenClaw 钉钉通道。使用当用户需要:(1) 安装 @soimy/dingtalk 插件,(2) 配置钉钉通道(Client ID/Secret 等),(3) 设置钉钉机器人连接。提供一键安装脚本和完整配置流程。 It is an AI Agent Skill for Claude Code / OpenClaw, with 758 downloads so far.

How do I install DingTalk Channel Install?

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

Is DingTalk Channel Install free?

Yes, DingTalk Channel Install is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does DingTalk Channel Install support?

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

Who created DingTalk Channel Install?

It is built and maintained by Diamond Zhou (@k55k32); the current version is v1.0.2.

💬 Comments