Agent skill

Moonpay X402

by moonpay in moonpay/skills

Make paid API requests to x402-protected endpoints. An agent skill from moonpay/skills.

MITAuto-check passed

Install Moonpay X402

skills CLI
$ npx skills add moonpay/skills --skill moonpay-x402 -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install moonpay/skills moonpay-x402 --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/moonpay/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/moonpay-x402 .claude/skills/moonpay-x402 && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
moonpay-x402
GitHub stars
113
Token cost
~370 tokens
SKILL.md length
153 words
Files
1
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Make paid API requests to x402-protected endpoints. An agent skill from moonpay/skills.

  • Works in 3 steps: User: "Upgrade my rate limit for a day." → Run: mp upgrade --duration day --wallet… → The CLI handles the 402 payment flow…
  • SKILL.md covers Goal, Command, Available x402 endpoints and Example flow, plus 2 more sections
  • Reaches agents.moonpay.com

What it does

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

Its SKILL.md is about 370 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with x402 and Solana. The repository describes itself as: Skills for AI agents to move money — on-ramps, swaps, wallets, deposits, and more via the MoonPay CLI. The licence is MIT.

Example prompts

  • “/moonpay-x402”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  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.

What it can do on your machine

Read from SKILL.md and the folder at commit aa672ab. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • agents.moonpay.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Moonpay X402 loads about 370 tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 153 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~370

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from moonpay/skills at commit aa672ab, republished under its MIT licence (© moonpay). 153 words, ~370 tokens.

