Development & Runtime

dsh-plugin-cost-tracker

yytbit/dsh-plugin-cost-tracker · ★ 2

yytbit

Token cost tracker for DeepSeek Harness

License
MIT
Added
2026-08-23
Maintenance
active
Install kind
github
npm
dsh-plugin-cost-tracker

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:yytbit/dsh-plugin-cost-tracker

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: en · Read Chinese README

Table of contents
  1. What it does
  2. Install
  3. CLI
  4. Supported models
  5. Configuration
  6. License

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