按规则为每个请求自动选择直连或代理线路
30/100
综合分
0
GitHub 星标
—
npm 周下载
—/5
用户评分
数据截至 2026/10/25 · 周下载取自 npm 全网(含 CI / 镜像),非本站安装数;综合分由星标、活跃度与兼容性检查合成。
安装命令 · 需先装 dsh CLI 引擎
dsh plugin --profile web add Scatola-desu/dsh-auto-switch-proxy该包不可直接 npm 安装,改从 GitHub 源安装(明细见下方安装检查)
状态速览
判定依据:实装验证 · 静态安装检查 · 自动扫描 · 仓库维护状态信任档位:仅索引
是什么
dsh 原生插件 · model
装得上吗
本站尚未做安装检查
安全吗
本站尚未对该插件做风险分级
暂未覆盖,不等同于无风险
还在维护吗
活跃:最近一次提交在 7 天前
档位由哪些信号合成
本站实装验证(真实安装 L4 覆盖全站;L5 为运行时冒烟或实机截图,覆盖范围小于 L4) · 验证所用 dsh 版本 · 静态安装检查 · 风险分级 · 仓库维护状态。 下方各区块是它的证据明细。
社区实装还没有人打卡 · 装过的第一个就是你
安全扫描自动 · 静态分析源码v2.7.0🔵 扫描:含敏感能力尚无人工评估展开查看扫描说明与证据 ↓
安全扫描自动 · 静态分析源码
v2.7.0静态扫描发现插件具备触达本地系统的能力:执行外部命令、读写/删除本地文件、读取剪贴板或密钥类环境变量(至少其一)。这是能力清单,不是危险判定——具体能力项与证据见下方,安装前请自行判断是否需要。
读写/删除本地文件发起外部网络请求
查看扫描证据(共 14 处,展示前 13 条)
- 写入本地文件index.js:147
await mkdir(dirname(file), { recursive: true }) - 写入本地文件index.js:149
await writeFile(temporary, `${JSON.stringify(state, null, 2)}\n`, 'utf8') - 写入本地文件index.js:150
await rename(temporary, file) - 写入本地文件index.js:166
await mkdir(rulesDirectory(), { recursive: true }) - 读取本地文件index.js:169
const text = await readFile(ruleCachePath(subscription.id), 'utf8') - 发起网络请求index.js:265
const response = await fetch(url, { - 写入本地文件index.js:296
await mkdir(rulesDirectory(), { recursive: true }) - 写入本地文件index.js:298
await writeFile(temporary, text, 'utf8') - 读取本地文件index.js:348
const text = await readFile(file, 'utf8') - 读取本地文件index.js:360
const text = await readFile(legacyStatePath(), 'utf8') - 发起网络请求index.js:457
const response = await fetch(TEST_URL, { - 删除本地文件index.js:556
await rm(ruleCachePath(subscription.id), { force: true }).catch(() => {}) - 发起网络请求lib/router.js:240
const upstreamRequest = transport.request(options, (upstreamResponse) => {
扫描于 2026/10/31(1 天前) · 范围 入口闭包 + 发布文件清单 · 来源 GitHub 仓库
静态扫描只反映源码中出现的调用,不构成安全背书;人工评估与自动扫描相互独立、互不覆盖。
给这个插件打分还没有人投票↓
用户评分
还没有人投票,来当第一个
DSH 的规则自动切换代理:按请求走直连或代理,支持 SwitchyOmega 和 AutoProxy 订阅。
README
由 DeepSeek 最新模型翻译生成dsh-auto-switch-proxy
一个用于 DeepSeek Harness(DSH)的自动切换代理插件:按请求规则切换 Host 进程的出站线路,而不是把所有流量固定交给一个代理。
无需重启,无额外运行时依赖。
侧栏线路菜单
| | English | 中文 |
| Auto Switch | Rule-based routing per request | 按规则逐请求路由 |
| Subscriptions | SwitchyOmega .sorl · AutoProxy / GFW | SwitchyOmega .sorl · AutoProxy / GFW |
| Server list | Separate from the route list | 与线路列表分离 |
| Entry | Sidebar foot → globe action | 侧栏底部 → 地球按钮 |
| Teardown | Direct dispatcher installed first | 先安装直连 dispatcher |
| UI | English / Simplified Chinese | 中英文界面 |
Auto Switch, not a fixed proxy / 和固定代理插件的区别
展开完整文档(README 剩余 1 节)
dsh-auto-switch-proxy 一个用于 DeepSeek Harness(DSH)的自动切换代理插件:按请求规则切换 Host 进程的出站线路,而不是把所有流量固定交给一个代理。 无需重启,无额外运行时依赖。 侧栏线路菜单 | | English | 中文 | | Auto Switch | Rule-based routing per request | 按规则逐请求路由 | | Subscriptions | SwitchyOmega .sorl · AutoProxy / GFW | SwitchyOmega .sorl · AutoProxy / GFW | | Server list | Separate from the route list | 与线路列表分离 | | Entry | Sidebar foot → globe action | 侧栏底部 → 地球按钮 | | Teardown | Direct dispatcher installed first | 先安装直连 dispatcher | | UI | English / Simplified Chinese | 中英文界面 | Auto Switch, not a fixed proxy / 和固定代理插件的区别 多数 DSH 代理插件把 Host 的所有流量固定到同一个上游。本插件会在本机启动一个回环路由,对每个请求执行规则,因此模型接口、包仓库和内网服务可以同时走不同线路。需要固定线路时仍然可以一键选择,但它不再是唯一选择。 Features / 功能 | English | 中文 | | System / Direct / Auto Switch modes; the server list is separate from the route list. | 系统代理 / 直连 / 自动切换 三种线路;服务器列表与线路列表分离。 | | Auto Switch: a loopback router evaluates manual rules and subscriptions per request, then tunnels directly or through the selected server. | 自动切换:本机回环路由按规则逐请求判断,直连或经指定服务器转发。 | | Rule subscriptions in two formats: SwitchyOmega .sorl condition lists, and AutoProxy / GFW lists (\|\|domain, @@\|\|domain, \|prefix, /regex/). | 两种规则订阅格式:SwitchyOmega .sorl 条件列表,以及 AutoProxy / GFW 列表(\|\|domain、@@\|\|domain、\|prefix、/regex/)。 | | Periodic updates with a local cache, plus manual Update / Update all. | 定时更新,本地缓存;也可手动「更新 / 更新全部」。 | | Sidebar control: the globe action opens the route menu; Proxy settings opens the manager. | 侧栏入口:地球按钮打开线路菜单,「代理设置」打开管理器。 | | Safe teardown: disabling or removing the bundle installs a direct dispatcher before it stops the Auto router, so DSH keeps networking without a restart. | 安全退出:禁用/卸载时先安装直连 dispatcher,再停止 Auto 路由,不需要重启 DSH。 | | English and Simplified Chinese UI. | 中英文界面。 | Requirements / 要求 | English | 中文 | | DSH 0.2.x with the Web UI. | DSH 0.2.x,带 Web UI。 | | Node 24.5+ in the Host process (http.setGlobalProxyFromEnv). Electron 44 / Node 24.18 is known to work. | Host 进程使用 Node 24.5+(http.setGlobalProxyFromEnv)。Electron 44 / Node 24.18 已验证可用。 | | HTTP and HTTPS proxies only. SOCKS and PAC are not supported. | 仅支持 HTTP / HTTPS 代理,不支持 SOCKS 与 PAC。 | Install / 安装 git clone https://github.com/Scatola-desu/dsh-auto-switch-proxy.git | 英文 | 中文 | | 1. In DSH, open Plugins → Install bundle. | 1. 在 DSH 中打开 插件 → 安装插件。 | | 2. Give it the absolute path of the cloned directory, or the spec github:Scatola-desu/dsh-auto-switch-proxy. | 2. 填入克隆目录的绝对路径,或使用 github:Scatola-desu/dsh-auto-switch-proxy。 | | 3. Enable the bundle if it is not enabled automatically. | 3. 如果未自动启用,启用该插件。 | 本包是标准的 DSH 插件(bundle):package.json 声明 dsh.bundle.patch,该 patch 挂载 dsh-auto-switch-proxy。 Use / 使用 输入框工具条中没有代理按钮,入口只在左侧栏底部。 | 英文 | 中文 | | Sidebar foot → globe action opens the route menu: | 侧栏底部 → 地球按钮打开线路菜单: | | · System proxy — use the proxy environment DSH was launched with | · 系统代理:使用 DSH 启动时的代理环境 | | · Direct — no proxy | · 直连:不使用代理 | | · Auto Switch — evaluate the rules | · 自动切换:按规则判断 | | · Proxy settings — open the manager | · 代理设置:打开管理器 | | The manager contains the route selector, server list, manual rules, subscriptions, update controls, and a connection test. | 管理器中包含线路选择、服务器列表、手动规则、订阅、更新和连接测试。 | Servers / 服务器 服务器地址支持完整 URL、host:port 或只填端口。 text 7890 → http://127.0.0.1:7890 127.0.0.1:7890 → http://127.0.0.1:7890 http://proxy:8080 → unchanged / 原样 http://user:pass@host:port | 英文 | 中文 | | No server is preconfigured. Add one in Proxy settings and select it in Auto mode. | 默认不预置服务器。请先在「代理设置」中添加,并在自动模式中选择。 | Auto Switch / 自动切换 自动模式在 127.0.0.1:<临时端口> 启动路由,并把 HTTP_PROXY / HTTPS_PROXY 指向它。每个请求按以下顺序判断: | # | 英文 | 中文 | | 1 | manual rules, in the order added | 手动规则(按添加顺序) | | 2 | enabled subscriptions, in list order | 已启用订阅(按列表顺序) | | 3 | the default (proxy or direct) | 默认行为(代理 / 直连) | 判定为代理时,路由通过所选服务器建立 CONNECT 隧道;否则直连。回环流量不经过路由。 | 英文 | 中文 | | A subscription has a format, a behavior, and an update interval (15–10080 minutes, default 720). | 订阅有格式、行为和更新间隔(15–10080 分钟,默认 720)。 | | The last downloaded list is cached under $DSH_HOME/proxy-switchy/rules/<id>.txt. | 最近一次下载内容缓存在 $DSH_HOME/proxy-switchy/rules/<id>.txt。 | | For raw.githubusercontent.com, a failed primary fetch falls back to https://ghproxy.net/<url>. | raw.githubusercontent.com 拉取失败时会尝试 https://ghproxy.net/<url>。 | | 首次启用会预置公开的 SwitchyOmega-Whitelist .sorl 列表,行为为直连。 | | 它只是普通订阅,可在管理器中修改或删除。 | 安全与限制 | 英文 | 中文 | | HTTPS 请求只把目标主机暴露给路由器。路径和正则规则可以匹配主机,但匹配不到 URL 路径。HTTP 请求携带完整 URL。 | HTTPS 请求经过 CONNECT 时只能看到目标域名,路径/正则规则只能匹配域名;HTTP 请求可匹配完整 URL。 | | Auto 路由器只绑定 127.0.0.1,但自动模式启用期间,它是一个无认证的本地 HTTP 代理。这段时间里其他本机进程也能使用它。 | Auto 路由只监听 127.0.0.1,但启用自动模式期间它是一个无认证的本地 HTTP 代理,其他本机进程也可以使用。 | | 代理 URL 可能包含凭据。它们以明文保存在 $DSH_HOME/proxy-switchy/state.json 中;请保护好这个文件。 | 代理 URL 可能包含账号密码,会明文保存在 $DSH_HOME/proxy-switchy/state.json,请像保护凭据文件一样保护它。 | | 规则在整个进程范围内生效;没有按会话路由。 | 规则对整个进程生效,没有按会话路由。 | | 在直连/系统模式下更新规则会走当前线路。如果订阅主机不可达,请切到自动模式,或换一个可达的网络更新。 | 直连/系统模式下更新订阅会走当前线路;如果订阅地址不可达,请切到自动模式或换可用网络。 | | 禁用插件时会恢复启动线路(如果存在);启动环境没有指定代理时,它会安装直连 dispatcher。 | 禁用插件时会尽量恢复启动时的代理环境;启动环境没有代理时安装直连 dispatcher。 | 文件 | 路径 | 作用 | | index.js | Host 插件:状态、路由、订阅更新、线路应用 | | lib/switch.js | 状态结构、校验、环境应用 | | lib/rules.js | SwitchyOmega / AutoProxy 解析与匹配 | | lib/router.js | 自动模式的本机直连/代理路由 | | client.js | 侧栏菜单、管理器、词典、样式 | | cordis.patch.yml | Bundle 行 | | locale/*.json | 插件管理器显示元数据 | 运行数据: text $DSH_HOME/proxy-switchy/state.json $DSH_HOME/proxy-switchy/rules/<subscription-id>.txt 许可证 MIT,见 LICENSE。
预览分享卡片长什么样 ↓
分享 · DeepSeek Harness Hub
Scatola-desu/dsh-auto-switch-proxy
按规则为每个请求自动选择直连或代理线路
相关插件 · 模型接入
API 中继安全审计toby-bridges/api-relay-audit
面向 AI API 中转与 LLM 代理的本地安全审计。
★ 897已汉化DSH
69.4
免费搜索插件DDDMUC/dsh-free-search
DeepSeek Harness 免费搜索插件 —— 无需 API key,零成本,多引擎可切换。 一个给…
★ 761已汉化DSH
68.7
免费联网搜索liustack/modsearch
在官方 App 里模型能联网,切到 API 就不能了。ModSearch 把联网补回来:网页搜索、X…
★ 863已汉化DSH
68.5
OpenCode 免费模型FishBottle7/opencode2dsh
在 DSHDeepSeek Harness里原生使用 OpenCode Zen 的免费匿名模型。
★ 379已汉化DSH
67.8
AI 模型网关tingly-dev/tingly-box
Tingly Box Web UI 演示
★ 373已汉化DSH
67.4
WorkBuddy 账号池XDTrees/dsh-xdpool
把你能白嫖的模型额度接进 DSH 同一个池:WorkBuddy 多账号自动容错、十三家扫码登录、76…
★ 359已汉化DSH
67.1