scp-light

Automate 402 URL payments via hub offer discovery and channel funding.

1|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/Keychain-Inc/x402s --skill scp-light
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scp-light
Source: https://github.com/Keychain-Inc/x402s/tree/main/skill/scp-light
Command: npx skills add https://github.com/Keychain-Inc/x402s --skill scp-light

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates 402 URL payments by discovering offers, selecting an optimal hub route, and managing channel funding and payment submission in a single script.

Core Features & Use Cases

  • Offer discovery and hub-route selection to pay protected URLs without manual configuration.
  • Automatic channel funding and SCP signing ensures payments complete even when wallet balance is low.
  • Use case: Paying any HTTP 402-protected API by routing through a hub, with optional dry-run to test the flow.

Quick Start

Run the auto_402_hub_pay.js script against a target URL to automatically discover offers, select a hub route, fund the necessary channel, and complete the paid request.

Frequently Asked Questions about scp-light

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

FAQPage Schema
How do I automate 402 URL payments for protected APIs without manual configuration?

402 URL payment automation discovers offers, selects an optimal hub route, checks wallet balances, funds channels, and signs SCP transactions to complete paid API requests without manual configuration.

What is hub routing for HTTP 402 API payments and how does it work?

Hub routing for 402 API payments discovers available offers, applies AI-aware offer selection to choose the optimal route, and manages channel funding to ensure payment submission to protected URLs.

Do I need ethers to handle off-chain payments for 402-protected endpoints?

Yes, ethers is required to handle off-chain payments for 402-protected endpoints. The SCP payment automation uses ethers to manage wallet balance checks, channel funding, and SCP signing.

Can I test SCP hub routing and channel funding before executing real payments?

Yes, you can test SCP hub routing and channel funding before executing real payments by using the optional dry-run mode to simulate the offer discovery, funding, and signing flow against a target 402 URL.

Why does my automated 402 payment fail when my wallet balance is low?

Automated 402 payments fail when wallet balances are insufficient, but the SCP script includes automatic channel funding checks to ensure payments complete even when the initial wallet balance is low.