Download SKILL.mdSave it as .claude/skills/moonpay-x402/SKILL.md (or your agent's skills folder).
name
moonpay-x402
description
Make paid API requests to x402-protected endpoints. Automatically handles payment with your local wallet.
tags
payments, api

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

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

Available x402 endpoints

EndpointCostInput
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

  • Requires a local wallet with USDC on Solana or Base.
  • Payments accepted on Solana mainnet and Base.
  • If the request fails (status >= 400), the payment is not settled — you don't pay for errors.
  • Use moonpay-auth to set up a local wallet first.
  • moonpay-auth — Create or import a local wallet.
  • moonpay-check-wallet — Check your wallet balance before making paid requests.
  • moonpay-upgrade — Upgrade your rate limit via x402.

© moonpay, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/moonpay-x402 of moonpay/skills.

Open the folder on GitHubat commit aa672ab

Compare with similar skills

Moonpay X402 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Moonpay X402 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Moonpay X402 this skillmoonpay/skills113—~370Automated safety check: PassMIT
Minara Crypto Trading and WalletMinara-AI/minara-skills362—~5.7kAutomated safety check: PassNone
BlockrunBlockRunAI/blockrun-mcp391—~2.7kAutomated safety check: PassMIT
Solana Payments Wallets Tradingnpc-live/clawfirm1561 repos~4.7kAutomated safety check: PassMIT
Birdeye DeFi Market Datainternet-court/internet-court-skill6.5k1 repos~3.8kAutomated safety check: PassApache-2.0
Metengine Data Agentinternet-court/internet-court-skill6.5k1 repos~19kAutomated safety check: PassApache-2.0

Similar skills

  • Minara Crypto Trading and Wallet

    Minara-AI/minara-skills

    Drives the Minara CLI for crypto swaps, perps, limit orders, wallet transfers, deposits and withdrawals, plus AI market analysis.

    362 GitHub stars~5.7k tokensUpdated 22 days ago
    Business, Finance & HRAuto-check passed
  • Blockrun

    BlockRunAI/blockrun-mcp

    Pay-per-call access to AI models, real-time data, media generation and multi-chain RPC over x402 micropayments (USDC on Base or Solana), or a BlockRun account API key.

    391 GitHub stars~2.7k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Pay people in SOL or USDC, buy and sell tokens, check prices, discover trending and new tokens, create and manage Solana wallets, stake SOL, earn yield through lending and managed vaults, borrow…

    156 GitHub starsUsed in 1 repo~4.7k tokens
    Business, Finance & HRAuto-check passed
  • Birdeye DeFi Market Data

    internet-court/internet-court-skill

    Queries the Birdeye API for token prices, OHLCV candles, trending and new tokens, holder data, security checks and wallet P&L, with WebSocket streams for live prices and whale alerts.

    6.5k GitHub starsUsed in 1 repo~3.8k tokens
    Business, Finance & HRAuto-check passed
  • Metengine Data Agent

    internet-court/internet-court-skill

    Real-time smart money analytics API for Polymarket prediction markets, Hyperliquid perpetual futures, and Meteora Solana LP/AMM pools.

    6.5k GitHub starsUsed in 1 repo~19k tokens
    Backend & APIsAuto-check passed
  • Quicknode Skill

    internet-court/internet-court-skill

    Quicknode blockchain infrastructure for 80+ chains: Core RPC API, Streams, Webhooks, Blazar WSS, Solana gRPC, HyperCore gRPC, SQL Explorer, Metaplex DAS API, Blockbook, Ordinals & Runes API, Swap…

    6.5k GitHub stars~11k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed

More from moonpay/skills

All 39 skills in this repo
  • A skill your agent uses when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features.

    113 GitHub stars~2.1k tokensUpdated 29 days ago
    Auto-check: notes
  • Alchemy API

    moonpay/skills

    Integrates Alchemy blockchain APIs using an API key. An agent skill from moonpay/skills.

    113 GitHub stars~2.1k tokensUpdated 29 days ago
    Auto-check passed
  • Allium Onchain Data

    moonpay/skills

    Query blockchain data via Allium APIs. An agent skill from moonpay/skills.

    113 GitHub stars~1.9k tokensUpdated 29 days ago
    Auto-check passed
  • Corbits Marketplace

    moonpay/skills

    Paid API marketplace for AI agents via Corbits. An agent skill from moonpay/skills.

    113 GitHub stars~1.5k tokensUpdated 29 days ago
    Auto-check passed
  • Dune Analytics

    moonpay/skills

    Blockchain analytics via Dune REST API — execute DuneSQL queries against live on-chain data, discover decoded contract tables, and monitor credit usage.

    113 GitHub stars~1.3k tokensUpdated 29 days ago
    Auto-check passed
  • Moonpay Auth

    moonpay/skills

    Set up the MoonPay CLI, authenticate, and manage local wallets.

    113 GitHub stars~1.2k tokensUpdated 29 days ago
    Auto-check passed

Works with

Questions about Moonpay X402

What does Moonpay X402 do?

Make paid API requests to x402-protected endpoints. An agent skill from moonpay/skills. Moonpay X402 is an agent skill from moonpay/skills. Make paid API requests to x402-protected endpoints.

How do I install Moonpay X402 in Claude Code?

Run `npx skills add moonpay/skills --skill moonpay-x402 -a claude-code`. Or copy the skill folder (skills/moonpay-x402 in moonpay/skills) into .claude/skills/moonpay-x402 in your project. Claude Code loads it when a task matches its description.

How do I install Moonpay X402 in Codex?

Run `npx skills add moonpay/skills --skill moonpay-x402 -a codex`. Or copy the skill folder (skills/moonpay-x402 in moonpay/skills) into .agents/skills/moonpay-x402 in your project. Codex loads it when a task matches its description.

Can I use Moonpay X402 in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add moonpay/skills --skill moonpay-x402 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/moonpay-x402, .gemini/skills/moonpay-x402, .github/skills/moonpay-x402 and .opencode/skills/moonpay-x402 in your project.

What does Moonpay X402 need to run?

SKILL.md names no scripts, command-line tools or credentials: Moonpay X402 is instructions for the agent only.

Does Moonpay X402 access the network?

SKILL.md names 1 domain. In commands or code: agents.moonpay.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Moonpay X402 safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Moonpay X402 use?

Moonpay X402 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Moonpay X402 use?

About 370 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Moonpay X402?

Skills that share tags, products or a category with Moonpay X402: Minara Crypto Trading and Wallet (Minara-AI/minara-skills, 362 stars), Blockrun (BlockRunAI/blockrun-mcp, 391 stars), Solana Payments Wallets Trading (npc-live/clawfirm, 156 stars) and Birdeye DeFi Market Data (internet-court/internet-court-skill, 6.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Moonpay X402?

moonpay (a GitHub organization) maintains it in moonpay/skills, which has 113 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on September 10, 2026.

Source: moonpay/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.