hccccc01333/dsh-analytics0

dsh-analytics

Agent FinOps / token analytics for DeepSeek Harness: usage collection, time-aware cost engine, cache analysis, and session drill-down

AI 분석

提供基于 SQLite 的 Token 消耗与成本分析。适合需要精细化监控大模型 API 账单、分析缓存命中率及进行 FinOps 管理的用户。

패키지
dsh-analytics
버전
0.4.0
라이선스
MIT
최근 업데이트
2026. 8. 14.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hccccc01333/dsh-analytics

Configuration

The plugin row's config (see cordis.yml for the shape):

KeyTypeDefaultDescription
dbPathstring— (required)SQLite database file; missing directories are created.
currencystringPreferred currency sorted first in summaries (rows carry their own currency).
peakHours[startHour, endHour][][[1,4],[6,10]]UTC half-open peak windows; all other hours are off-peak.
pricingPricingRow[]shipped DeepSeek V4 tablePricing rows that replace the shipped defaults.
pricingFilestring (absolute)JSON file of PricingRow[]; mutually exclusive with pricing.
budget.dailynumberDaily spending limit in budget.currency (UTC day).
budget.monthlynumberMonthly limit; the overview also projects month-end spend.
budget.currencystringcurrency or USDCurrency the limits are measured in.
toolsbooleantrueRegister the analytics_query agent tool.
webbooleantrueRegister the /api/analytics/* JSON routes when ctx.webServer exists.