DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-scnet-plan

R

dsh-scnet-plan

Manifest valid★ 1

DeepSeek Harness Plugin: View SCNet Token Plan Quota, Daily Usage, and Token Breakdown

UI (client)hasBundlePatch

dsh-scnet-plan

CI

在 DeepSeek Harness 里直接看 SCNet Token Plan 还剩多少,不用再开控制台。

SCNet(超算互联网)的 Token Plan 按月发 Credits,但余额只有登录控制台才看得到。装上这个插件后:

  • 侧栏多一个面板:剩余比例圆环、今日/日均消耗、每日热力图、token 构成,一眼看完;
  • 输入框下方有个小徽标,随时显示剩余百分比;
  • 直接问模型「我还剩多少额度」,它会用 get_scnet_plan 自己查。

面板界面:左侧浅色,右侧深色

左:浅色 右:深色(同一界面,只是主题不同)

安装

需要先装好 DeepSeek Harness(桌面版或 CLI)。在 DSH 对话里让 agent 调 plugin_manager install_bundle,target 按下面的方式填:

方式target说明
插件市场(发现页)先在「发现 → 管理索引源」添加 https://ronnie-young.github.io/dsh-plugins-market/index.json,再在市场里点安装最接近“应用商店”的体验
GitHub 源(免 clone)github:Ronnie-Young/dsh-scnet-plan#v0.0.2pnpm 直接拉取,不用本地目录
Release 压缩包https://github.com/Ronnie-Young/dsh-scnet-plan/releases/download/v0.0.2/dsh-scnet-plan-0.0.2.tgz从 GitHub Release 直链安装
本地目录(开发/排错)/你的路径/dsh-scnet-plan需要先 git clone
npm(首次发布后启用)dsh-scnet-plan发布后一行安装

安装会申请 danger-full-access 权限,按提示批准。装完刷新页面,侧栏出现「SCNet 套餐」图标就成功了。

如果还想更省事,也可以让 agent 直接读这个仓库的 README,把上面的 target 告诉它。

插件市场

本插件收录在个人维护的市场仓库 dsh-plugins-market 里。添加一次索引源后,就能在 DSH 的「发现」页安装和更新:

https://ronnie-young.github.io/dsh-plugins-market/index.json

打开 插件 → 发现 → 管理索引源 → 添加索引源,粘贴上面的地址即可(索引源只能由用户手动添加)。

第一次使用:登录一次

打开 设置 → SCNet 套餐,两种方式任选:

  1. 短信验证码:填手机号 → 获取验证码 → 输入 6 位码 → 登录;
  2. 账号密码:填账号密码,需要图形验证码时按提示输入。

登录成功后插件会先用这个会话真读一次订阅,确认能读到额度才保存。

隐私:手机号、验证码、密码只用于这一次登录请求——不保存、不写日志、不显示、不进模型上下文。之后自动刷新只用会话 Cookie。

面板上都是什么

区域内容
圆环剩余百分比,>20% 绿、6.7–20% 琥珀、<6.7% 红
右侧剩余天数、今日消耗、日均消耗、可用模型数
中间剩余 Credits + 已用/总额度
token 行输入 / 缓存命中 / 输出(缓存命中是 SCNet 单独计量的,不是输入的子集)
热力图订阅周期内每天的 Credits 消耗,蓝色 4 档
底部明细账单入口;「套餐与模型」可展开看档位和模型清单

每日用量读取失败不影响额度数字,面板会提示。

可选配置

一般不用改。想调刷新频率、预警线、关闭工具时,在 profile 的 cordis.patch.yml 里覆盖:

- id: scnet-plan
  config:
    refreshIntervalSec: 60    # 秒;0 = 只手动刷新
    warnBelowPercent: 20      # 低于此比例转琥珀色
    tool: true                # 是否注册 get_scnet_plan
    accountLogin: true        # 是否允许设置页登录
完整配置项
字段默认值说明
apiKeyEnvSCNET_API_KEYAPI Key 的凭据引用名(只用于列模型)
baseUrlhttps://api.scnet.cnOpenAI 兼容网关
consoleBaseUrlhttps://www.scnet.cn控制台地址
apiBasePath/api/llm/v1网关路径前缀
consoleCookieEnvSCNET_CONSOLE_COOKIE会话 Cookie 的凭据引用名
refreshIntervalSec60缓存与自动刷新间隔
requestTimeoutMs15000单次请求超时
includeModelstrue是否附带模型列表与套餐目录
warnBelowPercent20预警线
routePath/scnet-plan/snapshotHost 快照路由
tooltrue注册 get_scnet_plan
manageCookietrue允许手动粘贴 Cookie(高级退路)
accountLogintrue允许短信/密码登录
loginTimeoutSec30登录请求超时

常见问题

面板显示「待连接」? 还没登录。去 设置 → SCNet 套餐 登录一次。

数字一直不变? 默认 1 分钟刷新一次;点面板右上角「刷新」可立即拉取。SCNet 自己的统计有约 5 分钟延迟,面板数字可能滞后于实时用量。

过几天又提示登录失效? 会话 Cookie 会过期,重新登录一次即可。密码和验证码从不保存。

能用 API Key 代替登录吗? 不能。sk-tp-… 只能列模型,额度接口只认控制台会话——这也是为什么要登录一次。

不想用了? plugin_manager remove_bundle target = dsh-scnet-plan。

更新

git pull

然后在 DSH 里重新安装(remove_bundle 再 install_bundle),刷新页面。发版与发布流程见 docs/publishing.md。

开发

npm test                      # 36 个单测
node scripts/probe.mjs --self-test

client.js 是手写的浏览器 bundle,不需要打包器;改完刷新页面即可。

项目结构与接口细节见 docs/scnet-api.md 和 docs/plugin-platform.md。

License

MIT © Ronnie-Young

Comments

Loading…

From the same category

awesome-dsh-plugin

by awesome-dsh-plugin

A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表

Development & Infrastructure

★ 19.8k

CC0-1.0

Python

Oct 20, 2026

Index only — not installable

by 0xsline

DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.

Development & Infrastructure

★ 1.2k

CC0-1.0

Python

Oct 16, 2026

Index only — not installable

by pax-beehive

Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub

Development & Infrastructure

★ 386

MIT

TypeScript

Oct 20, 2026

Index only — not installable

by xiajiajun516

DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.

Development & InfrastructureManifest valid

★ 217

MIT

TypeScript

Oct 18, 2026

dsh plugin --profile web add dsh-config-manager

by yjh051108

推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。

Development & InfrastructureManifest valid

★ 165

TypeScript

Oct 16, 2026

dsh plugin --profile web add @dsh-external/dsh-super-injector

by jigjoy-ai

A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.

Development & Infrastructure

★ 124

MIT

TypeScript

Oct 13, 2026

Index only — not installable