wendayuan/dsh-weixin
DeepSeek Harness 微信通道插件:通过手机微信直接与DSH智能体对话 | DSH的微信通道插件
项目介绍Project Overview
dsh-weixin 是 DeepSeek Harness 的微信通道插件,通过 iLink 扫码登录后,手机微信消息可直达 DSH agent,支持持久会话、执行命令、读写文件,并复用 DSH 凭据与 AGENTS.md 规则。适合在移动端远程指挥 agent 干活。注意消息经微信服务器、非端到端加密,且无白名单,勿发密码;DSH 重启会清空对话记忆。
dsh-weixin is a WeChat channel plugin for DeepSeek Harness. After a one-time QR login via iLink, messages from the WeChat app reach the DSH agent, enabling persistent sessions, command execution, file access, and reuse of DSH credentials and AGENTS.md rules. Use it to drive the agent from a phone. Caveat: messages pass through WeChat servers without end-to-end encryption, there is no sender whitelist, and restarting DSH clears conversation memory.
请帮我了解并安装插件:【dsh-weixin】【https://github.com/wendayuan/dsh-weixin】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add github:you/dsh-weixin
把 wendayuan/dsh-weixin 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-weixin
把微信变成 DeepSeek Harness(DSH)的入口:手机微信直接对话 DSH agent,干活、跑命令、读文件、查资料,和网页版同一套认知与规则。
WeChat channel plugin for DeepSeek Harness — chat with your DSH agent from the WeChat app.
特性
- 手机微信发消息 → DSH agent 干活 → 回复发回微信
- 上下文连续:每个微信对话一个持久 session
- 复用 DSH 现有模型凭据(
~/.dsh/.credentials.yaml),无需另配 - 自动加载
~/.dsh/AGENTS.md与 workspaceAGENTS.md(agent 具备与网页版一致的规则约束) - 随 DSH 进程常驻,无需独立守护进程
链路
手机微信 ── iLink 官方通道 ──> weixin-agent-sdk(长轮询)
│ Agent.chat()
▼
dsh-weixin 插件 ──> DSH agent(ctx.agents)
安装
dsh plugin --profile web add github:you/dsh-weixin
装完按下面「登录」扫码一次,之后随 DSH 自动运行。
登录(一次性)
插件复用微信官方 iLink 通道的扫码登录。任选一种:
方式一(推荐):用桥接器 CLI 预登录,凭证存 ~/.openclaw,插件直接复用:
npx weixin-acp login
终端打印二维码,手机微信扫码并确认,显示「✅ 与微信连接成功」即可。
方式二:装完插件后,首次启动 DSH 时日志会提示未登录,按提示登录。
登录凭证存于 ~/.openclaw/openclaw-weixin/accounts/(token,0600)。换号用 npx weixin-acp logout 再 login。
配置
在 profile 的 cordis.patch.yml 里覆盖(均为可选):
- id: weixin
name: dsh-weixin
config:
cwd: /path/to/workspace # agent 工作目录,默认 DSH 启动目录
provider: deepseek-official # 覆盖默认 provider 路由
model: deepseek-v4-pro # 覆盖默认模型
验证
微信里依次发:
- 「你是谁」→ 身份与工作目录正确
- 「记得刚才说了什么吗」→ 上下文连续
- 「用 bash 跑 pwd」→ 工具可用
- 一个只有 AGENTS.md 有答案的问题 → 规则注入生效
第一条消息可能慢 10~30 秒(agent 冷启动),属正常。
安全
- 消息走微信服务器,非端到端加密;别在微信里发密码/token。
- 插件无消息白名单,安全边界 = 你的微信账号;建议微信开双重验证/设备锁。
- API key 不落本插件任何文件,由 DSH 凭据服务解析。
说明
- 桥接底层用社区包
weixin-agent-sdk(走微信官方 iLink 通道,客户端代码非微信官方维护)。 - DSH 重启会清空微信对话记忆(文件改动不受影响)。
nexu-io/open-design
freestylefly/awesome-gpt-image-2
anywhere-labs/dsh-desktop
walkinglabs/learn-harness-engineering
awesome-dsh-plugin/awesome-dsh-plugin
MemTensor/MemOS