luxueliu-usage-command
Daily cost card for your local LLM gateway: /usage reads gateway_usage.jsonl and itemizes spend per model and per hour, covering official direct, OpenRouter relay, and in-plan metered pools.
本地 LLM 网关当日花费价目卡:/usage 读取 gateway_usage.jsonl,按模型×分小时列出消费,覆盖官方直连、OpenRouter 中转与套餐内计费池。
How to install
dsh plugin add github:luxueliu/luxueliu-usage-command About
luxueliu-usage-command 🧾 **内置DSH指令,一键展示今日全局付费模型总消耗账单(人民币版)!** /usage — DeepSeek Harness 的本机 API 花费价目卡命令(¥ / 按日 / 分小时)。 由 luxueliu 制作并开源。数据源是本机 LiteLLM 网关的落账文件 gateway_usage.jsonl,按官方公布价计价,输出「按本地别名 × 分小时」的当日 ¥ 消费卡。 这是什么 一个 DSH指令:在对话输入 /usage,立即得到价目卡。 **三类付费模型全覆盖计价,计价货币跟随时区**: 1. 官方直连类(例如DeepSeek 官方 API); 2. 中转商类(OpenRouter / 各家中转 API); 3. 套餐内的计费池类(自动排除阿里百炼 Token Plan、ClinePass 等套餐内的限额模型,仅计价付费池内的非免费模型)。 **模型表可自由扩展**:在 cordis config 里用 dsModels / usdModels / planModels 任意添加你自己的网关模型与价格,aliases 还能把网关落账里的旧模型名/别名映射到新名字(见下方配置)。没有价目的未知模型自动归入"其他/退役别名"兜底,只列 token,绝不误入今日计费。 **时区/币种自适应**:自动探测系统 locale 与时区…
Recommendation signals
Meta
- License
- MIT
- Language
- JavaScript
- GitHub stars
- 2
- mo. downloads
- –
- Last push
- 2026-08-22
- Created
- 2026-08-20
Links
Basic safety check
- Findings
- curated 收录但无 npm 包/安装命令
- Sources
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- Topics
- cost, deepseek-harness, dsh-plugin, litellm, luxueliu, token-usage, usage
Related plugins
TokenLedger
zh667/TokenLedger
Sidebar usage panel that attributes tokens to the relay site that served each request, read from your existing provider config: today/month/all-time totals, per-site and per-model breakdowns, a year activity heatmap, and New API / Sub2API / DeepSeek balances.
dsh-context
bowenliang123/dsh-context
DSH context insight panel: Context dashboard + /context command + Context browser — one-stop context lifecycle management with categorized composition, content details, evolution trends, compaction/injection events, and stats.
dsh-usage-statistics-panel
HaoyueQin/dsh-usage-statistics-panel
Usage statistics settings panel: 26-week activity heatmap, daily token trend with a cache hit-rate curve, per-model donut and breakdown, time-range filters, summary cards, one-time historical backfill and lossless rebuild.
dsh-all-usage
ParticleLight/dsh-all-usage
Analyze usage across models, providers, workspaces, and time ranges — including custom start/end dates over the full retained history — with live cache-hit visibility and separate model and provider breakdowns. Includes hourly single-day trends, daily cross-day trends, a 53-week GitHub-style heatmap, usage streaks, model and workspace Token-share donut charts with Token, cost, and percentage details, independent combinable filters, cache-efficiency trends, DeepSeek account balance, workspace aliases, CSV export, and a durable ledger that preserves successfully flushed usage after session deletion — and after a workspace is deleted, where its recorded usage is summed into one Deleted row — and rebuilds incrementally — on restart, unchanged sessions are applied from the ledger without re-reading their logs (a per-session log revision is the change signal), and only changed/new events are folded. The workspace registry is kept fresh automatically through the DSH domain/changed probe: only added/removed workspaces are reprocessed incrementally, unchanged workspaces reuse their computed aggregates and ledger with zero rescan, and usage is strictly limited to DSH-registered workspaces (unregistered cwds are ignored). After a scan, lightweight revision status fetches full history only when the Host/data state changes and exposes non-sensitive sync health (revision reuse, rereads, ledger recovery, and failures). Token accounting is explicit: input is fresh (cache read/write and reasoning are separate buckets) and zero-usage replays never overwrite recorded usage. Chinese uses local time, English uses UTC; API access is loopback-only.