Jannchie/dsh-bill

Cost tracking for DSH: a per-turn cost line, a per-session Cost tab and an account-wide Cost panel that attribute spend to what the money actually went on, priced per call from a 8000+ entry online catalogue.

dsh-bill is cost tracking for DSH: a line under each finished turn tells you what that turn cost, a per-conversation Cost tab shows what that session's money went on, and an account-wide Cost panel beside Plugins does the same for the whole account (total, tokens, cache hit, monthly forecast, balance, budget and a per-session split, with spend-over-time stacked by model and a weekday x hour heatmap). Its cost attribution splits spend by kind of content (tool output, model output, system prompt, terminal commands grouped by tool, attachments, etc.). Three design points distinguish it from similar plugins: it pulls an online catalogue (models.dev and OpenRouter through llm-pricing, covering 8000+ entries) instead of a hand-maintained price table; it prices each call at that call's own instant and never recomputes history; and it splits the request into classified segments to answer 'on what', not just 'how much'. A bill_stats agent tool lets the model answer spend questions, with agentTool: false opting out of its schema.

Usage & Billing ★ 5
View on GitHub ↗

Install

dsh plugin --profile web add dsh-bill

Copied verbatim from the README's Install section, which says to restart dsh web to pick it up.

Compatibility

A DSH Web profile plugin (some surfaces need DSH 0.1.7+). Multi-currency support uses live rates for ~166 currencies; it reads the session log itself, so turns from before the install are backfilled.

Details

Alternatives

Sttrevens/dsh-cost-meter · YZz-S/dsh-token-cost-meter · paolomandica/dsh-cost-usage-monitor

More plugins in Usage & Billing

Browse more in Usage & Billing

Guides for Usage & Billing plugins