README
📦 @goodandready/dsh-subscriptions
Personal AI Subscription Bridge, Multi-Account Pool Rotation & Zero-Leak OAuth for DeepSeek Harness
Personal AI Subscription Bridge, Multi-Account Pool Rotation & Zero-Leak OAuth for DeepSeek Harness
⚡ 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:
更多「安全與驗證」外掛
dsh-uumit-remote
作者 uumit-ai
為 DeepSeek Harness 提供遠端訪問能力,支援從其他裝置連線和使用會話。
dsh-auto-review
作者 perrylink
第二模型 AI 自動評審:只讀評審子智慧體對審批請求返回結構化允許或拒絕結論,預設關閉、全程可審計。
cc-safety-net
作者 kenryu42
面向 AI 程式設計智慧體的執行前安全防護外掛,在工具呼叫前攔截破壞性 Git、檔案操作和敏感檔案訪問,相容多種編碼 Agent 與命令列工具。
dsh-permission-rules
作者 perrylink
Claude Code 風格宣告式許可權規則:按序 allow/deny/ask 匹配工具、引數與工作區路徑
