x402

Implements HTTP-native stablecoin micropayments for AI agents on Celo via thirdweb SDK.

7|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/LuisSambrano/antigravity-config --skill x402-luissambrano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x402
Source: https://github.com/LuisSambrano/antigravity-config/tree/main/skills/8-blockchain/celo-core/x402
Command: npx skills add https://github.com/LuisSambrano/antigravity-config --skill x402-luissambrano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires thirdweb, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables AI agents and applications to make instant, permissionless micropayments using stablecoins directly through HTTP requests, simplifying pay-per-use models.

Core Features & Use Cases

  • HTTP 402 Integration: Leverages the "Payment Required" status code for seamless payment flows.
  • Stablecoin Payments: Supports USDC, USDT, and USDm on the Celo network.
  • Use Case: An AI agent needs to access a premium API. Instead of complex API keys, it makes a request, receives a 402, signs a micro-payment with a stablecoin, and retries, receiving the data upon successful payment.

Quick Start

Use the x402 skill to make a payment for accessing the 'https://api.example.com/paid-endpoint' resource.

Frequently Asked Questions about x402

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do AI agents make micropayments using HTTP 402?

AI agents make micropayments using HTTP 402 by requesting a resource, receiving a Payment Required response, signing a stablecoin transaction, and retrying the request. The x402 protocol facilitates this pay-per-use flow on the Celo network.

What is the best way to implement pay-per-use APIs without API keys?

Implementing pay-per-use APIs without API keys is done by leveraging HTTP 402 flows. Applications request data, receive a 402 Payment Required status, and settle micropayments via stablecoins, allowing instant and permissionless access.

Does the x402 stablecoin payment protocol work with thirdweb?

The x402 stablecoin payment protocol works with thirdweb. It integrates with the thirdweb SDK for client-side and server-side payment settlement and verification on the Celo network.

Can I use USDC and USDT for AI agent micropayments on Celo?

You can use USDC and USDT for AI agent micropayments on Celo. The protocol supports these stablecoins along with USDm to facilitate instant and permissionless pay-per-use API flows.

How does an HTTP-native payment protocol handle AI agent transactions?

An HTTP-native payment protocol handles AI agent transactions by embedding payment flows into standard web requests. Agents automatically process HTTP 402 responses and sign stablecoin micropayments to access premium APIs without manual intervention.

Why do AI agents need an HTTP 402 payment flow for premium APIs?

AI agents need an HTTP 402 payment flow for premium APIs to access pay-per-use resources instantly and permissionlessly. This bypasses complex API key management by settling micro-transactions with stablecoins directly through HTTP requests.