dsh-cost-meter README

README проекта с github.com/Han-1413141/dsh-cost-meter. Одним файлом markdown: README.md.

dsh-cost-meter

Cost tracking and subscription quotas for DeepSeek Harness

version npm monthly downloads GitHub stars MIT license

English | 简体中文

Install · Features · Screenshots · Docs · Community

Track costs and tokens by conversation, model and call. View account balances, subscription quotas and budgets together, with separate API charges and Plan equivalents, multi-provider pricing, peak/off-peak alerts, and configurable sidebar and composer displays.

Whale-themed project illustration
Project illustration

Full conversation view with costs, subscription quotas and account balance

Full conversation view in light or dark mode to match your theme. Screenshots use example data.

Installation

Requires Node.js ≥ 20, DSH 0.2.0 or later, and pnpm available to DSH. See host compatibility.

dsh plugin --profile web add dsh-cost-meter

Restart dsh web after installation or updates. Desktop uses its bundled CLI and the desktop profile; follow the Desktop guide.

Windows installer / pinned version

The PowerShell installer checks pnpm and Git and uses the web profile by default:

irm https://raw.githubusercontent.com/Han-1413141/dsh-cost-meter/v1.9.103/install.ps1 | iex

Install a pinned Git tag:

dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.9.103

See installation and updates for uninstalling or installing without Git.

Current release v1.9.103: release notes · troubleshooting

OpenCode Go setup · CommandCode provider and accounts

Enable Ollama Cloud under Settings → Cost → Quotas and enter your API key or set OLLAMA_API_KEY in the host environment. Current plans show monthly credits and purchased balances. Legacy plans show session and weekly limits. Select Hide on any channel card to move it into Hidden quotas at the bottom of the page. Restore it there at any time. Queries and sidebar placement keep their existing settings. Ollama balance API

Add and enable a Magpie gateway on the same page to view quota windows and balances by provider and account.

Feature overview

See features and screenshots for entry points and model and plan support for providers and credentials.

Screenshots & walkthrough

Main views

Cost trends and model ranking Conversation cost distribution
Cost trends Conversation treemap
Subscription quotas and balances Display settings and interactive preview
Quotas and balances Display settings

Select an image for full resolution. More views: call details, prices, history, dark themes and mobile.

Sidebar layouts

Switch layouts under Settings → Cost → Display → Sidebar → Sidebar layout. Each screenshot uses the same example balance, quota and usage.

Standard Compact
Standard sidebar with stacked quota rows Compact sidebar with two-column quota rows
Simple Combined card
Simple sidebar with shorter rows Combined sidebar card with usage, balance and pricing period

Icons layout

The DeepSeek icon shows the balance and the current pricing period. Select it to open the details.

Off-peak Peak Open during peak
DeepSeek icon with a blue ring during off-peak hours DeepSeek icon with an orange ring during peak hours DeepSeek icon open, showing the balance and the next pricing change

Thanks to @chanyuenpang for proposing and implementing the Icons sidebar layout.

Documentation

Topic Guides
Setup and use Install, update and uninstall · Troubleshooting · Display settings
Statistics and billing Billing rules · Statistics and details · Models and plans · Peak schedules
Balances and quotas Credentials · Custom balances · Gateway quotas · Plan estimates
History and storage Retention and cleanup · Repricing · External usage · Ledger recovery
Development Architecture and development · Contributing · Host compatibility
Releases Update history · CHANGELOG

Community

Open an issue with plugin and host versions, reproduction steps and relevant logs. The WeChat group is available for usage questions and feature discussions.

WeChat community QR code

Contributors

Thanks to everyone who contributes reports, ideas, documentation and code.

Contributors

Star History

Star History Chart

License

MIT © 2026 dsh-cost-meter contributors

dsh-cost-meter (Han-1413141/dsh-cost-meter)

Ищем в базе…

Что это?Плагин для DeepSeek Harness (DSH), который отслеживает затраты за сессию и за день, расход токенов, бюджеты, балансы аккаунтов провайдеров и квоты подписок coding-plan, с двуязычным интерфейсом на английском и китайском.
Это отдельное приложение или оно работает внутри DeepSeek Harness?Это плагин, работающий внутри самого DeepSeek Harness: он добавляет панели затрат в его боковую панель, шапку сессии и страницы настроек, а не является отдельным приложением.
Как настроить отслеживание баланса провайдеров и бюджетов после установки?Перейдите в Settings → Cost (вкладка quota) → 'Custom Provider Balance', чтобы указать любой HTTP-эндпоинт баланса, или отредактируйте конфиг напрямую в storages/cost-meter/ledger.json.
Нужны ли API-ключи для провайдеров coding-plan?Да — каждому провайдеру coding-plan (Anthropic, Z.ai, MiniMax, Kimi, OpenRouter, SiliconFlow, CommandCode, SCNet, Volcano Ark) нужны свои учётные данные, введённые через хранилище учётных данных DSH; Volcano Ark дополнительно требует AK/SK с определёнными правами на чтение IAM.
Есть ли известные оговорки насчёт точности?Запрос по токену провайдера с безлимитной квотой завершается ошибкой, потому что нет значения 'remaining' для извлечения, а использование coding-plan учитывается лишь как оценка в эквивалентной стоимости, а не как реальные списанные суммы.
Как хранятся мои API-ключи провайдеров?Ключи вводятся через поля write-only и хранятся прямо в хранилище учётных данных DSH — никогда не пишутся на диск, не возвращаются в ответах и не сохраняются в ledger.json; исходящие запросы к тому же ограничены белым списком allowed-hosts, чтобы предотвратить утечку ключей.
Что за функция пиковых и непиковых тарифов?Она показывает пиковые окна тарификации DeepSeek в UTC (01:00–04:00 и 06:00–10:00) на фоне непиковых тарифов, с правилом, что выходные с 2026-08-23 полностью непиковые, плюс опциональные напоминания во всплывающих окнах и системных уведомлениях перед переключением.
Для каких подписок coding-plan он может показывать квоты?Девять провайдеров: Anthropic Claude Pro/Max, Z.ai GLM, MiniMax Token Plan, Kimi Code, OpenRouter, SiliconFlow, CommandCode, SCNet и Volcano Ark, каждый включается независимо, со своими учётными данными и интервалом обновления.
Может ли он восстановить историю затрат до момента установки?Да, при первом запуске он автоматически проигрывает полные логи сессий хоста, чтобы заполнить пропущенные дни в реестре, используя исторические цены на момент каждого вызова.
Что добавляет интеграция с CLIProxyAPI?Она умеет подключаться в режиме только чтения к локальному/LAN-шлюзу CLIProxyAPI, чтобы показывать квоты нескольких аккаунтов провайдеров (Antigravity, Claude, Codex, Kimi, xAI) и кредиты плагина WorkBuddy, с жёсткой гарантией, что ни один из её вызовов не расходует тарифицируемую квоту.
Автор
Han-1413141
Размер
29.4 MB
Звёзды
718
Возраст
3 мес
Коммиты · 90 дней