Badegg404/dsh-api-balance ↗★ 1

@Badegg404/dsh-api-balance

悬浮显示多AI平台的账户余额与用量 适合同时使用OpenAI、智谱、Together等多个平台并需监控额度的用户。

套件
@Badegg404/dsh-api-balance
相容性
待驗證
版本
0.1.0
授權
MIT
最近更新
2026年8月18日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Badegg404/dsh-api-balance

Usage (用量)

ProviderEndpoint
OpenAIGET /v1/organization/costs
智谱 GLMGET /api/monitor/usage/quota/limit
Together AIGET /v1/billing/usage
Anthropic (Claude)GET /v1/organizations/cost_report

Provider endpoints may change upstream; if a provider fails to parse, consult its official docs. See "Adding a provider" below.

Usage

  1. Open a session; the pill appears to the left of the "Session log" button
  2. In the Balance (余额) tab: pick a balance provider → paste the API key (AGICTO also needs the account UUID) → save; the balance shows in the pill and tab, auto-refreshing every 30s
  3. Switch to the Usage (用量) tab: pick a usage provider (e.g. OpenAI) → paste the API key → save; it shows the 30-day cost (or token quota for 智谱), also auto-refreshing