返回目录
模型与 MCP 插件

dsh-dumate-provider

JieZhiF/dsh-dumate-provider

百度搭子 DuMate 个人会员的 DeepSeek Harness 原生插件:22 个模型进选择器,Cookie 登录、多账号故障切换、余额查询与每日自动签到。Native Baidu DuMate provider plugin for DeepSeek Harness.

Stars
1
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:JieZhiF/dsh-dumate-provider

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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-model L0–L2 tiers, …)
  • Cookie → dumate-svc.baidu.com directly: no local gateway, no extra port
  • Streaming, tool calls and reasoning blocks; SSE decoded with StringDecoder so 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

  1. 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.)
  2. 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-api lane.
  • 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's totalPoints.
  • 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

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、模型。