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

@goodandready/dsh-ollama-cloud-provider

Ollama Cloud Provider

用于 DeepSeek Harness (dsh) 的 Ollama Cloud 大语言模型提供商插件。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:GooDAnDReaDY/dsh-ollama-cloud-provider#87b09f91c09ce501095aee0c598a11f1c03e0987
README兼容性版本
Ollama Cloud settings

兼容性与来源证明

Ollama Cloud Provider 以 @goodandready/dsh-ollama-cloud-provider 发布,当前版本为 0.1.15。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

0.1.15stable
2026/11/2
0.1.14stable
2026/10/29
0.1.13stable
2026/10/29
查看其余 11 个版本收起版本
0.1.12stable
2026/10/29
0.1.11stable
2026/10/29
0.1.10stable
2026/10/29
0.1.9stable
2026/10/28
0.1.8stable
2026/10/26
0.1.7stable
2026/10/22
0.1.6stable
2026/10/22
0.1.5stable
2026/10/22
0.1.4stable
2026/10/21
0.1.3stable
2026/10/21
0.1.2stable
2026/10/21

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义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

📦 @goodandready/dsh-ollama-cloud-provider

Ollama Cloud LLM Provider for DeepSeek Harness

⭐ If you like this plugin, please star it on GitHub — it shows me that the plugin is useful to you and motivates me to keep developing it.

🐛 If you find a bug or would like to request a feature, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.

Ollama Cloud provider plugin for DeepSeek Harness (dsh).

It registers one native LLM route, ollama-cloud, served by https://ollama.com, with two wire protocols:

TransportEndpointWhen
native (default)POST /api/chatthinking, tool calls, usage counters
openai-chatPOST /v1/chat/completionsOpenAI-compatible deployments and fallback

Requests resolve the key per call, so a changed credential reaches the next request without a restart.

Architecture

graph LR
    subgraph DSH["DeepSeek Harness Core"]
        Agent["DSH Agent / Chat"]
        Creds["Credentials / launch env"]
    end

    subgraph Plugin["dsh-ollama-cloud-provider"]
        Router{"Route: ollama-cloud"}
        Pool["Account pool<br/>rotation, cooldowns, sticky"]
        Catalog["Live catalog<br/>/v1/models + /api/tags"]
        Usage["Balance & usage<br/>/api/balance + /api/usage"]

        subgraph Transports["Wire protocols"]
            T1["Native /api/chat (NDJSON)"]
            T2["OpenAI /v1/chat/completions (SSE)"]
        end
    end

    subgraph Ollama["Ollama Cloud"]
        Chat["ollama.com/api/chat"]
        OpenAI["ollama.com/v1/chat/completions"]
        Billing["/api/balance, /api/usage"]
    end

    Agent --> Router
    Creds -.-> Pool
    Router --> Pool
    Pool --> Transports
    T1 --> Chat
    T2 --> OpenAI
    Catalog --> Router
    Usage --> Billing

Features

  • Two wire transports chosen per model: the native Ollama API (NDJSON) and the OpenAI-compatible gateway (SSE).
  • Text, thinking, tool calls, images, usage and finish reasons on both transports.
  • Live catalog from GET /v1/models, enriched with capability flags from GET /api/tags.
  • Accurate limits for the dsh picker: context window, input modalities, reasoning levels and their default, tool support, and API visibility.
  • Balance and usage from the official /api/balance and /api/usage endpoints: included credits, purchased credits, 24-hour / 7-day / 30-day spend, and spend by model.
  • Multi-account rotation before any content is streamed: 401/403/429 and quota rejections mark a key and retry with the next one. Cooldowns persist across restarts.
  • Model-scoped marks: an unsupported model or a per-model quota rejection marks only that key+model for five minutes; other and free models keep using the account.
  • Sticky accounts per conversation, plus model → account glob rules.
  • Price estimates from the published Ollama pricing table, including off-peak rates, with per-model overrides.
  • Browser UI:
    • Settings → Ollama Cloud: key, balance, accounts, rules, model allowlist, per-model transport, connection settings.
    • Sidebar quota card (off by default, and it does not poll /state while disabled): a ring with the highest used window and rows with remaining credits or legacy windows; an optional planLabel is shown next to the provider name.
    • Center quota panel: spend windows, spend by model, accounts, routing trace, usage analytics and a request heatmap.
  • /ollama command for status, usage, balance, accounts, models, rules and test [model].
  • TUI settings section for terminal profiles.
  • One-click plugin update in Settings → Ollama Cloud.

Install

Build and pack first:

npm install
npm run build
npm pack

Install the published package:

dsh plugin --profile web add @goodandready/dsh-ollama-cloud-provider@0.1.15
# DSH Desktop:
dsh plugin --profile desktop add @goodandready/dsh-ollama-cloud-provider@0.1.15

Or install the packed tarball into a profile:

dsh plugin --profile web add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz
# DSH Desktop:
dsh plugin --profile desktop add /absolute/path/to/goodandready-dsh-ollama-cloud-provider-0.1.15.tgz

Restart dsh (or DSH Desktop), then pick Ollama Cloud in the model picker.

Use the tarball, not the directory. On dsh 0.2.1-rc.2/rc.3 the Desktop CLI aliases a local directory passed to dsh plugin add and overwrites the target's package.json.

Configure

