DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-plugin-ollama-usage

Plugin Ollama Usage

在对话中显示 Ollama Cloud 账户用量,并配置其 baseURL 和凭据模式。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:CJ-SH/dsh-plugin-ollama-usage#684e2b5072562785ba9452212ae2e231db431b80
README兼容性版本

兼容性与来源证明

Plugin Ollama Usage 以 dsh-plugin-ollama-usage 发布,当前版本为 0.2.1。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/21

版本

0.2.1stable
2026/10/21
0.2.0stable
2026/9/30
0.1.0stable
2026/9/16

相关插件

正在加载相关插件…

最新版
0.2.1
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/10/21
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundle扩展推理的实验性机器翻译Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Connect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。

README

dsh-plugin-ollama-usage

English | 中文

Shows Ollama Cloud account usage (5-hour rolling window / weekly) on the dsh Web chat page, and provides a baseURL / credential-mode configuration.

Features

  • Shows one panel below the composer in the active session and another on the new-session (hero) page; both carry the same content.
  • Reports the session (5-hour rolling) and weekly windows as percentages, refreshed every 5 minutes by default; credit-plan accounts report a monthly window instead.
  • Read-only account usage: it touches no provider configuration and starts no conversations.
  • Supports two modes: reusing an existing Ollama key, or using a plugin-specific key.
  • When credentials are missing, the endpoint does not offer usage, or the request fails, the panel disappears silently — no placeholder, no error. Only a 200 whose shape cannot be read is called out on the Settings page.

Installation

Requirements: dsh with the web profile (tested with 0.2.0-rc.1), Node ^22.19.0 || >=24.0.0, and a working Ollama Cloud API key.

This package is a dsh bundle: installing it appends the bundle to the profile and applies its patch layer.

Install from GitHub (recommended)

dsh plugin --profile web add github:CJ-SH/dsh-plugin-ollama-usage

Install from a local directory

git clone https://github.com/CJ-SH/dsh-plugin-ollama-usage
dsh plugin --profile web add ./dsh-plugin-ollama-usage

link: installs need one extra step

A plugin installed through link: lives outside the profile, so the profile's install closure has to be linked into the package (idempotent; unnecessary for a materialized install):

npm run link-imports

Do not use npm install to install the @deepseek-ai/schemastery peer — copying it breaks module identity.

The plugin loads at startup, so restart dsh after installing; dsh --profile web --dump-config | grep ollama-usage gives you a pre-flight check.

Usage

The panel appears below the composer in the active session and on the new-session (hero) page:

Active session · below composer     session 26% · weekly 6%
New session (hero)                  the same panel
Configuration                       baseURL / credential mode / key

The configuration entry point is the "Ollama Usage" page in Settings (the Settings page the plugin registers; merged into the hub panel when the suite hub is installed), or you can edit the config: block of - id: ollama-usage directly in ~/.dsh/profiles/<profile>/cordis.patch.yml (fields baseURL / credentialMode / apiKeyEnv).

Uninstall

dsh plugin --profile web remove dsh-plugin-ollama-usage

Technical notes

  • Two credential modes: credential mode (reference, the default) reuses an existing apiKeyEnv (default OLLAMA_API_KEY) and this plugin cannot write to it; key mode (direct) writes only its own reference, OLLAMA_USAGE_API_KEY.
  • Quota comes from GET {baseURL}/api/balance (Authorization: Bearer <key>): legacy plans report remaining_percent and resets_at for session/weekly, and the panel shows the used percentage and the absolute reset time; credit plans report a monthly allowance balance and are shown as a monthly window.
  • Since 2026-10 /api/usage returns only per-day request / cost / token buckets and no per-model breakdown (the official API has no successor endpoint for it).
  • The slots and containers are dsh-internal contracts and a dsh upgrade may move them; a panel that does not render is itself the failure mode (no placeholder, no error).
  • Settings and credentials survive uninstall; remove the - id: ollama-usage block from the profile patch by hand if you want them gone.

Further reading

Contracts, troubleshooting, and internals are in docs/design-notes.md.

License

MIT © 2026 HenTaiCJN

Ollama is a product of Ollama Inc.; this plugin is not affiliated with it and only calls its public API.