GooDAnDReaDY/dsh-cost-meter ↗★ 0
@goodandready/dsh-cost-meter
DeepSeek Harness plugin: a session cost chip in the conversation header - live token usage by bucket, peak/off-peak tariff, and a countdown to the next tariff switch.
AI 분석
核心用途是提供透明、实时的 API 消费监控。适合对大模型调用成本敏感,需要精确掌握每轮对话花费及 OpenRouter 费率的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:GooDAnDReaDY/dsh-cost-meter⚙️ Configuration Reference (settings.yaml)
dsh-cost-meter:
currency: "$"
usdRate: 1.0
displayTimeZone: "UTC"
useOpenRouter: true
prices: {}
modelMap: {}
Configuration Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
currency | string | "$" | Display currency symbol or code |
usdRate | number | 1.0 | Exchange rate multiplier from USD |
displayTimeZone | string | "UTC" | Timezone for window schedule formatting (e.g. Europe/London, Asia/Shanghai) |
useOpenRouter | boolean | true | Fetch OpenRouter public catalog for fallback models |
prices | object | {} | Custom override rates per 1M tokens { prompt, completion, cacheRead?, cacheWrite? } |
modelMap | object | {} | Model alias mappings { "alias": "target-model" } |
Configuration Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
currency | string | "$" | Display currency symbol or code |
usdRate | number | 1.0 | Exchange rate multiplier from USD |
displayTimeZone | string | "UTC" | Timezone for window schedule formatting (e.g. Europe/London, Asia/Shanghai) |
useOpenRouter | boolean | true | Fetch OpenRouter public catalog for fallback models |
prices | object | {} | Custom override rates per 1M tokens { prompt, completion, cacheRead?, cacheWrite? } |
modelMap | object | {} | Model alias mappings { "alias": "target-model" } |