Badegg404/dsh-api-balance ↗★ 1

@Badegg404/dsh-api-balance

DSH Web 插件:会话标题栏悬浮显示多个 AI 平台的账户余额与用量(余额 / 用量双 tab) 适合同时使用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