Introduction¶
DeepSeek Harness (DSH) adopts a plugin-based architecture, allowing developers to enrich application features through extension plugins. For users who simultaneously use TokenRhythm, StepFun, and ZCode, switching between multiple platforms to check balances, model prices, and usage statistics is inefficient. The plugin “dsh-tokenrhythm-bill” (TokenRhythm Billing Center) consolidates account balances, model lists, usage data, and key management into a single sidebar panel, while also supporting integration of StepFun and ZCode data.
Core Features¶
Dashboard and Sidebar¶
The plugin adds an entry at the bottom of the DSH sidebar, above the Settings button. Clicking it opens a draggable panel. You can also use the shortcut to show/hide it:
Ctrl+J # Windows/Linux
Cmd+J # macOS
Hovering over the sidebar entry displays the time-limited balance timeline. When switching accounts, the balance capsule updates in real time.
Model List and Pricing¶
In the “Models” tab, models can be filtered by category (All/Text/Image/Audio/Video/Vector). Each card displays the name, status capsule (Online/Testing), model ID, specifications (sequence length, modality), and price (input/output/cache-hit unit price). Discounted models display a discount badge, and the price field shows the original price with a strikethrough.
Balance and Time-Limited Quota¶
The “Balance” tab displays the account balance and time-limited quota. The quota proportion bar is divided into blue (non-time-limited) and orange (time-limited). The countdown capsule shows a warning color when the time-limited quota is 3 days or less. The funding details tab lists each source (recharge/gift) along with the remaining amount and expiration status.
Usage Statistics¶
The “Usage” tab provides a 30-day usage heatmap calendar. The intensity of each cell’s color represents the spending amount, and the amount is displayed directly inside the cell. On the right side, ranking statistics are provided by model and client.
Status Detection¶
The “Status” tab provides custom connectivity detection. After selecting models and clicking “Detect Now,” the system sends a 1-token inference request to each model to test availability. This function consumes a small amount of API quota (approximately 0.0004 per model).
Key Management¶
The “Keys” tab lists platform API keys in masked form only. If a full local key is matched, it can be copied with one click. It supports creating and deleting keys.
StepFun and ZCode Support¶
The plugin supports integration with StepFun and ZCode.
* StepFun: Supports slot-based management of multiple accounts. Switching accounts does not trigger re-login and does not clear the cache. It allows viewing account balance, Credit monthly pool, and expiration time.
* ZCode: Integration is disabled by default. It must be explicitly enabled in settings, with authorization to read local files. This function reads credentials from ~/.zcode/v2, which carries the risk of being blocked by platform risk control.
Notes¶
- Local Storage: Credentials are stored only on the local host; the browser only sees masked values.
- ZCode Risk: ZCode integration uses undocumented interfaces and may be subject to platform risk control.
- API Consumption: The detection feature on the Status tab consumes API quota.
- Session Management: Switching StepFun accounts does not clear the cache; credentials are stored independently.
Summary¶
This plugin provides DSH users with a tool to centrally manage accounts, balances, and usage across multiple AI service providers. Through the sidebar panel and shortcut key, key data can be viewed quickly.
- Repository: https://github.com/162568316/dsh-tokenrhythm-bill
- Plugin directory: https://www.skillhub.cn/plugins/162568316/dsh-tokenrhythm-bill