echo-lgtm/dsh-plugin-wechat-official0

dsh-plugin-wechat-official

DeepSeek Harness 微信 ClawBot 渠道插件:通过腾讯官方 iLink 接口让用户在个人微信中与 DSH Agent 对话(官方通道,非逆向/非Hook)

AI Analysis

通过官方合规通道将 DSH 接入个人微信。适合希望在手机微信中随时随地与自己的 DSH 智能体进行对话交互的用户。

Package
dsh-plugin-wechat-official
Version
0.1.0
License
MIT
Last updated
Aug 15, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:echo-lgtm/dsh-plugin-wechat-official

配置

字段默认值说明
storageDir$DSH_HOME/wechat-clawbot凭证与二维码文件存储目录
autoLogintrue启动时自动恢复已保存会话;无凭证时自动进入扫码登录
qrcodeOutputboth二维码展示方式:log / file / both
qrcodeScanTimeoutMs600000等待扫码的最长时间(毫秒)
sessionDurationMs86400000iLink 连接有效期(毫秒,约 24 小时)
reconnectWarningBeforeMs7200000到期前多久向最近联系人发送重连提醒(毫秒)
reconnectReminderIntervalMs1800000用户回复 N 后再次提醒的间隔(毫秒)
reconnectForceBeforeMs1800000到期前多久开始强制重连(毫秒)
longPollTimeoutMs38000长轮询超时(毫秒,微信最多 hold 35 秒)
dmPolicyopen访问控制:open(所有人)/ allowlist(仅 allowFrom)/ disabled(关闭对话)
allowFrom[]allowlist 模式下允许的用户 id 列表(形如 xxx@im.wechat
renderMarkdowntrueAgent 回复的 Markdown 是否转为微信友好的纯文本
welcomeText你好,我是 DeepSeek Harness Agent…新用户首次对话欢迎语
agentCwdDSH 进程 cwdAgent 工作目录

连接参数(sessionDurationMs 等)如需调小测试,例如 sessionDurationMs: 300000, reconnectWarningBeforeMs: 60000, reconnectReminderIntervalMs: 30000, reconnectForceBeforeMs: 60000 可在一分钟内跑完整个续连流程。


使用

在微信中向机器人发送消息:

  • 直接发文字 → 转发给 DSH Agent,回复经 sendmessage 送达,期间对方可见「正在输入」。

  • 发语音 → 若微信已附带转写文字,则以 [语音] 转写内容 形式转发给 Agent。

  • 发图片 / 文件 / 视频 → 以占位描述([图片] 等)转发给 Agent,由 Agent 决定如何回应。

  • 内置指令

    指令作用
    /help/指令查看指令列表
    /time查询当前连接剩余时间
    /status查看 Bot 运行状态
    /重新连接立即重新连接(需回复 Y 确认)

每个用户拥有独立的 Agent 会话(带完整对话历史),也可在 DSH Web UI 的会话列表中查看。