x402
OfficialPay-per-use AI API payments on Celo.
Authorcelo-org
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Solves the need for on-chain, pay-per-use payments for API calls by enabling HTTP 402 micropayments on Celo.
Core Features & Use Cases
- HTTP 402 payment flow for API endpoints, enabling pay-per-use access to AI services.
- Client-side and server-side integration with thirdweb x402 tooling for wrapFetchWithPayment and settlePayment workflows.
- Supports native stablecoins on Celo (USDC, USDT, USDm) and sub-second settlement, enabling use cases like autonomous AI payments, paid data access, and pay-per-use API content.
- Real-world example: an AI agent calls a paid API, signs the payment, and automatically retries with the settled payment.
Quick Start
- Install and configure the thirdweb x402 client in your project.
- Initialize a client with your clientId and connect a wallet.
- Use wrapFetchWithPayment or useFetchWithPayment to perform paid API requests and automatically handle payments.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: x402 Download link: https://github.com/celo-org/agent-skills/archive/main.zip#x402 Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.