pay-via-agent-wallet

Searches, inspects, and pays x402 marketplace APIs with USDC via the Circle CLI.

1|Updated Jul 20, 2026
One-click install
npx skills add https://github.com/Lightupwrld/Cycuxio --skill pay-via-agent-wallet-lightupwrld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pay-via-agent-wallet
Source: https://github.com/Lightupwrld/Cycuxio/tree/main/.agents/skills/pay-via-agent-wallet
Command: npx skills add https://github.com/Lightupwrld/Cycuxio --skill pay-via-agent-wallet-lightupwrld

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agents often hit walls when a task requires paid APIs, live data, or services behind paywalls — no API keys, no accounts, no prefunded billing. This Skill lets an agent discover paid HTTP endpoints in the Circle services marketplace and pay per call in USDC using the x402 protocol, turning "I can't do that" into a completed request. ## Core Features & Use Cases - Marketplace discovery: Run circle services search <keyword> to find paid endpoints for crypto prices, prediction-market odds, web search, news, weather, sports stats, academic research, and communication APIs. - Pre-payment inspection: Use circle services inspect and raw 402 responses to confirm price, accepted chains, payment scheme (Gateway vs vanilla x402), and request schema before spending. - USDC payment execution: Call circle services pay with the correct chain, wallet address, and JSON payload, with cost estimates, spending caps, and detailed error recovery for chain mismatches, 422 schema errors, and Gateway balance issues. - Use Case: A user asks for current prediction-market odds. The agent searches the marketplace, inspects a Predexon-backed endpoint, confirms the $0.005 price, pays in USDC on Polygon, and returns the odds data. ## Quick Start Ask the agent to look up live data or call a paid API, for example: "Find the current price of Bitcoin using a paid service and pay with my agent wallet."

Frequently Asked Questions about pay-via-agent-wallet

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

FAQPage Schema
How do I pay for an API call with USDC using the Circle CLI?

Run circle services search with a keyword to find a paid endpoint, inspect it with circle services inspect to confirm price and schema, then call circle services pay with your wallet address, chain, and JSON payload. The CLI signs the payment authorization and returns the API response.

What is the x402 protocol for paid APIs?

x402 is a payment protocol where HTTP endpoints return a 402 challenge specifying price and accepted chains, and clients settle per-call in USDC. It removes the need for API keys, accounts, or prefunded billing when accessing paid services.

Why does circle services pay reject my chain selection?

Sellers publish accepted chains in their 402 response, and many accept only Polygon or Avalanche rather than BASE. When you see "Seller does not accept --chain X", retry with the chain listed in the CLI's hint, which is authoritative.

What is the difference between Gateway and vanilla x402 payments?

Gateway uses the GatewayWalletBatched scheme with sub-500ms settlement after a one-time deposit, while vanilla x402 pays directly on-chain at roughly 2 seconds per call. When a seller lists both, the CLI auto-selects Gateway first.

Why does my paid API call return HTTP 422?

HTTP 422 means the request payload schema is wrong, not a transient error. Check whether the CLI says payment was not charged (safe to fix --data and retry) or payment was submitted (check the payment log in ~/.circle-cli/payments/ before retrying to avoid double-charging).

What should I do before using this payment skill?

Verify the wallet is set up with circle wallet status and confirm a nonzero USDC balance. If login or terms errors appear, use the wallet setup flow first; if balance is zero, fund the wallet via fiat on-ramp, transfer, or Gateway deposit before paying.