Back to marketplace

dsh-plugin-cost-tracker

Monitoring

YYTbit/dsh-plugin-cost-tracker

Token cost tracker for DeepSeek Harness, tracking usage per session, calculating costs based on model pricing, injecting cost awareness into system prompt, and providing a CLI tool.

  • deepseek-harness
  • dsh-plugin
GitHub Stars
3GitHub
Views
0DSH Plugin Hub
Forks
0GitHub
Open issues
1GitHub Issues
Manifest version
0.1.0dsh-plugin-cost-tracker
Latest push
Aug 13, 2026GitHub
License
MITTypeScript
Plugin type
HostRuns in the DSH Host

README

View source

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

Comments

0
Newest first