DeepSeek Harness plugin

dsh-ccswitch

Adds CC Switch providers and models to DeepSeek Harness, with provider filtering and model-name search.

Jump to install

Source facts

Repository
upJiang/dsh-ccswitch
Latest update
Aug 21, 2026
Category
Models & Providers
GitHub stars
0

Install

Start with a prompt that asks an agent to read the source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to read the page and repository first.

Do not install anything yet. Read this DeepSeek Harness plugin and explain what it does, which files, networks, or credentials it can access, and how to install and remove it.

Plugin page: https://deepseekplugins.org/plugins/upJiang/dsh-ccswitch
GitHub: https://github.com/upJiang/dsh-ccswitch
Plugin: dsh-ccswitch
Author: upJiang
Install command: dsh plugin --profile web add github:upJiang/dsh-ccswitch

Do not run the install command until I confirm.

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer2 files
README.mdSource · read only

dsh-ccswitch

在 DeepSeek Harness(DSH)中直接使用 CC Switch 已配置的 Claude、Codex/GPT 和 Gemini 模型。

插件会自动读取当前设备上的 CC Switch 配置,不需要在 DSH 中重复填写 API key 或登录信息。模型选择器中还会增加模型名称搜索。

支持 macOS、Windows 和 Linux。

使用前准备

1. 安装并打开 CC Switch。 2. 在 CC Switch 中添加可用的 provider,并确认模型可以正常使用。 3. 安装 DeepSeek Harness。

安装插件

macOS、Windows PowerShell 和 Linux 都可以执行:

dsh plugin --profile web add github:upJiang/dsh-ccswitch

安装完成后重启 DSH。前台运行时先按 Ctrl+C 停止,再重新启动:

dsh web --host 127.0.0.1 --port 3080

重新打开或刷新 DSH 页面后,就可以在模型选择器中看到 CC Switch 的 provider 和模型。

选择模型

打开 DSH 的模型选择器:

1. 找到名称以 CC Switch provider 显示的模型分组。 2. 直接选择需要的模型。 3. 模型较多时,在顶部的“搜索模型”输入框中输入模型名称。

插件会自动读取 CC Switch 后续的配置变化。添加、删除或修改 provider 后,通常不需要重新安装插件。

只显示部分 provider

默认显示 CC Switch 中所有可用 provider。如果只想使用其中一部分,可以创建配置文件。

macOS/Linux:

~/.dsh/ccswitch-providers.json

Windows:

%USERPROFILE%\.dsh\ccswitch-providers.json

文件内容:

{
  "include": [
    "my-codex-provider",
    "ccswitch/claude/*"
  ]
}

可以填写 CC Switch 中显示的 provider 名称,也可以使用 * 通配符。保存文件后,DSH 会自动刷新可用模型。

CC Switch 使用了自定义目录

正常情况下不需要设置路径,插件会自动查找当前用户的 CC Switch 数据库。

如果在 CC Switch 中使用了自定义数据目录、便携目录或同步盘,需要告诉插件数据库的位置。

macOS/Linux:

DSH_CCSWITCH_DB='/path/to/cc-switch.db' \
  dsh web --host 127.0.0.1 --port 3080

Windows PowerShell:

$env:DSH_CCSWITCH_DB = 'D:\path\to\cc-switch.db'
dsh web --host 127.0.0.1 --port 3080

在多台设备上使用

在每台设备上分别安装 CC Switch、DSH 和本插件即可。

  • Mac 会读取 Mac 上的 CC Switch 配置;
  • Windows 会读取 Windows 上的 CC Switch 配置;
  • 两台设备可以使用不同的 provider 和模型;
  • 插件不会在设备之间同步数据库、API key 或登录信息。

没有看到模型

按顺序检查:

1. CC Switch 中是否已经添加并启用了 provider。 2. CC Switch 中的模型是否可以正常请求。 3. 安装插件后是否重启并刷新了 DSH。 4. 是否配置了错误的 ccswitch-providers.json 筛选条件。 5. 使用自定义 CC Switch 目录时,DSH_CCSWITCH_DB 是否指向正确的 cc-switch.db 文件。