dshbase

Plugin directory / Developer / query-balance

query-balance

Verified · install-tested on dsh SamuFlore

✓ Actively maintained

View on GitHub ↗ ← Back to plugin directory

3Stars
0Forks
0Open issues
Language
2026-08-21Last push
Cross-platformPlatform

What it does

DSH plugin for query API balance by asking question.

Our take
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_availablebalance_infos)。

API 参考

https://api-docs.deepseek.com/api/get-user-balance/

Install

🧩 Let your agent install it (recommended)

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.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Developer

Browse all 7789 plugins →