# MoonPay CLI > Your agent needs money. MoonPay is financial infrastructure for AI agents — wallets, swaps, bridges, transfers, DCA, limit orders, deposits, market data, and fiat on/off ramps via CLI or MCP. MoonPay CLI gives AI agents and humans full access to crypto. Non-custodial HD wallets (BIP39) with OS keychain encryption — keys never leave the machine. Available as a CLI (`npm install -g @moonpay/cli`) or local MCP server (`mp mcp`) compatible with Claude Desktop, Cursor, and Claude Code. Multi-chain: Solana, Ethereum, Base, Polygon, Arbitrum, Optimism, BNB, Avalanche, TRON, Bitcoin. EVM wallets share a single address across all EVM chains. Safety: CLI tools handle the full build → sign → broadcast flow. For server-side tools, always simulate first (`"simulation": true`), show the quote, get explicit confirmation, then execute. ## Docs - [CLI on npm](https://www.npmjs.com/package/@moonpay/cli): Install with `npm install -g @moonpay/cli` - [Skill / Agent Instructions](https://github.com/moonpay/skills): Full tool reference, CLI commands, authentication, safety rules, REST API, and pre-built AI skills - [MCP Server](https://github.com/moonpay/skills): Run `mp mcp` locally for stdio-based MCP integration - [Skills](https://github.com/moonpay/skills/tree/main/skills): 20 pre-built AI skills — install via `mp skill install` ## Tools - [moonpay-auth](https://github.com/moonpay/skills/tree/main/skills/moonpay-auth): Set up the MoonPay CLI, authenticate, and manage local wallets. Use when commands fail, for login, or to create/import wallets. - [moonpay-block-explorer](https://github.com/moonpay/skills/tree/main/skills/moonpay-block-explorer): Open transactions, wallets, and tokens in the correct block explorer. Use after swaps, bridges, or transfers to view results in the browser. - [moonpay-buy-crypto](https://github.com/moonpay/skills/tree/main/skills/moonpay-buy-crypto): Buy crypto with fiat via MoonPay. Returns a checkout URL to complete the purchase in a browser. - [moonpay-check-wallet](https://github.com/moonpay/skills/tree/main/skills/moonpay-check-wallet): Check wallet balances and holdings. Use for "what's in my wallet", portfolio breakdown, token balances, allocation percentages, and USD values. - [moonpay-commerce](https://github.com/moonpay/skills/tree/main/skills/moonpay-commerce): Browse Shopify stores, search products, manage a cart, and checkout with crypto via Solana Pay. No login required. - [moonpay-deposit](https://github.com/moonpay/skills/tree/main/skills/moonpay-deposit): Create deposit links that accept crypto from any chain and auto-convert to stablecoins. No login required. - [moonpay-discover-tokens](https://github.com/moonpay/skills/tree/main/skills/moonpay-discover-tokens): Search for tokens, check prices, get trading briefs, and evaluate risk. Use for token research, "is this token safe?", price checks, and market analysis. - [moonpay-export-data](https://github.com/moonpay/skills/tree/main/skills/moonpay-export-data): Export portfolio balances and transaction history to CSV or JSON files. Use for spreadsheets, tax reporting, or record-keeping. - [moonpay-feedback](https://github.com/moonpay/skills/tree/main/skills/moonpay-feedback): Submit feedback, bug reports, or feature requests for the MoonPay CLI. Use when the user encounters issues, wants to suggest improvements, or has general feedback. - [moonpay-fund-polymarket](https://github.com/moonpay/skills/tree/main/skills/moonpay-fund-polymarket): Install the Polymarket CLI and fund its wallet with USDC.e and POL on Polygon via MoonPay. - [moonpay-hardware-wallet](https://github.com/moonpay/skills/tree/main/skills/moonpay-hardware-wallet): Connect a hardware wallet (Ledger) to the MoonPay CLI. Sign transactions on the physical device — no private keys stored locally. - [moonpay-mcp](https://github.com/moonpay/skills/tree/main/skills/moonpay-mcp): Set up MoonPay as an MCP server for Claude Desktop or Claude Code. Provides all MoonPay CLI tools via the Model Context Protocol. - [moonpay-missions](https://github.com/moonpay/skills/tree/main/skills/moonpay-missions): A series of missions that walk through every MoonPay CLI capability. Use when the user is new or says "get started", "show me what you can do", or "run the missions". - [moonpay-prediction-market](https://github.com/moonpay/skills/tree/main/skills/moonpay-prediction-market): Trade on prediction markets (Polymarket, Kalshi). Search markets, buy/sell positions, track PnL, and view trade history. - [moonpay-price-alerts](https://github.com/moonpay/skills/tree/main/skills/moonpay-price-alerts): Set up desktop price alerts that notify you when tokens hit target prices. Observe-only — no trading, just notifications. - [moonpay-swap-tokens](https://github.com/moonpay/skills/tree/main/skills/moonpay-swap-tokens): Swap tokens on the same chain or bridge tokens across chains. Use when the user wants to swap, bridge, or move tokens. - [moonpay-trading-automation](https://github.com/moonpay/skills/tree/main/skills/moonpay-trading-automation): Set up automated trading strategies — DCA, limit orders, and stop losses — by composing mp CLI commands with OS scheduling (cron/launchd). - [moonpay-upgrade](https://github.com/moonpay/skills/tree/main/skills/moonpay-upgrade): Increase your MoonPay API rate limit by paying with crypto via x402. - [moonpay-virtual-account](https://github.com/moonpay/skills/tree/main/skills/moonpay-virtual-account): Set up a virtual account for fiat on-ramp and off-ramp. Covers KYC, wallet registration, bank accounts, onramp (fiat to stablecoin), and offramp (stablecoin to fiat). - [moonpay-x402](https://github.com/moonpay/skills/tree/main/skills/moonpay-x402): Make paid API requests to x402-protected endpoints. Automatically handles payment with your local wallet. ## Optional - [Terms of Use](https://www.moonpay.com/legal/terms_of_use_europe_hypermint): Terms governing use of the platform - [Privacy Policy](https://www.moonpay.com/legal/privacy_policy): Data handling and privacy practices - [Open Wallet Standard](https://github.com/open-wallet-standard/core): Interoperability standard for wallets that MoonPay supports — defines how wallets connect to dapps across chains