JerryLingWuQ/dsh-traffic-guard ↗★ 0

dsh-traffic-guard

为代理下载提供流量预算控制与额度限制 适合在计费代理网络下运行智能体并需要控制流量成本的用户。

套件
dsh-traffic-guard
相容性
待驗證
版本
1.1.0
授權
MIT
最近更新
2026年10月24日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JerryLingWuQ/dsh-traffic-guard

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.