2026-03-19 Xiaomi MiMo-V2-Pro 发布 ,Xiaomi MiMo 联合 OpenClaw、OpenCode、KiloCode、Cline 和 BLACKBOXAI 五大 Agent 框架,向全球开发者开放为期 1 周的免费 API 接口,这里顺便讲一下安装openclaw后如何接入为期一周的免费Xiaomi MiMo-V2-Pro模型

安装基础环境

安装openclaw前,需要准备好nodejs和git,如果本机没有安装的话运行官网的脚本会替你安装,但是有时候会因为网络原因安装失败,导致脚本中断运行,所以需要我们将所需的软件提前安装好,脚本就会跳过安装继续执行后续操作,加速安装过程。

安装nodejs

官网:https://nodejs.org/zh-cn/download

安装git

官网:https://git-scm.com/install/windows

切换npm下载源到国内镜像

npm config set registry https://registry.npmmirror.com/

设置ssh密钥

生成密钥

ssh-keygen

将.ssh目录下的.pub公钥以文本方式打开并复制粘贴到github个人设置中保存

验证密钥

ssh -T [email protected]

切换github为https

git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://github.com/".insteadOf ssh://[email protected]:
git config --global url."https://".insteadOf git://

清理npm缓存

npm cache clean -f

注册openrouter

注册完成后生成一个key,初始化openclaw时需要填写

官网:https://openrouter.ai/

安装openclaw

npm install -g openclaw@latest

初始化openclaw配置

注意。必须以管理员权限打开cmd,否则网关会安装失败

openclaw onboard

1、阅读协议,选择yes

2、Onboarding mode,可以选择QuickStart

3、Model/auth provider 选择OpenRouter

4、How do you want to provide this API key? 选择 Paste Api key now 然后粘贴刚刚创建好的key

5、Default model 选择 Enter model manually 并填写为 openrouter/xiaomi/mimo-v2-pro

6、Select channel 选择 Skip for now

7、Search provider 选择 Skip for now

8、Configure skills now 选择 No

9、Enable hooks 在Skip for now 选项按一下空格,然后回车

10、How do you want to hatch your bot 选择 Open the Web UI

卸载openclaw

停止网关

openclaw gateway stop

卸载openclaw

openclaw uninstall