SKILL13.7K installs344

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-protocol

Use cases


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


Similar Skills