Installation
Requirements
Node.js 20 or later. Run node -v to check your current version. If Node.js is not installed, download the LTS release from nodejs.org.
Install and Verify
npm install -g @mexc-ai/cli # Install
mexc --version # Confirm installation
mexc doctor # Environment check
mexc doctor checks the data directory, server connectivity, credential readability, and whether the agent skill documents match the installed CLI version. Run this command first when something looks wrong.
Windows Execution Policy
If the first run of mexc shows mexc.ps1 cannot be loaded because running scripts is disabled on this system, run the following command once in PowerShell. Administrator privileges are not required:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
If you do not change this policy, use mexc.cmd instead; the usage is the same.