diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index 2f57c56b..f3f9a872 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -572,6 +572,23 @@ export const providerPresets: ProviderPreset[] = [ icon: "ucloud", iconColor: "#000000", }, + { + name: "Micu", + websiteUrl: "https://www.openclaudecode.cn", + apiKeyUrl: "https://www.openclaudecode.cn", + settingsConfig: { + env: { + ANTHROPIC_BASE_URL: "https://www.openclaudecode.cn", + ANTHROPIC_AUTH_TOKEN: "", + }, + }, + endpointCandidates: ["https://www.openclaudecode.cn"], + category: "third_party", + isPartner: true, // 合作伙伴 + partnerPromotionKey: "micu", // 促销信息 i18n key + icon: "micu", + iconColor: "#000000", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/codexProviderPresets.ts b/src/config/codexProviderPresets.ts index 0c2d103a..1ee9c3a6 100644 --- a/src/config/codexProviderPresets.ts +++ b/src/config/codexProviderPresets.ts @@ -297,6 +297,23 @@ requires_openai_auth = true`, icon: "ucloud", iconColor: "#000000", }, + { + name: "Micu", + websiteUrl: "https://www.openclaudecode.cn", + apiKeyUrl: "https://www.openclaudecode.cn/v1", + auth: generateThirdPartyAuth(""), + config: generateThirdPartyConfig( + "micu", + "https://www.openclaudecode.cn/v1", + "gpt-5.4", + ), + endpointCandidates: ["https://www.openclaudecode.cn/v1"], + category: "third_party", + isPartner: true, // 合作伙伴 + partnerPromotionKey: "micu", // 促销信息 i18n key + icon: "micu", + iconColor: "#000000", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/openclawProviderPresets.ts b/src/config/openclawProviderPresets.ts index 3807d0b8..b3b1e5d0 100644 --- a/src/config/openclawProviderPresets.ts +++ b/src/config/openclawProviderPresets.ts @@ -1252,6 +1252,29 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ icon: "ucloud", iconColor: "#000000", }, + { + name: "Micu", + websiteUrl: "https://www.openclaudecode.cn", + apiKeyUrl: "https://www.openclaudecode.cn", + settingsConfig: { + baseUrl: "https://www.openclaudecode.cn", + apiKey: "", + api: "anthropic-messages", + models: [ + { + id: "claude-opus-4-6", + name: "Claude Opus 4.6", + contextWindow: 200000, + cost: { input: 5, output: 25 }, + }, + ], + }, + category: "third_party", + isPartner: true, + partnerPromotionKey: "micu", + icon: "micu", + iconColor: "#000000", + }, // ========== Cloud Providers ========== { name: "AWS Bedrock", diff --git a/src/config/opencodeProviderPresets.ts b/src/config/opencodeProviderPresets.ts index fb030e5d..5563aadd 100644 --- a/src/config/opencodeProviderPresets.ts +++ b/src/config/opencodeProviderPresets.ts @@ -1246,6 +1246,35 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [ }, }, }, + { + name: "Micu", + websiteUrl: "https://www.openclaudecode.cn", + apiKeyUrl: "https://www.openclaudecode.cn/v1", + settingsConfig: { + npm: "@ai-sdk/anthropic", + name: "Micu", + options: { + baseURL: "https://www.openclaudecode.cn/v1", + apiKey: "", + }, + models: { + "claude-opus-4-6": { name: "Claude Opus 4.6" }, + "claude-sonnet-4-6": { name: "Claude Sonnet 4.6" }, + }, + }, + category: "third_party", + isPartner: true, + partnerPromotionKey: "micu", + icon: "micu", + 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 7e591daa..0012e4ae 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -706,7 +706,8 @@ "crazyrouter": "CrazyRouter offers an exclusive bonus for CC Switch users — 30% extra credit on your first top-up!", "sssaicode": "SSAI Code offers an exclusive bonus for CC Switch users — $10 extra credit on every top-up!", "siliconflow": "SiliconFlow is an official partner of CC Switch", - "ucloud": "UCloud offers an exclusive bonus for CC Switch users — register via this link to get ¥5 platform trial credit!" + "ucloud": "UCloud offers an exclusive bonus for CC Switch users — register via this link to get ¥5 platform trial credit!", + "micu": "Micu is an official partner of CC Switch" }, "parameterConfig": "Parameter Config - {{name}} *", "mainModel": "Main Model (optional)", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 0f372b82..22aaca33 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -706,7 +706,8 @@ "crazyrouter": "CrazyRouter は CC Switch ユーザー向けに特別ボーナスを提供しています。初回チャージで 30% の追加クレジットがもらえます!", "sssaicode": "SSAI Code は CC Switch ユーザー向けに特別ボーナスを提供しています。チャージごとに $10 の追加クレジットがもらえます!", "siliconflow": "SiliconFlow は CC Switch の公式パートナーです", - "ucloud": "UCloud は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、5元のプラットフォーム体験クレジットがもらえます!" + "ucloud": "UCloud は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、5元のプラットフォーム体験クレジットがもらえます!", + "micu": "Micu は CC Switch の公式パートナーです" }, "parameterConfig": "パラメーター設定 - {{name}} *", "mainModel": "メインモデル(任意)", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 46ab7550..de672095 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -706,7 +706,8 @@ "crazyrouter": "CrazyRouter 为 CC Switch 的用户提供了特殊优惠,首次充值赠予 30% 额外额度!", "sssaicode": "SSAI Code 为 CC Switch 的用户提供了特殊优惠,每次充值赠予额外 $10 额度!", "siliconflow": "硅基流动是 CC Switch 的官方合作伙伴", - "ucloud": "优云智算为CC Switch 的用户提供了特殊优惠,通过此链接注册,可以获得五元平台体验金!" + "ucloud": "优云智算为CC Switch 的用户提供了特殊优惠,通过此链接注册,可以获得五元平台体验金!", + "micu": "Micu 是 CC Switch 的官方合作伙伴" }, "parameterConfig": "参数配置 - {{name}} *", "mainModel": "主模型 (可选)", diff --git a/src/icons/extracted/index.ts b/src/icons/extracted/index.ts index f6a92a23..ea682272 100644 --- a/src/icons/extracted/index.ts +++ b/src/icons/extracted/index.ts @@ -60,6 +60,7 @@ export const icons: Record = { aihubmix: `AiHubMix`, opencode: `OpenCode`, siliconflow: `SiliconCloud`, + micu: `Micu`, ucloud: `UCloud`, sssaicode: `SSAI Code1001 11010110 101110 110SSSSAiCode`, catcoder: `KwaiKAT`, diff --git a/src/icons/extracted/micu.svg b/src/icons/extracted/micu.svg new file mode 100644 index 00000000..f9ab49b7 --- /dev/null +++ b/src/icons/extracted/micu.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + \ No newline at end of file