dsh-ccswitch
Curated pickMaintenance: Activeupjiang/dsh-ccswitch
Adds CC Switch providers and models to DeepSeek Harness, with provider filtering and model-name search.
$ dsh plugin add dsh-ccswitchInstall
dsh has no central install command — add this plugin’s entry (documented in its README below) to your profile or patch config, then restart.
How installs work5
stars
2
forks
TypeScript
Language
2026-08-19
Created
2026-08-24
Last push
README
dsh-ccswitch
在 DeepSeek Harness(DSH)中直接使用 CC Switch 已配置的 Claude、Codex/GPT 和 Gemini 模型。
插件会自动读取当前设备上的 CC Switch 配置,不需要在 DSH 中重复填写 API key 或登录信息。模型选择器中还会增加模型名称搜索。
支持 macOS、Windows 和 Linux。
使用前准备
- 安装并打开 CC Switch。
- 在 CC Switch 中添加可用的 provider,并确认模型可以正常使用。
- 安装 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 的模型选择器:
- 找到名称以 CC Switch provider 显示的模型分组。
- 直接选择需要的模型。
- 模型较多时,在顶部的“搜索模型”输入框中输入模型名称。
插件会自动读取 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 或登录信息。
没有看到模型
按顺序检查:
- CC Switch 中是否已经添加并启用了 provider。
- CC Switch 中的模型是否可以正常请求。
- 安装插件后是否重启并刷新了 DSH。
- 是否配置了错误的
ccswitch-providers.json筛选条件。 - 使用自定义 CC Switch 目录时,
DSH_CCSWITCH_DB是否指向正确的cc-switch.db文件。
如果市场提示 @google/genai 或 protobufjs 的构建脚本被 pnpm 拦截,请更新到 dsh-ccswitch 0.1.1 或更高版本后重新安装。新版会使用 DSH 已提供的运行时依赖,不需要为这两个包单独放行构建脚本。
More in Integrations & Sharing
dsh-notification
by omdsh-dev
Desktop notifications for DeepSeek Harness turn completions, with per-outcome controls and include/exclude keyword rules.
dsh-open-in-vscode
by omdsh-dev
Open DeepSeek Harness workspace directories in VS Code directly from the web GUI.
fn-os-apps
by tnnevol
Tencent CodeBuddy model provider for DeepSeek Harness that signs in with browser OAuth instead of an API key, lists the CodeBuddy model catalog with the context, output, tool-calling, reasoning and image capabilities of each model, keeps multiple accounts with automatic failover to the next usable one, shows remaining quota in the composer with a token and credit usage panel, and completes automatable CodeBuddy growth tasks per account with an execution log. Install from npm with `dsh plugin --profile web add @tnnevol/dsh-codebuddy`.
dsh-lark-bot
by plutokeating
Feishu/Lark bridge for DeepSeek Harness: scan-to-connect PersonalAgent binding, streaming cards, git-worktree project workspaces, parallel per-scope tasks, multi-role agents, cross-session notify, in-chat model/key management, and a safety-net guardian that still answers in Feishu after dsh crashes.
