โ† All skills
Tencent SkillHub ยท Developer Tools

x402-cli

Pay for x402 payment-gated HTTP endpoints using USDC stablecoins

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Pay for x402 payment-gated HTTP endpoints using USDC stablecoins

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, clawhub.json

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.3

Documentation

ClawHub primary doc Primary doc: SKILL.md 10 sections Open source page

x402-cli

Pay for x402 payment-gated HTTP endpoints using USDC stablecoins.

When to use

Use this tool when you need to access an API that returns HTTP 402 Payment Required with x402 payment requirements. The tool handles the full payment flow: probe โ†’ sign โ†’ pay โ†’ return response.

Prerequisites

Set EVM_PRIVATE_KEY environment variable with a wallet private key that holds USDC on the target network (e.g., Base Sepolia for testnet).

Probe an endpoint (check price without paying)

x402-cli --json --skip-verify <url> Returns JSON with probe.paymentRequirements containing the price, network, and asset.

Pay and access an endpoint

x402-cli --json -y <url> Returns JSON with payment.body containing the backend response and payment.paymentResponse containing the transaction hash.

POST with body

x402-cli --json -y -X POST -d '{"query": "hello"}' -H 'Content-Type: application/json' <url>

Self-signed TLS (local development)

x402-cli --json -y -k <url>

Exit codes

0 โ€” Success (payment accepted or probe completed) 1 โ€” Error (network, config, or unexpected failure) 2 โ€” Payment rejected by facilitator 3 โ€” Route is free (no payment needed)

JSON output structure

{ "status": "accepted", "probe": { "statusCode": 402, "paymentRequired": true, "paymentRequirements": { "...x402 requirements..." } }, "payment": { "statusCode": 200, "accepted": true, "signer": "0x...", "paymentResponse": { "success": true, "transaction": "0x...", "network": "eip155:84532" }, "body": "...backend response..." } }

Key fields to parse

.status โ€” "free", "payment_required", "accepted", "rejected", "error" .probe.paymentRequirements.accepts[0].amount โ€” price in atomic units .probe.paymentRequirements.accepts[0].network โ€” chain ID (e.g., eip155:84532) .payment.body โ€” the actual backend response after payment .payment.paymentResponse.transaction โ€” on-chain transaction hash

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs1 Config
  • SKILL.md Primary doc
  • clawhub.json Config