- id: llm-ollama-cloud
  name: "@goodandready/dsh-ollama-cloud-provider"
  config:
    apiKeyEnv: OLLAMA_API_KEY      # default
    # apiKey: ...                  # composition only, never commit
    transport: native              # native | openai-chat
    requestTimeoutMs: 300000
    streamIdleTimeoutMs: 300000
    visibleModels: []
    modelTransports: {}
    # contextWindowOverrides: { "model-id": 131072 }
    # maxOutputTokens: 32768
    accounts:
      - label: Work
        apiKeyEnv: OLLAMA_API_KEY_2
    activeAccount: ''              # label or credential name to pin
    stickySession: true
    showSidebarQuota: false
    planLabel: ''                  # optional, e.g. PRO

Every field except apiKey is volatile and appears in dsh settings.

Keys

  1. config.apiKey (composition only, role('secret')).
  2. The dsh credential seam under apiKeyEnv (default OLLAMA_API_KEY).
  3. The launch environment (process, project .env, $DSH_HOME/.env).

Create a key at https://ollama.com/settings/keys. Keys do not expire; x-api-key is not accepted, only Authorization: Bearer.

Accounts and rotation

Add a second account in Settings → Ollama Cloud → Accounts: give it a name and a credential reference (for example OLLAMA_API_KEY_2), paste its key, then Save. The default account always serves first unless activeAccount pins another one.

Rotation happens before any content is streamed. When the serving key is rejected with an invalid credential, a rate limit or an exhausted quota, the adapter marks that key and retries the same request with the next usable account. A request that already started streaming is not replayed. Cooldowns are stored in ~/.dsh/storages/dsh-ollama/cooldowns.json keyed by a SHA-256 fingerprint — raw keys are never written.

Model → account rules

Pin a model to a preferred account with a glob. The first matching rule wins; * and ? are supported and matching is case-insensitive. Other accounts remain fallbacks.

modelAccountRules:
  - pattern: "*flash*"
    account: "Work"

Balance and usage

The plugin uses the documented cloud endpoints:

  • GET /api/balance → included.balance_usd / included.allowance_usd / included.period and purchased.balance_usd. Legacy accounts return included.session.remaining_percent and included.weekly.remaining_percent; both formats are displayed.
  • GET /api/usage?range=24h|7d|30d&group_by=model → totals and per-model groups with request count, USD, input, cached input and output tokens.

/api/usage is limited to 10 requests per minute per user, so the reader caches each range (balance 60 s, usage 120 s, failures 30 s) and never polls in the background. Quota failures are fail-open: chat never depends on them.

Settings page

Open Settings → Ollama Cloud:

  • Key — status, paste a key, clear it, run Test connection against a chosen model. The probe disables thinking so the reply is visible.
  • Balance and usage — credit bar or legacy windows, spend windows, warning at 80 % and exhausted at 95 %.
  • Accounts — extra keys, per-account spend, pin, remove, set a key.
  • Model → account rules — glob rules.
  • Routing — sticky session per conversation.
  • Models — search, refresh the live catalog, hide models, override the wire transport per model, see price, context and capabilities.
  • Connection — native and OpenAI bases, usage and balance endpoints, transport, timeouts, output cap and context override.
  • Sidebar — show or hide the quota card, and an optional plan label (for example PRO) shown next to the provider name.
  • Plugin update — current/latest version and Update now.

The Host serves /dsh-ollama/state, /health, /status, /analytics, /usage, /balance, /config, /key, /key/clear, /refresh, /models/refresh, /test and /update. /status probes the public tag endpoint without a key or quota. Writes require JSON, an Origin or Referer matching Host (the Desktop renderer is identified by its dsh-auth-* cookie and desktop user agent when both headers are absent), and are restricted to loopback (127.0.0.1 / ::1); a write without any source identity is rejected with 403.

Command

/ollama status            # provider, accounts, quota and model count
/ollama usage             # 7-day spend windows and spend by model
/ollama balance           # included and purchased credits
/ollama accounts          # labels, source, active/cooling, 7-day spend
/ollama models            # ids, price, context, capabilities
/ollama rules             # model → account rules
/ollama test [model]      # minimal real request

Verified API facts

Checked live on 2026-10-21:

  • GET https://ollama.com/v1/models is public and returns data[] plus a non-standard models[] array carrying context_window, max_context_window, input_modalities, supported_reasoning_levels, default_reasoning_level, visibility and supported_in_api.
  • GET https://ollama.com/api/tags is public and is the only per-model source of capabilities (completion, tools, thinking, vision).
  • The live catalog returned 23 cloud models.
  • Native /api/chat streams NDJSON and reports prompt_eval_count, prompt_eval_cached_count, eval_count and done_reason in the final line.
  • OpenAI /v1/chat/completions supports streaming, tools, vision, reasoning_effort and stream_options.include_usage.
  • Anthropic compatibility (/v1/messages) exists but is partial; this plugin does not use it.

Development

npm run typecheck
npm test
npm run build
npm run check         # typecheck + tests + build
npm run release       # check + packed tarball
node scripts/probe.mjs

scripts/probe.mjs is read-only against the public catalog; with OLLAMA_API_KEY set it also probes chat, balance and usage and prints the raw shapes.

Visual verification

The Ollama Cloud settings page in DSH Desktop (dark theme): configured credential, balance and usage, and the connection probe.

Ollama Cloud settings

Limitations

  • Cloud only. Local http://localhost:11434 is not registered as a route.
  • Embeddings are not exposed: no cloud model in the live catalog advertises the embedding capability.
  • File attachments are forwarded as deterministic handle text, not inline bytes.
  • The usage endpoint is limited to 10 requests per minute; caches and the UI account for that.
  • Cost values are estimates from the published table (including off-peak rates); the gateway is the authority.
  • Automatic update requires the DSH CLI entry in the runtime.
  • The UI requires a web profile; the TUI keeps the /ollama command and the model route.

License

MIT © GooDAnDReaDY. See LICENSE and NOTICE.