Claude Code + MiniMax-M2.5 | Claude Opus 4.6 + cc-switch

张开发
2026/4/11 14:45:14 15 分钟阅读

分享文章

Claude Code + MiniMax-M2.5 | Claude Opus 4.6 + cc-switch
目标Pycharm Pro Claude Code Claude Code Opus4.6实际Claude Code MiniMax-M2.5国内大模型Claude Code官方文档https://code.claude.com/docs/zh-CN/quickstartWindows如何安装Claude Code一、Windows PowerShell安装方式irm https://claude.ai/install.ps1 | iexSetup notes提示我需要在环境变量中添加值claude Code v2.1.59用的是默认的Sonnet 4.6。使用powershell登录claude账户先输入claude然后输入/login浏览器弹出标签页要求你升级到Pro或者Max才能connect to Claude Code。二、在Pycharm里面使用Claude Code[Beta]插件点击Claude Code图标然后Terminal运行claude也是告诉你先/login三、在VS Code里面使用Claude Code插件Claude Code是一个通用的编程Agent它本身其实并不跟Claude模型绑定完全可以使用其他的模型去驱动Claude Code。综上因素我无法订阅Claude Pro Plan因此退而求其次本文使用Claude Code 国内大模型MiniMax-M2.5不使用Claude Code Claude Code Opus4.6。Claude Code 如何接入国内大模型MiniMax-M2.5第一步下载cc-switch网址https://github.com/farion1231/cc-switch/releases第二步获取MiniMax API Key访问https://platform.minimaxi.com/docs/guides/quickstart-preparation注册并登陆MiniMAX。把手机号、邮箱等信息补充完整实名认证等。在Coding Plan进行购买套餐建议购买plus版本49块一个月起码比Claude Code Pro的20刀RMB140左右便宜。把你的Secret KEY复制出来然后打开链接参考一下官网https://platform.minimaxi.com/docs/coding-plan/claude-code第三步打开cc-switch把你刚才复制的Secret Key填入到API KEY这里模型这里的名字都更改为-M2.5点击启用结果在Pycharm调用Claude Code可以看到调用了MiniMax-M2.5模型。VS Code的Claude Code插件也是用的MiniMax-M2.5大模型powershell使用claude code也是接入MiniMax-M2.5【更新于2026-02-28】本次更新主要是解决Claude Code Claude Opus 4.6cc-switch管理服务商继上文既然自己解决不了国外支付问题有提出需求的人就有解决需求的人那么解决需求的人就是xxx【更新于2026-03-02】配置完了Claude Code Claude Opus 4.6 cc-switch之后准备Vibe Coding时候突然出现请求不允许的bug# Pycharm的插件Claude Code报错一直登录一直报错API Error:403{error:{type:forbidden,message:Request not allowed}}· Please run/login怎么办命令行或者powershell使用claude前配置一下就行了$env:HTTP_PROXYhttp://127.0.0.1:33210$env:HTTPS_PROXYhttp://127.0.0.1:33210然后再claude

更多文章