402 with payment requirements. Once the client pays, the facilitator verifies the payment and your server delivers the response.
Option 1 — OpenClaw monetize-service skill (simplest)
With the CDP Agentic Wallet skills installed, expose a paid endpoint with a single prompt:Terminal
monetize-service skill configures the x402 gating and deploys the endpoint. No server code required.
CDP Agentic Wallet skills →
Option 2 — Sponge Wallet payment links
Create a reusable x402 payment link that other agents pay before accessing your service:Terminal
Terminal
Option 3 — Custom server with x402-express
Use thex402-express package to add payment gating to any Express endpoint:
Terminal
TypeScript
402 to unpaid callers. The CDP facilitator handles verification and onchain settlement.
x402 seller quickstart →
Configuring facilitators
A facilitator is the off-chain service that verifies payment payloads and settles payments onchain. Two options:| Facilitator | When to use |
|---|---|
| CDP facilitator (default) | Production — requires CDP API key, supports Base and Solana |
| Public testnet facilitator | Development — no API key, Base Sepolia only |
https://www.x402.org/facilitator. Switch to the CDP facilitator for mainnet. See contract addresses for full endpoint details.
Pricing and payment terms
- Set prices in USD (e.g.,
"$0.01") — the middleware converts to the appropriate token amount - Payments settle in USDC on Base by default
- There is no minimum payment — even fractions of a cent are supported
- Your wallet receives payment directly — no platform fee from the protocol
Make your endpoint discoverable
Host aSKILL.md file at /.well-known/SKILL.md describing your endpoint’s inputs, outputs, pricing, and authentication requirements. Agents discover your service by checking this path.
SKILL.md template
Related
x402 protocol
How x402 works from the client side.
Contract addresses
Facilitator endpoints and protocol addresses.