sevastopol36/dsh-plugin-ghproxy ↗★ 1
dsh-plugin-ghproxy
通过公共代理镜像获取GitHub资源及API。 适合国内或网络受限环境下,需要稳定下载GitHub文件和发布包的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:sevastopol36/dsh-plugin-ghproxy说明文档
阅读完整 README ↗配置
- id: sevastopol36-ghproxy
config:
proxyBases: # 按顺序尝试,第一个健康的胜出
- 'https://gh-proxy.com'
- 'https://sevastopol36-ghproxy.net'
- 'https://ghfast.top'
- 'https://gh.ddlc.top'
- 'https://gh.jasonzeng.dev'
proxyBase: '' # 兼容 0.1.0 的单代理设置,若填写会优先尝试
downloadDir: 'downloads/github'
timeoutMs: 60000
retries: 1
retryDelayMs: 800
healthCacheMs: 300000
maxTextBytes: 262144
maxBytes: 209715200 # 200 MB
overwrite: false
allowApi: true
全部镜像都失败怎么办
sevastopol36_ghproxy_probe # 实测并给出建议 proxyBases
sevastopol36_ghproxy_probe include_defaults=true # 连同内置默认镜像一起测
错误信息会列出每个镜像的失败原因。