← ClaudeAtlas

agent-payment-x402listed

Use when adding x402 payment execution to AI agents - paying 402-gated APIs, enforcing per-task spending budgets, or charging agents for an API. Covers the agentwallet-sdk MCP server (Base), OKX Agent Payments Protocol (X Layer, eip155:196), seller SDK doc locations per language, and fail-closed budget enforcement.
Mixard/fable-pack · ★ 1 · AI & Automation · score 74
Install: claude install-skill Mixard/fable-pack
# Agent Payment Execution (x402) x402 extends HTTP 402 (Payment Required) into a machine-negotiable flow: when a server returns `402`, the agent's payment tool negotiates price, checks budget, signs a transaction, and retries - all inside a policy boundary set by the orchestrator. Agents hold their own keys via ERC-4337 smart accounts (non-custodial). Protocol spec: x402.org ## Integration Decision Tree | Need | Path | |------|------| | Agent pays a 402-gated API on Base (or other agentwallet-supported chain) | `agentwallet-sdk` as an MCP payment server with strict spending policy | | Agent pays a 402-gated API on X Layer | OKX Agent Payments Protocol from `okx/onchainos-skills`; `okx-x402-payment` is a deprecated legacy alias | | Your TypeScript API charges agents | OKX Payments TypeScript seller SDK (Express, Hono, Fastify, Next.js) | | Your Go API charges agents | OKX Payments Go seller SDK (Gin, Echo, `net/http`) | | Your Rust API charges agents | OKX Payments Rust seller SDK (Axum) | | Your Java API charges agents | OKX Payments Java seller SDK (Spring Boot 2/3, Java EE, Jakarta) | | Your Python API charges agents | Check the current `okx/payments` repo first; a Python seller guide may not exist | Networks: - `agentwallet-sdk`: Base Sepolia is the safest development default; Base mainnet for production. Confirm current network coverage in the package docs. - OKX Payments / X Layer: seller docs target X Layer (`eip155:196`) with USDT0 settlement. Fetch current SDK do