CC Switch 是一款跨平台桌面工具,用来统一管理 Claude Code、Codex、Gemini CLI、OpenCode 和 OpenClaw 的供应商配置。这篇文档介绍如何在 CC Switch 中接入 LLMEasy,并覆盖 Claude Code、Codex、OpenCode、OpenClaw 这四条已确认的接入路径。Documentation Index
Fetch the complete documentation index at: https://docs.llmeasy.ru/llms.txt
Use this file to discover all available pages before exploring further.
Gemini CLI 需要 Google / Vertex AI 协议。当前 LLMEasy 文档还没有确认这条接入路径,所以本文不展开。
安装 CC Switch
- macOS
- Windows
- Linux
推荐优先使用 Homebrew;也可以从 GitHub Releases 下载最新版
.dmg 或 .zip。开始前准备
- LLMEasy API Key(注册并获取 (
https://www.llmeasy.ru/register)) - Claude Code 使用 Anthropic 协议:
Base URL填https://www.llmeasy.ru - Codex、OpenCode、OpenClaw 使用 OpenAI-compatible 协议:
Base URL填https://www.llmeasy.ru/v1 - 给 Codex、OpenCode、OpenClaw 准备一个当前可用的 Codex 分组模型 ID。你可以从 LLMEasy 模型广场 (
https://www.llmeasy.ru/pricing) 复制,或在 CC Switch 里用 获取模型 直接从/v1/models拉取
CC Switch 首次启动时会自动导入本机已有的配置。你可以保留官方 provider 作为回退,再新增 LLMEasy。
LLMEasy 同时提供 Anthropic 和 OpenAI-compatible 两种接入模式。为了避免把
https://www.llmeasy.ru 和 https://www.llmeasy.ru/v1 混在一起,建议在 CC Switch 里按应用分别创建 provider,而不是把 Claude Code 和 OpenAI-compatible 工具合并到一个统一供应商。添加 LLMEasy provider
- Claude Code
- Codex
- OpenCode
- OpenClaw
填写基础字段
- Provider Name:
LLMEasy - Base URL:
https://www.llmeasy.ru - API Key:你的 LLMEasy API Key
- Provider Name
- API Key
- Base URL

按 API Key 分组处理模型映射
- 如果你使用
Claude_*分组,通常不需要再调整高级选项或模型映射 - 如果你使用
Codex_*分组,请额外完成下面这些设置:
- 打开 高级选项
- 在 API 格式 中选择 OpenAI Responses API

- 在 模型映射 里点击 获取模型列表
- 将 主模型、推理模型(Thinking)、Haiku 默认模型、Sonnet 默认模型、Opus 默认模型 都从下拉列表中显式选中

https://www.llmeasy.ru/pricing) 当前可用的 Codex 分组模型 ID。保存后如何生效
所有配置保存并切换完成后,都建议先重启对应客户端或网关,再开始验证。- Claude Code:完全退出当前 Claude Code 会话,再重新启动。
- Codex:重启当前 Codex 进程,或新开一个终端会话。
- OpenCode:退出当前 OpenCode 会话并重新启动。
- OpenClaw:执行
openclaw gateway restart,再在 Discord 中依次执行/new、/status、/model。
常见问题
- Claude Code 的
Base URL不要加/v1 - Claude Code 使用
Codex_*分组时,要在 高级选项 里把 API 格式 切到 OpenAI Responses API - Claude Code 使用
Claude_*分组时,不需要打开 CC Switch 代理功能 - Codex、OpenCode、OpenClaw 的
Base URL要写https://www.llmeasy.ru/v1 - Codex、OpenCode、OpenClaw 默认模型请使用 Codex 分组模型 ID,不要沿用 Claude 风格模型名
- 如果 获取模型 失败,先检查 API Key 和
Base URL,再改为手动粘贴模型 ID - 如果切换后没有生效,先确认 LLMEasy provider 已被设为当前 provider,再按上面的方式重启对应客户端或网关
相关页面
- Claude Code 细节配置:Claude Code
- Codex 细节配置:Codex
- OpenCode 细节配置:OpenCode
- OpenClaw 细节配置:OpenClaw






