WeChat (Tencent iLink / ClawBot) channel for DeepSeek Harness: QR-code login, two-way text, image and file messaging, slash commands in WeChat including /cwd and /skills, approval and question cards answered from the chat, and reply sending that splits over-long answers and backs off on rate limits instead of dropping them. Only the account that scanned the login is admitted by default; messages from anyone else are ignored.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-channel-wechat
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:wangx-wx/dsh-channel-wechat
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English | 中文
A channel plugin that connects WeChat (Tencent iLink / ClawBot) to DeepSeek Harness. One npm package provides both the Harness bundle and the GUI browser half; it runs inside the Harness process.
What sets this apart from the other WeChat channels is not more features — it is that messages do not go missing. Only the turn's final answer is sent, so narration and tool arguments are never posted as replies; an over-long answer is split on paragraph boundaries instead of being rejected whole; a ret: -2 rate limit backs off 2s→4s→8s→16s instead of being dropped silently after three one-second retries. Tests pin all three, so CI fails when a change breaks them.
| In WeChat | Approval card | Plugin page |
|---|---|---|
| Ask and assign work in the chat; replies come back to WeChat | Approval and question cards are relayed to WeChat; reply with a number | QR login, working directory, card placement, permission, model |
What it supports
- Two-way text, image, and file messaging.
- Inbound WeChat messages become DSH turns; durable
session/eventmessages are sent back to WeChat. - Commands in WeChat (
/help,/skills,/cwd,/models,/model,/status,/stop,/new), approval cards, and question cards. - Only the WeChat account that scanned the login can drive the bot; messages from anyone else create no session, run no command, and get no reply.
/cwd <absolute-path>switches the working directory from WeChat: the current conversation ends and a new one starts in that directory, and the choice survives a restart.- An approval card can switch the current conversation to full access; WeChat shows "typing" while a turn runs.
- A question card accepts either an option number or your own words;
0on the card means "talk it over instead" and closes the card. - When several cards arrive at once, only one is shown at a time, headed "N of M", and the next follows once you answer;
/stopwithdraws every card waiting in that conversation. - QR login, sign-out, working directory, card delivery, model, and permission settings on the GUI plugin page.
- Long polling decoupled from turn processing, with terminal and file diagnostics.
Group chats, multiple accounts at runtime, unsolicited push, and a separate permission system are out of scope.
Requirements
| Component | Requirement |
|---|---|
| Node.js | ^22.19.0 or >=24.0.0 |
| pnpm | 11 (package.json declares pnpm@11.7.0) |
| DeepSeek Harness | >=0.2.0-rc.1 |
The install floor comes from package.json engines; see compatibility for verified and unverified versions.
Quick start
Make sure the profile has a working directory you want to use for WeChat sessions.
Install the plugin and restart DSH:
dsh plugin --profile <your-profile> add dsh-channel-wechatOpen Plugins → dsh-channel-wechat in the GUI, click Sign in to WeChat, and scan the QR code. Enter a verify code on the page if requested.
Send a message to the bot from WeChat and confirm that the DSH reply arrives there.
A full DSH restart is required after installation so the host can discover the browser half. If pnpm's observation window skips a just-published release, use:
dsh plugin --profile <your-profile> add dsh-channel-wechat@latest --config.minimumReleaseAge=0
Configuration
The GUI page edits all fields. The same values can be written in the profile's cordis.patch.yml:
- id: channel-wechat
config:
cwd: /your/workspace
cards: wechat
provider: ''
model: ''
permission: workspace-write
cwd must be absolute. It is recorded when a session is created and cannot be changed for that session; edits affect sessions created afterwards. See configuration reference for fields, defaults, and permission boundaries.
allow decides who may use the bot. Empty admits only the account that scanned the login, which is the zero-configuration default; to admit others, put one WeChat id per line in "Who may use this bot" on the plugin page. A non-empty list is authoritative — the logged-in account is no longer included automatically. A refused message gets no reply; the plugin log keeps one line with the sender's id, which is the value to paste into the list.
Profiles without a web app can use the terminal:
dsh <profile> login
dsh <profile> status
dsh <profile> logout
On web/desktop profiles the launcher rejects the login positional argument before this plugin runs; use the GUI instead.
Data and logs
| What | Location |
|---|---|
| Session transcript | ~/.dsh/sessions/<escaped cwd>/channel-wechat-<peerId>[~g<N>]/session.v4.jsonl.zstd |
| Plugin state | ~/.dsh/channel-wechat/ |
| Diagnostic log | ~/.dsh/channel-wechat/log/channel-wechat-YYYY-MM-DD.log, kept 7 days |
| Login credential | ~/.dsh/.credentials.yaml |
DSH persists the transcript. /new creates a new conversation generation and does not delete older records. Never share tokens, cookies, or credential files when reporting an issue.
Troubleshooting
- No configuration section: fully quit and reopen DSH; see troubleshooting.
- Login argument rejected: web/desktop profiles support GUI login only.
- No reply: check the plugin log, account status, and that
cwdis absolute. - Media or quote degraded to text: some quote fields and the server's uint64 message id are known limitations; see troubleshooting.
Documentation
User guides
- Commands in WeChat
- Additional installation paths
- Configuration reference
- Compatibility and verification
- Troubleshooting
Get help
Start with troubleshooting and the plugin log. If the issue remains, open a GitHub Issue with the DSH version, plugin version, profile type, reproduction steps, and redacted logs. Do not include tokens, cookies, or credential files.
Development and design
- Development and verification
- Architecture
- Delivered capabilities
- Implementation plan and decision log
- Invariants
- Protocol document
- Requirements
- Reconnaissance reports
- Development log
- Release process
- Contributing guide
Contributing and maintenance
Bug reports, suggestions, and pull requests are welcome through GitHub Issues. Before submitting a change, read Development and verification and run the build, type check, and relevant tests. Maintainer and repository information is available in the GitHub repository.
Local development
pnpm install
pnpm build
pnpm typecheck
pnpm test
pnpm test:integration
Integration tests use a temporary isolated DSH_HOME and look for a local DeepSeek Harness checkout. Set DSH_CHECKOUT=/path/to/deepseek-harness when needed. See development and verification.
License and third-party notices
This project is MIT licensed. See LICENSE and THIRD_PARTY_NOTICES.md for complete notices. The protocol implementation follows Tencent's openclaw-weixin.
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 9959
Remote control of a dsh web workspace from phone or PC: QR-code pairing through a token-gated channel, SSE real-time sync, and separate mobile and full desktop GUI modes.
zhu1090093659/dsh-web#packages/dsh-ssh★ 9959
SSH ops panel for DSH: web terminal, SFTP transfer with progress, local port forwarding, and one-command cluster execution across hosts; agents share the same host config.
liguobao/ds-harness-remote★ 1319
Multi-device remote access for DeepSeek Harness and supported coding workspaces through an end-to-end encrypted channel, with adaptive Relay/WebRTC transport, device authorization, workspace files, read-only previews, terminals, and optional Codex Remote.
saya-ch/dsh-mobile★ 728
Access DeepSeek Harness from the Android app or a mobile browser with secure LAN and remote connections, persistent device pairing, and a customizable mobile interface.
uumit-ai/dsh-uumit-remote★ 381
Open dsh web from your phone or another computer through a UUMit account, without running your own server or installing another program: a built-in tunnel client connects to UUMit's hosted tunnel, and a panel in the sidebar handles pairing and who can use it (only you, people you invite by link or phone number, or everyone), with revocation. Requires dsh web on DSH >=0.2.1-rc.2.
ZSeven-W/dsh-ios★ 355
A live iOS Simulator or USB-connected iPhone inside the conversation: 22 agent tools for booting, building, driving the UI by accessibility identity or OCR text, list-row actions and SwiftUI preview hot reload, plus a streaming sidebar panel you can tap and drag on.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.