bjzkhy/dsh-multiplatform-balance ↗★ 0

dsh-multiplatform-balance

DeepSeek Harness skill plugin: query multi-platform model account balances (DeepSeek, Doubao/Volcengine, Qwen/Aliyun, Hunyuan/Tencent and more). 适合使用多云模型API并需要统一监控余额的用户。

Package
dsh-multiplatform-balance
Compatibility
Unverified
Harness peer range
0.1.7-rc.2 || 0.1.5-rc.3 || 0.1.5-rc.2 || 0.1.5-rc.1
Cordis peer range
^4.0.1
Version
0.1.0
License
MIT
Last updated
Oct 3, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bjzkhy/dsh-multiplatform-balance

配置

在 profile 的 cordis.patch.yml 中给 dsh-multiplatform-balance 添加 config.balance:

- 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"

说明:

  • 豆包 / 千问 / 混元查询的是云账号级余额,不是单个模型余额。
  • 未配置的平台会返回 configured: false,不会编造余额。
  • 密钥只存在本地配置文件中,注意不要泄露。

Agent 使用

模型或用户可以使用:

  • Skill: multiplatform-balance
  • Tool: get_multiplatform_balances
    • 参数 provider 可选,例如 deepseek、doubao、qwen、hunyuan。