OpenCode 是 SST 出品的开源终端 AI 编程 Agent,支持多服务商接入和 LSP 集成。
- 方式一:一键配置向导
- 方式二:手动配置
直接运行:在工具列表中选择 OpenCode。如果尚未安装,在第二个多选列表中保留 OpenCode。向导会安装官方 npm 包并检查版本,然后写入 MiniMax 默认模型。完成后运行
opencode。Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
🎉 MiniMax H3 全新发布!新一代开放通用多模态视频模型。查看文档 ➔
在 OpenCode 中接入 MiniMax 模型。
npx -y mmx-cli@latest agent setup
opencode。安装 OpenCode
curl -fsSL https://opencode.ai/install | bash
# 或 npm i -g opencode-ai
登录认证
opencode auth login,选择 provider 时搜索并选择 MiniMax Token Plan (minimaxi.com)(OpenCode 中的名称),填入你的 订阅 Key。启动
opencode,在模型列表中选择 MiniMax-M3.1-Flash-Preview。如果当前版本未列出该模型,在 ~/.config/opencode/opencode.json 中加入以下内容后重新运行:{
"$schema": "https://opencode.ai/config.json",
"provider": {
"minimax-cn-coding-plan": {
"models": {
"MiniMax-M3.1-Flash-Preview": {
"name": "MiniMax-M3.1-Flash-Preview",
"limit": { "context": 524288 }
}
}
}
}
}
此页面对您有帮助吗?