agent-ready-x402

Implement x402 HTTP payments for protected Express, Hono, and Next.js API routes.

47|4|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/fabricioctelles/skills --skill agent-ready-x402
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-ready-x402
Source: https://github.com/fabricioctelles/skills/tree/main/skills/agent-ready-cloudflare/x402
Command: npx skills add https://github.com/fabricioctelles/skills --skill agent-ready-x402

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables APIs to accept automated payments from AI agents through the x402 HTTP payment protocol, allowing protected resources to be monetized without traditional checkout flows.

Core Features & Use Cases

  • Payment Middleware: Add x402 middleware to Express, Hono, or Next.js API routes.
  • Payment Configuration: Configure a facilitator URL and wallet address for settlement.
  • HTTP 402 Responses: Return payment requirements that compatible agents can fulfill automatically.
  • Use Case: Protect an API endpoint such as a site scanner or data service and allow agents to pay for access programmatically.

Quick Start

Use the agent-ready-x402 skill to add x402 payment protection to my API routes, configure the facilitator and wallet address, and verify the endpoint returns valid payment requirements.

Frequently Asked Questions about agent-ready-x402

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

FAQPage Schema
How do I add HTTP 402 payment requirements to API routes for AI agents?

To add HTTP 402 payment requirements, you implement x402 payment middleware on your API routes. This returns automated payment requirements that AI agents can fulfill programmatically without traditional checkout flows.

What is the x402 payment protocol and how does it monetize API resources?

The x402 payment protocol is an HTTP 402 standard that monetizes API resources for automated AI-agent access. It returns payment requirements in the HTTP response that compatible agents process and fulfill automatically.

Can I use x402 payment middleware with Hono, Express, and Next.js APIs?

Yes, x402 payment middleware can be applied to Hono, Express, and Next.js API routes. You configure it to protect endpoints and allow automated agents to pay for access to resources programmatically.

What configuration do I need to accept automated API payments from AI agents?

Accepting automated API payments requires configuring a facilitator URL and a wallet address for settlement. The middleware uses these to generate valid HTTP 402 payment requirements for agents to fulfill.

How do AI agents automatically pay for protected API endpoint access?

AI agents automatically pay for protected API access by reading the HTTP 402 payment requirements returned by the x402 middleware. The agents then process the payment through the configured facilitator URL to gain access.

What is the best way to monetize a data service or site scanner for automated access?

The best way to monetize a data service or site scanner for automated access is implementing x402 payment middleware. This returns HTTP 402 payment requirements, allowing AI agents to pay for resources programmatically without manual checkout.