rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:4AM-Forever/dsh-token-usage
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
左侧栏新增 Token 用量 入口:按日期筛选本机 Token 分析,并显示 DeepSeek 平台账户全量费用卡片。
A DeepSeek Harness Web plugin that adds a Token usage entry to the left sidebar: date-filtered local token analytics plus an account-wide DeepSeek Platform spend card.
115,144.8万。本地 Token 图表和表格读取 @deepseek-ai/dsh-token-meter 的 tokenUsage 会话投影。日期筛选按会话最近活动时间筛选;每行显示该会话的累计 Token,而不是按天拆分后的 Token。
费用卡片与本地 Token 总量分开统计:Host 读取当前登录的 DeepSeek 平台账户,返回账户全量计费金额,可能包含 DSH 之外的调用。费用使用与筛选完全相同的开始/结束日期。平台私有按 Key 用量接口最多接受 30 天,因此界面不会请求更宽的范围。账户未登录或私有接口变化时,费用卡片会显示错误状态,不会伪造估算金额。
侧边栏今日摘要始终使用平台账户的今天数据,不跟随主面板的日期筛选;它每 60 秒刷新一次,打开主面板时也可通过刷新按钮立即更新。Token 以万/亿为单位(超过千万自动切换为亿),费用以元为单位,均保留两位小数。摘要只在侧边栏展开时显示;折叠成图标栏时只显示图标。
Fork 会话会继承复制过来的历史,因此本地统计可能重复计入继承部分的用量。
localhost 或 127.0.0.1 打开 GUI。git clone https://github.com/4AM-Forever/dsh-token-usage.git
在 DSH 的插件管理器中,用绝对包路径把克隆目录安装为当前 profile 的 bundle:
plugin_manager install_bundle <dsh-token-usage 的绝对路径>
包名是 @local/dsh-token-usage,侧栏入口和主面板 id 都是 token-usage。无需构建:client.js 是浏览器模块,index.js 是 Host 半。安装后刷新页面即可。
userToken,使用 DSH 已持有的账户会话。dsh-plugin · deepseek-harness · dsh · dsh-bundle · token-usage · usage-dashboard · cordis-plugin
在 GitHub 搜索 dsh-plugin 标签即可找到此插件。
115,144.8万.The local token charts and table read the tokenUsage session projection from @deepseek-ai/dsh-token-meter. The selected dates filter sessions by last activity time; each row shows that session's cumulative token totals, not a per-day token split.
The spend card is separate from the local token totals. It queries the signed-in DeepSeek Platform account through the Host and returns account-wide billed spend, which may include calls outside DSH. It uses the exact selected start/end dates. The private platform by-key endpoint accepts at most 30 days, so the UI never requests a wider window. If the account is signed out or the private endpoint changes, the card reports an error instead of showing a fabricated estimate.
The sidebar summary always uses the Platform account's today totals and does not follow the main panel's date filter. It refreshes every 60 seconds and also updates immediately when the panel refresh button is used. Token usage is shown in 万 or 亿 (automatically switching to 亿 above ten million), and spend in yuan, both with two decimals. The summary appears when the sidebar is expanded; the collapsed rail shows only the icon.
A forked session inherits copied history, so local totals may include inherited usage more than once.
localhost or 127.0.0.1 for the loopback-only spend bridge.git clone https://github.com/4AM-Forever/dsh-token-usage.git
Install the cloned directory as a bundle in the active DSH profile with Plugin Manager, using the absolute package path:
plugin_manager install_bundle <absolute-path-to-dsh-token-usage>
The package name is @local/dsh-token-usage; the sidebar entry and main panel use the id token-usage. No build step is required: client.js is the browser module and index.js is the Host half. Refresh the page after installation.
userToken; it uses the account session already held by DSH.dsh-plugin · deepseek-harness · dsh · dsh-bundle · token-usage · usage-dashboard · cordis-plugin
Search GitHub for the dsh-plugin topic to find this plugin.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、deepseek-harness。