mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
feat(presets): promote SudoCode to paid sponsor across six clients
Replace the legacy sudocode.us provider (a name collision) with the new paid sponsor SudoCode on sudocode.chat, updated in place across six clients: Claude Code, Codex, Claude Desktop, OpenCode, OpenClaw, Hermes. - Switch endpoints to api.sudocode.chat, add isPartner + partnerPromotionKey, and add four-locale partnerPromotion copy - Claude Code / Desktop use direct passthrough (no model mapping) - Codex / OpenCode / OpenClaw / Hermes use gpt-5.6-sol - Remove the Gemini entry (outside sponsor scope) - Replace the provider icon with the new brand PNG
This commit is contained in:
@@ -767,14 +767,17 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "SudoCode",
|
name: "SudoCode",
|
||||||
websiteUrl: "https://sudocode.us",
|
websiteUrl: "https://sudocode.chat",
|
||||||
apiKeyUrl: "https://sudocode.us",
|
apiKeyUrl:
|
||||||
|
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
baseUrl: "https://sudocode.us",
|
baseUrl: "https://api.sudocode.chat",
|
||||||
mode: "direct",
|
mode: "direct",
|
||||||
apiFormat: "anthropic",
|
apiFormat: "anthropic",
|
||||||
modelRoutes: passthroughRoutes(),
|
modelRoutes: passthroughRoutes(),
|
||||||
endpointCandidates: ["https://sudocode.us", "https://sudocode.run"],
|
endpointCandidates: ["https://api.sudocode.chat"],
|
||||||
|
isPartner: true,
|
||||||
|
partnerPromotionKey: "sudocode",
|
||||||
icon: "sudocode",
|
icon: "sudocode",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -838,17 +838,20 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "SudoCode",
|
name: "SudoCode",
|
||||||
websiteUrl: "https://sudocode.us",
|
websiteUrl: "https://sudocode.chat",
|
||||||
apiKeyUrl: "https://sudocode.us",
|
apiKeyUrl:
|
||||||
|
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://sudocode.us",
|
ANTHROPIC_BASE_URL: "https://api.sudocode.chat",
|
||||||
ANTHROPIC_AUTH_TOKEN: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
API_TIMEOUT_MS: "300000",
|
API_TIMEOUT_MS: "300000",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
endpointCandidates: ["https://sudocode.us", "https://sudocode.run"],
|
endpointCandidates: ["https://api.sudocode.chat"],
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
|
isPartner: true,
|
||||||
|
partnerPromotionKey: "sudocode",
|
||||||
icon: "sudocode",
|
icon: "sudocode",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1197,24 +1197,26 @@ requires_openai_auth = true`,
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "SudoCode",
|
name: "SudoCode",
|
||||||
websiteUrl: "https://sudocode.us",
|
websiteUrl: "https://sudocode.chat",
|
||||||
apiKeyUrl: "https://sudocode.us",
|
apiKeyUrl:
|
||||||
|
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
auth: generateThirdPartyAuth(""),
|
auth: generateThirdPartyAuth(""),
|
||||||
config: `model_provider = "custom"
|
config: `model_provider = "custom"
|
||||||
model = "gpt-5.5"
|
model = "gpt-5.6-sol"
|
||||||
review_model = "gpt-5.5"
|
review_model = "gpt-5.6-sol"
|
||||||
model_reasoning_effort = "high"
|
model_reasoning_effort = "high"
|
||||||
disable_response_storage = true
|
disable_response_storage = true
|
||||||
model_verbosity = "high"
|
|
||||||
|
|
||||||
[model_providers.custom]
|
[model_providers.custom]
|
||||||
name = "sudocode"
|
name = "SudoCode"
|
||||||
base_url = "https://sudocode.us/v1"
|
base_url = "https://api.sudocode.chat/v1"
|
||||||
wire_api = "responses"
|
wire_api = "responses"
|
||||||
requires_openai_auth = true`,
|
requires_openai_auth = true`,
|
||||||
endpointCandidates: ["https://sudocode.us/v1", "https://sudocode.run/v1"],
|
endpointCandidates: ["https://api.sudocode.chat/v1"],
|
||||||
apiFormat: "openai_responses",
|
apiFormat: "openai_responses",
|
||||||
|
isPartner: true,
|
||||||
|
partnerPromotionKey: "sudocode",
|
||||||
icon: "sudocode",
|
icon: "sudocode",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -210,24 +210,6 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
|||||||
endpointCandidates: ["https://apinebula.com"],
|
endpointCandidates: ["https://apinebula.com"],
|
||||||
icon: "apinebula",
|
icon: "apinebula",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "SudoCode",
|
|
||||||
websiteUrl: "https://sudocode.us",
|
|
||||||
apiKeyUrl: "https://sudocode.us",
|
|
||||||
settingsConfig: {
|
|
||||||
env: {
|
|
||||||
GOOGLE_GEMINI_BASE_URL: "https://sudocode.us",
|
|
||||||
GEMINI_API_KEY: "",
|
|
||||||
GEMINI_MODEL: "gemini-3.1-flash-lite",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
baseURL: "https://sudocode.us",
|
|
||||||
model: "gemini-3.1-flash-lite",
|
|
||||||
description: "SudoCode",
|
|
||||||
category: "third_party",
|
|
||||||
endpointCandidates: ["https://sudocode.us", "https://sudocode.run"],
|
|
||||||
icon: "sudocode",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "Cubence",
|
name: "Cubence",
|
||||||
websiteUrl: "https://cubence.com",
|
websiteUrl: "https://cubence.com",
|
||||||
|
|||||||
@@ -1061,24 +1061,27 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "SudoCode",
|
name: "SudoCode",
|
||||||
websiteUrl: "https://sudocode.us",
|
websiteUrl: "https://sudocode.chat",
|
||||||
apiKeyUrl: "https://sudocode.us",
|
apiKeyUrl:
|
||||||
|
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
name: "sudocode",
|
name: "sudocode",
|
||||||
base_url: "https://sudocode.us/v1",
|
base_url: "https://api.sudocode.chat/v1",
|
||||||
api_key: "",
|
api_key: "",
|
||||||
api_mode: "codex_responses",
|
api_mode: "codex_responses",
|
||||||
models: [
|
models: [
|
||||||
{
|
{
|
||||||
id: "gpt-5.5",
|
id: "gpt-5.6-sol",
|
||||||
name: "GPT-5.5",
|
name: "GPT-5.6 Sol",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
|
isPartner: true,
|
||||||
|
partnerPromotionKey: "sudocode",
|
||||||
icon: "sudocode",
|
icon: "sudocode",
|
||||||
suggestedDefaults: {
|
suggestedDefaults: {
|
||||||
model: { default: "gpt-5.5", provider: "sudocode" },
|
model: { default: "gpt-5.6-sol", provider: "sudocode" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1947,20 +1947,23 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "SudoCode",
|
name: "SudoCode",
|
||||||
websiteUrl: "https://sudocode.us",
|
websiteUrl: "https://sudocode.chat",
|
||||||
apiKeyUrl: "https://sudocode.us",
|
apiKeyUrl:
|
||||||
|
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
baseUrl: "https://sudocode.us/v1",
|
baseUrl: "https://api.sudocode.chat/v1",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
api: "openai-responses",
|
api: "openai-responses",
|
||||||
models: [
|
models: [
|
||||||
{
|
{
|
||||||
id: "gpt-5.5",
|
id: "gpt-5.6-sol",
|
||||||
name: "GPT-5.5",
|
name: "GPT-5.6 Sol",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
|
isPartner: true,
|
||||||
|
partnerPromotionKey: "sudocode",
|
||||||
icon: "sudocode",
|
icon: "sudocode",
|
||||||
templateValues: {
|
templateValues: {
|
||||||
apiKey: {
|
apiKey: {
|
||||||
@@ -1971,7 +1974,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
suggestedDefaults: {
|
suggestedDefaults: {
|
||||||
model: {
|
model: {
|
||||||
primary: "sudocode/gpt-5.5",
|
primary: "sudocode/gpt-5.6-sol",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1620,21 +1620,24 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "SudoCode",
|
name: "SudoCode",
|
||||||
websiteUrl: "https://sudocode.us",
|
websiteUrl: "https://sudocode.chat",
|
||||||
apiKeyUrl: "https://sudocode.us",
|
apiKeyUrl:
|
||||||
|
"https://sudocode.chat/register?utm_source=ccswitch&utm_medium=partner",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
npm: "@ai-sdk/openai",
|
npm: "@ai-sdk/openai",
|
||||||
name: "SudoCode",
|
name: "SudoCode",
|
||||||
options: {
|
options: {
|
||||||
baseURL: "https://sudocode.us/v1",
|
baseURL: "https://api.sudocode.chat/v1",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
setCacheKey: true,
|
setCacheKey: true,
|
||||||
},
|
},
|
||||||
models: {
|
models: {
|
||||||
"gpt-5.5": { name: "GPT-5.5" },
|
"gpt-5.6-sol": { name: "GPT-5.6 Sol" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
|
isPartner: true,
|
||||||
|
partnerPromotionKey: "sudocode",
|
||||||
icon: "sudocode",
|
icon: "sudocode",
|
||||||
templateValues: {
|
templateValues: {
|
||||||
apiKey: {
|
apiKey: {
|
||||||
|
|||||||
@@ -1005,6 +1005,7 @@
|
|||||||
"officialHint": "💡 Official provider uses browser login, no API Key needed",
|
"officialHint": "💡 Official provider uses browser login, no API Key needed",
|
||||||
"getApiKey": "Get API Key",
|
"getApiKey": "Get API Key",
|
||||||
"partnerPromotion": {
|
"partnerPromotion": {
|
||||||
|
"sudocode": "With one SudoCode key, Claude Code and Claude Desktop use Claude Opus 4.8, while Codex uses GPT-5.6. Sign up, join QQ group 726213516, and contact the group owner to claim CNY ¥10 in trial credit.",
|
||||||
"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!",
|
"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!",
|
||||||
"nekocode": "NekoCode gives developers a stable, efficient, and reliable API relay for Claude, Codex, and other AI models, with transparent pay-as-you-go pricing. Exclusive 10% off for CC Switch users: register via the link above and enter promo code cc-switch at recharge to save 10%!",
|
"nekocode": "NekoCode gives developers a stable, efficient, and reliable API relay for Claude, Codex, and other AI models, with transparent pay-as-you-go pricing. Exclusive 10% off for CC Switch users: register via the link above and enter promo code cc-switch at recharge to save 10%!",
|
||||||
"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",
|
"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",
|
||||||
|
|||||||
@@ -1005,6 +1005,7 @@
|
|||||||
"officialHint": "💡 公式プロバイダーはブラウザログインで、API Key は不要です",
|
"officialHint": "💡 公式プロバイダーはブラウザログインで、API Key は不要です",
|
||||||
"getApiKey": "API Key を取得",
|
"getApiKey": "API Key を取得",
|
||||||
"partnerPromotion": {
|
"partnerPromotion": {
|
||||||
|
"sudocode": "SudoCode の1つのキーで、Claude Code と Claude Desktop では Claude Opus 4.8、Codex では GPT-5.6 を利用できます。登録後 QQ グループ 726213516 に参加し、管理者へ連絡すると CNY ¥10 のトライアルクレジットを受け取れます。",
|
||||||
"code0": "code0.ai は開発者向けの AI コーディングサービスプラットフォームで、Claude Code、Codex、Gemini に対応。CC Switch ユーザー限定特典:公式サイトからサポートに連絡してテストクレジットを受け取れます!",
|
"code0": "code0.ai は開発者向けの AI コーディングサービスプラットフォームで、Claude Code、Codex、Gemini に対応。CC Switch ユーザー限定特典:公式サイトからサポートに連絡してテストクレジットを受け取れます!",
|
||||||
"nekocode": "NekoCode は Claude や Codex などの AI モデルに対応した、安定・高効率で信頼性の高い API 中継サービスを提供します。明瞭な従量課金制。CC Switch ユーザー限定 10%オフ:上のリンクから登録し、チャージ時にクーポンコード cc-switch を入力すると 10%オフ!",
|
"nekocode": "NekoCode は Claude や Codex などの AI モデルに対応した、安定・高効率で信頼性の高い API 中継サービスを提供します。明瞭な従量課金制。CC Switch ユーザー限定 10%オフ:上のリンクから登録し、チャージ時にクーポンコード cc-switch を入力すると 10%オフ!",
|
||||||
"packycode": "PackyCode は CC Switch の公式パートナーです。登録後チャージ時に \"cc-switch\" を入力すると 10% オフ",
|
"packycode": "PackyCode は CC Switch の公式パートナーです。登録後チャージ時に \"cc-switch\" を入力すると 10% オフ",
|
||||||
|
|||||||
@@ -976,6 +976,7 @@
|
|||||||
"officialHint": "官方供應商使用瀏覽器登入,無需設定 API Key",
|
"officialHint": "官方供應商使用瀏覽器登入,無需設定 API Key",
|
||||||
"getApiKey": "取得 API Key",
|
"getApiKey": "取得 API Key",
|
||||||
"partnerPromotion": {
|
"partnerPromotion": {
|
||||||
|
"sudocode": "SudoCode 讓 Claude Code 與 Claude Desktop 使用 Claude Opus 4.8,Codex 使用 GPT-5.6,一個 Key 統一管理。CC Switch 使用者註冊並加入 QQ 群 726213516,聯絡群主領取人民幣 ¥10 試用額度。",
|
||||||
"code0": "code0.ai 是面向開發者的 AI 程式設計服務平台,支援 Claude Code、Codex、Gemini。CC Switch 使用者專屬福利:透過官網聯繫客服即可領取測試額度!",
|
"code0": "code0.ai 是面向開發者的 AI 程式設計服務平台,支援 Claude Code、Codex、Gemini。CC Switch 使用者專屬福利:透過官網聯繫客服即可領取測試額度!",
|
||||||
"nekocode": "NekoCode 為開發者提供穩定、高效、可靠的 Claude、Codex 等 AI 模型 API 中轉服務,價格透明、按量計費。CC Switch 使用者專享 9 折:透過上方連結註冊,儲值時輸入優惠碼 cc-switch 即享 9 折優惠!",
|
"nekocode": "NekoCode 為開發者提供穩定、高效、可靠的 Claude、Codex 等 AI 模型 API 中轉服務,價格透明、按量計費。CC Switch 使用者專享 9 折:透過上方連結註冊,儲值時輸入優惠碼 cc-switch 即享 9 折優惠!",
|
||||||
"packycode": "PackyCode 是 CC Switch 的官方合作夥伴,使用此連結註冊並在儲值時填寫「cc-switch」優惠碼,可以享受 9 折優惠",
|
"packycode": "PackyCode 是 CC Switch 的官方合作夥伴,使用此連結註冊並在儲值時填寫「cc-switch」優惠碼,可以享受 9 折優惠",
|
||||||
|
|||||||
@@ -1005,6 +1005,7 @@
|
|||||||
"officialHint": "💡 官方供应商使用浏览器登录,无需配置 API Key",
|
"officialHint": "💡 官方供应商使用浏览器登录,无需配置 API Key",
|
||||||
"getApiKey": "获取 API Key",
|
"getApiKey": "获取 API Key",
|
||||||
"partnerPromotion": {
|
"partnerPromotion": {
|
||||||
|
"sudocode": "SudoCode 让 Claude Code 与 Claude Desktop 接入 Claude Opus 4.8,Codex 接入 GPT-5.6,一个 Key 统一使用。CC Switch 用户注册并加入 QQ 群 726213516,联系群主领取 ¥10 试用额度。",
|
||||||
"code0": "code0.ai 是面向开发者的 AI 编程服务平台,支持 Claude Code、Codex、Gemini。CC Switch 用户专属福利:通过官网联系客服即可领取测试额度!",
|
"code0": "code0.ai 是面向开发者的 AI 编程服务平台,支持 Claude Code、Codex、Gemini。CC Switch 用户专属福利:通过官网联系客服即可领取测试额度!",
|
||||||
"nekocode": "NekoCode 为开发者提供稳定、高效、可靠的 Claude、Codex 等 AI 模型 API 中转服务,价格透明、按量计费。CC Switch 用户专享 9 折:通过上方链接注册,充值时输入优惠码 cc-switch 即享 9 折优惠!",
|
"nekocode": "NekoCode 为开发者提供稳定、高效、可靠的 Claude、Codex 等 AI 模型 API 中转服务,价格透明、按量计费。CC Switch 用户专享 9 折:通过上方链接注册,充值时输入优惠码 cc-switch 即享 9 折优惠!",
|
||||||
"packycode": "PackyCode 是 CC Switch 的官方合作伙伴,使用此链接注册并在充值时填写 \"cc-switch\" 优惠码,可以享受9折优惠",
|
"packycode": "PackyCode 是 CC Switch 的官方合作伙伴,使用此链接注册并在充值时填写 \"cc-switch\" 优惠码,可以享受9折优惠",
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 5.3 KiB |
Reference in New Issue
Block a user