DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-session-cost

F

dsh-session-cost

Manifest valid★ 1

DeepSeek Harness plugin that prices the current session from provider-reported token usage

UI (client)hasBundlePatch

DSH Session Cost

一个纯 DeepSeek Harness 插件,在会话标题栏右侧显示当前会话累计 API 费用, 并在每条已完成回复底部的悬浮信息行中显示该轮回复费用。

功能

  • 以人民币显示当前会话累计 API 费用
  • 在每条回复底部显示该轮回复费用
  • 区分缓存命中、缓存未命中和输出 token
  • 按请求时间应用高峰/非高峰价格
  • 支持从完整 session log 重新计算旧会话
  • 纯插件实现;卸载后界面改动立即失效

插件从 DSH 持久化 session log 折叠 request/header、assistant usage 和 compaction/summary usage。流式 usage 与最终 usage 属于同一步时按最终值替换, 不会重复计费。旧会话打开后也会从完整日志重新计算。

单次回复费用会汇总该轮内的全部模型步骤(包括工具调用前后的多步推理),与同一行的 “用时 / 首 token / tok/s”保持一致的 turn 口径。该指标通过 conversation.chat.assistant-actions 插件槽注册;移除插件后,标题栏累计费用和 回复费用会同时消失,不需要修改或回滚 DSH 核心前端。

当前内置经 2026-08-17 DeepSeek 实际 usage 账单验证的人民币非高峰单价 (每百万 token):

模型缓存命中输入缓存未命中输入输出
DeepSeek-V4-Flash¥0.05¥1.5¥4.5
DeepSeek-V4-Pro¥0.15¥4.5¥13.5

新价格从北京时间 2026-08-17 00:00 起生效;此前调用仍按旧价计算。北京时间 09:00–12:00、14:00–18:00 的新价格调用按高峰价格(非高峰价的 2 倍)计算。 缓存命中和未命中 token 直接采用 DeepSeek 响应中的 usage;DSH 适配器已将两者 拆成互斥计数,插件不会重复计算。

官方定价页:https://api-docs.deepseek.com/zh-cn/quick_start/pricing

金额仅覆盖写入当前会话日志且带 usage 的模型调用。其他会话、其他客户端、 未返回 usage 的失败请求,以及没有归属到当前 session log 的后台调用不会计入; 最终扣费以 DeepSeek 账户账单为准。

安装

直接安装(推荐)

已安装 dsh CLI 的用户只需执行:

dsh plugin --profile web add github:F1shn/dsh-session-cost

如果通过 DeepSeek Harness 源码运行 CLI,则在项目根目录执行:

pnpm dsh plugin --profile web add github:F1shn/dsh-session-cost

安装完成后重启 DSH Web/Desktop 即可,无需填写 API Key、修改配置或手动启用插件。

从源码安装

git clone https://github.com/F1shn/dsh-session-cost.git ./plugins/dsh-session-cost
pnpm dsh plugin --profile web add ./plugins/dsh-session-cost

卸载

已安装 dsh CLI:

dsh plugin --profile web remove dsh-session-cost

通过源码运行 CLI:

pnpm dsh plugin --profile web remove dsh-session-cost

卸载后重启 DSH,标题栏累计费用和回复费用会同时消失。

Versions

Latest versionPublishedSize
0.1.0——
0.1.1——
0.1.2——
0.1.3——

Comments

Loading…

From the same category

open-design

by nexu-io

🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards,

Development & InfrastructureTerminal & ClientsUI & ExperienceManifest valid

★ 98.1k

Apache-2.0

TypeScript

Sep 25, 2026

Index only — not installable

by Molunerfinn

:rocket: The Ultimate Image Uploader for Efficient Creators. Supports Obsidian, Typora, VS Code etc. and 60+ image hosting services (S3, GitHub, Cloudflare R2, Imgur, Aliyun OSS...). Paste, upload, d

Terminal & ClientsVision & Multimodal

★ 27.2k

MIT

TypeScript

Sep 24, 2026

Index only — not installable

by YaoApp

✨ All your agents and workspaces in one place, on every device you own. Track tasks on a board, accessible from desktop, mobile, browser, or API. Self-hosted.

Terminal & Clients

★ 8k

Go

Sep 24, 2026

Index only — not installable

by zhu1090093659

DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop

Tools & CapabilitiesTerminal & ClientsDevelopment & InfrastructureModels & ProvidersUI & ExperienceManifest valid

★ 8k

Apache-2.0

TypeScript

Sep 25, 2026

dsh plugin --profile web add dsh-web

by omdsh-dev

开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/侧边对话/Git/子代理页面 | Open sidebar foundation, supports third-party extensions to register new sidebar pages. Built-in file rendering/editing, terminal, side chat, Git,

Terminal & ClientsUI & ExperienceWorkflow & AutomationManifest valid

★ 3.7k

↓ 43.9k/wk

MIT

TypeScript

Sep 24, 2026

dsh plugin --profile web add dsh-better-sidebar

by ccch1mneyyy

DSH 官方公众号收录的 TUI 补位插件:Claude Code 风,鲸鱼顶栏/实时状态/流式思考/双击 Esc 回滚/上下文进度+TPS。npm 一键装。 DSH official WeChat featured TUI plugin — Claude Code style: whale bar, live status, streaming thoughts, double-Esc rol

Terminal & ClientsUI & ExperienceManifest valid

★ 3.2k

↓ 5.5k/wk

MIT

TypeScript

Sep 25, 2026

dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tui