dsh-token
Run the following command in DeepSeek Harness:
dsh plugin install fufuf-c/dsh-token
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install fufuf-c/dsh-token in the DeepSeek Harness terminal to install; the plugin source lives at https://github.com/fufuf-c/dsh-token and the local token-usage dashboard becomes available at http://127.0.0.1:3080 once installed.
About this plugin
When running local inference with DSH, a token bill usually gives you only a total, yet what really moves the budget is cache hit rate, per-session spend, and which requests are quietly burning tokens. dsh-token is a local analytics plugin built to answer exactly those questions. All data is read from your session logs, with zero upload and no online dependency.
The dashboard is an Apple-style four-tab layout (Today, Activity, Sessions, Settings) that splits every token into four segments: miss, cache hit, cache write, and output, then estimates how much caching saves you. A global filter bar spanning time, model, session, and working directory keeps every panel in sync, and the resulting URL is shareable. Drill into a single session for per-request detail, a context-growth curve, and anomaly spikes. A monthly budget ring, multi-model stacked trend chart, 24-bucket hourly histogram, and a 12-month activity heatmap round out the picture.
If your DSH workflow involves multiple models, many sessions, and multi-week inference campaigns-especially when cache cost sensitivity or team-level budget reporting matters-dsh-token turns a fuzzy usage number into a local, drillable, shareable, and attributable dashboard without introducing any external service.
Use Cases
- Tracking token spend distribution across multi-model, multi-session inference workflows
- Measuring cache-hit savings and optimizing monthly token budgets
- Presenting monthly token trends and anomaly spikes to a team
Best For
- Developers running long-term local inference with DSH
- Solo developers who care about API costs and cache savings
- Tech leads reporting token budget compliance to their team
Related Plugins
A unified suite combining hot runtime injection, task-aware thinking-mode routing, and a graded session protocol with red-team gates to sustain model diligence across long-horizon inference.
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.