
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-codeInstalls 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- Okx Guide12.7K
- Okx Ai12.1K
- Okx Defi12K
- Okx Growth Competition10.9K
- Okx Dex Token9.7K
- Okx Wallet Portfolio9K
- Okx Dex Swap8.9K
- Okx Onchain Gateway8.8K
- Okx Dex Signal7.6K
- Okx Dex Trenches7.5K
- Okx Security6.5K
- Okx Audit Log6.4K
- Okx Defi Portfolio6.3K
- Okx Defi Invest6.3K
- Okx Dex Ws5.8K
- Okx X402 Payment4.4K
- Okx Dex Bridge4K
- Okx Dex Social3.3K
- Okx Dex Strategy2.9K
- Okx How To Play2.9K
- Okx Agent Identity2.3K
- Okx Agent Task2.3K
- Okx Agent Chat2.3K
- Okx Task Watch2.3K