Plugin directory / Developer / query-balance
query-balance
Verified · install-tested on dsh SamuFlore
What it does
DSH plugin for query API balance by asking question.
Works — verified, early-stage project
DSH plugin for query API balance by asking question. 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
@samuflore/dsh-query-balance
DSH 查询 API 余额工具:注册 query_api_balance 工具,通过 GET /user/balance 查询 DeepSeek API 账户余额。
安装
dsh plugin --profile web add @samuflore/dsh-query-balance@latest
然后启动:
dsh web
使用
直接对 agent 说:
查询余额
前置条件
工具通过 dsh 的 credentials 服务读取 DEEPSEEK_API_KEY(解析顺序:进程环境变量 → 凭据存储 → ~/.dsh/.env → 项目 .env)。使用前请配置自己的 API Key:
export DEEPSEEK_API_KEY=sk-...
一般来说,在能够正常使用 DSH 的情况下,这一项已经正常配置了。
返回值
返回 /user/balance 接口原始 JSON(is_available、balance_infos)。
API 参考
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 query-balance for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.
This plugin is GitHub source (not published to npm) — install it straight from the repo:
Web profile:
dsh plugin --profile web add github:SamuFlore/query-balance Headless (CLI) profile:
dsh plugin --profile headless add github:SamuFlore/query-balance Test report
Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.