Introduction¶
DeepSeek Harness (DSH) bundles Agents, sessions, workspaces, and tool approvals into a single process, making it suitable for long-running tasks locally or on a private network. If you want to chat with the same DSH Agent directly in WeChat, switch models, or change workspaces, the common approach is to install another set of OpenClaw to act as the host. dsh-clawbot (maintainer yunhai89, category: Client) takes a different path: it retains the official Tencent plugin @tencent-weixin/openclaw-weixin and uses a thin OpenClaw host compatibility layer to connect the ClawBot / iLink channel to DSH. Scanning, long-polling, and encryption/decryption are still handled by the Tencent plugin.
What is this¶
dsh-clawbot is a DSH bundle plugin, version 0.1.3, licensed under MIT. Instead of rewriting the WeChat protocol, it:
- A Adapter: Maps WeChat users to DSH Sessions, handling attachments, approvals, and WeChat commands.
- A Compatibility Layer: Implements the
openclaw/plugin-sdkstubs andchannelRuntimerequired by the Tencent plugin, making it think it’s running inside OpenClaw. - The Tencent Plugin: Uses
@tencent-weixin/openclaw-weixin@2.4.10as-is, handling scanning,getUpdates, media, and retries.
Directory page: skillhub.cn/plugins/yunhai89/dsh-clawbot. Source code: github.com/yunhai89/dsh-clawbot.
Core Features¶
The following capabilities come from the project README and can be adjusted in cordis.patch.yml as needed.
- Web-based QR Code Login: DSH Web → Plugins →
dsh-clawbot→ WeChat ClawBot card → Scan to login. - Persistent Session per WeChat User: Can be resumed after restarting DSH; multi-account isolation is based on
accountId + userId. - Text and Media Inbound: Assistant replies are automatically sent back to WeChat; images go through DSH attachments (require a vision model), other files go through the attachment path.
- Sessions and Models:
/new,/list,/use,/title;/modelto view or switch the current session’s model. - Workspaces:
/workspace(or/ws) to list, switch, and create DSH workspaces; switching a workspace opens a new session in the target directory and switches over (does not modify thecwdof existing sessions in place). - Approvals in WeChat: Tools requiring permissions are pushed to WeChat, usable via
/approveor/reject; multiple approvals are queued per chat. - Login Whitelist: The scanner is added to the allowlist; other users are rejected by default (
allowAllUsers: falseis fail-closed). - Non-blocking Long Polling: The Agent runs in the background, while the channel can still receive messages and process approvals.
Environment and Compatibility¶
| Component | Requirement |
|---|---|
| DSH | >=0.2.2-rc.1 <0.4.0 |
| Node.js | >=24.9.0 |
| Tencent Plugin | @tencent-weixin/openclaw-weixin@2.4.10 |
| Can enter “Me → Settings → Plugins → ClawBot”; recommended iOS 8.0.70+ or newer Android |
The README documents that bundle, Web card, and QR code login APIs have been verified on DSH 0.2.2-rc.1 and 0.2.2-rc.3.
Installation and Activation¶
First, do prerequisite checks: dsh --version is normal, pnpm is installed, local Node.js is not lower than 24.9, and the WeChat client can see the ClawBot entry point.
Install dependencies in the plugin source directory and register it to the Web profile (when installing via file:, dependencies are provided by the plugin’s own node_modules, so pnpm install must be executed first):
pnpm install
dsh plugin --profile web add file:"$PWD"
dsh plugin add will write dsh-clawbot to dsh.profile.bundles in the profile. Then restart DSH Web:
dsh web
If the plugin is already listed but not activated: DSH Web → Plugins → dsh-clawbot → toggle the switch. After modifying the source code, you must re-run dsh plugin --profile web add file:"$PWD" or sync new files to the profile’s node_modules/dsh-clawbot/.
First Scan and Connectivity¶
- Open DSH Web (default
http://127.0.0.1:3080). - On the left, Plugins, click dsh-clawbot.
- On the WeChat ClawBot card, click Scan to Login, scan with the mobile WeChat app and confirm.
- Send
/whoamiin WeChat (bypasses the model); receiving a reply indicates the inbound and outbound links are connected.
The QR code is valid for about 5 minutes; click “Refresh QR Code” if it expires. If a numeric verification code is needed, a text box will appear on the card.
WeChat Commands (Typical Usage)¶
Commands are sent inside WeChat; the built-in /echo and /toggle-debug from the Tencent plugin are still handled at the plugin layer with priority.
| Command | Action |
|---|---|
/new [title] |
New session, inherits current model and workspace by default |
/list |
Lists all sessions for that user, * denotes the current one |
/use <index\|id\|title> |
Switches to the specified session |
/workspace / /ws |
Lists workspaces; see README for subcommands like new, here |
/model |
View or switch model |
/approve / /reject |
Tool approval |
/help |
Help |
Reproducible example:
/list
/model
/new 工作
/workspace new "/root/projects/demo" 演示项目
/use 1
/title 项目 A
/status
Session lists, titles, models, and workspace selections are persisted in $DSH_HOME/clawbot/conversations.json; the full conversation history remains in the DSH Session.
Configuration Key Points¶
Override in $DSH_HOME/profiles/<profile>/cordis.patch.yml by bundle ID, for example:
- id: clawbot
name: dsh-clawbot
config:
stateDir: /root/.dsh/clawbot
workspace: /root/.dsh/clawbot/workspace
workspaceRoots: []
agentPreset: standard
permissionPreset: workspace-write
provider: deepseek-official
model: deepseek-flash
allowUsers: []
allowAllUsers: false
approvalTimeoutMs: 300000
idleAgentTimeoutMs: 1800000
replyProgress: true
autoStart: true
debug: false
botAgent: DSH-ClawBot/0.1
For production environments, it is recommended to set workspaceRoots to the root directories of projects you want to switch to; allowAllUsers: true will accept all WeChat users when the allowlist is empty, which the README notes is a dangerous option. Under permissionPreset: workspace-write, tools requiring “Ask” will be forwarded to WeChat for approval.
Use Cases and Notes¶
Suitable for developers who are already using DSH and want to use the WeChat ClawBot (Tencent iLink) as a mobile entry point: assigning tasks, checking status, approving sensitive tool calls, without having to maintain the OpenClaw stack separately.
Please read the source code and MIT license on the GitHub repository before installing. The plugin and DSH run with the current process user’s permissions. Workspaces and /send involve local paths, so workspaceRoots and the whitelist should be configured with least privilege.
The community directory skillhub.cn has no official affiliation with DeepSeek / Hypersphere; the DSH ecosystem is itself “everything is a plugin”, and this plugin is one of the WeChat channel clients within it.
Conclusion¶
dsh-clawbot uses an adapter + OpenClaw compatibility layer to graft the official Tencent WeChat plugin, bringing scanning login, session, model, and workspace management capabilities to DSH. Onboarding path: meet version requirements → pnpm install and dsh plugin --profile web add file:"$PWD" → Web scan → /whoami to verify connectivity.
- Directory page: https://www.skillhub.cn/plugins/yunhai89/dsh-clawbot
- GitHub: https://github.com/yunhai89/dsh-clawbot