open-index/open-npm huggingface dataset:
npm package: @moonpay/cli
Description: MoonPay CLI — how agents move money
Latest version: 1.29.0

# MoonPay CLI

Your agent needs money. Give your agents crypto.

MoonPay is how agents move money — 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

```bash
npm i -g @moonpay/cli
mp consent accept
mp login --email you@example.com
mp verify --email you@example.com --code 123456
mp wallet create --name "main"
```

## Wallets

Local wallets stored encrypted in `~/.config/moonpay/wallets.json`. Keys never leave the machine.

```bash
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" --confirm
```

## Balances

```bash
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

```bash
mp token trending list --chain solana --limit 5 --page 1
mp token search --query "USDC" --chain solana
mp token retrieve --token <address> --chain solana
```

## Swap and bridge

```bash
# 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 0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174
```

## Buy with fiat

```bash
mp buy --token sol --amount 1 --wallet <address> --email you@example.com
```

## Skills

Skills teach AI agents how to use the CLI. Install them for Claude Code, Claude Desktop, or any MCP-compatible agent.

```bash
mp skill list
mp skill install
```

## MCP server

Run as an MCP server for Claude Desktop or Claude Code:

```bash
mp mcp
```

## All commands

```bash
mp tools
```

## Troubleshooting

- Auth errors: run `mp login` again.
- Outdated CLI: run `npm i -g @moonpay/cli` to update.

## Legal

- [Terms of Use](https://www.moonpay.com/legal/terms_of_use_europe_hypermint)
- [Privacy Policy](https://www.moonpay.com/legal/privacy_policy)
- [Swaps by swaps.xyz](https://swaps.xyz/terms)
npm package: @moonpay/login-sdk
Description: Moonpay's Wallet SDK is a library that allows you to integrate Moonpay wallets into a Moonpay user's journey.
Latest version: 1.2.0

# MoonPay Wallet SDK

Moonpay's Wallet SDK is a library that allows you to integrate Moonpay wallets
into a Moonpay user's journey.

# Installation

```
npm install @moonpay/login-sdk
```

# Requirements

To use in our live environment you will need to provide your live api key found in the moonpay dashboard. Check out Usage below for more details.

# Usage

Follow our example here: https://github.com/moonpay/login-sdk-demo/blob/main/src/App.tsx

Init from the example:

```
// @ts-ignore
import { MoonpayWalletSDK } from "@moonpay/login-sdk";

const sdk = new MoonpayWalletSDK({
  loginDomain: "https://buy-sandbox.moonpay.com",
  secureWalletDomain: "https://web3.moonpay.com",
  apiKey: "pk_test_123",
});
```

Replace `loginDomain` with `https://buy.moonpay.com` if you are using a live api key.

## Next.js

Note: if you are using next.js add the following to your `next.config.js`:

```
const nextConfig = {
  transpilePackages: ['@moonpay/login-common', '@moonpay/login-sdk'],
}
```