ProceedGate detects retry storms in real time and blocks them before they drain your API credits. Start in Shadow Mode β see what would be blocked, zero enforcement risk.
Every team running scraping or AI agents hits these β usually at 3 AM.
One failed API call triggers 500 retries in under a minute. Loops burn budget in minutes.
No guardrails means wasted credits. Dashboards show the spend after it happened.
Monitoring tools show you the fire. ProceedGate stops it before it starts.
Not mockups. Real API response structures from production.
Agent: my-agent Pattern: 47 identical requests / 60s Zone: RED (storm) Action: BLOCKED Credits saved: 142 Loop detection: pattern_hash: sha256:a3f8c2... count_in_window: 47 (threshold: 10) avg_interval_ms: 1274 interval_cv: 0.08 (mechanical) backoff_detected: false Webhook β Slack #alerts β
$ curl governor.proceedgate.dev/v1/governor/check { "decision": "proceed", "zone": "safe", "credits_remaining": 1847, "loop_detected": false, "pattern_count": 2, "proceed_token": "eyJhbGciOiJFUzI1NiIs..." }
git clone https://github.com/loquit-doru/agent-cost-governor
Add governor.gate() before expensive operations
Per-agent limits, per-task caps β AI handles the rest
import { CostGovernor } from './sdk-node/src/index';
const gov = new CostGovernor({ apiKey: process.env.PG_KEY });
const { decision } = await gov.gate({
agent: 'scraper-v2',
action: 'api_call',
cost: 0.03,
});
if (decision === 'proceed') {
await callExpensiveAPI();
}
One command. 30 seconds. See what ProceedGate would block in your workflow.
## Clone and run a quick check $ git clone https://github.com/loquit-doru/agent-cost-governor $ cd agent-cost-governor && npm install $ npx tsx runner/src/index.ts check --workspace demo Scanning agent: scraper-v2... Requests analyzed: 147 Loops detected: 3 Estimated savings: $42.80 Shadow blocks: 12 (would have blocked) β Report saved to ./proceedgate-report.json
Pattern heuristics for speed, Workers AI (Llama 3.1 8B) for ambiguous cases β explainable, auditable, open source.
SHA-256 hashed request patterns. 10+ identical requests/min = storm detected.
Green (safe), Yellow (gray zone), Red (storm) β graduated response per zone.
Workers AI (Llama 3.1 8B) reasons over ambiguous 6β10 req/min cases. Full reasoning chains.
Interval coefficient of variation + backoff detection. Catches mechanical vs human patterns.
Per-workspace credit limits. Hard gate at zero balance β no silent overruns.
ES256 signed JWTs with JWKS verification. Cryptographic proof of authorization.
Real-time Slack/Discord notifications on blocks. HMAC-signed for security.
Per-agent usage analytics. See exactly how much each agent spends and saves.
πΊοΈ Roadmap: Adaptive baselines (EWMA+CUSUM), behavior fingerprinting, cross-workspace intelligence, decision caching.
β Start free β protect your first 5,000 eventsApify, SerpAPI, Firecrawl, Bright Data β retry storms are the #1 cost killer.
Deep dive βLangChain, AutoGPT, CrewAI β any pipeline calling external APIs can silently loop.
Background AI workflows β email, content, data processing β that can fail-loop silently.
Per-client budgets, per-agent limits. Hundreds of agents, zero rogue tasks.
Designed for teams building:
Start in Shadow Mode. See what ProceedGate would block β without touching your running agents. Switch to enforcement when you trust the data.
const gov = new CostGovernor({
apiKey: process.env.PG_KEY,
mode: 'LOG_ONLY', // shadow mode
});
const result = await gov.gate({
agent: 'scraper-v2',
action: 'api_call',
cost: 0.03,
});
// Always proceeds, but logs
// what it would block
if (result.would_block) {
console.warn('Storm detected');
}
Real on-chain payment verification via x402 protocol. Agents pay micro-fees on BSC to unlock blocked decisions β cryptographic proof, not promises.
x402-style paywall: agents submit BSC transaction hashes to unlock blocked decisions. Verified on-chain.
Deployed & verified on Sourcify. Transparent, auditable governance on-chain.
After payment, agents receive cryptographically signed JWTs. Verified via JWKS β tamper-proof authorization.
Direct access to founder
Influence the roadmap
No lock-in. Cancel anytime.
Can't find your answer? Reach out β we reply fast.