JerryLingWuQ/dsh-traffic-guard ↗★ 0
dsh-traffic-guard
为代理下载提供流量预算控制与额度限制 适合在计费代理网络下运行智能体并需要控制流量成本的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JerryLingWuQ/dsh-traffic-guard說明文件
閱讀完整 README ↗Configuration
$NETGUARD_HOME/config.json (default ~/.dsh/netguard/config.json); see
cli/config.example.json.
{
"route": {
"proxy_hosts": ["github.com", "*.githubusercontent.com", "huggingface.co"],
"direct_hosts": ["*.deepseek.com", "*.npmmirror.com", "*.aliyun.com"]
},
"budget": { "per_call": 134217728, "per_day": 314572800 }
}
proxy_hosts are hosts allowed to use the proxy when direct stalls (not "must use proxy").
direct_hosts are hosts that never use the proxy and take precedence.