ChenYiming-aaa/dsh-account-stats ↗★ 1
dsh-account-stats
DeepSeek account stats plugin for dsh web: live balance + per-session estimated cost (official time-window pricing) as the `account` session projection, plus a balance/cost chip in the composer's input bar.
AI 분석
核心用途是监控 DeepSeek 账户余额与 API 消费。适合需要精细化控制 Token 成本、实时查看单次会话开销的用户。需要配置有效的 API Key 凭据。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
配置说明
| 配置项 | 默认值 | 说明 |
|---|---|---|
baseUrl | https://api.deepseek.com | 余额接口地址 |
apiKeyEnv | DEEPSEEK_API_KEY | 凭据引用名 |
refreshMs | 60000 | 余额轮询间隔(毫秒) |
timeoutMs | 10000 | 余额请求超时 |
pricing.defaultModel | deepseek-v4-flash | 未识别模型时的兜底(当前不计费,见下) |
pricing.models | 官方两档价格 | 分时价格表(元/百万 tokens) |
价格按官方定价页配置;官方改价后请同步更新
cordis.patch.yml中的pricing.models。 不在价格表中的模型(如 opencode 的免费模型)不计入“本次消费”,避免虚增。