dsh-token-feiyong: Token Billing Plugin for DeepSeek Harness

dsh-token-feiyong is a token billing plugin for DeepSeek Harness (DSH), designed to address cost tracking and budget overruns in agent development. It intercepts model calls, prices them by cache hits, cache misses, and output tokens, and supports peak/off-peak time-based billing as well as matching across multiple pricing tiers. The plugin provides real-time cost badge display, a locally persisted ledger, multi-provider balance queries (including AFP deductions), and consolidated session statistics. Once installed, users can directly view per-call, current-conversation, and today's spending in the input field. Its dependence on host capabilities is optional, and it offers strong security and privacy protection, making it an effective tool for managing DSH costs.

Read More