x402

Community

HTTP 402 payments for AI agents.

Author0xinit
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables AI agents to pay for services directly over HTTP using stablecoins, eliminating the need for traditional API keys, accounts, or complex payment integrations.

Core Features & Use Cases

  • Gasless Payments: Utilizes EIP-3009 transferWithAuthorization for USDC payments, where the client signs an off-chain authorization and a facilitator handles on-chain settlement, absorbing gas costs.
  • Agent-to-Agent Commerce: Facilitates autonomous workflows where agents discover, negotiate, and pay for services from other agents without human intervention.
  • Use Case: An AI agent needs to summarize a document. It discovers a summarization service, checks its price ($0.01 USDC), automatically signs an authorization, and the service is delivered, with the payment settled on the Base network.

Quick Start

Use the x402 skill to call the protected API endpoint 'https://api.example.com/data' with your private key.

Dependency Matrix

Required Modules

@x402/core@x402/evm@x402/expressviemdotenvexpresshttp-proxy-middleware@x402/fetch@x402/svmrequestseth-account@x402/hono@x402/next@x402/core/server@x402/core/facilitator@solana/web3.js

Components

scriptsreferencesdocs

💻 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/0xinit/cryptoskills/archive/main.zip#x402

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.