Loading...
Loading...
Set up the MoonPay CLI, authenticate, and manage local wallets. Use when commands fail, for login, or to create/import wallets.
npx skill4agent add moonpay/skills moonpay-authnpm i -g @moonpay/climpmoonpaymp --version
mp --help# Log in (sends OTP to email)
mp login --email user@example.com
# Verify OTP code
mp verify --email user@example.com --code 123456
# Check current user
mp user retrieve
# Log out
mp logout~/.config/moonpay/wallets.json# 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" --confirmmp user retrievemp login --email <email>mp verify --email <email> --code <code>mp wallet listmp wallet create --name "default"gog# 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>~/.config/moonpay/wallets.jsonmoonpay-cliencryption-key~/.config/moonpay/credentials.json~/.config/moonpay/config.jsonwallet export