Saikel-Orado-Liu/dsh-fare-meter

Saikel-Orado-Liu★ 1TypeScript最后同步: 2026-08-15

在 GitHub 打开

Cost tracking plugin for the DeepSeek Harness Web GUI — snapshot-anchored per-turn pricing, account balance, and live cost estimates.

README 摘要

DSH Fare Meter English  ·  简体中文 DSH Fare Meter is a DeepSeek conversation cost-tracking plugin for the DeepSeek Harness (DSH) Web GUI — price-snapshot-anchored per-turn cost (peak/off-peak aware), account balance , a cost view tab , per-message cost chips , and a header pill with live streaming estimates . Every step's cost, price band, and snapshot version are computed once from the pricebook snapshot effective at the usage event's own time and then never recomputed — a later price change never rewrites an already-written conversation row. - Host half ( src/ ): DeepSeek GET /user/balance query, the persisted snapshot-anchored pricebook, the sessionCost projection, subagent cost aggregation, and the trust-fenced /fare-meter route. - Client half ( src/client/ ): composer-dock readout, Cost tab, per-reply chip, header pill, and the plugin configuration card — in Simplified Chinese and English. Overview Chat costs in DeepSeek pricing change over time (list prices, USD→CNY exchange, and the upcoming 2026-08-17 peak/off-peak rollout), and a conversation spans many turns with cache-hit, cache-miss, cache-write, and output token buckets. Naively recomputing costs at current pric…

在 GitHub 查看完整 README →
工具/开发cordiscost-trackingdeepseekdeepseek-harnessdshdsh-pluginpricingreact

分类