Okx Agent Payments Protocol
Use when an agent hits HTTP 402 / payment-required, or the user mentions x402, x402Version, X-PAYMENT, PAYMENT-REQUIRED, PAYMENT-SIGNATURE, WWW-Authenticate: Payment, permit2, upto, metered billing, a payment channel / voucher / session, channelId / channel_id, opening / closing / topping up / settling / refunding a channel, a paymentId or a2a_ link, creating / checking a payment link, A2MCP / an A2MCP endpoint, or sending a request to / calling an Agent's endpoint with a concrete endpoint URL. Covers x402 (exact, exact+Permit2, upto, aggr_deferred), MPP (charge / session), and a2a-pay paymentId flows. Any close / topup / settle / voucher / refund near a channel_id or session is an MPP mid-session op. Two-phase quote/pay: `payment quote`, `payment pay --payment-id`, `decode-receipt`. The full bilingual trigger list (including Chinese) lives in the skill body.
- Type
- Skill
- Author
- okx
- Category
- API Integration
- GitHub stars
- 344
- Installs
- 13.7K
- Last updated
- October 30, 2026
Install
npx skills add https://github.com/okx/onchainos-skills --skill okx-agent-payments-protocolUse cases
- Handle a 402 response from an agent endpoint by quoting and paying with a paymentId.
- Open, top up, or settle an MPP payment channel during a metered session.
- Decode a payment receipt after an x402 or a2a-pay transaction completes.
Frequently Asked Questions
What payment protocols does this skill cover?
It covers x402 (exact, exact+Permit2, upto, aggr_deferred), MPP charge and session flows, and a2a-pay paymentId links.
How does the two-phase quote and pay flow work?
You run `payment quote` first, then `payment pay --payment-id` to complete the payment, and `decode-receipt` to read the result.
When should this skill be used instead of handling payments manually?
Use it when an agent hits HTTP 402 or payment-required, or when the user mentions x402, X-PAYMENT, permit2, a channel or session, or an a2a_ link.
About this skill
Handles payment negotiation for agents, covering HTTP 402 payment-required responses, x402 (exact, exact+Permit2, upto, aggr_deferred), MPP charge and session flows, and a2a-pay paymentId links. It supports two-phase quote and pay through `payment quote` and `payment pay --payment-id`, plus receipt decoding. Triggers include x402, X-PAYMENT, PAYMENT-REQUIRED, permit2, channel or session operations, and any agent endpoint call that returns 402.
Summary written with AI assistance from the project's public description.
Categories
More from okx
Okx Dex Market
HARD BLOCK — never use for prediction-market/Polymarket UpDown queries; route to okx-dapp-discovery when a named DApp (Polymarket/Aave/Hyperliquid/...
by okx
Okx Agentic Wallet
OKX Agentic Wallet — the single skill for the user's wallet and on-chain execution. Use it whenever the user wants to operate their wallet or execu...
by okx
Okx Dapp Discovery
Plugin router for 20 third-party DeFi protocols (Polymarket, Aave, Hyperliquid, PancakeSwap, Morpho, Raydium, Curve, Compound, Pendle, Lido, ether....
by okx
Okx Growth Competition
List OKX Agentic Wallet exclusive trading competitions, register users for contests, track participation and leaderboard rankings, and claim won re...
by okx
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh