Connect DeepSeek Harness to WhatsApp: dsh-im tutorial
Follow the dsh-im README to connect DeepSeek Harness to WhatsApp: install the plugin, bind the platform, send a first read-only task and fix common connection problems.
On this page
Quick start
If DSH is already installed, start at step 1. The end result is a message entering local DSH, a completed DSH task, and a reply returning to the same platform.
- Install dsh-im.
- Restart dsh web and open Settings → IM Bot.
- Choose WhatsApp and complete QR or credential binding.
- Send /status, then send a read-only task.
Step 1 — install dsh-im
Run this on the same computer where DSH is installed. The author recommends the published npm release.
dsh plugin --profile web add -w @xmanrui/dsh-imAfter it finishes, restart the Web Profile:
dsh webIf the terminal cannot find dsh, prefix the command with npx @deepseek-ai/dsh. Do not use the GitHub-source install by default; use it only for unreleased code:
npx -y github:xmanrui/dsh-im installRefresh the browser and open Settings → IM Bot. Full instructions: dsh-im README.
Step 2 — connect WhatsApp
WhatsApp uses dsh-im's WhatsApp Web linked-device flow. By default, only the account's self-chat triggers DSH.
- Open DSH Settings → IM Bot → WhatsApp and display the QR code.
- On the phone, open WhatsApp Settings → Linked devices → Link a device.
- Scan the QR code on the DSH page and wait for the card to show online.
- Keep self-only enabled and test in WhatsApp's Message yourself chat first.
This is a linked-device route, not the Meta WhatsApp Business Cloud API. Platform reference: WhatsApp linked devices.
Step 3 — send the first task
In WhatsApp's Message yourself chat, send these three messages in order. The first checks the connection, the second clears the old session, and the third runs a read-only task.
/status /new 只读任务:列出当前工作区根目录的文件名,不要修改任何文件。
- `/status` should return the connection status between the Bot and DSH.
- The third message should receive a final reply and create a new Session in DSH Web.
- Repeat once with an unauthorized account and confirm that it does not trigger a task.
WhatsApp troubleshooting
The IM Bot page is missing
Confirm the plugin was installed into the web Profile, restart dsh web, and refresh the browser.
The card stays offline
Check whether the credential or QR code expired, click reconnect, and inspect the terminal that runs DSH.
The platform receives a message but no reply
Send /status, then confirm directly in DSH Web that the model, workspace and Agent Preset work.
二维码过期或关联设备掉线
在手机的「已连接设备」移除旧设备,重新打开 DSH 二维码并扫描。首次只测试自聊。
Security
- Tokens, App Secrets, QR sessions and the WhatsApp auth directory are credentials. Never commit or publish them.
- Start with a workspace that has no production secrets and keep access minimal. An IM message can trigger local files, commands and tools.
- dsh-im is a community plugin. Re-read its README and changelog before upgrades; it is not an official platform integration.
- WhatsApp Web/Baileys is not the Cloud API. Assess account and protocol risk before business-critical use.
dsh-im author README · WhatsApp channel source · WhatsApp platform documentation。
dsh-im reference: 32a62a63. Steps may change with the plugin; check the author's README before installing.