huilin66/dsh-token-cost

huilin66★ 1JavaScript最后同步: 2026-08-14

在 GitHub 打开

README 摘要

dsh-token-cost English 中文 Token cost tracking plugin for DeepSeek Harness. - Per-session cost shown in the session header: 💰 ¥1.48 (hover tooltip notes it is an estimate and the official bill wins) - Per-message cost on every assistant message's action row, revealed on hover together with the run-time stats line - Settings → Token cost : cross-session totals with a per-model breakdown - Prices priced per-million-token from official DeepSeek prices, synced automatically by a daily script Installation One command (recommended — no pnpm required) This installs the plugin into your web profile (enabling pnpm through corepack when missing), appends the cordis.patch.yml row, and creates the prices directory. Re-running is safe (idempotent). For another profile (e.g. tui ): Via dsh (requires pnpm) Then add to your profile's cordis.patch.yml : Restart dsh web and hard-refresh the browser. Price updates Only two price sources, both plain JSON files under /.dsh/prices/ (or $DSH HOME/prices/ ): File Who maintains it Priority official-prices.json The daily script — do not hand-edit lower local-prices.json You — optional overrides higher Effective price per model: local-prices.json official-pr…

在 GitHub 查看完整 README →
终端/TUIdsh-plugindsh-plugins

分类