BreakFree003/dsh-clinepass-deepseek ↗★ 14

dsh-clinepass

Cline Pass for DeepSeek Harness: an OpenAI-compatible provider route that provisions itself on Settings → Models, reports the real upstream provider it sees in the gateway's chat responses (composer pill + status file), draws the Cline Pass usage card, and keeps the route's transport prefix out of the model-facing prompt. It never rewrites a request. 适合需要在DSH中配置、使用并监控Cline Pass模型及用量卡片的用户。

パッケージ
dsh-clinepass
互換性
未検証
バージョン
0.12.7
ライセンス
MIT
最終更新
2026/10/20

同名パッケージの別リポジトリ

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:BreakFree003/dsh-clinepass-deepseek

ドキュメント

README 全文を読む ↗

配置项

withDefaults() 里的全部键;不写就是下面的默认值。

键默认作用
upstreamhttps://api.cline.bot网关 origin(profile 的 baseURL 是它 + /api/v1)。带路径会被截成 origin 并警告;不是 URL 则什么都不装
providercline-pass路由 id(卡片与胶囊都认它)
modelcline-pass/deepseek-v4.1-flash模型 id(请求体要带 type/ 前缀)
displayNameCline Pass设置页卡片标题
contextWindow921600登记/对齐卡片用
maxTokens384000同上
apiKeyEnvCLINE_PASS_API_KEY凭据库里的键名
provisiontruefalse = 不登记/不修复 provider 卡片(那卡片就得自己声明)
plainModelIdtruepersona 里显示裸模型 id(deepseek-v4.1-flash);false = 保持完整 id(详见下节)
usagetruefalse = 不挂载用量路由(卡片会显示「没挂载」而不是一直转圈)
usageRoute/api/clinepass.usage用量路由路径
usageTimeoutMs15000宿主读网关的超时
usageCacheMs60000成功读取的缓存时长;0 = 每次重取(失败只缓存 5 秒)
statusFile/dsh-clinepass-status.json观察结果落盘处;给字符串换路径,false 关掉