BigAdam-h/dsh-api-meter0

dsh-api-meter

Multi-provider API usage & balance monitor for DeepSeek Harness: dynamic provider discovery (DeepSeek / MiniMax / Moonshot / generic OpenAI-compatible), balance & quota dashboard, and an api_meter agent tool.

AI 분석

核心用途是监控多服务商的 API 余额与用量。适合使用多模型 API 且需要实时掌握消费额度、避免因欠费导致服务中断的开发者和用户。

패키지
dsh-api-meter
버전
0.1.0
최근 업데이트
2026. 8. 22.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BigAdam-h/dsh-api-meter

配置

默认在 patch 层提供最小配置(provider 枚举 + 5 分钟刷新)。如需新增自定义通用 meter,编辑 ~/.dsh/profiles/web/cordis.patch.yml

- id: api-meter
  name: dsh-api-meter
  config:
    refreshIntervalMinutes: 5
    requestTimeoutMs: 15000
    backgroundRefresh: true
    genericMeters:
      - provider: my-gateway
        displayName: My Gateway
        balanceUrl: https://gateway.example.com/v1/balance
        balancePointer: data.balance
        apiKeyEnv: MY_GATEWAY_KEY