# MetaMask Agent Wallet documentation

> Documentation links for MetaMask Agent Wallet

Version: CLI 7.2.0

If you are an AI agent operating the `mm` CLI, read "Rules for AI agents" first.
If you can load skills, install `npx skills add MetaMask/agent-skills` and prefer the skill.

- Never choose the sign-in method, wallet mode, or trading mode for the user. Ask, then pass `--wallet` and `--mode` explicitly.
- Each sign-in method (Google, email, MetaMask Mobile QR) loads a different wallet address.
- `AWAITING_MFA` or `pending_approval` means the request is waiting for the user's 2FA approval. It has not failed. Tell the user where to approve: the MetaMask Mobile notifications menu for QR sign-in, or the approval email for browser sign-in.
- Confirm recipient, amount, token, and chain with the user before moving funds.

## Table of Contents

- [Rules for AI agents](https://docs.metamask.io/agent-wallet/agent-rules.md): Read first if you are an AI agent operating the mm CLI. Preflight checks, choices you must leave to the user, what to confirm before moving funds, ...
- [MetaMask Agent Wallet](https://docs.metamask.io/agent-wallet.md): Give your AI agent a self-custody wallet. Install the mm CLI and agent skills, then use natural language in Claude Code, Codex, Cursor, and other a...
- [Quickstart](https://docs.metamask.io/agent-wallet/quickstart.md): Install the mm CLI, add agent skills, and complete setup by prompting your agent in natural language.
- [CLI setup](https://docs.metamask.io/agent-wallet/cli-setup.md): Complete MetaMask Agent Wallet setup with the mm CLI — step-by-step for terminal use, CI, and agents without skills.
- [Switch modes and wallets](https://docs.metamask.io/agent-wallet/switch-modes-and-wallets.md): Use when the user asks to switch between Guard Mode and Beast Mode, change the active wallet, change sign-in method or wallet mode, or asks why the...
- [Approve requests](https://docs.metamask.io/agent-wallet/approve-requests.md): Use when an mm command pauses for 2FA approval or prints AWAITING_MFA. Where the approval request appears for each sign-in method, how to track it,...
- [Troubleshooting](https://docs.metamask.io/agent-wallet/troubleshooting.md): Start with mm doctor, then fix authentication, initialization, and common mm CLI errors.
- [Trading modes](https://docs.metamask.io/agent-wallet/reference/trading-modes.md): Use when the user is choosing or comparing Guard Mode and Beast Mode. Guardrails, which transactions need 2FA approval, and how to set the mode.
- [Outflow policy](https://docs.metamask.io/agent-wallet/reference/outflow-policy.md): How Agent Wallet enforces rolling 24-hour outflow limits on server-wallet transactions.
- [Commands reference](https://docs.metamask.io/agent-wallet/reference/commands.md): Complete reference for all mm CLI commands and global flags.
- [Error codes](https://docs.metamask.io/agent-wallet/reference/error-codes.md): CLI error codes returned by mm and MetaMask Agent Wallet.
- [Check balances and prices](https://docs.metamask.io/agent-wallet/guides/check-balances-and-prices.md): Check wallet balances, spot prices, token metadata, and transaction history with mm.
- [Earn with yield vaults](https://docs.metamask.io/agent-wallet/guides/earn-yield-vaults.md): Supply and withdraw from yield vaults using `mm earn` commands.
- [Pay for paywalled APIs (x402)](https://docs.metamask.io/agent-wallet/guides/pay-for-apis-x402.md): Pay for HTTP 402 paywalled APIs with the metamask-agent-wallet skill x402 helper script.
- [Send tokens](https://docs.metamask.io/agent-wallet/guides/send-tokens.md): Send native tokens or ERC-20 tokens on a single EVM chain with mm transfer.
- [Sign messages and transactions](https://docs.metamask.io/agent-wallet/guides/sign-messages-and-transactions.md): Sign messages, typed data, and submit raw EVM transactions with mm wallet commands.
- [Swap and bridge tokens](https://docs.metamask.io/agent-wallet/guides/swap-and-bridge.md): Swap or bridge tokens with mm swap quote and mm swap execute.
- [Trade perpetuals](https://docs.metamask.io/agent-wallet/guides/trade-perpetuals.md): Trade perpetual futures on Hyperliquid with mm perps commands.
- [Trade prediction markets](https://docs.metamask.io/agent-wallet/guides/trade-prediction-markets.md): Trade Polymarket prediction markets with mm predict commands.
- [Build a plugin](https://docs.metamask.io/agent-wallet/plugins/build-a-plugin.md): Build a MetaMask Agent Wallet plugin from the official template and publish it to npm.
- [Plugins overview](https://docs.metamask.io/agent-wallet/plugins.md): Extend MetaMask Agent Wallet with plugins that add custom commands.
- [Install a plugin](https://docs.metamask.io/agent-wallet/plugins/install-a-plugin.md): Install, review, update, and remove MetaMask Agent Wallet plugins.
- [Architecture](https://docs.metamask.io/agent-wallet/reference/architecture.md): How the mm CLI, wallet modes, security stack, and server-wallet async model work together.
- [Plugins](https://docs.metamask.io/agent-wallet/reference/plugins.md): MetaMask Agent Wallet plugin reference including the manifest schema, capability types, data access categories, and the plugin SDK surface.
- [Supported chains](https://docs.metamask.io/agent-wallet/reference/supported-chains.md): Supported EVM chains for MetaMask Agent Wallet.
