{"repo":"xiaoyuandev/relay-switch","free":true,"listed":false,"github":"https://github.com/xiaoyuandev/relay-switch","clone":"git clone https://github.com/xiaoyuandev/relay-switch.git","description":"One-click switching and management of major relay API services, with native integration for official large language models. It provides a unified interface for local AI tools, eliminating the need to manually switch configuration files. | 一键切换管理各大中转API服务、支持官方原生大模型接入。为本地AI工具提供统一接口，无需手动切换配置文件。","language":"TypeScript","stars":29,"topics":["proxy-api","ai-gateway","claude-code","model-router-controller","new-api","openai-api","relay-api","sub2api","relay-switch","ai-relay-switch"],"license":"AGPL-3.0","category":"api-integrations-sdks","readme_excerpt":"Relay Switch English 中文 公开文档 Deep Link 导入说明 Relay Switch 把多个 AI 中转 API、原生大模型来源和本地工具接入统一到一个本地入口。 如果你经常在 Cursor、Kiro、Cherry Studio、Codex、Claude Code、OpenClaw、Hermes Agent 或自己的脚本里切换模型和服务商配置，Relay Switch 的目标是让你只配置一次本地地址，之后在一个界面里切换上游。 目录 - 为什么需要 Relay Switch，解决了哪些痛点？ - 它能帮你做什么 - Screenshot - 安装 & 快速开始 - 桌面端模块说明 - Provider 和 Model 到底有什么区别？ - 使用指南 - 文档入口 - 常见问题 - 本地开发 - 项目结构 为什么需要 Relay Switch，解决了哪些痛点？ 很多 AI 用户真正头疼的不是“没有模型可用”，而是： 1. 中转 API 服务商不稳定，其中一家额度用完或者掉线时，需要快速切换到另一家服务商 2. 同时使用多个编程工具、桌面客户端或 SDK 脚本时，每次切换服务商都要重复修改配置 3. 部分用户不会、也不想频繁改配置文件，但仍然希望能稳定使用多个模型来源 Relay Switch 的做法是在你的工具前面放一个本地网关。 你的工具只需要统一接入一次： 之后切换模型、中转 API 服务商或本地模型来源时，只需要在 Relay Switch 里操作，不需要逐个修改 Cursor、Kiro、Cherry Studio、Codex、Claude Code 或脚本配置。 它能帮你做什么 1. 一键切换管理中转 API 服务，而无需重启编程工具。例如基于 new-api 、 sub2api 等框架搭建的中转站 2. 在本地维护一个 Local Gateway，用来管理希望直接接入各类兼容 OpenAI 或者 Anthropic 接口的原生大模型的使用场景。例如 MiniMax、DeepSeek 等。在模型页面添加，在供应商页面启用 LocalGateway 即可使用 3. 支持各种编程工具，例如 Codex CLI、Claude Code、OpenCode、Codex app、Cursor、VSCode、Cherry Studio 4. 为本地 AI 工具提供统一接口 http://127.0.0.1:3456 。切换模型或者切换中转服务不需要重启编程工具，不会每次切换都修改编程工具的配置文件 5. 跨平台，可以安装在 Windows、macOS、Linux 桌面环境，也可以安装在 Linux server 和 WSL 里使用 6. 可以一键监测当前 API Key 的可用模型列表，支持只显示可用的模型列表筛选 7. 支持从网页一键导入 Provider 或 Model 配置，可以直接体验 Deep Link 导入 Screenshot 安装 & 快速开始 1. 选择适合你的运行方式 1.1 macOS、Windows、Ubuntu Desktop 桌面端用户 推荐使用桌面版客户端，可到 Release页面 下载对应平台的最新版本 对于 macOS 用户首次安装启动时可能会看到类似提示： 或者： 这是因为当前项目的公开分发流程里，macOS 这边采用了免费 ad-hoc 风格的签名路径，而不是完整的付费 Apple开发者账户的 可信分发链路。 如果遇到这种情况，用户可以这样操作： 1. 如果应用还在下载目录或临时目录中，先","default_branch":null,"files":null,"tree":[],"storefront":"/r/xiaoyuandev","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xiaoyuandev/relay-switch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}