gongstudent/dsh-cline-connect ↗★ 0

dsh-cline-connect

Self-contained Cline provider for dsh: registers the Cline gateway's free (cline-free/*) and ClinePass (cline-pass/*) models on the harness LLM seam, sending the x-client-type product-surface header that the gateway requires for free models. Single API key, no proxy process. 适合希望直接在DSH中使用Cline模型,且无需配置代理进程的用户。

Package
dsh-cline-connect
Compatibility
Unverified
Harness peer range
>=0.1.2-alpha.3
Cordis peer range
^4.0.2
Version
0.2.1
License
MIT
Last updated
Oct 21, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:gongstudent/dsh-cline-connect

配置

API Key

Key 在 app.cline.bot → Settings → API Keys 创建。 可以填在 设置 → Cline Connect 面板里(存入 dsh 凭据库,界面只显示掩码),也可以启动前设环境变量:

export CLINE_API_KEY=sk_xxx

默认凭据名是 CLINE_API_KEY,可在 profile 配置里改成别的。

配置文件

在 $DSH_HOME/profiles//cordis.patch.yml 中覆盖默认值:

- id: cline-connect
  config:
    apiKeyEnv: CLINE_API_KEY
    exposeTools: true

管理工具

cline_connect_* 工具默认不注册。工具定义会出现在每次请求的工具列表里,而管理只是偶尔需要,所以默认让所有对话都不必付这份开销。 需要时在设置 → Cline Connect 中勾选「开启工具注入(重启后生效)」,或把 exposeTools 设为 true。

设置面板不受影响 —— 面板是浏览器页面而非工具,工具关闭时仍然可用。

配置文件

在 $DSH_HOME/profiles//cordis.patch.yml 中覆盖默认值:

- id: cline-connect
  config:
    apiKeyEnv: CLINE_API_KEY
    exposeTools: true