Skip to main content

Commands reference

All mm commands accept global flags unless noted.

Global flags

FlagShortDescription
--format-fOutput format: text, json, yaml, toml, or toon
--jsonShorthand for --format=json
--toonShorthand for --format=toon
--verbose-vShow debug logs on stderr

mm init

Initialize wallet mode and trading mode.

mm init [--wallet server-wallet|byok] [--mode guard|beast]
mm init show
FlagRequiredDescription
--walletNoserver-wallet (default) or byok
--modeNoguard (default) or beast (server-wallet only)
--mnemonicNoBYOK only. Prefer MM_MNEMONIC env var

Environment variables: MM_MNEMONIC, MM_PASSWORD (BYOK encryption).

mm login

Sign in to MetaMask Agent Wallet.

mm login [qr | google | email] [--token <token>] [--no-wait]
mm login qr
mm login google [--no-wait]
mm login email [--no-wait]
FlagRequiredDescription
--tokenNoPre-minted token as cliToken:cliRefreshToken. Env: MM_CLI_TOKEN
--no-waitNoPrint sign-in URL and exit (not supported for QR)

mm auth status

Check authentication status. No additional flags beyond global flags.

mm logout

Sign out and revoke the CLI session.

mm reset

Clear local session and wallet state files.

mm chains list

List supported EVM and Solana networks. No auth required.

mm wallet

Wallet lifecycle and signing commands.

mm wallet create

mm wallet create [--chain-namespace <namespace>] [--name <name>]

mm wallet list

mm wallet list [--chain-namespace <namespace>]

mm wallet select

mm wallet select [--chain-namespace <namespace>] [--id <id>] [--address <address>] [--name <name>]

mm wallet show

mm wallet show [--chain-namespace <namespace>] [--id <id>] [--address <address>] [--name <name>]

mm wallet address

mm wallet address [--chain-namespace <namespace>]

mm wallet balance

mm wallet balance [--currency <code>] [--chain <chains>] [--token <token>] [--address <address>]

mm wallet sign-message

mm wallet sign-message --message <text> --chain-id <id> [--wait]

mm wallet sign-typed-data

mm wallet sign-typed-data --chain-id <id> --payload '<JSON>' [--wait]

mm wallet send-transaction

mm wallet send-transaction --chain-id <id> --payload '<JSON>' [--wait]

mm wallet requests list

List pending server-wallet requests. Server-wallet mode only.

mm wallet requests watch

mm wallet requests watch --polling-id <id>

mm wallet password

mm wallet password set --new=<password>
mm wallet password change --current=<old> --new=<new>
mm wallet password remove --current=<password>

mm transfer

Send native currency or ERC-20 tokens on one EVM chain.

mm transfer --to <address> --amount <value> --chain-id <id> --token <symbol-or-address> [--wait]
FlagRequiredDescription
--toYesRecipient hex address. ENS not supported
--amountYesHuman-readable amount
--chain-idYesEVM chain ID
--tokenYesnative, symbol, or ERC-20 address
--waitNoBlock until complete (server-wallet)

mm swap

mm swap quote

mm swap quote --from <token> --to <token> --amount <amount> --from-chain <chain-id> [--to-chain <chain-id>] [--slippage <percent>]

mm swap execute

mm swap execute --quote-id <id>
mm swap execute --from <token> --to <token> --amount <amount> --from-chain <chain-id> [--to-chain <chain-id>] [--slippage <percent>]

mm swap status

mm swap status --quote-id <id> [--tx-hash <hash>]

mm perps

Hyperliquid perpetuals commands. Most commands require --venue hyperliquid.

CommandUsage summary
mm perps list-venuesList supported venues
mm perps markets--venue <venue> [--symbol <symbol>]
mm perps balance--venue <venue>
mm perps positions--venue <venue>
mm perps orders--venue <venue>
mm perps quoteQuote before open
mm perps open--venue <venue> --symbol <symbol> --side long|short --size <size> --leverage <n>
mm perps closeClose a position
mm perps modifyModify leverage or TP/SL
mm perps cancel--venue <venue> --order-id <id>
mm perps deposit--venue <venue> --amount <amount>
mm perps withdrawWithdraw from venue
mm perps transferTransfer between spot and perp accounts

mm predict

Polymarket prediction market commands.

CommandDescription
mm predict setupOne-time predict setup
mm predict depositFund predict deposit wallet
mm predict balanceCheck predict balance
mm predict modeSet mainnet or testnet
mm predict authRefresh predict credentials
mm predict approveRepair approvals
mm predict statusBackend status
mm predict markets searchSearch markets
mm predict markets listList markets with filters
mm predict marketInspect a market
mm predict quotePreview order cost
mm predict placePlace an order
mm predict cancelCancel orders
mm predict ordersList open orders
mm predict positionsView positions
mm predict bookOrder book for a token
mm predict watchWatch a predict job

Run mm predict <command> --help for command-specific flags.

mm price

CommandUsage
mm price spot--asset-ids <ids> [--vs <currency>] [--market-data]
mm price historyHistorical prices
mm price currenciesSupported quote currencies
mm price networksSupported price networks

mm token

CommandUsage
mm token assets--asset-ids <ids>
mm token networksList token networks
mm token list popular--chain <chain>
mm token list trending--chain <chain>
mm token list search--query <query> [--chain <chains>]
mm token list top-gainer--chain <chain>

Help

Every command supports --help:

mm transfer --help
mm perps open --help