dsh-scnet-plan: View SCNet Token Plan Quota and Consumption in DeepSeek Harness

Introduction

When using DeepSeek Harness (DSH) to connect to SCNet (Supercomputing Internet) models, Token Plans distribute Credits monthly. However, checking the balance, daily usage, and token composition usually requires logging into the SCNet console. If you cannot quickly determine the remaining quota during a conversation, you may unknowingly exhaust the monthly quota.

Below is an introduction to the community plugin dsh-scnet-plan (Maintainer: Ronnie-Young, Category: Web Tools). It integrates the remaining plan percentage, today’s/average daily consumption, heatmaps, and token composition into the DSH sidebar and input area. It also optionally registers the get_scnet_plan tool, allowing the agent to query quota within the conversation. The plugin is released under the MIT license, and the current version is v0.0.3.

What is this

dsh-scnet-plan is a DeepSeek Harness plugin that allows you to view SCNet Token Plan Credits, daily consumption, and token composition within DSH. It supports logging into the console session via SMS verification code or account password on the settings page (the quota API only accepts console sessions and cannot be replaced solely by an sk-tp-… API Key).

Repository: https://github.com/Ronnie-Young/dsh-scnet-plan
Community Directory Page: https://www.skillhub.cn/plugins/Ronnie-Young/dsh-scnet-plan

Core Features

After installation and login, the plugin primarily provides three capabilities (subject to the README):

  1. Sidebar “SCNet Plan” Panel
    Remaining percentage ring (>20% green, 6.7–20% amber, <6.7% red), days remaining, today’s/average daily consumption, available model count, remaining Credits, and used/total quota; the token row displays input / cache hit / output (cache hits are measured separately by SCNet); a daily Credits heatmap for the subscription period; at the bottom, you can access detailed billing and expand “Plan & Models” to view tiers and the model list.

  2. Usage Hints in Chat Area
    When the current model belongs to SCNet: the remaining percentage and accumulated Credits for the current topic are displayed below the input box; the end of each message displays the Credits for that turn (estimated based on tokens and SCNet model pricing).

  3. Agent Tool
    Registers get_scnet_plan by default. You can directly ask the model “How much quota do I have left,” and the agent will call this tool to query.

If daily usage reading fails, the display of quota numbers is unaffected, and the panel will show a prompt. The default auto-refresh is approximately 1 minute; since SCNet statistics have a delay of about 5 minutes, the numbers may lag slightly behind real-time usage.

Installation and Activation

You need to install DeepSeek Harness (Desktop or CLI) first. In a DSH conversation, instruct the agent to call plugin_manager install_bundle, selecting the target according to the table below (do not construct command forms not appearing in the documentation yourself):

Method target
Plugin Market First add https://ronnie-young.github.io/dsh-plugins-market/index.json under “Discover → Manage Index Sources”, then click install in the market
GitHub Source (No clone) github:Ronnie-Young/dsh-scnet-plan#v0.0.3
Release Archive https://github.com/Ronnie-Young/dsh-scnet-plan/releases/download/v0.0.3/dsh-scnet-plan-0.0.3.tgz
Local Directory (Dev/Troubleshooting) /your/path/dsh-scnet-plan

Example (Direct install from GitHub source):

plugin_manager install_bundle
target = github:Ronnie-Young/dsh-scnet-plan#v0.0.3

Installation will request danger-full-access permission; approve it as prompted. After installation, refresh the page; the appearance of the “SCNet Plan” icon in the sidebar indicates successful installation.

If you wish to install via a personally maintained plugin market, the index source must be added manually by the user:

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

Path: Plugins → Discover → Manage Index Sources → Add Index Source, then paste the address above.

First Use: Login

Open Settings → SCNet Plan and choose one of the following methods to log in once:

  1. SMS Verification Code: Phone number → Get Code → Enter 6-digit code → Login;
  2. Account Password: Enter account and password; if a graphic captcha is required, enter it as prompted.

Upon successful login, the plugin will use that session to read the subscription once to confirm the quota can be read before saving the session. The README states: Phone numbers, verification codes, and passwords are used only for the current login request and are not saved, logged, displayed, or sent to the model context; subsequent auto-refreshes use only the session Cookie. You must log in again when the session expires.

Typical Usage

View Panel
After logging in, open the “SCNet Plan” in the sidebar to view the ring, Credits, heatmap, and token composition; click “Refresh” at the top right of the panel for immediate synchronization.

Ask about Quota in Chat
When the default tool: true is maintained, ask the agent questions like “How much quota do I have left,” and get_scnet_plan will return a snapshot of the current plan.

Modify Configuration as Needed
Generally, no modification is needed. To adjust the refresh interval, warning threshold, or disable the tool, override them in the profile’s cordis.patch.yml:

- id: scnet-plan
  config:
    refreshIntervalSec: 60    # seconds; 0 = manual refresh only
    warnBelowPercent: 20      # switch to amber if below this percentage
    tool: true                # whether to register get_scnet_plan
    accountLogin: true        # whether to allow login via settings page

For more fields (such as baseUrl, consoleBaseUrl, creditInputPer1K, etc.), please refer to the complete configuration table in the repository README.

Uninstall

plugin_manager remove_bundle
target = dsh-scnet-plan

Suitable Scenarios & Notes

This is suitable for developers who use SCNet Token Plans long-term in DSH, want to keep quota and consumption visible in the same working interface, and occasionally let the agent query remaining Credits.

Before installation, it is recommended to review the GitHub repository source code and MIT license yourself. DSH plugins run under the current dsh process permissions, and installation requires approving danger-full-access; login only exchanges for a console session to read quota, and sensitive credentials are not persisted as promised by the README.

Community plugin directories (such as SkillHub) are independent sites and have no official affiliation with DeepSeek / High-Flyer; this plugin is also included in the maintainer’s personal market dsh-plugins-market, where the index source must be added by the user.

Summary

dsh-scnet-plan integrates SCNet Token Plan remaining percentage, daily consumption, and token composition into DSH, reducing the need to repeatedly open the console. It also provides Credits estimation and get_scnet_plan query capabilities during SCNet model conversations.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye