Bundle
dsh-plugin-cost-tracker
Token cost tracker for DeepSeek Harness -- track usage, calculate costs, budget warnings
- Source
- YYTbit
- stars
- 3 stars
- License
- MIT
- Updated
- Updated 7 days ago
Readme
# 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
```sh
dsh plugin --profile your-profile add dsh-plugin-cost-tracker
```
## CLI
```sh
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
```yaml
- id: cost-tracker
name: dsh-plugin-cost-tracker
config:
defaultModel: deepseek-v4
budgetWarning: 5.0
enableInjection: true
```
## License
MIT -- YYTbit
Install
dsh plugin --profile web add github:YYTbit/dsh-plugin-cost-tracker
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-plugin-cost-tracker from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.