Vibe 编程
用所有模型进行 Vibe 编程
一个 API Key,所有 AI 模型,自动故障切换。将 TheRouter 接入 Cursor、Windsurf 或任何 OpenAI 兼容的编程工具。
为什么用 TheRouter 进行 Vibe 编程
不再受限于单一模型或单一供应商。TheRouter 让你的 AI 编程更可靠、更灵活。
没有单点故障
Anthropic 宕机?自动切换到 OpenAI。编程流永不中断。
所有模型,一个 Key
Claude 做架构,GPT 写样板代码,DeepSeek 快速编辑。切换模型无需改配置。
清楚每一笔花费
按编程会话实时追踪成本。在收到意外账单前设好限额。
60 秒完成配置
选择你的编程工具,按三步操作。无需 SDK,无需封装——只需将现有工具指向 TheRouter。
- 1打开 Cursor 设置 → Models
- 2设置 Base URL 为 https://api.therouter.ai/v1
- 3粘贴你的 TheRouter API Key
// Cursor Settings → Models → OpenAI API Key
Base URL: https://api.therouter.ai/v1
API Key: sk-your-therouter-key3 行代码开始构建
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.therouter.ai/v1",
apiKey: "sk-your-key",
});
const response = await client.chat.completions.create({
model: "anthropic/claude-sonnet-4.6",
messages: [{ role: "user", content: "Hello!" }],
});