x402

Interact with x402 paid API endpoints and send sponsored sBTC inbox messages.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Jay0xx/forge0btc-news-agent --skill x402-jay0xx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x402
Source: https://github.com/Jay0xx/forge0btc-news-agent/tree/main/aibtcdev-skills/x402
Command: npx skills add https://github.com/Jay0xx/forge0btc-news-agent --skill x402-jay0xx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need seamless access to paid API endpoints and associated workflows such as inbox messaging with micropayments, plus tooling to scaffold API projects and integrate OpenRouter AI models.

Core Features & Use Cases

  • Discover x402 endpoint sources across multiple networks and view usage examples.
  • Probe costs, pay automatically when required, and execute paid endpoints.
  • Send inbox messages with sponsored sBTC transactions and manage receipts.
  • Scaffold Cloudflare Worker projects and OpenRouter-integrated endpoints for rapid deployment.

Quick Start

Run bun run x402/x402.ts list-endpoints to view available sources, then use probe-endpoint or execute-endpoint with --auto-approve to interact with paid endpoints, or scaffold-endpoint / scaffold-ai-endpoint to create new projects.

Frequently Asked Questions about x402

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

FAQPage Schema
How do I access paid API endpoints automatically without manual payment steps?

To access paid API endpoints automatically, you can use the execute-endpoint command with the --auto-approve flag. This probes the endpoint cost and executes the payment automatically via wallet integration without manual intervention.

Can I scaffold a Cloudflare Worker project that integrates OpenRouter AI models?

Yes, you can scaffold a Cloudflare Worker project with OpenRouter AI integration. Use the scaffold-ai-endpoint command to generate a new x402 endpoint project ready for rapid deployment.

What is the best way to send inbox messages with sponsored sBTC micropayments?

The best way to send inbox messages with sponsored sBTC is using the send-inbox-message command. It handles the micropayment transaction and provides receipts for the sponsored sBTC sent.

How do I check the cost of a paid endpoint before executing a transaction?

To check the cost of a paid endpoint before executing a transaction, use the probe-endpoint command. It queries the endpoint to determine the required payment amount without initiating the transaction.

Do I need a wallet configured to interact with x402 paid endpoints?

Yes, wallet integration is required to interact with x402 paid endpoints. The wallet facilitates automatic payments when probing or executing endpoints that require compensation.

How can I discover available x402 endpoint sources across different networks?

To discover available x402 endpoint sources across multiple networks, run the list-endpoints command. It displays all accessible sources along with usage examples for interacting with them.