For AI agents: a documentation index is available at /llms.txt. A markdown version of this page is available at the same URL with .md appended (or via Accept: text/markdown).
Skip to main content

Error codes

The mm CLI surfaces errors with stable code values. Use these codes in scripts and agent workflows to branch on failures.

Run mm <command> --help for command-specific validation rules.

Authentication errors (AuthError)

CodeMeaning
AUTH_FAILEDAuthentication failed (includes missing refresh token)
AUTH_ERRORGeneric authentication error
TOKEN_INVALIDInvalid CLI token, token pair, or project ID
TOKEN_REFRESH_FAILEDFailed to refresh token
PAIRING_EXPIREDPairing session expired
INVALID_OTPInvalid one-time password
MWP_TIMEOUTMobile Wallet Protocol timeout
MWP_CANCELLEDMobile Wallet Protocol cancelled (pairing aborted)
LOGOUT_FAILEDSign-out operation failed (includes token revoke failures)

Validation errors (ValidationError)

CodeMeaning
MISSING_FLAGRequired flag missing in headless mode
MISSING_INPUTRequired input is missing
MISSING_CHAINChain value is missing
MISSING_CHAIN_ID--chain-id is missing
INVALID_CHAINChain value is invalid
INVALID_INPUTInvalid user input
INVALID_TORecipient address is invalid
INVALID_TYPED_DATAEIP-712 payload is invalid
INVALID_TRANSACTION_PAYLOADTransaction payload is invalid
CHAIN_ID_MISMATCHTyped-data domain chain ID differs from --chain-id
INVALID_MNEMONICBring your own wallet mnemonic is invalid

Wallet errors (WalletError)

CodeMeaning
MISSING_MNEMONICBring your own wallet mode is missing a mnemonic
MNEMONIC_LOCKEDMnemonic is password-protected
WRONG_PASSWORDMnemonic password is incorrect
WALLET_NOT_FOUNDWallet not found
WALLET_ERRORWallet operation failed
NO_AUTH_TOKENMissing authentication token
NO_PROJECT_IDProject ID not configured

Swap errors (SwapCommandError)

CodeMeaning
NO_QUOTESNo swap quotes returned for the request
INVALID_SWAP_PARAMSMissing or invalid swap parameters
TOKEN_NOT_FOUNDToken not found for the selected chain
QUOTE_NOT_FOUNDQuote ID not found
NO_TRADE_DATASelected quote has no trade transaction
EXECUTE_FAILEDSwap execution failed
STATUS_UNAVAILABLESwap status unavailable
SWAP_ERRORGeneric swap error

Perpetuals errors

Common Hyperliquid failures include ORDER_REJECTED, DEPOSIT_FAILED, INSUFFICIENT_BALANCE, and HYPERLIQUID_ERROR when the venue sub-account has not been funded. See Trade perpetuals.

Predict errors

CodeMeaning
PREDICT_SETUP_REQUIREDRun mm predict setup before this operation
PREDICT_AUTH_REQUIREDPredict credentials missing or expired
PREDICT_INSUFFICIENT_BALANCEInsufficient pUSD in the deposit wallet
PREDICT_INSUFFICIENT_FUNDING_BALANCEInsufficient USDC.e for mm predict deposit
PREDICT_ERRORGeneric predict error

Network errors

CodeMeaning
NETWORK_UNREACHABLENetwork unreachable