OKX Ecosystem DeFi & Trading Multi-file

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.

Ecosystem skill — independently developed and maintained by OKX, not the Solana Foundation. No security review is performed; evaluate before use. The upstream repo declares no license, so its content is not mirrored here.

One command for Claude Code, Cursor, Codex, Windsurf and other agents — installs from the upstream repo (current HEAD; it ships 9 skills — pick okx-agent-payments-protocol when prompted).

$npx skills add okx/onchainos-skills

Skill contents

OKX OnchainOS doesn’t declare a license, so we link to the source instead of republishing it. Read it on GitHub, pinned to the commit we indexed:

Open okx-agent-payments-protocol on GitHub