x402: pay-per-request with stablecoins
x402 lets your agent pay for API requests using without subscriptions or API keys. Your agent requests a resource, the server tells it the price, your agent pays, and the server delivers the data. The name comes from HTTP status code402 Payment Required, which has been reserved in the HTTP specification since the 1990s but was never widely adopted. x402 finally puts it to use.
How x402 works
Your agent makes a request
Your agent sends a standard HTTP request to an API endpoint, just like any other API call.
The server responds with 402 Payment Required
Instead of returning data, the server responds with a
402 status code and includes payment details: how much it costs, which stablecoin to pay in, and where to send the payment.Your agent pays
Your agent’s wallet constructs and sends a onchain payment based on the server’s instructions. This happens automatically, no human approval needed.
Skills: actions your agent can perform
Skills are typed function definitions that describe an action your agent can invoke. Each skill specifies a name, expected inputs, and return type similar to a tool or function schema in any LLM tool-use integration. Your agent parses these definitions at runtime and calls them when relevant. Skills cover actions like checking a token balance, executing a swap, sending a payment, or calling a .What a skill looks like
A skill definition includes the action name, a description of what it does, the required inputs, and the expected output. Here’s a simplified example:Title
Skill providers
- BANKR Skills
- CDP Skills
What they are: Pre-built skills for agents running on OpenClaw. BANKR skills cover common actions like token swaps, balance checks, and DeFi interactions.Best for: Agents using OpenClaw or BANKR that need ready-to-use onchain capabilities.Browse BANKR skills →
Next step
Identity, verification, and auth
Make your agent discoverable and verifiable so other agents and services can trust it.