ben7am1n / dsh-deepseek-usage

Listed

DeepSeek balance and token usage tools for DeepSeek Harness

mainTool View source

Installation

npx -y @deepseek-ai/dsh plugin --profile web add github:ben7am1n/dsh-deepseek-usage

This installation command is an unverified starting point generated from the GitHub repository address.

README

Maintainer-authored documentation snapshot.

View on GitHub ↗
Commit 244fb45Synced Aug 18, 2026

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

FieldDefaultMeaning
apiKeyEnvDEEPSEEK_API_KEYEnv var or credential reference for the API key
baseURLhttps://api.deepseek.comDeepSeek API base URL
lowBalanceThresholdOptional low-balance warning threshold
# profile cordis.patch.yml
- id: deepseek-usage
  config:
    apiKeyEnv: DEEPSEEK_API_KEY
    lowBalanceThreshold: 20

License

MIT

Repository information

Language
TypeScript
License
MIT
Last updated
Aug 13, 2026, 4:28 PM

Install deliberately

Review source code, permissions, lifecycle hooks, dependencies and network access. Test untrusted plugins in an isolated environment.