Gatewards Sdk — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Gatewards Sdk (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Your agents can't burn more than you let them.
Official SDKs for Gatewards — a pipeline gateway for multi-agent systems. Caps fleet spend, detects runaway loops, dedups duplicate API calls across agents — drop-in proxy, no decorator, no code change inside your agents. Optional on-chain settlement via the open x402 protocol when you need it.
AI agents fail while continuing to work. A retry loop, a verification chain with no terminator, a tool call that never resolves — these don't crash. They silently compound. One widely-discussed 2025 incident saw four agents stuck in an infinite conversation for eleven days before anyone noticed the invoice.
Dashboards and alerts tell you after it happens. Gatewards stops it mid-chain.
You set a daily cap on a fleet. The fleet starts working. The cap hits. The gateway atomically blocks the rest and lands a signed webhook at your URL — all in one continuous run.
Each of the three guards is shown in isolation below.
10 agents fire concurrent calls against a fleet capped at $0.50/day. Each call costs $0.10. Total intent: $1.00 — twice the cap. The gateway lets through exactly $0.50 worth and blocks the rest, atomically:
<p align="center"> <img src="./assets/kill-switch-demo.gif" alt="Gatewards fleet kill switch demo — 10 agents try to spend $1, gateway lets $0.50 through and blocks the rest" width="720"/> </p>
$ npx tsx scripts/demo-budget-enforcement.ts
Gatewards — Fleet Kill Switch Demo
You set the cap. Your fleet tries to overrun it.
Watch the gateway hold the line.
Your cap: $0.50/day
Fleet size: 10 agents
They want: $1.00 (200% of your cap)
Fleet fires 10 concurrent calls...
Agent-001 $0.10 ✅ allowed (your cap: $0.50, used: $0.10)
Agent-002 $0.10 ✅ allowed (your cap: $0.50, used: $0.20)
Agent-003 $0.10 ✅ allowed (your cap: $0.50, used: $0.30)
Agent-004 $0.10 ✅ allowed (your cap: $0.50, used: $0.40)
Agent-005 $0.10 ✅ allowed (your cap: $0.50, used: $0.50)
Agent-006 $0.10 ❌ BLOCKED (your cap hit — pipeline paused)
Agent-007 $0.10 ❌ BLOCKED (your cap hit — pipeline paused)
Agent-008 $0.10 ❌ BLOCKED (your cap hit — pipeline paused)
Agent-009 $0.10 ❌ BLOCKED (your cap hit — pipeline paused)
Agent-010 $0.10 ❌ BLOCKED (your cap hit — pipeline paused)
Result
allowed: 5/10 calls
blocked: 5/10 calls
you spent: $0.50 (your cap was $0.50 — not a cent over)
overage: $0.00 ← would have been $0.50 without the gateway
You set the cap. The gateway enforced it atomically,
even with 10 agents firing at the same instant.
No 3am surprise.The script runs the production guard code against an in-memory store — zero network, zero on-chain, ~1 second on a laptop. Source lives in the gateway repo.
A verification crew of 6 agents takes turns calling the same upstream resource — the shape of a CrewAI/AutoGen conversation that won't terminate, or two verifiers handing the same task back and forth. With a dedup threshold of 3 in a 60-second window, the gateway lets the first 3 settle and rejects the rest:
<p align="center"> <img src="./assets/loop-detection-demo.gif" alt="Gatewards multi-agent loop detection demo — 6 agents call the same resource, gateway lets 3 through and blocks the rest" width="720"/> </p>
The dedup guard runs in the same DB transaction as the settlement insert, so concurrent retries can't slip past the threshold. Source: same gateway repo, scripts/demo-loop-detection.ts.
When a guard fires, the gateway delivers a signed webhook to your URL of choice — what wakes you up at 3am instead of the API invoice. The demo intercepts the outbound POST so you can see the exact payload your receiver would log.
HMAC-SHA256 over the JSON body with a per-pipeline secret (AES-GCM at rest), idempotency via X-Gatewards-Event-Id, and SSRF guard on the target URL. Source: scripts/demo-webhook-on-breach.ts.
Agent request ──► Gateway: budget + cache check ──► Upstream (or cache hit)
│ │
└── loop / overspend ────────────────┴──► pipeline pauses, webhook fires| Package | Description | npm |
|---|---|---|
@gatewards/agent-sdk | Pipeline gateway client for AI agents — drop-in proxy + budget + dedup cache | |
@gatewards/merchant-sdk | Optional Express middleware — charge for your API on-chain via x402 | |
@gatewards/contracts | Solidity contracts — used only when x402 settlement mode is on |
npm install @gatewards/agent-sdkimport { createPaymentClient } from "@gatewards/agent-sdk";
const { client } = createPaymentClient({
gatewayUrl: process.env.GATEWARDS_GATEWAY!,
apiKey: process.env.GATEWARDS_API_KEY!,
network: "base",
proxy: true, // drop-in proxy mode — no on-chain settlement required
budgetPolicy: {
maxSpendPerCall: "1.00", // hard cap per request (USD-equivalent)
dailyLimit: "10.00", // hard cap per day
},
});
// Pipeline budget, loop detection, and dedup cache happen at the gateway.
// If the cap is breached, the call throws — it doesn't leak spend.
const res = await client.get("https://your-upstream.com/api/data?q=...");LangChain integration: import { createGatewardsTools } from "@gatewards/agent-sdk/langchain".
npm install @gatewards/merchant-sdkimport express from "express";
import { createPaymentRequiredMiddleware } from "@gatewards/merchant-sdk";
const app = express();
app.get(
"/premium/search",
createPaymentRequiredMiddleware({
price: "0.08", // USDC per call
wallet: "0xYourPayoutWallet",
network: "base",
gatewayPublicKey: process.env.JWT_SECRET!,
}),
(req, res) =>
res.json({
results: [
/* … */
],
}),
);Free $0 1 pipeline, 3 agents, 10K events / month
Solo $29 3 pipelines, 10 agents, 100K events
Team $99 10 pipelines, 50 agents, 1M events
Org $299 unlimited pipelines, 200 agents, 5M events
Enterprise Custom unlimited + on-chain settlement (x402) + compliance + SLASelf-host the gateway free under MIT — every tier feature, no caps, you run the binary. Pricing applies to the hosted gateway service.
git clone https://github.com/rtahabas/gatewards-sdk.git
cd gatewards-sdk
npm install --include=dev
npm run build
npm testRequires Node 20+.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.