文章详情

专注互联网科技,赋能企业数字化发展

Windows装Claude Code:直接跑国产模型

作者:Windows装Claude Code:直接跑国产模型

先说重点: Claude Code 不一定非要绑定 Claude 原厂模型,可换成DeepSeek等国产模型。 这篇用最适合新手照做的方式,讲 Windows 安装 Claude Code,并用 DeepSeek 作为模型,逐步操作即可。示例环境是 Windows 10 教育版 + x64。 一共5 步: 1. 装 Node.js 打开https://nodejs.org/en/download 页面往下滑,选择 Windows / running / x64,下载 Windows Installer (.msi)。 安装完成后,在 PowerShell 输入: node -v npm -v 看到版本号代表成功。 2. 装 Git 打开 https://git-scm.com/install/windows 页面下滑找到 Git for Windows/x64 Setup。 安装时注意2个选项: Add Git Bash Profile to Windows Terminal Open Git Bash here / Git Bash Here 装完重启 PowerShell,输入: git --version 有版本号就成功。 3. 装 Claude Code 在 PowerShell 执行: npm install -g @anthropic-ai/claude-code 如遇到 Set-ExecutionPolicy,选 Y 回车。 安装后检查: claude --version 看到版本号就成功。 然后直接输入:claude,你会露出微笑。 4. 安装 CCSwitch 打开https://github.com/farion1231/cc-switch/releases 添加 DeepSeek供应商。 5. 配置 DeepSeek API Key 去DeepSeek 开放平台 https://platform.deepseek.com/top_up注册并充值(比如先充 10 元 试试),获取API Key,回到CCSwitch: 添加供应商 → 选择 DeepSeek → 填 API Key 等。 重新启动Claude服务就可以更开心地笑了。 Claude Code做身体,DeepSeek做大脑。开启升级打怪。 @claude code DeepSeek #Windows安装Claude Code #CCSwitch

返回新闻列表