dsh-connect-sensenova-token-plan: View Sensenova Credits within DSH and Optional API Integration with Raccoon

Introduction

When developing agents with DeepSeek Harness (DSH), if you select SenseNova Token Plan as the upstream provider, you often have to switch to the web console to verify quotas, model permissions, and actual consumption. Furthermore, registering the model into DSH and handling rate limits and quota misjudgments requires separate Key and provider configurations. The plugin dsh-connect-sensenova-token-plan by maintainer eghrhegpe (Category: Web Tools) integrates the SenseNova Token Plan into the plugin card on the DSH Plugins page and provides a persistent usage capsule on the right side of the session input box. It optionally registers SenseNova models as a DSH provider, connects to the Xiaohuanxiong gateway, and implements backoff retries for 429 errors on the Host side, preventing models from disappearing from the list due to rate limits being misidentified as “quota exhausted.”

The following sections describe its positioning, features, installation, and typical usage. For facts, please refer to the GitHub Repository README.

What is this

dsh-connect-sensenova-token-plan is a DSH community plugin (the npm package name is the same as the plugin search name). In the current documentation, the version is 0.8.1, licensed under MIT. It does not replace SenseNova’s billing operations: it does not change plans, deduct points on your behalf, or store plaintext Keys in the panel long-term. By default, it focuses on information display (points and consumption). The four features that actually modify Host behavior—registering a provider, mounting image generation tools, connecting to the Xiaohuanxiong upstream, and enabling web search—are all opt-in and disabled by default.

The panel is an inline card within the Plugins page, not in the sidebar. Data comes from the SenseNova console API and is consistent with the web console figures.

Core Features

Three Tabs (in order of usage)

  1. Credit Quota
    On the first use, fill in the account and password in “Connect SenseNova Console.” The Host completes standard login in the background and auto-renews (refreshes the token before expiration, so you generally don’t need to enter the password again). Polling only occurs via a local route when the panel is open and stops when closed. You can view: Credit Pool (quota window, used/remaining/percentage/reset time, bonus balance and expiration), Model List (plan coverage vs. actual availability for the current Key), and a ranking of credit consumption by model for the last N hours. If login fails, the form displays the reason returned by SenseNova (including platform rules like lockout after multiple errors); use the button at the bottom of the panel to clear the account.

  2. Connect API (Optional, Default Off)
    After pasting the sk- Key in the “API Key” card and saving, the Host registers an OpenAI-compatible provider named sensenova-token-plan, participating in conversations and image generation. The language model list refreshes via /v1/models; models with vision capabilities automatically support image input. On the image generation side, the Host registers the tool sensenova_draw_image for the agent, and the model is determined by the output_modalities in the catalog. Switches and checkboxes take effect immediately in the panel, but the actual mounting/absence of tools occurs on the next Host startup (see docs/SETUP.md and docs/PROVIDER-HOT-RELOAD.md in the repository for details).

  3. Xiaohuanxiong (Raccoon) (Optional, Default Off)
    Log in to the xiaohuanxiong.com gateway via WeChat QR code scan; it uses an independent account and independent points. The upstream rate limit is relatively lenient, serving as a daily channel outside the hard quota of the Token Plan. After login, it displays the points balance and model list. Each model displays the context window, maximum output, and the points multiplier declared by the gateway (e.g., free, ×0.75; if not declared by the catalog, it is not displayed). Web Search (Default Off): When enabled, the backend of DSH’s web_search is changed to the Xiaohuanxiong-hosted MCP, reusing Xiaohuanxiong credentials.

Input Box Usage Capsule

A persistent usage capsule resides on the right side of the session input box, displaying which quota set the current model is consuming. Clicking it expands the quota card (raw usage, reset time, pool attribution). Switching models changes the reading immediately without retaining the previous model’s reading. The SenseNova tier corresponds to rolling windows like 5-hour/weekly, while the Xiaohuanxiong tier reads the points balance; prefixes SenseNova · / Raccoon · indicate the attribution.

429 Self-Healing

When rate limiting is misjudged as quota exhaustion, the Host side corrects it and performs backoff retries, preventing models from inexplicably disappearing from the available list.

Installation and Activation

  1. Search for dsh-connect-sensenova-token-plan on the DSH “Plugins” page and click install, or execute:
dsh plugin --profile web add dsh-connect-sensenova-token-plan       # Web
dsh plugin --profile desktop add dsh-connect-sensenova-token-plan  # Desktop
  1. Completely exit DSH (including the system tray) before restarting.

  2. Open the Plugins page and use the three tabs and login forms within this plugin’s card.

Community Directory Page: SkillHub - dsh-connect-sensenova-token-plan. The DSH ecosystem emphasizes “Everything is a Plugin”; SkillHub etc. are community directories and have no official affiliation with DeepSeek / High-Flyer.

Typical Usage

Just Monitor Quota (Most Common Default Path)
Install and restart → Open this plugin on the Plugins page → Go to the “Credit Quota” Tab to connect to the SenseNova console → Daily usage involves checking the current model quota via the capsule on the right of the input box. When details are needed, click the card to expand or return to the “Credit Quota” Tab to view model consumption rankings.

Directly Call SenseNova Models in DSH
Go to the “Connect API” Tab, turn on the switch, and save the sk- Key → Check the documentation to confirm scenarios requiring Host restart (image generation tool mounting) → Use the sensenova-token-plan provider in the DSH model selection.

Xiaohuanxiong + Optional Web Search
Go to the “Xiaohuanxiong” Tab and scan the QR code to log in → Enable models and “Web Search” as needed → Credentials and the Xiaohuanxiong channel are reused, no separate search endpoint Key configuration is required.

Troubleshooting Provider Effectiveness
Provider / image generation switch values are stored in the plugin’s private state file (segmented by profile, see docs/PITFALLS.md in the repository). In the plugin source directory, you can run:

npm run doctor          # Human-readable: provider / draw switches and model list for each profile
npm run doctor:json     # JSON, convenient for inspection scripts

For symptom-oriented troubleshooting, see docs/TROUBLESHOOTING.md in the repository; the symptoms in doctor --json align with the symptom codes in the documentation.

Use Cases and Notes

Who is it for
DSH users who are already using or planning to use the SenseNova Token Plan: those who want to minimize switching to the web page, view quotas alongside the session, and optionally integrate SenseNova/Xiaohuanxiong into the same Host.

Security and Permissions
The plugin runs with the permissions of the current DSH process; it is recommended to read the GitHub Source Code and LICENSE before installation. Credentials are stored via the DSH credential service; the documentation states that passwords are not persisted to disk, and the plugin does not write plaintext credential files or debug logs. If the refresh_token is revoked and there is no password in the environment, the panel will prompt for re-login rather than silently displaying old data.

Boundaries
GET /v1/models only distinguishes permissions; it does not bill or occupy inference quota; the panel does not perform billing operations on your behalf. The npm published package does not contain the full docs/; please check the GitHub repository for deep configuration and pitfall lists (e.g., docs/AUTH.md, docs/SENSENOVA-API.md, docs/PITFALLS.md).

Conclusion

dsh-connect-sensenova-token-plan consolidates SenseNova Token Plan quota visualization and optional API/Xiaohuanxiong integration into the DSH Plugins page and the input box capsule. By default, it only displays information, with extension capabilities enabled on demand. See the SkillHub Plugin Page for the directory and installation entry, and see GitHub for source code and documentation.

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

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

Xiaoye