SpendGuard
Checks a proposed USDC payment against your policy (per-transaction limit, daily budget, human-approval threshold, allowed recipients) and returns APPROVE, HUMAN_APPROVAL or BLOCK.
Send the unsigned transaction before your agent signs it. KushBitx Preflight simulates it, reads every transfer and approval it really causes (internal calls included), and screens the destination, the token and your SpendGuard policy. You get one answer: ALLOW, REVIEW or BLOCK. The answer is bound to that exact transaction by its digest, for 60 seconds.
0.005 USDC per call with x402. No signup, no API key. Fail-closed: no ALLOW unless every required check ran.
What it does not check: prompt injection. Preflight checks the transaction, not the instructions that produced it. To bound what an agent can pay, use Protected SpendGuard, a server-side policy the model cannot change.
For teams on Turnkey: approver sidecar (limited pilot)
Paste this into a terminal. Without a payment it returns 402 Payment Required with the exact x402 terms (0.005 USDC to KushBitx on Base), and nothing is charged.
curl -i -X POST https://kushbitx.com/api/preflight \
-H "content-type: application/json" \
-d '{"chainId":8453,"from":"0x0d68028d06af13379C872FEE032568B4Be712f22","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","value":"0","data":"0xa9059cbb000000000000000000000000d2db751a2fdba554706fb535438d81d3a0b4297900000000000000000000000000000000000000000000000000000000000003e8","intent":"transfer"}'A paid call returns verdict, reasonCodes, findings (each marked as onchain fact or inference, with its source), checksUnavailable, transactionDigest and expiresAt. Sign only on ALLOW, only that transaction, before expiresAt. For swaps add expectedTokenOut and minAmountOut.
Checks a proposed USDC payment against your policy (per-transaction limit, daily budget, human-approval threshold, allowed recipients) and returns APPROVE, HUMAN_APPROVAL or BLOCK.
Screens a Base token for sellability, taxes, privileged controls, holder concentration and market risk.
Limited check: simulates one unsigned transaction, decodes transfers and approvals, and flags reverts, unlimited approvals and risky destinations. Returns ALLOW, WARN, BLOCK or INCOMPLETE. No token or recipient screening: for one verdict before signing, use KushBitx Preflight.
Checks an EIP-712 signature request (EIP-3009 x402 payments, Permit, Permit2) before an agent signs it: chain, token, payee, amount, spender and validity. Returns ALLOW, REVIEW or BLOCK.
Confirms Base chain identity and the official USDC contract.
Verifies a Base USDC transfer: recipient, amount and confirmations.
Prices are the same as our live API returns; see pricing.
If your agent signs transactions on Base, email admin@kushbitx.com with your project's repository and where it signs. We send the integration as a pull request you review, off by default, plus a trial key for KushBitx Preflight and Token Risk: 30 days from first use, 100 checks a day.
After the trial, pay per check with x402, or stop. There is no automatic charge. Trial terms.
Each example runs as shown. Paid calls need a dedicated wallet with a little USDC on Base. Keep its key in a .env file listed in .gitignore, never in code.
{ "mcpServers": { "kushbitx": { "type": "http", "url": "https://kushbitx.com/mcp" } } }The tool kushbitx_preflight is KushBitx Preflight. Paid tools follow the Cloudflare Agents paidTool format: an unpaid call returns the x402 requirement and charges nothing.
npm install @kushbitx/agentkit @coinbase/agentkit viem zod
echo "EVM_PRIVATE_KEY=" >> .env # paste the dedicated wallet's key after "="
node --env-file=.env app.mjs// app.mjs
import { AgentKit, ViemWalletProvider } from "@coinbase/agentkit";
import { kushbitxActionProvider } from "@kushbitx/agentkit";
import { createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { base } from "viem/chains";
const walletProvider = new ViemWalletProvider(createWalletClient({
account: privateKeyToAccount(process.env.EVM_PRIVATE_KEY),
chain: base,
transport: http(),
}));
const agentkit = await AgentKit.from({
walletProvider,
actionProviders: [kushbitxActionProvider({ maxPaymentUsdc: "0.005" })],
});
console.log(agentkit.getActions().map(action => action.name));walletProvider is the agent's own AgentKit wallet on Base. It pays for each check (capped at 0.005 USDC a call), and KushBitx never sees its key.
npm install @kushbitx/sdk
node check.mjs// check.mjs
import { KushBitxClient } from "@kushbitx/sdk";
const kushbitx = new KushBitxClient();
const decision = await kushbitx.evaluateSpend({
agentId: "my-agent",
requestId: "demo-1",
chain: "base",
asset: "USDC",
recipient: "0x0d68028d06af13379C872FEE032568B4Be712f22",
amount: "1.00",
policy: {
maxPerTransaction: "5.00",
remainingDailyBudget: "20.00",
requireHumanAbove: "2.00",
maxRepeats: 1,
allowedRecipients: ["0x0d68028d06af13379C872FEE032568B4Be712f22"],
blockUnknownRecipients: true,
},
});
console.log(decision);No wallet and no payment: this check is free. For paid checks with your own x402 client, see the developer docs.
com.kushbitx/agentproofSome listings still use our earlier name, KushBitx AgentProof. It is the same service.
Security · Privacy · Terms · Trust Center
Platforms and teams: contact admin@kushbitx.com.