速查表
安装与配置
node -v # 确认 Node.js 20+
npm install -g @mexc-ai/cli # 安装
mexc doctor # 环境自检
mexc profile set 我的账号 # 配置 Access Key / Secret Key
mexc profile use 我的账号 # 设为当前账号
终端使用
mexc explore # 浏览全部功能
mexc <类别> <模块> <动作> --help # 查看命令参数
mexc contract market ticker --symbol BTC_USDT # 合约行情,无需密钥
mexc spot asset overview # 账户总览
mexc spot trade current-orders # 当前挂单
mexc <命令> --dry-run # 打印请求,不发送
接入 agent
mexc skills install # 方式一:安装说明文档
mexc skills update # 升级 CLI 后执行
方式二的 MCP 配置参见 AI agent 接入 中「方式二:配置 MCP」。
排查问题
mexc doctor # 环境自检
mexc --version # 版本号