mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
feat(presets): add RelaxyCode provider presets
Add RelaxyCode as a new third-party provider with support for: - Claude Code preset (Anthropic native protocol) - Codex preset (gpt-5.5 model) - Claude Desktop preset (direct mode with passthrough routes) RelaxyCode is an enterprise-grade AI programming platform providing unified access to Claude Code, Codex, and Gemini CLI models.
This commit is contained in:
@@ -555,6 +555,17 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
partnerPromotionKey: "runapi",
|
||||
icon: "runapi",
|
||||
},
|
||||
{
|
||||
name: "RelaxyCode",
|
||||
websiteUrl: "https://www.relaxycode.com",
|
||||
apiKeyUrl: "https://www.relaxycode.com/register",
|
||||
category: "third_party",
|
||||
baseUrl: "https://www.relaxycode.com",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
icon: "claude",
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
@@ -600,6 +600,19 @@ export const providerPresets: ProviderPreset[] = [
|
||||
partnerPromotionKey: "runapi",
|
||||
icon: "runapi",
|
||||
},
|
||||
{
|
||||
name: "RelaxyCode",
|
||||
websiteUrl: "https://www.relaxycode.com",
|
||||
apiKeyUrl: "https://www.relaxycode.com/register",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://www.relaxycode.com",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
category: "third_party",
|
||||
icon: "claude",
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
@@ -216,6 +216,19 @@ requires_openai_auth = true`,
|
||||
partnerPromotionKey: "runapi",
|
||||
icon: "runapi",
|
||||
},
|
||||
{
|
||||
name: "RelaxyCode",
|
||||
websiteUrl: "https://www.relaxycode.com",
|
||||
apiKeyUrl: "https://www.relaxycode.com/register",
|
||||
category: "third_party",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"relaxycode",
|
||||
"https://www.relaxycode.com/v1",
|
||||
"gpt-5.5",
|
||||
),
|
||||
icon: "claude",
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
Reference in New Issue
Block a user