JerryLingWuQ/dsh-traffic-guard ↗★ 0
dsh-traffic-guard
DeepSeek Harness plugin: a byte-budget gate for agents that download through a metered proxy (direct-first, stall-triggered proxy, hard per-call/per-day caps, local ledger). Cross-platform: macOS/Linux/Windows. 适合在计费代理网络下运行智能体并需要控制流量成本的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JerryLingWuQ/dsh-traffic-guardConfiguration
$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.