返回目录

dsh-subscriptions

精选清单收录维护状态: 活跃

goodandready/dsh-subscriptions

通过 OAuth 接入订阅制 LLM 供应商(Codex、Claude、Grok、Antigravity)。

前往 GitHub
$ dsh plugin add dsh-subscriptions

安装

dsh 没有统一的安装命令——把该插件 README 中的配置行加入你的 profile/patch 配置,然后重启即可。

了解安装方式

28

星标

9

Fork

JavaScript

语言

MIT

许可证

2026-08-21

创建于

2026-11-18

最近推送

README

📦 @goodandready/dsh-subscriptions

Personal AI Subscription Bridge, Multi-Account Pool Rotation & Zero-Leak OAuth for DeepSeek Harness

npm version license DSH Plugin Node version

All Author Projects

🇬🇧 English • 🇷🇺 Русский • 🇨🇳 中文说明


⚡ Overview

dsh-subscriptions bridges your paid personal AI subscriptions directly into DeepSeek Harness as first-class LLM providers.

Instead of burning expensive pay-as-you-go API credits for everyday agent tasks, dsh-subscriptions authenticates your existing web subscriptions through standard OAuth PKCE. It adds multi-account rotation pools that switch accounts when a rate limit or cooldown is reached, preemptive quota switching before a window runs dry, and an in-process Cordis service (ctx.subscriptions) that powers sibling plugins such as dsh-image-gen and dsh-grok-xsearch with zero token leakage.

graph LR
    subgraph DSHCore [DeepSeek Harness Session]
        Agent[🤖 DSH Agent Execution] --> Router{Provider Router}
    end

    subgraph SubscriptionsCore [dsh-subscriptions Engine]
        Router --> Pool{Multi-Account Vendor Pool}
        Pool -->|Account #1| Acc1[👤 Primary Account: Active]
        Pool -->|Account #2| Acc2[👤 Secondary Account: Standby]
        Pool -->|Account #3| Acc3[👤 Fallback Account: Cooldown]
        Acc1 -->|HTTP 429 / Quota Limit| Rotate[Smart Quota & Cooldown Rotator]
        Rotate -->|Switches Traffic| Acc2
    end

    subgraph VendorBridges [Upstream Vendor Bridges]
        Acc1 --> B1[ChatGPT / Codex Backend]
        Acc1 --> B2[Claude Pro / Max Protocol]
        Acc1 --> B3[xAI / Grok Subscriptions]
        Acc1 --> B4[Google Cloud Code Assist / Antigravity]
    end

    subgraph EcosystemBridge [In-Process Cordis Service: ctx.subscriptions]
        Pool --> ImgGen[dsh-image-gen: Zero-Cost Image Drawing]
        Pool --> XSearch[dsh-grok-xsearch: Live Twitter Search]
    end

    style DSHCore fill:#1e1e2e,stroke:#89b4fa,stroke-width:2px,color:#cdd6f4
    style SubscriptionsCore fill:#181825,stroke:#cba6f7,stroke-width:2px,color:#cdd6f4
    style VendorBridges fill:#11111b,stroke:#a6e3a1,stroke-width:2px,color:#cdd6f4
    style EcosystemBridge fill:#181825,stroke:#f38ba8,stroke-width:2px,color:#cdd6f4

✨ Capabilities

🌐 Supported built-in subscription vendors

Vendor Key Subscription Tier Protocol & Features
codex ChatGPT Plus / Pro Codex streaming responses, tool calling & image drawing (/backend-api/codex/...)
claude Claude Pro / Max Native Claude Messages protocol, usage tracking (/v1/messages, /api/oauth/...)
grok xAI / X Premium Real-time reasoning responses, billing checks & social search
antigravity Google Cloud Code Assist Antigravity engine (/v1/loadCodeAssist, /v1/streamGenerateContent)
kimi Moonshot Kimi OAuth Device Flow login, OpenAI-compatible chat
glm Z.ai GLM Coding Plan GLM coding endpoint, live quota monitor
cursor Cursor Cursor backend, billing-period usage dashboard parsing
kiro AWS Kiro Kiro desktop OAuth, streaming code assistance
copilot GitHub Copilot GitHub Device Flow login, Copilot chat completions
qwen Alibaba Qwen (DashScope) OpenAI-compatible endpoint, API key auth
ernie Baidu ERNIE (Qianfan) OAuth2 token refresh via API Key + Secret Key, Wenxinworkshop chat
spark iFlytek Spark OpenAI-compatible Spark HTTP API
jetbrains JetBrains AI Assistant JetBrains AI relay
perplexity Perplexity Pro Sonar model catalog
replit Replit Core Replit AI API, connect-token auth
cody Sourcegraph Cody Pro Sourcegraph API, access-token auth

Adding a vendor is data, not code. The OpenAI-compatible /chat/completions family — replit, spark, cody, qwen — is built from a profile by createChatVendor() (lib/vendors/chat-vendor.js). A new provider in that family needs a profile object, not a module:

import { createChatVendor } from './chat-vendor.js'

const vendor = createChatVendor({
  id: 'my-provider',
  name: 'My Provider',
  apiBase: 'https://api.my-provider.example/v1',
  authorizeUrl: 'https://my-provider.example/keys',   // where a user gets a token
  models: [{ id: 'my-model', name: 'My Model', contextWindow: 128000, maxTokens: 8192 }],
  authFields: ['accessToken', 'apiKey'],   // blob fields to try, in order
  authStyle: 'bearer',                     // or 'token' when the vendor wants that
  missingAuth: 'My Provider requires an API key',
})

The same shape works from configuration: a customVendors entry with protocol: chat takes a baseUrl and a model list and skips the OAuth trio that the Responses-API profiles require:

在 GitHub 阅读完整 README →

DSH Plugins 是独立的 DeepSeek Harness 插件目录,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。