模驿API接入 Claude 客户端

Claude 客户端(Claude Desktop)是 Anthropic 官方推出的桌面端应用,内置 Claude Code 编程能力。通过 CC Switch 即可将其接入 模驿API。

使用 CC Switch 接入

CC Switch 是一个图形界面工具,用来管理和切换 Claude 客户端的接入地址与密钥,一键切换。

安装 Claude 客户端和 CC Switch

本节为安装教程。如果您已安装 Claude 客户端和 CC Switch,接入 模驿API 请直接看下一节。

安装 Claude 客户端

  • Claude 官网 下载对应系统的 Claude 客户端并安装。

Claude 客户端下载页面

安装 CC Switch

请安装 v3.16.5 及以上版本。macOS 用户(推荐)通过 Homebrew 安装:

bash
brew install --cask cc-switch

或访问 CC Switch Releases 下载对应平台安装包:

  • macOS:.dmg / .zip
  • Windows:.msi 安装版 / Portable .zip 绿色版
  • Linux:.deb / .rpm / .AppImage

首次打开如被 macOS Gatekeeper 拦截,到「系统设置 → 隐私与安全性」点 「仍要打开」。

接入 模驿API

在 CC Switch 的 Claude Desktop 标签中,点击右上角【橙色加号】按钮。

CC Switch 添加供应商入口

  1. 在 「预设供应商中」 找到 「模驿API」(或直接搜索"Moyi API")。

CC Switch 选择 模驿API 供应商

  1. 填入你在 模驿API 控制台 获取的 API Key。

CC Switch 填写 模驿API API Key

  1. 完成后,点击右下角保存。

在主页启用 模驿API,打开 Claude 客户端即可生效。

如果已经打开了 Claude 客户端,需要重启一次生效。

CC Switch 启用 模驿API

打开 Claude 客户端,即可开始使用了。

Claude 客户端使用界面

您可以在模驿API的控制台,看到每条请求的用量情况。

常见问题

Windows 系统用户在使用 Claude 客户端时,如遇以下报错:

Virtual Machine Platform not available

Claude's workspace requires the Virtual Machine Platform on Windows. Enable this feature, then restart.

请按照下述步骤完成操作,即可正常使用:

  1. Win + R 输入 optionalfeatures 回车;
  2. 找到并勾选「虚拟机平台」(英文叫 Virtual Machine Platform),确定;
  3. 重启电脑,再打开 Claude 客户端,即可使用。
准备好了?三步即可开始登录控制台 · 购买额度 · 创建 API Key
DiscordGet community help instantly
模驿API接入 Claude 客户端 · 帮助文档