DeepSeek Harness Plugin

zemyao7/dsh-totonai

Stars ★ 0 Downloads (30d) 1,232 Category Models & Providers Added 2026-11-10 npm dsh-totonai

Account-based access to the ToTonAI gateway inside DeepSeek Harness: sign in or register in the settings panel, use 65 mainstream models (GPT, Claude, Gemini, DeepSeek, Doubao, Grok, GLM), and pick a plan then pay by QR code in the same panel. Upstream API keys stay on the server.

Install

# from npm (prebuilt)

dsh plugin --profile web add dsh-totonai

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:zemyao7/dsh-totonai

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

This plugin publishes its README in Chinese only.

把 ToTonAI AI 中转站接进 DeepSeek Harness 的官方插件:账号登录、65 个主流模型直连、站内扫码充值开通会员。

支持 GPT / ChatGPT / Claude / Gemini / DeepSeek / 豆包 / Grok / GLM 等 65 个主流模型。 在 DSH 插件市场搜索栏输入 GPT、Claude、DeepSeek、Gemini 或 ToTonAI 都能搜到本插件。

  • 账号制,不接触上游 Key:在 DSH 设置 → ToTonAI 面板里用账号密码登录(或填插件配置),插件自动登录换令牌,你的上游 API Key 永远不会出现在插件包或对话里。
  • 完整复制站点体系:与 www.toton.pro 相同的模型目录、会员档位与计费口径。
  • 图形面板:设置在 DSH 设置页里,登录/注册、会员状态与剩余额度、选档位出收款二维码、"我已付款"申报,都不用跳网页。
  • 站内充值:对话里说"帮我充值",模型生成收款码订单,扫码按金额付款并备注用户名,付款后一句话完成申报,站长核对后开通。

功能

能力 说明
图形面板 设置 → ToTonAI:登录 / 注册、会员状态与剩余额度、选档位与月年卡出收款码、"我已付款"申报、刷新状态
模型接入 OpenAI / Anthropic / Google / DeepSeek / 豆包 / Grok / GLM 等 65 个文本模型
账号注册 totonai_register 在对话里直接注册站点账号,不用打开网页
账号登录 配置账号密码后自动换取令牌,令牌 7 天有效,过期自动静默续期
自动重试 令牌失效(401)时自动重新登录并重试本次请求
充值开通 totonai_recharge 生成收款码订单(价格实时读取站点配置)、totonai_pay_claim 提交付款申报、totonai_pay_status 查询会员是否已开通
会员档位 entry=Go(27 元/月,307 元/年,500 万 token/月)、pro=Plus(77 元/月,847 元/年,2500 万)、ultimate=Pro Max(177 元/月,2077 元/年,5000 万 + 10 张生图/日)

安装

从模型广场安装

在 DSH 模型广场搜索 ToTonAI 或 totonai,一键安装后重启 DeepSeek Harness。

本地安装(开发/自用)

# 在插件目录打包
npm pack

# 在 DSH 里安装本地包
dsh plugin --profile web add ./dsh-totonai-0.1.3.tgz

配置

装好之后不用改配置,直接进 DSH 设置 → ToTonAI 面板:

  1. 没有账号 → 点"注册新账号",填用户名(3-32 位字母/数字/下划线)和密码(≥6 位),注册成功自动登录。
  2. 有账号 → 直接登录。
  3. 登录后面板显示用户名、当前档位、总额度 / 已用 / 剩余 token。
  4. 想开通或续费 → 选 Go / Plus / Pro Max、月卡或年卡、微信或支付宝,点"生成收款码",面板里直接显示二维码图片。
  5. 扫码付对应金额,备注里写你的用户名,回来点"我已付款";站长核对后开通,再点"刷新状态"即可看到档位变化。

账号密码只保存在本机 ~/.dsh-totonai/creds.json(权限 600),不写进任何日志或对话内容。

也可以继续用插件配置(可选,优先级高于面板):

字段 说明
站点地址 baseURL 默认 https://www.toton.pro,一般不用改
账号 username 留空即可,面板登录时会自动写入
密码 password 留空即可
请求超时 非流式请求超时秒数,默认 180

配置完成后重启,在模型选择器里即可看到 ToTonAI 提供商的全部模型。

使用

还没有账号?

两种方式,选一个:

  • 面板注册(推荐):设置 → ToTonAI → "注册新账号",填用户名密码,注册完自动登录,马上能用。
  • 对话注册:说"帮我注册一个 ToTonAI 账号,用户名 demo_01,密码 123456",模型调用 totonai_register 完成注册,再去面板登录即可。

日常使用

  1. 新会话选择任意 ToTonAI 模型(如 deepseek/deepseek-v4-pro 或 openai/gpt-5.4)。
  2. 正常对话。
  3. 需要开通会员时,直接说:

帮我充值 Plus 月卡

模型会调用 totonai_recharge 返回金额、订单号和收款码链接;按金额付款,备注写上你的用户名,回来说"已付款",模型调用 totonai_pay_claim 把申报提交给站长。站长核对到账后开通,一般 5 分钟内生效;之后说"查一下会员状态",模型读取你的账号确认档位与剩余额度。

说明:站点使用个人收款码,没有自动回调,开通由站长人工确认,这是当前设计的正常流程,不是故障。

WorkBuddy 用户看这里 → 直接进 workbuddy/,双击 .cmd 即可,不用点「添加模型」、不用填 JSON。 本插件、以及 WorkBuddy 接入包,都需要 www.toton.pro 账号(免费注册,注册后在「我的 API Key」里复制 Key)。

会员档位

档位 显示名 月卡 年卡 权益
entry Go ¥27 ¥307 500 万 token/月
pro Plus ¥77 ¥847 2500 万 token/月
ultimate Pro Max ¥177 ¥2077 5000 万 token/月 + 10 张生图/日

兼容性

  • DeepSeek Harness >=0.2.0-rc.1 <0.3.0(在 0.2.1-rc.3 验证)
  • Node.js >=22

说明

  • 生图模型暂不接入 DSH 对话流,请继续在 ToTonAI 网页端使用生图功能。
  • 令牌仅保存在进程内,重启后自动重新登录;账号密码只写在本机 ~/.dsh-totonai/creds.json,不写进任何日志或对话内容。
  • 插件仅与你的 ToTonAI 站点通信,所有请求都带 DeepSeek Harness 归属标识。

开发

npm install
npm run build    # tsc 编译到 lib/
node test/smoke.mjs   # 冒烟测试(流映射/消息转换/401 重试/充值工具)

License

MIT

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.