dsh-dumate-provider
Manifest validBaidu DuMate Personal Membership DeepSeek Harness Native Plugin: 22 models in the selector, Cookie login, multi-account failover, balance query, and daily automatic sign-in. Native Baidu DuMate provider plugin for DeepSeek Harness.
dsh-dumate-provider · Baidu DuMate
English | 简体中文
Native DeepSeek Harness (DSH) plugin: connects a Baidu DuMate account (free, Pro or Max) as a provider. Models appear in the model picker; accounts, balance, daily check-in and per-model switches live on one settings page.
- 22 models (DeepSeek V4 Pro / V4.1 Flash, Kimi K3 / K3.1, GLM-5.3, Qwen 3.8 Max, Doubao Seed 2.0, ERNIE 4.5 VL, the
dm-auto-modelL0–L2 tiers, …) - Cookie →
dumate-svc.baidu.comdirectly: no local gateway, no extra port - Streaming, tool calls and reasoning blocks; SSE decoded with
StringDecoderso Chinese text never corrupts across chunks - Multi-account pool with cooldown and failover; a 401 refreshes the token before the cookie is declared dead
- Automatic daily check-in at 09:17 Beijing time, per-package balance with a configurable alert, per-model switches
- Compatible with the DSH 0.1.7 line (verified on 0.1.7-rc.2), 0.2.0–0.2.2 (incl. rc.3); the Host half imports no
@deepseek-ai/*package, so there is no peer-version matrix
Install
Pick one. Restart DSH afterwards — a new provider is registered into the model catalog at startup.
Plugin market (recommended): DSH sidebar → Plugin market → search “DuMate” or “搭子” → install. If it is not listed yet, use one of the direct paths below.
GitHub:
dsh plugin --profile web add github:JieZhiF/dsh-dumate-provider
npm (after publishing):
dsh plugin --profile web add dsh-dumate-provider
Local directory (development):
dsh plugin --profile web add /home/viola/dumate-provider
Usage
- DSH → Settings → Baidu DuMate → Add account → Sign in with a browser: a separate browser window opens; sign in there and the account is added automatically. (Manual paste still works: DevTools → Application → Cookies →
www.dumate.cn.) - Pick a model under the Baidu DuMate group.
Configuration
The settings page covers: automatic check-in switch and time (Beijing), balance alert switch and threshold, the 22 per-model switches, and account label / enable / remove / sign in again.
Plugin state lives in $DSH_HOME/dumate-provider/state.json (default ~/.dsh/dumate-provider/state.json, mode 0600, carries cookies). It is not written into the profile's cordis.patch.yml and not the plugin row's config: toggling a model must not restart the plugin.
API endpoint (optional)
With an enterprise plan or any OpenAI-compatible endpoint, use the "API endpoint" section at the bottom of the settings page: base URL + key, then "Probe models". Those models appear under "Baidu DuMate · API", independent of the cookie lane.
Risk notice
This is an unofficial integration: it calls DuMate's web endpoints with your cookie, which may conflict with the terms of service and trip risk controls (an account can be restricted). Points are spent per turn and check-in only tops them up. The plugin stores only the cookie, locally with mode 0600 — never your password.
The enterprise tier has an official API (api.dumate.cn, API key + SSE + tool calls); a generic OpenAI-compatible provider is the safer route when you can use it. See DETAIL.
Limits
- Personal accounts — free, Pro or Max — all work: DuMate issues no API key for them, so a web cookie is the only credential. Enterprise API keys go through the built-in
dumate-apilane. - Points are spent per message and the daily check-in only tops them up — not an unlimited quota. The plugin claims the web check-in (+200/day); the PC client's extra 300 must be claimed in the desktop app.
- Balance counts only active
product === "dumate"packages, which can differ from the website'stotalPoints. - Images are forwarded as a
[图片]placeholder in this version; text and tool calls are unaffected.
Development
npm run check # syntax check every module
npm test # node:test (cookie normalization / message mapping / usage mapping / SSE frames)
Layout: index.js (Host apply), client.js (settings page), src/ (adapter / wire / auth / api / pool / store / checkin / balance / routes / fence), locale/ (plugin page metadata), docs/DETAIL*.md (detail pages).
License
MIT
Comments
Loading…