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
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-whale-report
SenmuuuuW/dsh-whale-report
DeepTrace — deterministic agent reports from session logs (daily/weekly/monthly/yearly/custom): cost & token breakdown, 8 insight rules, collaboration review, live provider balance, PDF/PNG/HTML export; read-only, never rewrites history.
dsh-opencode-go-usage
v587d/dsh-opencode-go-usage
OpenCode Go subscription usage (rolling/weekly/monthly windows with reset countdowns) in the composer dock, with a built-in credential editor.
dsh-cost-meter
Han-1413141/dsh-cost-meter
Per-session and daily API cost, budget with usage %, official balance, history dashboard, and one-click official price sync with peak/off-peak pricing.