michaelcode-wang/dsh-wecom ↗★ 0
dsh-wecom
WeCom (Enterprise WeChat) Smart Robot bridge for DeepSeek Harness — two-way chat over the aibot WebSocket gateway (bot_id + secret), no public endpoint needed.
AI 분석
通过企业微信 aibot WebSocket 网关实现企业微信与 DSH Agent 的双向聊天,无需公网 IP。适合需要将 DSH 接入企业微信进行移动端交互的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:michaelcode-wang/dsh-wecom配置
在 $DSH_HOME/profiles/im/cordis.patch.yml 中:
## 配置项
| 键 | 默认 | 说明 |
|---|---|---|
| `enabled` | `true` | 总开关 |
| `botId` | `''` | 企业微信智能机器人 ID |
| `secret` | `''` | 企业微信智能机器人密钥(只写) |
| `websocketUrl` | `wss://openws.work.weixin.qq.com` | WebSocket 网关地址 |
| `allowedUserIds` | `[]` | 允许对话的 userid 白名单;留空=所有人 |
| `agent.preset` | `taibai` | 挂载的 agent preset |
| `agent.cwd` | `''` | agent 工作目录(默认进程 cwd) |
| `agent.provider` / `agent.model` | `''` | 模型覆盖;留空=部署默认 |
| `agent.maxMessageLength` | `4000` | 单条外发消息最大字符数 |
| `agent.idleTimeoutMs` | `1800000` | 聊天空闲多久后释放 agent(0=永不) |