feat(presets): add Code0.ai partner preset for 7 apps

Partner aggregator (New API gateway) across Claude Code, Claude Desktop,
Codex, Gemini, OpenCode, OpenClaw, and Hermes. Claude Code, Claude
Desktop, and Gemini use the bare host (gemini-3.1-pro-preview for
Gemini); Codex, OpenCode, OpenClaw, and Hermes use /v1 with gpt-5.5.

Marks isPartner with ?source=ccswitch attribution on apiKeyUrl only
(website URL stays clean). Adds the partnerPromotion blurb in all four
locales and a sponsor row in all four READMEs. Positioned after
ClaudeAPI in the Claude Code and Claude Desktop lists (the two apps
that carry a ClaudeAPI preset). Registers the favicon-derived code0.png
icon via URL import; the README banner is normalized to the standard
1920x798 aspect ratio.
This commit is contained in:
Jason
2026-07-01 21:14:12 +08:00
parent cd9e025b5a
commit a8657d229a
19 changed files with 174 additions and 0 deletions
@@ -791,6 +791,19 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
partnerPromotionKey: "claudeapi",
icon: "claudeapi",
},
{
name: "Code0",
websiteUrl: "https://code0.ai",
apiKeyUrl: "https://code0.ai?source=ccswitch",
category: "aggregator",
baseUrl: "https://code0.ai",
mode: "direct",
apiFormat: "anthropic",
modelRoutes: passthroughRoutes(),
isPartner: true,
partnerPromotionKey: "code0",
icon: "code0",
},
{
name: "ClaudeCN",
websiteUrl: "https://claudecn.top",
+15
View File
@@ -861,6 +861,21 @@ export const providerPresets: ProviderPreset[] = [
partnerPromotionKey: "claudeapi",
icon: "claudeapi",
},
{
name: "Code0",
websiteUrl: "https://code0.ai",
apiKeyUrl: "https://code0.ai?source=ccswitch",
settingsConfig: {
env: {
ANTHROPIC_BASE_URL: "https://code0.ai",
ANTHROPIC_AUTH_TOKEN: "",
},
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "code0",
icon: "code0",
},
{
name: "ClaudeCN",
websiteUrl: "https://claudecn.top",
+12
View File
@@ -364,6 +364,18 @@ export const codexProviderPresets: CodexProviderPreset[] = [
endpointCandidates: ["https://api.amux.ai/v1"],
icon: "amux",
},
{
name: "Code0",
websiteUrl: "https://code0.ai",
apiKeyUrl: "https://code0.ai?source=ccswitch",
category: "aggregator",
auth: generateThirdPartyAuth(""),
config: generateThirdPartyConfig("code0", "https://code0.ai/v1", "gpt-5.5"),
endpointCandidates: ["https://code0.ai/v1"],
isPartner: true,
partnerPromotionKey: "code0",
icon: "code0",
},
{
name: "Azure OpenAI",
websiteUrl:
+18
View File
@@ -130,6 +130,24 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
],
icon: "qiniu",
},
{
name: "Code0",
websiteUrl: "https://code0.ai",
apiKeyUrl: "https://code0.ai?source=ccswitch",
settingsConfig: {
env: {
GOOGLE_GEMINI_BASE_URL: "https://code0.ai",
GEMINI_MODEL: "gemini-3.1-pro-preview",
},
},
baseURL: "https://code0.ai",
model: "gemini-3.1-pro-preview",
description: "Code0",
category: "aggregator",
isPartner: true,
partnerPromotionKey: "code0",
icon: "code0",
},
{
name: "PackyCode",
websiteUrl: "https://www.packyapi.com",
+19
View File
@@ -245,6 +245,25 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
model: { default: "gpt-5.5", provider: "amux" },
},
},
{
name: "Code0",
websiteUrl: "https://code0.ai",
apiKeyUrl: "https://code0.ai?source=ccswitch",
settingsConfig: {
name: "code0",
base_url: "https://code0.ai/v1",
api_key: "",
api_mode: "chat_completions",
models: [{ id: "gpt-5.5", name: "GPT-5.5" }],
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "code0",
icon: "code0",
suggestedDefaults: {
model: { default: "gpt-5.5", provider: "code0" },
},
},
{
name: "火山Agentplan",
websiteUrl: "https://www.volcengine.com/product/ark",
+36
View File
@@ -508,6 +508,42 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
},
},
},
{
name: "Code0",
websiteUrl: "https://code0.ai",
apiKeyUrl: "https://code0.ai?source=ccswitch",
settingsConfig: {
baseUrl: "https://code0.ai/v1",
apiKey: "",
api: "openai-completions",
models: [
{
id: "gpt-5.5",
name: "GPT-5.5",
contextWindow: 400000,
},
],
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "code0",
icon: "code0",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "",
editorValue: "",
},
},
suggestedDefaults: {
model: {
primary: "code0/gpt-5.5",
},
modelCatalog: {
"code0/gpt-5.5": { alias: "GPT-5.5" },
},
},
},
{
name: "Unity2.ai",
websiteUrl: "https://unity2.ai",
+28
View File
@@ -450,6 +450,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "Code0",
websiteUrl: "https://code0.ai",
apiKeyUrl: "https://code0.ai?source=ccswitch",
settingsConfig: {
npm: "@ai-sdk/openai-compatible",
name: "Code0",
options: {
baseURL: "https://code0.ai/v1",
apiKey: "",
setCacheKey: true,
},
models: {
"gpt-5.5": { name: "GPT-5.5" },
},
},
category: "aggregator",
isPartner: true,
partnerPromotionKey: "code0",
icon: "code0",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "",
editorValue: "",
},
},
},
{
name: "火山Agentplan",
websiteUrl: "https://www.volcengine.com/product/ark",
+1
View File
@@ -1006,6 +1006,7 @@
"officialHint": "💡 Official provider uses browser login, no API Key needed",
"getApiKey": "Get API Key",
"partnerPromotion": {
"code0": "code0.ai is an AI coding service platform for developers, supporting Claude Code, Codex, and Gemini. Exclusive for CC Switch users: contact support via the official website to claim free trial credits!",
"packycode": "PackyCode is an official partner of CC Switch. Register using this link and enter \"cc-switch\" promo code during recharge to get 10% off",
"apikeyfun": "APIKEY.FUN offers a special deal for CC Switch users. Register through the exclusive link to enjoy up to permanent 5% off top-ups.",
"apinebula": "APINEBULA offers CC Switch users a special discount: register using the link and enter the \"ccswitch\" promo code during your first top-up to get 10% off.",
+1
View File
@@ -1006,6 +1006,7 @@
"officialHint": "💡 公式プロバイダーはブラウザログインで、API Key は不要です",
"getApiKey": "API Key を取得",
"partnerPromotion": {
"code0": "code0.ai は開発者向けの AI コーディングサービスプラットフォームで、Claude Code、Codex、Gemini に対応。CC Switch ユーザー限定特典:公式サイトからサポートに連絡してテストクレジットを受け取れます!",
"packycode": "PackyCode は CC Switch の公式パートナーです。登録後チャージ時に \"cc-switch\" を入力すると 10% オフ",
"apikeyfun": "APIKEY.FUN は CC Switch ユーザー向けに特別優待を提供しています。専用リンクから登録すると、最大でチャージ永久 5% オフを受けられます。",
"apinebula": "APINEBULA は CC Switch ユーザー向けに特別割引を提供しています。専用リンクから登録し、チャージ時にプロモコード「ccswitch」を入力すると、さらに 10% OFF の割引が適用されます。",
+1
View File
@@ -977,6 +977,7 @@
"officialHint": "官方供應商使用瀏覽器登入,無需設定 API Key",
"getApiKey": "取得 API Key",
"partnerPromotion": {
"code0": "code0.ai 是面向開發者的 AI 程式設計服務平台,支援 Claude Code、Codex、Gemini。CC Switch 使用者專屬福利:透過官網聯繫客服即可領取測試額度!",
"packycode": "PackyCode 是 CC Switch 的官方合作夥伴,使用此連結註冊並在儲值時填寫「cc-switch」優惠碼,可以享受 9 折優惠",
"apikeyfun": "APIKEY.FUN 為 CC Switch 的使用者提供了特別優惠,透過專屬連結註冊,可享受最高儲值永久 95 折優惠。",
"apinebula": "APINEBULA 為 CC Switch 使用者提供特別優惠:使用專屬連結註冊並在儲值時填寫「ccswitch」優惠碼,可享 9 折優惠。",
+1
View File
@@ -1006,6 +1006,7 @@
"officialHint": "💡 官方供应商使用浏览器登录,无需配置 API Key",
"getApiKey": "获取 API Key",
"partnerPromotion": {
"code0": "code0.ai 是面向开发者的 AI 编程服务平台,支持 Claude Code、Codex、Gemini。CC Switch 用户专属福利:通过官网联系客服即可领取测试额度!",
"packycode": "PackyCode 是 CC Switch 的官方合作伙伴,使用此链接注册并在充值时填写 \"cc-switch\" 优惠码,可以享受9折优惠",
"apikeyfun": "APIKEY.FUN 为 CC Switch 的用户提供了特别优惠,通过专属链接注册,可享受最高充值永久 95 折优惠。",
"apinebula": "APINEBULA 为 CC Switch 用户提供特别优惠:使用专属链接注册并在充值时填写 \"ccswitch\" 优惠码,可享九折优惠。",
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

+2
View File
@@ -9,6 +9,7 @@ import _byteplus from "./byteplus.png";
import _ccsub from "./ccsub.svg?url";
import _claudecn from "./claudecn.png";
import _cherryin from "./cherryin.png";
import _code0 from "./code0.png";
import _eflowcode from "./eflowcode.png";
import _etok from "./etok.png";
import _fenno from "./fenno-icon.webp";
@@ -108,6 +109,7 @@ export const iconUrls: Record<string, string> = {
claudeapi: _claudeapi,
claudecn: _claudecn,
cherryin: _cherryin,
code0: _code0,
eflowcode: _eflowcode,
etok: _etok,
fenno: _fenno,
+7
View File
@@ -211,6 +211,13 @@ export const iconMetadata: Record<string, IconMetadata> = {
keywords: ["cloudflare", "cdn"],
defaultColor: "#F38020",
},
code0: {
name: "code0",
displayName: "Code0",
category: "ai-provider",
keywords: ["code0", "code0ai", "aggregator", "relay", "gateway", "gpt"],
defaultColor: "#20C050",
},
cohere: {
name: "cohere",
displayName: "Cohere",