diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index aac7bc3d3..b0d50d8c9 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -495,6 +495,25 @@ export const providerPresets: ProviderPreset[] = [ icon: "aicoding", iconColor: "#000000", }, + { + name: "CrazyRouter", + websiteUrl: "https://www.crazyrouter.com", + apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch", + settingsConfig: { + env: { + ANTHROPIC_BASE_URL: "https://crazyrouter.com", + ANTHROPIC_AUTH_TOKEN: "", + }, + }, + endpointCandidates: [ + "https://crazyrouter.com", + ], + category: "third_party", + isPartner: true, // 合作伙伴 + partnerPromotionKey: "crazyrouter", // 促销信息 i18n key + icon: "crazyrouter", + iconColor: "#000000", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/codexProviderPresets.ts b/src/config/codexProviderPresets.ts index 99af37aea..1354f05af 100644 --- a/src/config/codexProviderPresets.ts +++ b/src/config/codexProviderPresets.ts @@ -245,6 +245,24 @@ requires_openai_auth = true`, icon: "aicoding", iconColor: "#000000", }, + { + name: "CrazyRouter", + websiteUrl: "https://www.crazyrouter.com", + apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch", + auth: generateThirdPartyAuth(""), + config: generateThirdPartyConfig( + "crazyrouter", + "https://crazyrouter.com/v1", + "gpt-5.3-codex", + ), + endpointCandidates: [ + "https://crazyrouter.com/v1", + ], + isPartner: true, + partnerPromotionKey: "crazyrouter", + icon: "crazyrouter", + iconColor: "#000000", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/geminiProviderPresets.ts b/src/config/geminiProviderPresets.ts index d89e42991..b969ca1c5 100644 --- a/src/config/geminiProviderPresets.ts +++ b/src/config/geminiProviderPresets.ts @@ -161,6 +161,28 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [ icon: "aicoding", iconColor: "#000000", }, + { + name: "CrazyRouter", + websiteUrl: "https://www.crazyrouter.com", + apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch", + settingsConfig: { + env: { + GOOGLE_GEMINI_BASE_URL: "https://crazyrouter.com", + GEMINI_MODEL: "gemini-3-pro", + }, + }, + baseURL: "https://crazyrouter.com", + model: "gemini-3-pro", + description: "CrazyRouter", + category: "third_party", + isPartner: true, + partnerPromotionKey: "crazyrouter", + endpointCandidates: [ + "https://crazyrouter.com", + ], + icon: "crazyrouter", + iconColor: "#000000", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/openclawProviderPresets.ts b/src/config/openclawProviderPresets.ts index 3f7a7d3cc..ffe84d4c1 100644 --- a/src/config/openclawProviderPresets.ts +++ b/src/config/openclawProviderPresets.ts @@ -1100,6 +1100,38 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ }, }, }, + { + name: "CrazyRouter", + websiteUrl: "https://www.crazyrouter.com", + apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch", + settingsConfig: { + baseUrl: "https://crazyrouter.com", + apiKey: "", + api: "anthropic-messages", + }, + category: "third_party", + isPartner: true, + partnerPromotionKey: "crazyrouter", + icon: "crazyrouter", + iconColor: "#000000", + templateValues: { + apiKey: { + label: "API Key", + placeholder: "", + editorValue: "", + }, + }, + suggestedDefaults: { + model: { + primary: "crazyrouter/claude-sonnet-4-5-20250929", + fallbacks: ["crazyrouter/claude-opus-4-6"], + }, + modelCatalog: { + "crazyrouter/claude-sonnet-4-5-20250929": { alias: "Sonnet" }, + "crazyrouter/claude-opus-4-6": { alias: "Opus" }, + }, + }, + }, // ========== Cloud Providers ========== { name: "AWS Bedrock", diff --git a/src/config/opencodeProviderPresets.ts b/src/config/opencodeProviderPresets.ts index 75574b527..fd17c72a0 100644 --- a/src/config/opencodeProviderPresets.ts +++ b/src/config/opencodeProviderPresets.ts @@ -1162,6 +1162,35 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [ }, }, }, + { + name: "CrazyRouter", + websiteUrl: "https://www.crazyrouter.com", + apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch", + settingsConfig: { + npm: "@ai-sdk/anthropic", + name: "CrazyRouter", + options: { + baseURL: "https://crazyrouter.com", + apiKey: "", + }, + models: { + "claude-sonnet-4-5-20250929": { name: "Claude Sonnet 4.5" }, + "claude-opus-4-6": { name: "Claude Opus 4.6" }, + }, + }, + category: "third_party", + isPartner: true, + partnerPromotionKey: "crazyrouter", + icon: "crazyrouter", + iconColor: "#000000", + templateValues: { + apiKey: { + label: "API Key", + placeholder: "", + editorValue: "", + }, + }, + }, { name: "AWS Bedrock", websiteUrl: "https://aws.amazon.com/bedrock/", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 330ab8ac6..cffc59bc4 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -626,7 +626,8 @@ "aigocode": "AIGoCode is an official partner of CC Switch. Register using this link and get 10% bonus credit on your first top-up!", "rightcode": "RightCode is an official partner of CC Switch. Register using this link and get 5% bonus credit on every top-up!", "aicodemirror": "AICodeMirror is an official partner of CC Switch. Register using this link to get 20% off!", - "aicoding": "AI Coding offers an exclusive discount for CC Switch users — 10% off your first top-up!" + "aicoding": "AI Coding offers an exclusive discount for CC Switch users — 10% off your first top-up!", + "crazyrouter": "CrazyRouter offers an exclusive bonus for CC Switch users — 30% extra credit on your first top-up!" }, "parameterConfig": "Parameter Config - {{name}} *", "mainModel": "Main Model (optional)", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 3db2bf85b..194645c5e 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -626,7 +626,8 @@ "aigocode": "AIGoCode は CC Switch の公式パートナーです。このリンクから登録すると、初回チャージ時に 10% のボーナスクレジットがもらえます!", "rightcode": "RightCode は CC Switch の公式パートナーです。このリンクから登録すると、毎回のチャージに 5% のボーナスクレジットがもらえます!", "aicodemirror": "AICodeMirror は CC Switch の公式パートナーです。このリンクから登録すると20%オフ!", - "aicoding": "AI Coding は CC Switch ユーザー向けに特別割引を提供しています。初回チャージが 10% オフ!" + "aicoding": "AI Coding は CC Switch ユーザー向けに特別割引を提供しています。初回チャージが 10% オフ!", + "crazyrouter": "CrazyRouter は CC Switch ユーザー向けに特別ボーナスを提供しています。初回チャージで 30% の追加クレジットがもらえます!" }, "parameterConfig": "パラメーター設定 - {{name}} *", "mainModel": "メインモデル(任意)", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 3e0004d20..a5d6e79bd 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -626,7 +626,8 @@ "aigocode": "AIGoCode 是 CC Switch 的官方合作伙伴,使用此链接注册首次充值时可以获得10%额度奖励!", "rightcode": "RightCode 是 CC Switch 的官方合作伙伴,使用此链接注册每次充值均可赠送5%额外额度!", "aicodemirror": "AICodeMirror 是 CC Switch 的官方合作伙伴,使用此链接注册可享受8折优惠!", - "aicoding": "AI Coding 为 CC Switch 的用户提供了特殊优惠,首次充值可以享受 9 折优惠!" + "aicoding": "AI Coding 为 CC Switch 的用户提供了特殊优惠,首次充值可以享受 9 折优惠!", + "crazyrouter": "CrazyRouter 为 CC Switch 的用户提供了特殊优惠,首次充值赠予 30% 额外额度!" }, "parameterConfig": "参数配置 - {{name}} *", "mainModel": "主模型 (可选)", diff --git a/src/icons/extracted/aicoding.svg b/src/icons/extracted/aicoding.svg new file mode 100644 index 000000000..356b7237b --- /dev/null +++ b/src/icons/extracted/aicoding.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/icons/extracted/crazyrouter.svg b/src/icons/extracted/crazyrouter.svg new file mode 100644 index 000000000..0ba55b9ce --- /dev/null +++ b/src/icons/extracted/crazyrouter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/extracted/index.ts b/src/icons/extracted/index.ts index a87ab5d88..9d5284b95 100644 --- a/src/icons/extracted/index.ts +++ b/src/icons/extracted/index.ts @@ -3,6 +3,7 @@ export const icons: Record = { aicodemirror: `AICodeMirror`, + aicoding: `AICoding`, aigocode: `AiGoCode`, alibaba: `Alibaba`, anthropic: `Anthropic`, @@ -15,6 +16,7 @@ export const icons: Record = { cloudflare: `Cloudflare`, cohere: `Cohere`, copilot: `Copilot`, + crazyrouter: `CrazyRouter`, cubence: `Cubence`, deepseek: `DeepSeek`, doubao: `Doubao`, diff --git a/src/icons/extracted/sssaicoding.svg b/src/icons/extracted/sssaicoding.svg new file mode 100644 index 000000000..4a9478c27 --- /dev/null +++ b/src/icons/extracted/sssaicoding.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1001 1101 + + + + 0110 1011 + + + + 10 110 + + + + + + + + + + + + + + + + + + + + + S + + + SSSAiCode +