@moonpay/cli
v0.12.2
Published
MoonPay CLI — the crypto onramp for AI agents
Readme
MoonPay CLI
Your agent needs money. Give your agents crypto.
MoonPay is the crypto onramp for AI agents — non-custodial wallets, swaps, bridges, transfers, deposits, market data, and fiat on/off ramps. One CLI for everything.
- Install:
npm i -g @moonpay/cli - Primary command:
moonpay - Alias:
mp
Quick start
npm i -g @moonpay/cli
mp consent accept
mp login --email [email protected]
mp verify --email [email protected] --code 123456
mp wallet create --name "main"Wallets
Local wallets stored encrypted in ~/.config/moonpay/wallets.json. Keys never leave the machine.
mp wallet create --name "main"
mp wallet list
mp wallet retrieve --wallet "main"
mp wallet export --wallet "main" # interactive only
mp wallet delete --wallet "main" --confirmBalances
mp token balance list --wallet <address> --chain solana
mp token balance list --wallet 0x... --chain ethereum
mp bitcoin balance retrieve --wallet <btc-address>Token research
mp token trending list --chain solana --limit 5 --page 1
mp token search --query "USDC" --chain solana
mp token retrieve --token <address> --chain solanaSwap and bridge
# Same-chain swap
mp token swap \
--wallet main --chain solana \
--from-token So11111111111111111111111111111111111111111 \
--from-amount 0.1 \
--to-token EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
# Cross-chain bridge
mp token bridge \
--from-wallet main --from-chain ethereum \
--from-token 0x0000000000000000000000000000000000000000 \
--from-amount 0.003 \
--to-chain polygon \
--to-token 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174Buy with fiat
mp buy --token sol --amount 1 --wallet <address> --email [email protected]Skills
Skills teach AI agents how to use the CLI. Install them for Claude Code, Claude Desktop, or any MCP-compatible agent.
mp skill list
mp skill installMCP server
Run as an MCP server for Claude Desktop or Claude Code:
mp mcpAll commands
mp toolsTroubleshooting
- Auth errors: run
mp loginagain. - Outdated CLI: run
npm i -g @moonpay/clito update.
