@alaxrpg/dsh-sensenova-provider
Manifest validUnofficial DeepSeek Harness LLM provider plugin for SenseNova (OpenAI-compatible). Registers the 'sensenova' provider route with multi-account API-key rotation, a Models-page card, and a live model catalog.
@alaxrpg/dsh-sensenova-provider
Unofficial DeepSeek Harness (DSH) LLM provider plugin for SenseNova (OpenAI-compatible API). Registers the sensenova provider route with a Models-page card, a live model catalog, and multi-account API-key rotation on a single shared base URL.
Reference implementation:
@mars-sea/dsh-commandcode-provider(MIT). This plugin keeps only the multi-account connection feature; it drops login flows, usage dashboards, plan windows, and command-line tools.
Features
- Registers provider route
sensenova(display name SenseNova). - Live model catalog via
GET {apiBase}/v1/models. - OpenAI-compatible streaming:
POST {apiBase}/v1/chat/completions(SSE). - Multiple API keys (accounts) on one shared base URL, with automatic rotation:
429 Too Many Requests→ cooldown the key (honorsRetry-After; 60 s fallback when absent).401 Unauthorized→ disable the key until the stored credential changes.- All keys exhausted → surfaces
RATE_LIMIT/INVALID_CREDENTIALwith the earliest reset time.
- Web settings page (Models-page card + dedicated settings section).
Requirements
- DSH host
>=0.1.2-alpha.3(alpha line). - Node.js
>=22.
Compatibility note: the runtime import surface is a stable subset of
@deepseek-ai/dsh-llmpresent since0.1.1-rc.2(LlmAdapter,LlmError,ReasoningEffortId,assertUsableApiKey,attributionHeaders,errorChain,resolveRetryPolicy); the driftingToolCallIdsymbol is defined locally (src/brand.ts, identity-backed). Runtime loading on0.1.1-rc.2hosts works; the declared peer floor>=0.1.2-alpha.3is the type-level support start (theToolCallIdtype first appears there).
Install
dsh plugin --profile <name> add dsh-sensenova-provider
Or install from a local path:
dsh plugin --profile <name> add ./dsh-sensenova-provider
Then configure SenseNova in the Models page: the default credential environment variable is SENSENOVA_API_KEY, and the default base URL is https://token.sensenova.cn/v1.
Configuration
The plugin installs a llm-sensenova settings section with these fields:
| Field | Type | Default | Meaning |
|---|---|---|---|
apiBase | string | https://token.sensenova.cn/v1 | Shared base URL for all accounts. |
apiKeyEnv | credential-ref | SENSENOVA_API_KEY | Default account credential reference. |
accounts[] | array | [] | Extra accounts: { id, label, apiKeyEnv }. |
activeAccount | string | "" | Preferred account id; empty means auto / first usable. |
API keys are stored through the DSH credentials service; they are never logged and never sent to the model.
Development
pnpm install
pnpm run typecheck
pnpm run build # tsdown → lib/
pnpm test # node --import tsx --test tests/**/*.test.ts
License
MIT
Comments
Loading…
From the same category
by kingcharleslzy-ai
Community-maintained dsh-purge fork with host-policy patches, prompt and rule settings, diagnostics, separate update-check and install controls, and local backup/rollback.
★ 10.2k
MIT
JavaScript
Nov 18, 2026
dsh plugin --profile web add dsh-purge-communityby 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
★ 7.9k
↓ 19.2k/wk
MIT
TypeScript
Nov 19, 2026
dsh plugin --profile terminal add @deepseek-harness-tui/dsh-tuiby mmparko
DeepSeek Harness 破甲 (mirror of YuJunZhiXue/dsh-purge) — 上游即将删库,此为本仓库全量镜像:含全部分支/73 个 tag/完整提交历史。原作者署名与二开要求见 README 署名章节。
★ 5.4k
↓ 17.9k/wk
MIT
JavaScript
Oct 13, 2026
dsh plugin --profile web add dsh-purgeby bowenliang123
The best DeepSeek Harness plugin for context insight and management, with context dashboard / browser / sidebar and context command, for context statistics, composition, breakdown, evolution details,
★ 5.3k
↓ 123.5k/wk
Apache-2.0
TypeScript
Nov 18, 2026
dsh plugin --profile web add dsh-contextby strukto-ai
The World's First Virtual Terminal for AI Agents
★ 3.8k
↓ 532/wk
Apache-2.0
TypeScript
Nov 19, 2026
dsh plugin --profile agent add @struktoai/mirage-dshby c1overzz
DSH 插件:每天替你刷一轮 B站,读字幕挑出值得的、写一份日报,值得的 @ 你
★ 1.4k
↓ 9.9k/wk
MIT
JavaScript
Nov 12, 2026
dsh plugin --profile web add dsh-bili-scroll