Plugin directory / Network / dsh-deepseek-usage
dsh-deepseek-usage
Verified · install-tested on dsh ben7am1n
What it does
DeepSeek balance and token usage tools for DeepSeek Harness
Works — verified, early-stage project
DeepSeek balance and token usage tools for DeepSeek Harness It installs cleanly and boots without issues in our testing. It's early-stage but functional.
“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.
README
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
Install
Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:
dsh plugin add dshbase-catalog Then say "install dsh-deepseek-usage for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
Web profile:
dsh plugin --profile web add dsh-deepseek-usage Headless (CLI) profile:
dsh plugin --profile headless add dsh-deepseek-usage Package
npm: dsh-deepseek-usage · version 0.1.0 · tested on dsh 0.1.0-rc.6
Test report
Verified end-to-end: L1 install + L2 load + L3 runtime Q&A on dsh 0.1.0-rc.6.
When to use it
Give the agent network access — requests, APIs, proxies, or protocols — so it can reach external systems.
Who it's for
Users whose tasks touch the network — calling APIs, fetching resources, or talking to remote services.
For developers — extending it
Adapters and request shaping are the seams — add protocols, auth handlers, retries, and endpoint abstractions.