okx avatar

Okx Agent Payments Protocol

Handles three payment protocols in one dispatcher: x402 for metered billing and EIP-3009 transfers, MPP for channel-based sessions with vouchers, and a2a-pay for agent-to-agent payment links. Triggers on HTTP 402 responses or keywords like "payment required" or "按量计费", decodes the challenge headers, routes to the right signing flow (TEE or local key, Permit2 or session certs), gets user confirmation, then replays with the auth header or returns a transaction hash. The documentation is obsessive about zero narration between detection and the confirmation card, no protocol jargon in user messages, and calling it "OKX Agent Payments Protocol" in bold everywhere. Useful if you're building agents that pay for API access or subscribe to gated services on-chain.

skills.sh installs
15.9K
GitHub stars
347
last updated
Aug 21, 2026

Install

$ npx -y skills add okx/onchainos-skills --skill okx-agent-payments-protocol --agent claude-code

Installs into .claude/skills of the current project.

Files

OKX Agent Payments Protocol (Dispatcher)

For an active marketplace A2MCP invocation started by agent a2mcp invoke, follow ../okx-ai/references/a2mcp/invoke.md through confirmation, payment, and result presentation. Its bound paymentId does not start a new generic quote or confirmation flow here.

Sponsors

Details

Repository
github.com/okx/onchainos-skills
Categories
Backend & APIs, AI & Agent Building, Sales & Marketing, Finance & Trading
First seen
Jun 3, 2026

More from okx/onchainos-skills

All 32
1clerk avatarclerk-swiftclerk/skillsImplement Clerk authentication for native Swift and iOS apps using ClerkKit and ClerkKitUI source-guided patterns. Use for prebuilt AuthView or custom native fl15Kskills.sh installs
2clerk avatarclerk-expoclerk/skillsAdd Clerk authentication to Expo and React Native apps using @clerk/expo. Use for Expo setup, prebuilt native components (AuthView, UserButton), custom sign-in/14.8Kskills.sh installs
3base44 avatarbase44-sdkbase44/skillsThe base44 SDK is the library to communicate with base44 services. In projects, you use it to communicate with remote resources (entities, backend functions, ai13.3Kskills.sh installs
4base44 avatarbase44-clibase44/skillsThe base44 CLI is used for EVERYTHING related to base44 projects: resource configuration (entities, backend functions, ai agents), initialization and actions (r13.2Kskills.sh installs
5shopify avatarshopify-devshopify/shopify-ai-toolkitSearch Shopify developer documentation across all APIs. Use only when no API-specific skill applies.12.7Kskills.sh installs
6yusukebe avatarhonoyusukebe/hono-skillUse when building Hono web applications or when the user asks about Hono APIs, routing, middleware, JSX, validation, testing, or streaming. TRIGGER when code im12.6Kskills.sh installs