DSH HUB
首页插件商店插件包社区排行榜资源发布指南
插件源码
返回插件目录

ben7am1n /

ben7am1n/dsh-deepseek-usage

已验证

DeepSeek balance and token usage tools for DeepSeek Harness

★ 1 Stars0 Forks0 IssuesN/A 社区评分0 已确认安装
查看 GitHub项目主页
README来源: main@244fb45d

dsh-deepseek-usage

DeepSeek usage monitor for DeepSeek Harness: account balance query and live token usage summary as model-callable tools.

Install

dsh plugin --profile <name> add dsh-deepseek-usage

Requires a DeepSeek API key available as DEEPSEEK_API_KEY (env or credential).

Tools

deepseek_balance

Queries GET https://api.deepseek.com/user/balance and returns availability and per-currency balances (total / granted / topped-up). When lowBalanceThreshold is configured, appends a warning when the primary currency balance drops below it.

usage_summary

Aggregates per-session token usage from the harness token meter across live sessions, sorted by total tokens descending. Use it to estimate context usage and spot runaway sessions.

Configuration

Field Default Meaning
apiKeyEnv DEEPSEEK_API_KEY Env var or credential reference for the API key
baseURL https://api.deepseek.com DeepSeek API base URL
lowBalanceThreshold — Optional low-balance warning threshold
# profile cordis.patch.yml
- id: deepseek-usage
  config:
    apiKeyEnv: DEEPSEEK_API_KEY
    lowBalanceThreshold: 20

License

MIT

—/ 5

暂无评分

已验证 DSH bundle

Commit 244fb45d424c

社区评论

还没有评论,来写第一条。

DSH HUB

社区维护的 DSH 插件索引。不是 GitHub 或 DeepSeek AI 的官方产品。

社区资源API关于