# Agent Tollbooth 402 > Dual-rail HTTP 402 (x402 V2 Base USDC + <1ms Stripe-funded Fiat Agent Wallet) billing middleware, remote MCP clearinghouse, and Claude Code / Antigravity plugin by Red Center Studio. ## Live Endpoints - Portal & Pricing: https://tollbooth.redcenterstudio.com/pay - Streamable HTTP MCP Endpoint: https://tollbooth.redcenterstudio.com/mcp - MCP Discovery Card: https://tollbooth.redcenterstudio.com/.well-known/mcp.json - Interactive HTTP 402 Demo (HTML & JSON): https://tollbooth.redcenterstudio.com/demo/402 - Health Check: https://tollbooth.redcenterstudio.com/health ## Plugin Installation & Skills (Claude Code & Antigravity) ``` /plugin marketplace add Red-Center-Studio/agent-tollbooth-402 /plugin install agent-tollbooth-402@agent-tollbooth-402 ``` - `/agent-tollbooth-402:scan-routes`: Scan Workers, Hono, Next.js App Router, Express, or MCP servers for monetizable routes. - `/agent-tollbooth-402:install-tollbooth`: Inject zero-dependency dual-rail HTTP 402 middleware. - `/agent-tollbooth-402:test-agent`: Run a 30-second offline 402 challenge, receipt verification, and replay-guard smoke test. ## Quick Edge Middleware Snippet ```ts import { withTollbooth } from '@redcenterstudio/agent-tollbooth-edge'; export default withTollbooth({ priceUsd: 0.01, mode: "hybrid" }, async (request) => { return Response.json({ ok: true, path: new URL(request.url).pathname }); }); ``` ## Remote MCP Tools - `tollbooth_pricing_quote`: Compute clearinghouse fee and developer net payout across Free BYO x402 (0%), Hybrid (7%), and Tollbooth Pro/Agency (3%) tiers in integer USD microdollars. - `tollbooth_wallet_balance`: Inspect an agent wallet credit balance, status, and remaining UTC daily spend cap. Read-only lookup. - `tollbooth_issue_receipt`: Issue a short-lived Rail B rcs_receipt_hs256 bearer authorization token against an existing prepaid credit balance. Does not move bank or crypto funds. - `tollbooth_verify_x402`: Verify an x402 V2 paymentPayload signature and expiry against paymentRequirements and replay records. Does not execute on-chain transfers. - `tollbooth_create_topup_checkout`: Return a Stripe Checkout or sandbox link URL that a user can open in a browser to fund a wallet ($1+) or purchase a Pro ($39) / Agency ($79) Pass. Never charges automatically. ## Clearinghouse Pricing - Free / BYO Crypto x402: $0 USD, 0% fee (100% net to your Base `payTo` wallet) - Hybrid Clearinghouse: $0/mo + 7% fee (93% net via Stripe-funded Fiat Agent Wallets) - Tollbooth Pro Pass: $39 USD once (drops clearinghouse fee to 3%, unlocks `upto` per-token metering & custom 402 HTML) - Agency Pass: $79 USD once (multi-project 3% clearinghouse fee) - Done-For-You Setup: From $399 USD (custom Cloudflare Worker + D1 handover via https://redcenterstudio.com/services/ai-tollbooth-setup/) ## Directory & Source Links - GitHub: https://github.com/Red-Center-Studio/agent-tollbooth-402 - Glama Listing: https://glama.ai/mcp/servers/Red-Center-Studio/agent-tollbooth-402