echo-lgtm/dsh-plugin-wechat-official ↗★ 0
dsh-plugin-wechat-official
DeepSeek Harness 微信 ClawBot 渠道插件:通过腾讯官方 iLink 接口让用户在个人微信中与 DSH Agent 对话(官方通道,非逆向/非Hook)
AI 分析
通过官方合规通道将 DSH 接入个人微信。适合希望在手机微信中随时随地与自己的 DSH 智能体进行对话交互的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:echo-lgtm/dsh-plugin-wechat-official說明文件
閱讀完整 README ↗配置
| 字段 | 默认值 | 说明 |
|---|---|---|
storageDir | $DSH_HOME/wechat-clawbot | 凭证与二维码文件存储目录 |
autoLogin | true | 启动时自动恢复已保存会话;无凭证时自动进入扫码登录 |
qrcodeOutput | both | 二维码展示方式:log / file / both |
qrcodeScanTimeoutMs | 600000 | 等待扫码的最长时间(毫秒) |
sessionDurationMs | 86400000 | iLink 连接有效期(毫秒,约 24 小时) |
reconnectWarningBeforeMs | 7200000 | 到期前多久向最近联系人发送重连提醒(毫秒) |
reconnectReminderIntervalMs | 1800000 | 用户回复 N 后再次提醒的间隔(毫秒) |
reconnectForceBeforeMs | 1800000 | 到期前多久开始强制重连(毫秒) |
longPollTimeoutMs | 38000 | 长轮询超时(毫秒,微信最多 hold 35 秒) |
dmPolicy | open | 访问控制:open(所有人)/ allowlist(仅 allowFrom)/ disabled(关闭对话) |
allowFrom | [] | allowlist 模式下允许的用户 id 列表(形如 xxx@im.wechat) |
renderMarkdown | true | Agent 回复的 Markdown 是否转为微信友好的纯文本 |
welcomeText | 你好,我是 DeepSeek Harness Agent… | 新用户首次对话欢迎语 |
agentCwd | DSH 进程 cwd | Agent 工作目录 |
连接参数(
sessionDurationMs等)如需调小测试,例如sessionDurationMs: 300000, reconnectWarningBeforeMs: 60000, reconnectReminderIntervalMs: 30000, reconnectForceBeforeMs: 60000可在一分钟内跑完整个续连流程。
使用
在微信中向机器人发送消息:
-
直接发文字 → 转发给 DSH Agent,回复经
sendmessage送达,期间对方可见「正在输入」。 -
发语音 → 若微信已附带转写文字,则以
[语音] 转写内容形式转发给 Agent。 -
发图片 / 文件 / 视频 → 以占位描述(
[图片]等)转发给 Agent,由 Agent 决定如何回应。 -
内置指令:
指令 作用 /help或/指令查看指令列表 /time查询当前连接剩余时间 /status查看 Bot 运行状态 /重新连接立即重新连接(需回复 Y 确认)
每个用户拥有独立的 Agent 会话(带完整对话历史),也可在 DSH Web UI 的会话列表中查看。