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
PAIRING_ABORTEDSign-in pairing was aborted
PAIRING_TIMEOUTSign-in pairing timed out
INVALID_CLI_TOKENSCLI token pair is invalid
INVALID_CLI_TOKENCLI token is invalid
MISSING_REFRESH_TOKENRefresh token is missing — run mm login
REFRESH_CLI_TOKEN_FAILEDCLI token refresh failed
MISSING_TOKENRequired auth token is missing
REVOKE_CLI_TOKEN_FAILEDCLI token revoke failed
INVALID_PROJECT_IDProject ID is invalid

Validation errors

CodeMeaning
MISSING_FLAGRequired flag missing in headless mode
MISSING_CHAINChain value is missing
MISSING_CHAIN_ID--chain-id is missing
INVALID_CHAINChain value is invalid
INVALID_MNEMONICBYOK mnemonic is invalid
INVALID_TYPED_DATAEIP-712 payload is invalid
CHAIN_ID_MISMATCHTyped-data domain chain ID differs from --chain-id

Wallet errors

CodeMeaning
MISSING_MNEMONICBYOK mode is missing a mnemonic
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 (SwapError)

CodeMeaning
NO_QUOTESNo swap quotes returned for the request
INVALID_SWAP_PARAMSMissing or invalid swap parameters
NO_TRADE_DATASelected quote has no trade transaction
EXECUTE_FAILEDSwap execution failed

Perpetuals errors (PerpsRuntimeError)

Common Hyperliquid failures include order rejection, deposit failure, and account-not-found errors when the venue sub-account has not been funded. See Trade perpetuals.