Moonpay x402

From moonpay/skills · View interactive version

Moonpay x402 is an AI agent skill from the GitHub repository moonpay/skills. Make paid API requests to x402-protected endpoints. Automatically handles payment with your local wallet.

How to use this skill

Skill file

x402 paid API requests

Goal

Make HTTP requests to x402-protected endpoints. The CLI automatically detects 402 Payment Required responses, builds and signs a payment transaction with your local wallet, and retries the request with the payment proof.

Command

mp x402 request \
  --method POST \
  --url <x402-endpoint-url> \
  --body '<json-body>' \
  --wallet <wallet-name-or-address> \
  --chain solana

Available x402 endpoints

| Endpoint | Cost | Input |

|----------|------|-------|

| https://agents.moonpay.com/x402/upgrade | $1-$20 | {"duration": "day"} or {"duration": "month"} |

Example flow

  1. User: "Upgrade my rate limit for a day."
  2. Run: mp upgrade --duration day --wallet my-wallet --chain solana
  3. The CLI handles the 402 payment flow automatically and applies the upgrade.

Notes

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.