YYTbit/dsh-plugin-cost-tracker
DeepSeek Harness 的令牌成本追踪器
项目介绍Project Overview
DSH 插件 cost-tracker 用于追踪 DeepSeek Harness 单次会话的 token 用量,按模型价格表自动计算费用,并将成本信息注入系统提示以增强模型成本意识。配套 CLI 支持 cost 命令直接估算任意输入输出的花费,覆盖 deepseek、gpt-4o、claude、gemini 等多款主流模型。配置项可设置默认模型、超额预算阈值及提示注入开关。需注意费用数值依赖所选模型的报价表,若官方价格变动需自行更新。
DSH plugin cost-tracker tracks token usage per DeepSeek Harness session, auto-calculates spend from model pricing, and injects cost awareness into the system prompt to keep models budget-conscious. A CLI ships a cost command for quick estimates, covering deepseek, gpt-4o, claude, and gemini families. Config sets a default model, budget warning threshold, and injection toggle. Caveat: figures depend on the bundled pricing table, so users must refresh it whenever official rates change.
请帮我了解并安装插件:【dsh-plugin-cost-tracker】【https://github.com/YYTbit/dsh-plugin-cost-tracker】
把上面这条消息直接发给当前会话里的 DSH,让它帮你了解并安装。安装命令不一定准确,发给 DSH 更稳。Send this message to DSH in your current session. CLI install commands may not be accurate across systems — DSH will figure it out for you.
或使用命令行安装(适合开发者)Or use CLI install (for developers)
命令行安装CLI Install
dsh plugin --profile web add dsh-plugin-cost-tracker
把 YYTbit/dsh-plugin-cost-tracker 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-cost-tracker
Token cost tracker for DeepSeek Harness.
What it does
- Tracks token usage per session
- Calculates costs based on model pricing
- Injects cost awareness into system prompt
- Provides CLI tool for cost estimation
Install
dsh plugin --profile your-profile add dsh-plugin-cost-tracker
CLI
cost --model deepseek-v4 --input 10000 --output 5000
# Model: deepseek-v4
# Input: 10,000 tokens @ $0.27/M
# Output: 5,000 tokens @ $1.10/M
# Cost: $0.01
Supported models
- deepseek-v4, deepseek-v4-flash, deepseek-r1, deepseek-vl2
- gpt-4o, gpt-4o-mini, gpt-5.2
- claude-sonnet-4, claude-opus-4, claude-haiku-4
- gemini-2.5-pro, gemini-2.5-flash
Configuration
- id: cost-tracker
name: dsh-plugin-cost-tracker
config:
defaultModel: deepseek-v4
budgetWarning: 5.0
enableInjection: true
License
MIT -- YYTbit
nexu-io/open-design
ruvnet/ruflo
amruthpillai/reactive-resume
esengine/DeepSeek-Reasonix
volcengine/OpenViking
Molunerfinn/PicGo
titanwings/distilly
titanwings/colleague-skill