In short.
OKX Agent Payments Protocol is an instruction package for developers connecting AI agents to paid services, with real token-spending authority and different approval rules across payment paths. Its preferred HTTP 402 flow separates quoting from confirmed payment, while its payment-link flow signs server-provided terms without its own preview and subscription commands have no built-in confirmation gate. The documentation covers paid API requests, remote MCP tools, payment channels and recurring billing, but contains conflicting legacy instructions. Nothing was executed; implementation behavior, security assurances and successful settlement remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes all eleven supplied files within vendored/okx/okx-agent-payments-protocol: SKILL.md, seven references, two shared documents and the component LICENSE. Related notices comprise the repository LICENSE, NOTICE.md and vendored/LICENSE-genlayer-skills; their grants are distinguished from this component's declared MIT license. Other vendored skills, the repository router, integrations, upstream installer, onchainos implementation, wallet implementation and deployed services or contracts are excluded. All behavioral findings concern the supplied documentation. Installation, updates, signing, consent enforcement, paid replay, recurring billing, settlement and refunds were not executed or verified.
The overview
Identity
The skill declares the name okx-agent-payments-protocol, author okx and version 4.4.10. It consists of instructions and reference documents that tell an assistant how to use the separate onchainos command-line tool.
The supplied copy is vendored in Internet Court's repository at [https://github.com/internet-court/internet-court-skill/tree/462bf30efaea73c8af4ed9d6e9970d4495224ad2/vendored/okx/okx-agent-payments-protocol]. Its component notice identifies [https://github.com/okx/onchainos-skills] as the authoritative upstream source.
Assessment
The documentation offers a detailed integration reference for supervised agents that encounter paid APIs. Its useful feature is a common command interface for obtaining payment terms, choosing an offered method, signing and retrieving the service response.
Approval guarantees vary by path. Ordinary quote-and-pay instructions require explicit confirmation, but payment-link buyers rely on prior verification by the caller and subscription commands lack a CLI confirmation gate. Adoption therefore requires application-owned consent controls and resolution of contradictory instructions. Successful operation is not established by the supplied documentation.
Users
The main audience is developers building AI agents that purchase API responses or invoke paid tools through the Model Context Protocol, an interface through which assistants discover and call tools. Additional flows serve sellers creating payment links and users managing prepaid sessions or recurring access.
Practical use assumes familiarity with command-line tools, wallet sessions, blockchain networks, token amounts and HTTP requests. Beginners can learn the payment sequence from the documents, but a complete beginner-oriented installation and wallet setup guide is outside the supplied scope. Compatibility with specific assistant applications is unknown.
Capabilities
The documented HTTP 402 support includes x402 exact payments, exact payments using Permit2, capped metered payments through upto, and deferred settlement through aggr_deferred. A separate WWW-Authenticate: Payment path handles one-time charges and prepaid sessions. Payment-link commands cover creation, payment and status queries without requiring an HTTP 402 response.
Session instructions cover opening an escrow-backed channel, cumulative payment vouchers, adding deposits and closing with a refund. The period subscription path covers subscribing, accessing an active subscription, changing plans, authorizing cancellation and inspecting allowances or subscription state.
For remote MCP endpoints, the CLI is described as discovering tools, invoking a chosen tool to obtain its payment challenge, preserving typed parameters and replaying the paid invocation. It handles the JSON-RPC handshake and Streamable HTTP or server-sent event responses.
Using it
Requirements
Use requires the separate onchainos CLI, an assistant environment able to invoke commands and obtain user decisions, a compatible service endpoint and sufficient funds on the relevant network. The documented payment paths are EVM-based; an exhaustive supported-chain list and minimum compatible CLI version are not supplied.
Most signing paths require a logged-in wallet session using a trusted execution environment, or TEE. Local private-key signing is documented only for exact payments using EIP-3009 or Permit2 and for upto payments. Deferred settlement, WWW-Authenticate charge and session payments, and recurring subscriptions require the TEE path.
Permit2-based payments can require a separate token approval before their first use. Accurate amount display also requires the token's decimals. The shared document provides examples for USDC, USDT, USDG and ETH; unknown tokens require additional metadata or an explicit unknown-decimals warning.
Mechanism
The preferred flow begins with onchainos payment quote <url>. According to the documentation, the CLI probes the service, decodes its offer, checks balances, ranks available methods and stores a paymentId. The assistant obtains confirmation before calling payment pay with that identifier and --yes. The CLI then signs and replays the saved request.
A selected method must be passed using its acceptsIndex as --selected-index. This identifies the original offer entry; its position in the ranked recommendations can differ. The initial probe defaults to GET, so a POST-only service needs the appropriate --method argument.
Session vouchers authorize a cumulative amount against an escrow deposit. Subscription signatures delegate bounded future spending through Permit2 and SubscriptionTerms; subsequent access uses an APP-Access proof. Signing, receiving a service response and completing on-chain settlement are distinct stages, particularly for deferred payments and subscription cancellation.
Setup
The shared setup instructions reference upstream CLI installation guidance at [https://github.com/okx/onchainos-skills?tab=readme-ov-file#install-cli]. The installer itself is absent from the evidence, so its contents and behavior are unknown.
The documented initial command is onchainos preflight --skill-version 4.4.10. Preflight is described as updating the binary and skill checkouts, verifying integrity and reporting drift. Running it can therefore change the installed resource from this captured snapshot.
The dispatcher first references a preflight document in the sibling okx-agentic-wallet skill, with the local shared document as fallback. That sibling wallet skill and its complete login or broadcasting setup are outside the supplied folder. A complete installation was not demonstrated.
Example
For a paid remote MCP tool, the documented sequence starts with onchainos payment quote <service-url> to discover available tools. A second quote adds --tool <tool-name> and the required --param values, causing an actual tool invocation that can return a payment offer.
After the user accepts the real quoted terms, the payment command is onchainos payment pay --payment-id <id> --selected-index <acceptsIndex> --yes. The documentation says this signs and replays the invocation and parses its response and receipt. These are illustrative placeholders; nothing was executed and no price, response or transaction was observed.
Tool discovery alone does not establish a price. The reference also describes tools with initial free calls, so a free invocation does not establish that all future calls will be free.
Assessment & evidence
Limitations
The payment-link buyer flow explicitly signs whatever amount, currency and recipient the server challenge declares. It has no internal preview or yes-no gate and assigns agreement verification to the user or upstream caller. Subscription commands also have no built-in confirmation gate, although their signatures authorize bounded future spending.
Instructions conflict in consequential places. Broad mandatory-confirmation language coexists with the payment-link exception. The legacy multi-scheme reference disagrees about whether accepting a recommendation skips or proceeds to another confirmation. The session reference insists on the original service URL for every operation, while its close example suggests a dedicated close endpoint.
Remote MCP support excludes local stdio transport, paid resources or prompts, non-x402 MCP payment schemes and cross-process session caching. Local-key fallback covers only the specified accepts-based schemes.
The CLI implementation, backend availability, wallet protection, escrow contracts and actual settlement behavior are not assessed. Statements about TEE key protection and contract checks are documentation claims without independent verification in the supplied evidence.
Reasoning
The quote-and-pay design has useful documented controls: payment terms can be presented before signing, the chosen offer is pinned by its original index, and the stored request is replayed by the CLI. These controls address specific risks of selecting the wrong offer or reconstructing payment headers incorrectly.
Those controls do not establish approval across all paths. An application integrating payment links must verify the actual challenge against the buyer's agreement before signing. Recurring billing also requires distinguishing authorization from execution, especially when cancellation has been signed but remains unexecuted.
The practical fit depends on the payment path and the application's ability to own these decisions. Detailed instructions support implementation planning, while their internal contradictions and absent runtime evidence limit confidence in unattended use.
Alternatives
Where a service offers multiple methods, the documented choices have different commitments. A one-time payment avoids maintaining a channel deposit; a session supports repeated requests against prepaid funds; a period subscription authorizes recurring access. Availability depends on the seller's actual offer.
Developers could integrate the documented onchainos commands directly and implement consent, request handling and state management in their application. This is an architectural option inferred from the exposed CLI surface; its implementation effort and reliability were not measured.
The supplied evidence does not establish comparative performance, costs or security against independent payment SDKs or other agent-payment products.
Evidence
The supplied snapshot covers the selected folder's SKILL.md, seven reference documents, two shared helper documents and component LICENSE. Three surrounding notices provide repository-level and component licensing context.
The documents describe expected commands, response fields, failure handling and signing restrictions. They do not supply the onchainos implementation, installer, sibling wallet skill, deployed contracts, independent security audit or observed transaction receipts. No commands, benchmarks or payment journeys were run.
Access & freshness
Costs
Total operating cost is unknown. The evidence provides no verified service prices, CLI pricing or payment-provider fee schedule. Numeric amounts in the documentation are examples rather than established prices.
Financial exposure depends on the offered method: an exact charge, an upto authorization cap, a prepaid channel deposit or a recurring commitment bounded by the signed allowance and expiration. The upto receipt is described as reporting the actual settlement, which can be below the cap.
For WWW-Authenticate payments, feePayer determines whether the server pays gas or the buyer broadcasts a transaction. Payment-link status can expose fee_amount and fee_bps, but no applicable rate is established. Subscription cancellation remains billable until the contract executes the cancellation authorization.
Rights
The skill frontmatter and component LICENSE identify MIT licensing. The component notice attributes copyright to OKX, dated 2026, and directs readers to the upstream repository for authoritative full terms. The supplied component LICENSE contains an attribution and license pointer rather than the full MIT text.
Internet Court's root MIT license explicitly excludes vendored content. The separate GenLayer MIT notice concerns another component and does not establish licensing for this OKX folder. Any redistributed copy should preserve the OKX component notice, upstream source reference and applicable MIT terms. Other components listed in the repository-wide notice have separate licenses.
Freshness
The supplied acquisition metadata records capture at 2026-11-17T09:59:37.209Z from repository revision 462bf30efaea73c8af4ed9d6e9970d4495224ad2. The skill identifies itself as version 4.4.10; that declaration does not establish the installed CLI version.
Publication date, latest upstream version, synchronization with upstream and current service compatibility are unknown. The documented preflight update behavior can change both the executable and skill checkout after installation.
Actions
Before adoption, establish which payment paths the application needs and resolve the conflicting confirmation and channel-close instructions against the corresponding CLI behavior. Define explicit consent for payment links and recurring authorizations rather than relying on a universal gate in this skill.
For a concrete integration, verify the service method, required inputs, network, token decimals, recipient, quoted charge or cap and gas responsibility before signing. Preserve the selected acceptsIndex and distinguish pending settlement from failure.
For subscriptions, verify contract addresses and confirm cancellation through authoritative subscription state. For sessions, retain the channel state needed to resume and confirm settlement and refund receipts when closing. Obtain the authoritative upstream installation and full license terms before packaging or deployment. These steps have not been performed.
