Introduction¶
When running Agents in DeepSeek Harness (DSH), model accounts are often scattered across DeepSeek, Doubao, Qwen, Hunyuan, or self-hosted relay services. To check “whether the API can still be called”, the common approach is to log into each console separately or write your own script to poll the balance API. The plugin dsh-multiplatform-balance (maintainer bjzkhy, GitHub repository bjzkhy/dsh-multiplatform-balance) turns this into a DSH Skill and Tool: after configuring keys locally, the Agent can read-only query the balances of configured platforms. Unconfigured platforms will explicitly return an unconfigured status and will not fabricate numbers.
What Is This¶
dsh-multiplatform-balance is a Skill plugin for DeepSeek Harness, categorized as a networking tool. It registers the multiplatform-balance skill and the get_multiplatform_balances tool with the Agent. It supports querying all configured platforms at once or a single platform only; it has a built-in cache of approximately 60 seconds, and is query-only — it will not recharge or modify accounts. The license is MIT (see the repository README).
Core Features¶
The following are the capabilities documented in the README. After installation, platforms can be enabled on demand in the configuration of the corresponding profile.
- Skill / Tool Registration: The Skill is named
multiplatform-balance; the tool is namedget_multiplatform_balances, with an optional parameterprovider(e.g.,deepseek,doubao,qwen,hunyuan). - Built-in Platform Types: DeepSeek; Doubao / Volcano Engine (
type: volcengine); Qwen / Alibaba Cloud Bailian (type: aliyun); Hunyuan / Tencent Cloud (type: tencent); and custom HTTP balance APIs withtype: custom. - Query Scope: Doubao, Qwen, and Hunyuan queries are for cloud account-level balances, not the balance of a single model SKU.
- Cache and Boundaries: The default
balanceCacheTtlis 60 seconds, reducing frequent requests; unconfigured platforms returnconfigured: false. - Global Options: You can set the default currency (e.g.,
currency: "CNY") in the plugin configuration, as well ascurrencyunder each platform entry.
Installation and Activation¶
In web scenarios, run the installation command given in the official documentation in the terminal:
dsh plugin --profile web add dsh-multiplatform-balance
If you are using the DSH desktop client, replace --profile web with the profile corresponding to your current environment, e.g., desktop.
The plugin runs with the permissions of the current DSH process and will access various cloud vendors or custom HTTP APIs according to the configuration. Before installation, it is recommended to review the repository source code and the MIT license to confirm that keys are only written to the local profile configuration and will not be committed to version control.
Configuring balance¶
In the cordis.patch.yml of the profile being used, add a config for the plugin id dsh-multiplatform-balance. The core is the balance mapping (the key name is the provider alias available on the Agent side). The following example comes from the README; the keys need to be replaced with your own values:
- id: dsh-multiplatform-balance
config:
currency: "CNY"
balanceCacheTtl: 60
balance:
"deepseek":
type: deepseek
apiKey: "sk-..."
currency: "CNY"
"doubao":
type: volcengine
accessKey: "AKLT..."
secretKey: "..."
region: "cn-north-1"
version: "2022-01-01"
currency: "CNY"
"qwen":
type: aliyun
accessKeyId: "LTAI..."
accessKeySecret: "..."
currency: "CNY"
"hunyuan":
type: tencent
secretId: "AKID..."
secretKey: "..."
region: "ap-beijing"
currency: "CNY"
Note: Keys are only stored in the local configuration file; be careful not to leak or mistakenly upload them to a public repository.
Custom HTTP Balance API¶
If the balance is provided by a self-built or third-party relay service, you can add an entry with type: custom:
balance:
myproxy:
type: custom
endpoint: "https://your-relay-service/api/balance"
headers:
Authorization: "Bearer sk-xxx"
valuePath: "data.balance"
currency: "CNY"
valuePath uses a dot-notation path to extract the value from the JSON response, e.g., data.balance, balance, data.amount.
Typical Agent Usage¶
After configuration is complete, the model or user can query balances via the Skill multiplatform-balance or by calling the Tool get_multiplatform_balances. When you only want to check a single platform, pass the optional parameter provider; the value must match the key under balance (e.g., deepseek, doubao, qwen, hunyuan). If omitted, all configured platforms will be queried.
Use Cases and Notes¶
Suitable for: In DSH conversations or automation workflows, letting the Agent aggregate multi-platform account balances before calling models or during operations inspections; when you already have the API keys or cloud account AK/SK for each platform and are willing to write them into the profile’s cordis.patch.yml.
Notes:
- The plugin depends on network access to each vendor’s OpenAPI or your configured
endpoint; ensure that the DSH runtime environment has normal outbound network access. - Unconfigured platforms will not return fake balances; they will only be marked
configured: false. - The community plugin catalog SkillHub entry and the GitHub repository are maintained by the community and have no official affiliation with DeepSeek / High-Flyer; stars and versions are subject to the current state of the repository (the version in package.json is 0.1.0).
Conclusion¶
dsh-multiplatform-balance consolidates multi-platform balance queries into a single Skill and Tool within DSH. After configuring once, you can read-only fetch balances from DeepSeek, Doubao, Qwen, Hunyuan, and custom HTTP sources on the Agent side. To learn more, you can check the SkillHub catalog page and the GitHub repository README.