hccccc01333/dsh-analytics ↗★ 0
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 管理的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hccccc01333/dsh-analyticsConfiguration
The plugin row's config (see cordis.yml for the shape):
| Key | Type | Default | Description |
|---|---|---|---|
dbPath | string | — (required) | SQLite database file; missing directories are created. |
currency | string | — | Preferred 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. |
pricing | PricingRow[] | shipped DeepSeek V4 table | Pricing rows that replace the shipped defaults. |
pricingFile | string (absolute) | — | JSON file of PricingRow[]; mutually exclusive with pricing. |
budget.daily | number | — | Daily spending limit in budget.currency (UTC day). |
budget.monthly | number | — | Monthly limit; the overview also projects month-end spend. |
budget.currency | string | currency or USD | Currency the limits are measured in. |
tools | boolean | true | Register the analytics_query agent tool. |
web | boolean | true | Register the /api/analytics/* JSON routes when ctx.webServer exists. |