원클릭으로
moonpay-auth
Set up the MoonPay CLI, authenticate, and manage local wallets. Use when commands fail, for login, or to create/import wallets.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Set up the MoonPay CLI, authenticate, and manage local wallets. Use when commands fail, for login, or to create/import wallets.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit/withdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter/exit a position, or check portfolio balances.
What tokens are whales dollar-cost averaging into? Jupiter DCA strategies by smart money and target token fundamentals.
Manually refresh wallet balances shown in a compatible CLI status line. Use when the user says "refresh balances", "update status bar", or after receiving funds from outside the CLI.
Show MoonPay wallet balances in a compatible CLI status line using a local cache and refresh script. Use when the user asks to "show balances in the status bar", "add wallet to the CLI status line", or wants a persistent balance display while working.
Use when accessing Alchemy APIs for RPC calls, token balances, NFT metadata, asset transfers, transaction simulation, or Alchemy-specific features. Also use when the user mentions "SIWE", "SIWS", "x402", "MPP", "mppx", or "agentic gateway" — this skill covers wallet-based auth flows for Alchemy's x402 and MPP protocols on EVM (Ethereum, Base, Polygon) and SVM (Solana).
Integrates Alchemy blockchain APIs using an API key. Requires $ALCHEMY_API_KEY to be set; if unavailable, use the alchemy-agentic-gateway skill instead. Use when user asks about EVM JSON-RPC calls, token balances, NFT ownership or metadata, transfer history, token prices, portfolio data, transaction simulation, webhooks, Solana RPC, or any Alchemy product integration. Covers base URLs, authentication, endpoint selection, pagination, and common patterns.
| name | moonpay-auth |
| description | Set up the MoonPay CLI, authenticate, and manage local wallets. Use when commands fail, for login, or to create/import wallets. |
| tags | ["setup"] |
npm i -g @moonpay/cli
This installs the mp (and moonpay) binary globally.
mp --version
mp --help
# Log in — returns a URL. Open it yourself if you can, otherwise share it with the user verbatim; opening it triggers the OTP code email.
mp login --email user@example.com
# Verify OTP code (user pastes it back from their email)
mp verify --email user@example.com --code 123456
# Check current user
mp user retrieve
# Log out
mp logout
mp login returns a URL. If you can open it yourself (e.g., browser access or a programmatic fetch), do that — it triggers the OTP email send. Otherwise, post the URL back to the user verbatim (don't paraphrase or strip query parameters) and let them open it. Either way the OTP lands in the user's email; they paste the code back, and you run mp verify.
Never call mp login blindly. Every login attempt must be preceded by a session check:
Run mp user retrieve first.
If it succeeds, a session already exists. Tell the user which account is signed in and ask whether to switch:
"You're currently signed in as
<email>. Log out and sign in as a different user? Reply YES to switch."
Only on an explicit affirmative, run mp logout and then proceed with mp login. If the user declines or says anything ambiguous, treat the existing session as the one to use and skip the login.
If it fails (no session), proceed with mp login as normal.
This matters because on a chat channel the user cannot see which account a command runs against. Without the confirmation step, an agent on a shared host can silently switch identities — and a "what's my balance" query returns someone else's portfolio. The check is one extra command; the alternative is a privacy incident.
The CLI manages local wallets stored encrypted in ~/.config/moonpay/wallets.json. Private keys are encrypted with AES-256-GCM using a random key stored in your OS keychain. No password required — keys never leave the machine.
# Create a new HD wallet (Solana, Ethereum, Bitcoin, Tron)
mp wallet create --name "my-wallet"
# Import from a mnemonic (all chains)
mp wallet import --name "restored" --mnemonic "word1 word2 ..."
# Import from a private key (single chain)
mp wallet import --name "imported" --key <hex-key> --chain ethereum
# List all local wallets
mp wallet list
# Get wallet details (by name or address)
mp wallet retrieve --wallet "my-wallet"
# Export mnemonic/key (interactive only — agents cannot run this)
mp wallet export --wallet "my-wallet"
# Delete a wallet (irreversible)
mp wallet delete --wallet "my-wallet" --confirm
mp user retrieve to check if authenticated. If a session already exists, follow the prompt rules in Before logging in above before starting a new login.mp login --email <email>, share the returned URL with the user, then run mp verify --email <email> --code <code> once they paste back the code from their email.mp wallet list to see local wallets.mp wallet create --name "default".Agents can log in without human intervention if they have access to the user's email. For example, with the gog CLI (Google Workspace):
# 1. Send OTP
mp login --email user@example.com
# 2. Read the OTP code from email
gog gmail search "Your MoonPay verification code" --max-results 1
# 3. Verify with the code
mp verify --email user@example.com --code <code>
This enables fully autonomous agent setup — no human in the loop.
~/.config/moonpay/wallets.json (encrypted, AES-256-GCM)moonpay-cli / encryption-key)~/.config/moonpay/credentials.json (encrypted, AES-256-GCM)~/.config/moonpay/config.json (base URL, client ID)wallet export requires an interactive terminal (TTY) — agents and scripts cannot extract secrets