From 4eb5543d9f98fd53dc4b25e395a4ad429eb280c8 Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 14 May 2026 22:52:54 +0800 Subject: [PATCH] refactor(presets): switch 20 Claude Desktop providers from proxy to direct mode - Change mode from "proxy" to "direct" for 20 third-party/aggregator providers - Simplify PipeLLM from mappedRoutes to passthroughRoutes for consistency - Reduces unnecessary proxy layer overhead for providers that support direct API calls Affected providers: ShengSuanYun, AIHubMix, DMXAPI, PackyAPI, PatewayAI, Cubence, AIGoCode, RightCodes, AICodeMirror, AICoding, CrazyRouter, SSSAICode, ModelVerse, CompShare, MicuAPI, CTOK, E-FlowCode, VibeCodingAPI, LemonData, PipeLLM --- src/config/claudeDesktopProviderPresets.ts | 47 ++++++++++------------ 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/src/config/claudeDesktopProviderPresets.ts b/src/config/claudeDesktopProviderPresets.ts index a6e29b034..fe49b9d98 100644 --- a/src/config/claudeDesktopProviderPresets.ts +++ b/src/config/claudeDesktopProviderPresets.ts @@ -141,7 +141,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.shengsuanyun.com/?from=CH_4HHXMRYF", category: "aggregator", baseUrl: "https://router.shengsuanyun.com/api", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), isPartner: true, @@ -430,7 +430,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ category: "aggregator", baseUrl: "https://aihubmix.com", apiKeyField: "ANTHROPIC_API_KEY", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://aihubmix.com", "https://api.aihubmix.com"], @@ -479,7 +479,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.dmxapi.cn", category: "aggregator", baseUrl: "https://www.dmxapi.cn", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://www.dmxapi.cn", "https://api.dmxapi.cn"], @@ -492,7 +492,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.packyapi.com/register?aff=cc-switch", category: "third_party", baseUrl: "https://www.packyapi.com", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: [ @@ -509,7 +509,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://pateway.ai/?ch=etzpm8&aff=WB6M6F67#/", category: "third_party", baseUrl: "https://api.pateway.ai", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), isPartner: true, @@ -522,7 +522,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://cubence.com/signup?code=CCSWITCH&source=ccs", category: "third_party", baseUrl: "https://api.cubence.com", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: [ @@ -542,7 +542,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://aigocode.com/invite/CC-SWITCH", category: "third_party", baseUrl: "https://api.aigocode.com", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://api.aigocode.com"], @@ -557,7 +557,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.right.codes/register?aff=CCSWITCH", category: "third_party", baseUrl: "https://www.right.codes/claude", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), isPartner: true, @@ -571,7 +571,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.aicodemirror.com/register?invitecode=9915W3", category: "third_party", baseUrl: "https://api.aicodemirror.com/api/claudecode", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: [ @@ -589,7 +589,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://aicoding.sh/i/CCSWITCH", category: "third_party", baseUrl: "https://api.aicoding.sh", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://api.aicoding.sh"], @@ -604,7 +604,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch", category: "third_party", baseUrl: "https://cn.crazyrouter.com", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://cn.crazyrouter.com"], @@ -619,7 +619,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM", category: "third_party", baseUrl: "https://node-hk.sssaicode.com/api", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: [ @@ -640,7 +640,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ "https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch", category: "aggregator", baseUrl: "https://api.modelverse.cn", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://api.modelverse.cn"], @@ -657,7 +657,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ "https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch", category: "aggregator", baseUrl: "https://cp.compshare.cn", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://cp.compshare.cn"], @@ -672,7 +672,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://www.micuapi.ai/register?aff=aOYQ", category: "third_party", baseUrl: "https://www.micuapi.ai", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://www.micuapi.ai"], @@ -687,7 +687,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://ctok.ai", category: "third_party", baseUrl: "https://api.ctok.ai", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), isPartner: true, @@ -701,7 +701,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://e-flowcode.cc", category: "third_party", baseUrl: "https://e-flowcode.cc", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), endpointCandidates: ["https://e-flowcode.cc"], @@ -713,7 +713,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ websiteUrl: "https://vibecodingapi.ai", category: "third_party", baseUrl: "https://vibecodingapi.ai", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), isPartner: true, @@ -777,7 +777,7 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ category: "third_party", baseUrl: "https://api.lemondata.cc", apiKeyField: "ANTHROPIC_API_KEY", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", modelRoutes: passthroughRoutes(), isPartner: true, @@ -806,14 +806,9 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ apiKeyUrl: "https://code.pipellm.ai/login?ref=uvw650za", category: "aggregator", baseUrl: "https://cc-api.pipellm.ai", - mode: "proxy", + mode: "direct", apiFormat: "anthropic", - modelRoutes: mappedRoutes( - "claude-sonnet-4-6", - "claude-opus-4-7", - "claude-haiku-4-5-20251001", - true, - ), + modelRoutes: passthroughRoutes(), icon: "pipellm", }, {