api-monitor
常驻 API 用量监控:DeepSeek/SiliconFlow/OpenCode Go/火山 Coding+Agent Plan 余额与配额,会话树 token 与花费(侧边栏入口 + 独立浮动窗)。
安装
$
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 | 各供应商入口是否显示 |