Loading...
Loading...
Use when the user asks anything about blockchain wallets, transactions, signing, token transfers, supported chains, wallet balances, perpetual futures trading, prediction markets, token swaps, cross-chain bridges, market data, token discovery, decoding EVM calldata, DeFi earn/yield vaults, or authentication via the MetaMask Agentic CLI; also when an HTTP request returns 402 Payment Required / x402 or the agent needs to pay for a paywalled API, endpoint, file, or resource over HTTP. Single entry point for all mm CLI operations.
npx skill4agent add metamask/agent-skills metamask-agent-walletmmreferences/workflows/| User Intent | Command | Reference |
|---|---|---|
| Check authentication status | | auth.md |
| Login in MetaMask Agentic CLI | | auth.md |
| Choose a wallet mode and set up policies | | auth.md |
| Show current init settings | | auth.md |
| Sign in via QR code with MetaMask Mobile | | auth.md |
| Sign in via browser (Google or Email) | | auth.md |
| Sign out | | auth.md |
| Reset CLI session | | auth.md |
| Show CLI configuration | | auth.md |
| Set CLI configuration | | auth.md |
| Set BYOK mnemonic encryption password | | auth.md |
| Change BYOK mnemonic encryption password | | auth.md |
| Remove BYOK mnemonic encryption password | | auth.md |
| Interpret raw CLI error codes | | errors.md |
| Inspect CLI, skills, environment, and session health | | doctor.md |
| Decode EVM calldata into a human-readable intent | | decode.md |
| Create a wallet | | wallet.md |
| List all wallets | | wallet.md |
| Switch active wallet | | wallet.md |
| Show active wallet details | | wallet.md |
| Show active wallet address | | wallet.md |
| Check the active wallet balance | | wallet.md |
| Show a QR code and address to fund the active wallet | | wallet.md |
| Show current trading mode | | wallet.md |
| Set trading mode to guard or beast | | wallet.md |
| View wallet policy | | wallet.md |
| Set wallet policy | | wallet.md |
| Show project policy template | | wallet.md |
| Sign a plaintext message | | signing.md |
| Sign EIP-712 typed data | | signing.md |
| Send a raw EVM transaction | | transaction.md |
| Transfer native tokens or ERC-20 tokens | | transfer.md |
| List supported chains by the CLI | | chain.md |
| List pending wallet requests | | polling.md |
| Watch a wallet polling id | | polling.md |
| Query spot or historical prices | | market-data.md |
| Discover tokens, token networks, or token metadata | | market-data.md |
| List perpetual markets | | perps.md |
| Check perps account balance | | perps.md |
| List open perpetual positions | | perps.md |
| Get a quote for a perpetual order | | perps.md |
| List resting perpetual orders | | perps.md |
| Open a perpetual position | | perps.md |
| Close a perpetual position | | perps.md |
| Modify leverage, take-profit, or stop-loss | | perps.md |
| Cancel a resting perps order | | perps.md |
| Deposit USDC into a perps venue | | perps.md |
| Withdraw USDC from a perps venue | | perps.md |
| Transfer USDC between spot and perp accounts | | perps.md |
| List perpetual futures venues | | perps.md |
| List available DEXs for a venue | | perps.md |
| Set Predict trading mode | | predict.md |
| One-time Predict setup | | predict.md |
| Create or refresh Predict credentials | | predict.md |
| Repair Predict approvals | | predict.md |
| Check Predict back-end status and account setup | | predict.md |
| Check if Polymarket is geoblocked for your IP | | predict.md |
| List prediction markets | | predict.md |
| Search prediction markets | | predict.md |
| Inspect a prediction market | | predict.md |
| List Polymarket events | | predict.md |
| Inspect a Polymarket event | | predict.md |
| List Polymarket event series | | predict.md |
| Inspect a Polymarket event series | | predict.md |
| List Polymarket tags | | predict.md |
| Inspect a Polymarket tag | | predict.md |
| Preview a prediction order cost | | predict.md |
| Place a prediction market order | | predict.md |
| Cancel prediction orders | | predict.md |
| View prediction market positions | | predict.md |
| View open prediction orders | | predict.md |
| Show full Predict portfolio snapshot | | predict.md |
| List redeemable winning positions | | predict.md |
| Redeem winning positions | | predict.md |
| Check Predict deposit wallet balance | | predict.md |
| Fund Predict deposit wallet | | predict.md |
| Withdraw pUSD from Predict deposit wallet | | predict.md |
| Fetch prediction order book | | predict.md |
| Watch a Predict job | | predict.md |
| List Predict trade or redeem history | | predict.md |
| Inspect Predict history for a specific market | | predict.md |
| Look up a transaction by hash | | tx-history.md |
| List recent transactions for the active wallet | | tx-history.md |
| Get a swap or bridge quote | | swap.md |
| Execute a token swap or bridge | | swap.md |
| Check swap or bridge status | | swap.md |
| Bridge tokens to another chain | | swap.md |
Pay an HTTP | | x402.md |
| List earn vaults and APYs | | earn.md |
| View earn vault positions | | earn.md |
| Supply tokens to an earn vault | | earn.md |
| Withdraw tokens from an earn vault | | earn.md |
references/workflows/| Pattern | Workflow |
|---|---|
| First time setup and onboarding | onboarding.md |
| Login flow | login.md |
| Troubleshooting decision tree | troubleshooting.md |
| Swap quote-review-execute flow | swap.md |
| Bridge quote-review-execute flow | bridge.md |
| Open a perpetual position flow | perps-open-position.md |
| Close a perpetual position flow | perps-close-position.md |
| Modify a perpetual position flow | perps-modify-position.md |
| Predict first-time setup and credentials | predict-setup.md |
| Deposit or withdraw pUSD from Predict wallet | predict-funding.md |
| Search and browse prediction markets | predict-markets.md |
| Quote and place a prediction order | predict-place-order.md |
| View or cancel Predict orders and positions | predict-manage-orders.md |
| View Predict portfolio and redeem winnings | predict-portfolio.md |
| View Predict trade and redeem history | predict-history.md |
| Token discovery, prices, and market data | market-data.md |
| Supply tokens to earn yield | earn-supply.md |
| Withdraw tokens from an earn vault | earn-withdraw.md |
Pay an HTTP | x402-pay.md |
mm| Flag | Short | Description |
|---|---|---|
| | Output format: |
| Shorthand for | |
| Shorthand for | |
| | Show debug logs on stderr. Use for troubleshooting |
--toon@metamask/agent-walletcliVersionmm --version@metamask/agent-wallet/@metamask/agent-wallet/2.0.0 darwin-arm64 node-v22.18.0major.minorcliVersionnpm view @metamask/agent-wallet versionmajor.minorcliVersionVersion mismatch: installed CLI, this skill is pinned to<installed>, latest release is5.2.1. Command syntax in this skill may be inaccurate until they are aligned. Update the CLI with<latest>, then re-install the skills withnpm install -g @metamask/agent-wallet@latest.npx skills add metaMask/agent-skills
mm doctormm doctorauthenticatedinitializedhintsmm doctorauthenticated: trueinitialized: trueNOT_INITIALIZEDmm initserver-walletbyokmm init showNOT_INITIALIZEDmm doctorauthenticated: falseworkflows/login.mdworkflows/onboarding.mdmm loginauthenticated: trueinitialized: falseworkflows/onboarding.mdmm init| Flag | Validation rule |
|---|---|
| Must match |
| Human-readable decimal such as 0.5 or 100. Must match |
| Must be a positive integer ( |
| Must be valid JSON. No unescaped shell metacharacters outside the JSON structure |
| Must be 0x-prefixed hex calldata, matching |
| Must be a valid hex address or known symbol |
| Must be a positive integer ( |
| Human-readable decimal such as 0.01 or 1. Must match |
| Must be |
| Must be |
| Must be a positive integer ( |
| Must be a non-empty outcome token ID string |
| Must be a positive number in range |
| Must be one of |
| Must be |
| Must be a number between 0 and 100 |
| Must be one of |
| Must be a positive integer EVM chain ID |
| Must match |
| Boolean flag, no value. Only meaningful for cross-chain swaps where |
| Comma-separated list from: |
| Must be a positive integer between 1 and 600 |
| Must be a non-empty string. Never log, display, or store the value. |
x402 | Must be a valid contract address on a network returned by |
x402 | Must match |
x402 | Atomic-unit integer that exactly equals the offered amount. The |
| x402 resource URL | Must be |
| Operation type | Confirmation rule |
|---|---|
| Transfers | Always confirm recipient, amount, token, and chain before executing |
| Raw transactions | Always confirm transaction payload, chain, recipient, value, and calldata summary before executing |
| Message signing | Always show exact message and chain before signing |
| Typed-data signing | Always show domain, primary type, chain, verifying contract, and message summary before signing |
| Swaps / bridges | Always confirm from/to tokens, amount, source/destination chain, slippage, quoted output, recipient address if |
| x402 payments | Always confirm asset, decimals-correct amount, network, |
| Perps trading | Always confirm symbol, side, size, leverage, venue, order type, and limit price if present before executing |
| Perps deposit/withdraw | Always confirm amount, asset, venue, network, and destination where applicable before executing |
| Predict trading | Always confirm token ID, side, size, price, order type, market, and outcome before executing |
| Predict deposit | Always confirm amount before executing |
| Predict withdraw | Always confirm amount and recipient before executing. |
| Predict redeem | Always confirm the target, either condition ID or |
| Earn supply | Always confirm token, amount, chain, vault/protocol, and APY before executing. For cross-chain supply, also confirm source chain and source token |
| Earn withdraw | Always confirm token, amount or full balance, chain, and vault/protocol before executing |
| Cancel-all operations | Always confirm scope and exact destructive effect before executing |
| Wallet policy changes | Broadening policy changes require MFA approval; non-broadening changes apply immediately |
| Trading mode changes | Broadening from guard to beast requires MFA approval. Tightening from beast to guard applies immediately |
| Auth / wallet management | May execute without confirmation, except |
| Read-only queries | May execute without confirmation |
--password--mnemonicMM_PASSWORDMM_MNEMONICpermitapprovesetApprovalForAllmm decode --payload <0x-calldata>pollingId--wait--waitpollingIdmm wallet requests listmm wallet requests watch --polling-id <id>pollingIdMM_PASSWORDintentTransfer 0.5 ETH to 0x...Withdraw 10 pUSD to 0x...wallet requests listwallet requests watchintentmm <command> --help