agent-payment-x402

Installation
SKILL.md

Agent Payment Execution (x402)

Enable AI agents to make policy-gated payments with built-in spending controls. Uses the x402 HTTP payment protocol and MCP tools so agents can pay for external services, APIs, or other agents without custodial risk.

When to Use

Use when: your agent needs to pay for an API call, purchase a service, settle with another agent, enforce per-task spending limits, or manage a non-custodial wallet. Pairs naturally with cost-aware-llm-pipeline and security-review skills.

Decision Tree

Choose the integration path based on whether your agent is buying access to a paid API or charging others for one:

Need Recommended path
Agent pays a 402-gated API on Base or another agentwallet-supported chain Use agentwallet-sdk as an MCP payment server with strict spending policy
Agent pays a 402-gated API on X Layer Use OKX Agent Payments Protocol from okx/onchainos-skills; okx-x402-payment is a deprecated legacy alias
TypeScript API charges agents Use OKX Payments TypeScript seller SDK docs for Express, Hono, Fastify, or Next.js
Go API charges agents Use OKX Payments Go seller SDK docs for Gin, Echo, or net/http
Rust API charges agents Use OKX Payments Rust seller SDK docs for Axum
Related skills
Installs
2.2K
GitHub Stars
179.7K
First Seen
Mar 29, 2026