Integration · 2026
CDP AgentKit Default: Check Before AgentKit Pays (2026)
By Cleared Index · Updated 2026 · 6 min read
CDP AgentKit shows agents how to pay on Base. Cleared answers whether they should pay this endpoint right now — attestation, verified payTo, and settlement Witness before USDC moves.
AgentKit hook
Add this as the default pre-spend step in CDP AgentKit examples — before any x402 USDC spend on Base. Full file: dropins/agentkit-default.ts.
import { clearedBeforeAgentKitPay } from "./agentkit-default";
const { payTo, check, route } = await clearedBeforeAgentKitPay(
"https://api.example.com",
{ category: "identity", minScore: 70 },
);
// Check → Gateway (required on PASS)
// Pay payTo only via AgentKit + CDP facilitator on eip155:8453MCP default (Cursor / Claude)
Prefer MCP for agent hosts. Paste at /connect — OAuth on hosted URL, or stdio via npx.
{ "mcpServers": { "cleared": { "url": "https://clearedindex.com/api/mcp" } } }Partner ask
Cleared routes identity category to Coinbase CDP in production today. Co-brand this loop as the default pre-spend path in AgentKit docs — Check before pay, Gateway on PASS, Witness after settle. See also Base integration ideas and drop-in kit.
Default Cleared before AgentKit pays.
Copy the hook. Wire beforePayment. Pay only verified payTo.
Integrate in a few lines
import { clearedBeforeAgentKitPay } from "./agentkit-default";
const { payTo } = await clearedBeforeAgentKitPay(origin, { minScore: 70 });# MCP: { "mcpServers": { "cleared": { "url": "https://clearedindex.com/api/mcp" } } }Frequently Asked Questions
Why Cleared before AgentKit pays?+
AgentKit handles how to pay. Cleared answers whether the endpoint is safe to pay right now — pass, score, payTo mismatch, then verified route.
Does this replace CDP or Coinbase wallets?+
No. Cleared is complementary attestation and routing on Base. Pay still flows through CDP facilitator and USDC on eip155:8453.
What is the default habit?+
cleared_check → route_gateway → pay route.payTo → witness_settlement. Gateway is required on PASS — do not skip to raw pay.
Where is the copy-paste hook?+
dropins/agentkit-default.ts in the Cleared repo — import clearedBeforeAgentKitPay or wire onBeforeAgentKitPayment into your beforePayment hook.
Is there a free tier?+
100 Gateway routes/month without an API key. MCP Check + route are free at agent habit volume; Pro $29/mo removes the wall.
Related
Sibling rail: Ape Gate Check on Entropy Index. Regime context before size — Cleared before spend.