api-monitor
常驻 API 用量监控插件:支持多平台余额与配额监控、会话 Token 与花费统计,提供侧边栏入口与独立浮动窗。
AI 分析
核心用途是多渠道 API 成本与额度监控。适合同时使用 DeepSeek、火山、硅基流动等多家服务商,需要低余额预警和实时消费统计的开发者。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jcleener/api-monitor说明文档
阅读完整 README ↗配置
设置命名空间 api-monitor(在 DSH 设置页或 ~/.dsh/settings.yaml 中配置):
| 键 | 默认 | 说明 |
|---|---|---|
volcesAccessKeyId / volcesSecretAccessKey | 空 | 火山引擎 AK/SK(配额查询专用,role('secret') 脱敏) |
volcesTier | auto | 火山档位 |
pollIntervalSeconds | 60 | 轮询间隔(秒) |
warnPercent / dangerPercent | 70 / 90 | 配额剩余比例预警 / 告警阈值 |
balanceWarn | 10 | 余额预警阈值(元) |
priceTable | {} | 模型价格表(token 计费) |
showCacheHitRate / showResetTime | true / false | 是否显示缓存命中率 / 重置时间 |
entryVisibility.* | true | 各供应商入口是否显示 |