Introduction

Overview#

Onchain OS Payment gives Sellers' APIs, MCP tools, and even Agents themselves native on-chain monetization, and lets Buyers' AI Agents complete on-chain payments autonomously within their authorized scope. Built on the open Agent Payments Protocol, running on X Layer.

Built for the Agent Economy#

AI Agents are becoming new participants on the internet#

Agents are reshaping the internet. From content generation to information retrieval, from autonomous decision-making to automated transactions, Agents are taking the place of humans as the primary callers of internet services — service shapes, calling patterns, and consumption structures are all being rewritten.

And the payment layer for the Agent Economy is being built piece by piece.

The previous generation of payment infrastructure has matured, pointing the way for Agent payments#

Looking back at Web2 commercial infrastructure: payment platforms like Stripe, PayPal, Alipay, and Amazon Pay built complete payment systems — from escrow and instant payments to subscriptions and metered billing, every commercial model found a matching payment tool.

In the Crypto and AI payment space, x402 and MPP have already sketched out a direction for Agent payment. The next step is to keep walking that path — building a complete, Agent-native payment system.

Next-gen payment: Agent-native#

Every generation of payment infrastructure was born for its era — cash for face-to-face transactions, credit cards for electronic checkout, Stripe and Alipay for internet commerce. Now, as Agents become the new principal participants on the internet, the next-generation payment layer takes shape.

Payments in the Agent era should be:

  • Instant: millisecond-level triggering, matching machine-call speed
  • Autonomous: complete signing and settlement independently within the authorized scope, no human intervention required
  • Trustworthy: amount, recipient, and purpose are all bound by the protocol
  • Cross-channel: complete transactions over HTTP, Agent dialogue, or any other communication channel

This is a generational extension built for new participants — continuing the evolution of financial infrastructure and laying down a new payment foundation for the Agent Economy.

OKX's answer#

OKX has long invested in Web3 infrastructure. Building on industry contributions to open protocols like x402 and MPP, and on OKX's experience in crypto payments and Agent infrastructure, we propose Agent Payments Protocol, an open payment protocol for the Agent Economy.

The protocol is fully open. Anyone can build wallets, Brokers, SDKs, or larger extensions that conform to Agent Payments Protocol — empowering Agents to autonomously discover and procure cloud resources, contextual data, and API tools, and to complete transactions via Agent-to-Agent dialogue across any communication channel.

We hope to advance the Agent payment era together with the whole industry.


Agent Payments Protocol: An open payment protocol for the Agent Economy#

Agent Payments Protocol is an open payment protocol for the Agent Economy.

It defines the complete flow for buyers and sellers to negotiate price, choose payment method, sign, and settle delivery — over HTTP, Agent dialogue, or any other communication channel.

The protocol is natively wire-compatible with both x402 and MPP — the two main open standards — so any client (Agent, application, or human) can pay for any service through a single protocol.

Payment methods covered#

Agent Payments Protocol covers all the main payment methods in the Agent Economy:

Payment methodUse caseTypical examples
One-time paymentPrice known up front, single deliveryA single on-chain trace report, single LLM inference, image generation, speech synthesis
Batch paymentVery small unit price, very high call frequencyAgent tasks chaining many paid endpoints, IoT pay-per-second bandwidth/compute, Agent-to-Agent cents-level tool calls
Pay-as-you-goTotal cost not knowable up front, needs metered deductionLLM token-based billing, byte-based streaming-data billing, voice/video API per-second billing
Escrow paymentTwo parties don't trust each other, third-party guarantee neededAn Agent outsourcing marketing assets to another Agent, high-value services requiring acceptance, DAO commissioning task bids

Onchain OS Payment: The protocol's first complete implementation#

As the proposer of Agent Payments Protocol, OKX is also launching Onchain OS Payment — a complete product implementation built on the protocol, so developers don't have to integrate the protocol from scratch to get the full set of Agent payment capabilities.

What Onchain OS Payment provides#

For Sellers

  • Onchain OS Payment SDK: drop middleware on any HTTP route to start charging
  • Onchain OS Skill: let your Agent complete end-to-end payments through dialogue
  • No merchant registration, no KYC, no payment-gateway integration

For Buyers

  • Agentic Wallet: out-of-the-box signing and payment experience for the Buyer side

Underlying infrastructure

  • X Layer: on-chain settlement layer with zero gas and sub-second finality

Current coverage#

Payment methodHTTP Seller (SDK)Agent Seller (Skill)
One-time payment
Batch payment💡 Coming soon
Pay-as-you-go💡 Coming soon💡 Coming soon
Escrow paymentN/A💡 Coming soon

Protocol ecosystem: open to all#

Agent Payments Protocol is an open protocol for the entire industry; any developer can build their own payment products on it:

  • Public-chain teams can implement an Agent Payments Protocol-conformant Broker, making their chain part of the Agent Payments Protocol ecosystem
  • Wallet developers can support Agent Payments Protocol signatures, adapting their wallet to Agent payment scenarios
  • SaaS providers can build hosted payment services on Agent Payments Protocol to serve a broader merchant base

Next#

I'm a Seller#

I'm a Buyer#

I want to learn the protocol#