---
title: "中转配置教程：Claude Code、Cursor、Cherry Studio 等 12 个工具"
canonical: https://relayswitch.io/zh/guides
generated: 2026-11-02T10:50:30.375Z
source: https://api.relayswitch.io/v1/catalog
base_url: https://api.relayswitch.io/v1
---

配置教程

# 中转配置教程

任何能填 Base URL 和密钥的工具都能接。地址 https://api.relayswitch.io/v1，粘贴密钥，选一个模型 id。每篇写明字段放哪、要不要带 /v1、推荐模型和一次会话的费用。

[编码Claude Code两个环境变量，settings.json 的 env 块，三个模型别名。](https://relayswitch.io/zh/guides/claude-code)[编码CursorOpenAI API Key 填密钥，覆盖 Base URL，模型列表加 id。](https://relayswitch.io/zh/guides/cursor)[编码ClineOpenAI Compatible 提供方的四个字段，Model Configuration 从模型页抄。](https://relayswitch.io/zh/guides/cline)[编码Codex CLIconfig.toml 的 model\_providers 块，密钥走环境变量。](https://relayswitch.io/zh/guides/codex-cli)[编码OpenCodeopencode.json 的 provider 块，limit 从目录填好。](https://relayswitch.io/zh/guides/opencode)[对话客户端Cherry Studio添加自定义服务商，API 地址填根地址，模型 ID 手动加。](https://relayswitch.io/zh/guides/cherry-studio)[对话客户端ChatboxAPI Host 带 /v1，API Path 填 /chat/completions。](https://relayswitch.io/zh/guides/chatbox)[对话客户端LobeChat代理地址带 /v1，环境变量与 ?settings= 一键导入。](https://relayswitch.io/zh/guides/lobechat)[对话客户端NextChat接口地址不带 /v1，自定义模型 +id，#/?settings= 一键填入。](https://relayswitch.io/zh/guides/nextchat)[翻译沉浸式翻译自定义 URL 地址填完整的 /v1/chat/completions 路径。](https://relayswitch.io/zh/guides/immersive-translate)[应用平台DifyOpenAI-API-compatible 供应商下添加模型，各字段逐一说明。](https://relayswitch.io/zh/guides/dify)[应用平台扣子 Coze自定义接入：模型协议、API URL、模型 ID 与长度字段。](https://relayswitch.io/zh/guides/coze)

## 一个密钥，所有工具

USDT 充值，按 token 预付，无订阅，无需 KYC。

[文档](https://relayswitch.io/zh/docs)[获取密钥](https://app.relayswitch.io/console)

