From 84bc98cf8332a505e756fe6a63d6d295ce2195dc Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 10 Apr 2026 20:15:42 +0800 Subject: [PATCH] feat: add LionCCAPI provider preset with partner promotion Add LionCCAPI as a third-party partner provider across all five apps (Claude, Codex, Gemini, OpenCode, OpenClaw) with anthropic-messages protocol for OpenCode and OpenClaw. Include partner promotion i18n entries for zh/en/ja locales and lioncc icon. --- src/config/claudeProviderPresets.ts | 14 +++++++++ src/config/codexProviderPresets.ts | 14 +++++++++ src/config/geminiProviderPresets.ts | 17 +++++++++++ src/config/openclawProviderPresets.ts | 44 +++++++++++++++++++++++++++ src/config/opencodeProviderPresets.ts | 28 +++++++++++++++++ src/i18n/locales/en.json | 3 +- src/i18n/locales/ja.json | 3 +- src/i18n/locales/zh.json | 3 +- src/icons/extracted/index.ts | 1 + src/icons/extracted/lioncc.svg | 6 ++++ src/icons/extracted/metadata.ts | 7 +++++ 11 files changed, 137 insertions(+), 3 deletions(-) create mode 100644 src/icons/extracted/lioncc.svg diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index 39a0bd320..df2be86ce 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -669,6 +669,20 @@ export const providerPresets: ProviderPreset[] = [ icon: "dds", iconColor: "#000000", }, + { + name: "LionCCAPI", + websiteUrl: "https://vibecodingapi.ai", + settingsConfig: { + env: { + ANTHROPIC_BASE_URL: "https://vibecodingapi.ai", + ANTHROPIC_AUTH_TOKEN: "", + }, + }, + category: "third_party", + isPartner: true, + partnerPromotionKey: "lionccapi", + icon: "lioncc", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/codexProviderPresets.ts b/src/config/codexProviderPresets.ts index 46156f97e..41161bc0b 100644 --- a/src/config/codexProviderPresets.ts +++ b/src/config/codexProviderPresets.ts @@ -351,6 +351,20 @@ requires_openai_auth = true`, icon: "ctok", iconColor: "#000000", }, + { + name: "LionCCAPI", + websiteUrl: "https://vibecodingapi.ai", + auth: generateThirdPartyAuth(""), + config: generateThirdPartyConfig( + "lionccapi", + "https://vibecodingapi.ai/v1", + "gpt-5.4", + ), + category: "third_party", + isPartner: true, + partnerPromotionKey: "lionccapi", + icon: "lioncc", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/geminiProviderPresets.ts b/src/config/geminiProviderPresets.ts index 4b7339b5e..41a7d7d78 100644 --- a/src/config/geminiProviderPresets.ts +++ b/src/config/geminiProviderPresets.ts @@ -224,6 +224,23 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [ icon: "ctok", iconColor: "#000000", }, + { + name: "LionCCAPI", + websiteUrl: "https://vibecodingapi.ai", + settingsConfig: { + env: { + GOOGLE_GEMINI_BASE_URL: "https://vibecodingapi.ai", + GEMINI_MODEL: "gemini-3.1-pro", + }, + }, + baseURL: "https://vibecodingapi.ai", + model: "gemini-3.1-pro", + description: "LionCCAPI", + category: "third_party", + isPartner: true, + partnerPromotionKey: "lionccapi", + icon: "lioncc", + }, { name: "OpenRouter", websiteUrl: "https://openrouter.ai", diff --git a/src/config/openclawProviderPresets.ts b/src/config/openclawProviderPresets.ts index 965c4a6a3..d81ddee2d 100644 --- a/src/config/openclawProviderPresets.ts +++ b/src/config/openclawProviderPresets.ts @@ -1446,6 +1446,50 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ }, }, }, + { + name: "LionCCAPI", + websiteUrl: "https://vibecodingapi.ai", + settingsConfig: { + baseUrl: "https://vibecodingapi.ai", + apiKey: "", + api: "anthropic-messages", + models: [ + { + id: "claude-opus-4-6", + name: "Claude Opus 4.6", + contextWindow: 1000000, + cost: { input: 5, output: 25 }, + }, + { + id: "claude-sonnet-4-6", + name: "Claude Sonnet 4.6", + contextWindow: 1000000, + cost: { input: 3, output: 15 }, + }, + ], + }, + category: "third_party", + isPartner: true, + partnerPromotionKey: "lionccapi", + icon: "lioncc", + templateValues: { + apiKey: { + label: "API Key", + placeholder: "", + editorValue: "", + }, + }, + suggestedDefaults: { + model: { + primary: "lionccapi/claude-opus-4-6", + fallbacks: ["lionccapi/claude-sonnet-4-6"], + }, + modelCatalog: { + "lionccapi/claude-opus-4-6": { alias: "Opus" }, + "lionccapi/claude-sonnet-4-6": { alias: "Sonnet" }, + }, + }, + }, // ========== Cloud Providers ========== { name: "AWS Bedrock", diff --git a/src/config/opencodeProviderPresets.ts b/src/config/opencodeProviderPresets.ts index af3b5e447..0fe9140ff 100644 --- a/src/config/opencodeProviderPresets.ts +++ b/src/config/opencodeProviderPresets.ts @@ -1293,6 +1293,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [ }, }, }, + { + name: "LionCCAPI", + websiteUrl: "https://vibecodingapi.ai", + settingsConfig: { + npm: "@ai-sdk/anthropic", + name: "LionCCAPI", + options: { + baseURL: "https://vibecodingapi.ai/v1", + apiKey: "", + setCacheKey: true, + }, + 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: "lionccapi", + icon: "lioncc", + 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 82d87e245..74d980335 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -775,7 +775,8 @@ "micu": "Micu is an official partner of CC Switch", "x-code": "XCodeAPI offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first order (contact admin to claim)", "ctok": "Join the CTok community on the official website and subscribe to a plan.", - "ddshub": "DDSHub offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first top-up (contact group admin to claim)!" + "ddshub": "DDSHub offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first top-up (contact group admin to claim)!", + "lionccapi": "LionCCAPI offers exclusive benefits for CC Switch users. After registration, add WeChat HSQBJ088888888 and mention 'cc-switch' to receive $10 free credits!" }, "presets": { "ucloud": "Compshare" diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 9f88641f0..bdc2794c6 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -775,7 +775,8 @@ "micu": "Micu は CC Switch の公式パートナーです", "x-code": "XCodeAPI は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回注文で 10% の追加クレジットがもらえます(管理者に連絡して受け取り)", "ctok": "公式サイトで CTok コミュニティに参加し、プランを購読してください。", - "ddshub": "DDSHub は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回チャージで 10% の追加クレジットがもらえます(グループ管理者に連絡して受け取り)!" + "ddshub": "DDSHub は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回チャージで 10% の追加クレジットがもらえます(グループ管理者に連絡して受け取り)!", + "lionccapi": "LionCCAPIはCC Switchユーザーに特別特典を提供しています。登録後、WeChat HSQBJ088888888を追加し、「cc-switch」と伝えると$10分のクレジットがもらえます!" }, "presets": { "ucloud": "Compshare" diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 5114c43bb..56075e80a 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -775,7 +775,8 @@ "micu": "Micu 是 CC Switch 的官方合作伙伴", "x-code": "XCodeAPI 为CC Switch 的用户提供特别福利,使用此链接注册后首单加赠10%的额度(联系站长领取)", "ctok": "官网加入CTok社群,订阅套餐。", - "ddshub": "呆呆兽为CC Switch 的用户提供了特别福利,通过此链接注册后,首单充值可额外赠送 10% 额度(联系群主领取)!" + "ddshub": "呆呆兽为CC Switch 的用户提供了特别福利,通过此链接注册后,首单充值可额外赠送 10% 额度(联系群主领取)!", + "lionccapi": "LionCCAPI 为 CC Switch 的用户提供了特别福利,注册后添加客服微信HSQBJ088888888,发暗号cc-switch备注即可送10美金额度!" }, "presets": { "ucloud": "优云智算" diff --git a/src/icons/extracted/index.ts b/src/icons/extracted/index.ts index 6b32ec2a6..0b8c98a92 100644 --- a/src/icons/extracted/index.ts +++ b/src/icons/extracted/index.ts @@ -59,6 +59,7 @@ export const icons: Record = { zhipu: `Zhipu`, openrouter: `OpenRouter`, rc: `RightCode`, + lioncc: `LionCC`, longcat: `LongCat`, modelscope: `ModelScope`, aihubmix: `AiHubMix`, diff --git a/src/icons/extracted/lioncc.svg b/src/icons/extracted/lioncc.svg new file mode 100644 index 000000000..7498d8d12 --- /dev/null +++ b/src/icons/extracted/lioncc.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/icons/extracted/metadata.ts b/src/icons/extracted/metadata.ts index 92398cc68..dc985fe4d 100644 --- a/src/icons/extracted/metadata.ts +++ b/src/icons/extracted/metadata.ts @@ -366,6 +366,13 @@ export const iconMetadata: Record = { keywords: ["openrouter", "router", "aggregator"], defaultColor: "#6566F1", }, + lioncc: { + name: "lioncc", + displayName: "LionCC", + category: "ai-provider", + keywords: ["lioncc", "lion"], + defaultColor: "#F9DA3C", + }, longcat: { name: "longcat", displayName: "LongCat",