mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
7d21663e6d
Multi-protocol provider: Anthropic for Claude, OpenAI Responses for Codex/OpenClaw, OpenAI for OpenCode, custom Gemini config. Includes PNG icon via URL import and provider-specific settings like effortLevel, enabledPlugins, and custom TOML config for Codex.
1705 lines
44 KiB
TypeScript
1705 lines
44 KiB
TypeScript
/**
|
|
* OpenClaw provider presets configuration
|
|
* OpenClaw uses models.providers structure with custom provider configs
|
|
*/
|
|
import type {
|
|
ProviderCategory,
|
|
OpenClawProviderConfig,
|
|
OpenClawDefaultModel,
|
|
} from "../types";
|
|
import type { PresetTheme, TemplateValueConfig } from "./claudeProviderPresets";
|
|
|
|
/** Suggested default model configuration for a preset */
|
|
export interface OpenClawSuggestedDefaults {
|
|
/** Default model config to apply (agents.defaults.model) */
|
|
model?: OpenClawDefaultModel;
|
|
/** Model catalog entries to add (agents.defaults.models) */
|
|
modelCatalog?: Record<string, { alias?: string }>;
|
|
}
|
|
|
|
export interface OpenClawProviderPreset {
|
|
name: string;
|
|
nameKey?: string; // i18n key for localized display name
|
|
websiteUrl: string;
|
|
apiKeyUrl?: string;
|
|
/** OpenClaw settings_config structure */
|
|
settingsConfig: OpenClawProviderConfig;
|
|
isOfficial?: boolean;
|
|
isPartner?: boolean;
|
|
partnerPromotionKey?: string;
|
|
category?: ProviderCategory;
|
|
/** Template variable definitions */
|
|
templateValues?: Record<string, TemplateValueConfig>;
|
|
/** Visual theme config */
|
|
theme?: PresetTheme;
|
|
/** Icon name */
|
|
icon?: string;
|
|
/** Icon color */
|
|
iconColor?: string;
|
|
/** Mark as custom template (for UI distinction) */
|
|
isCustomTemplate?: boolean;
|
|
/** Suggested default model configuration */
|
|
suggestedDefaults?: OpenClawSuggestedDefaults;
|
|
}
|
|
|
|
/**
|
|
* OpenClaw API protocol options
|
|
* @see https://github.com/openclaw/openclaw/blob/main/docs/gateway/configuration.md
|
|
*/
|
|
export const openclawApiProtocols = [
|
|
{ value: "openai-completions", label: "OpenAI Completions" },
|
|
{ value: "openai-responses", label: "OpenAI Responses" },
|
|
{ value: "anthropic-messages", label: "Anthropic Messages" },
|
|
{ value: "google-generative-ai", label: "Google Generative AI" },
|
|
{ value: "bedrock-converse-stream", label: "AWS Bedrock" },
|
|
] as const;
|
|
|
|
/**
|
|
* OpenClaw provider presets list
|
|
*/
|
|
export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|
{
|
|
name: "Shengsuanyun",
|
|
nameKey: "providerForm.presets.shengsuanyun",
|
|
websiteUrl: "https://www.shengsuanyun.com",
|
|
apiKeyUrl: "https://www.shengsuanyun.com/?from=CH_4HHXMRYF",
|
|
settingsConfig: {
|
|
baseUrl: "https://router.shengsuanyun.com/api",
|
|
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: "aggregator",
|
|
isPartner: true,
|
|
partnerPromotionKey: "shengsuanyun",
|
|
icon: "shengsuanyun",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "shengsuanyun/claude-opus-4-6",
|
|
fallbacks: ["shengsuanyun/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"shengsuanyun/claude-opus-4-6": { alias: "Opus" },
|
|
"shengsuanyun/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
// ========== Chinese Officials ==========
|
|
{
|
|
name: "DeepSeek",
|
|
websiteUrl: "https://platform.deepseek.com",
|
|
apiKeyUrl: "https://platform.deepseek.com/api_keys",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.deepseek.com/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "deepseek-chat",
|
|
name: "DeepSeek V3.2",
|
|
contextWindow: 64000,
|
|
cost: { input: 0.0005, output: 0.002 },
|
|
},
|
|
{
|
|
id: "deepseek-reasoner",
|
|
name: "DeepSeek R1",
|
|
contextWindow: 64000,
|
|
cost: { input: 0.0005, output: 0.002 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "deepseek",
|
|
iconColor: "#1E88E5",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "deepseek/deepseek-chat",
|
|
fallbacks: ["deepseek/deepseek-reasoner"],
|
|
},
|
|
modelCatalog: {
|
|
"deepseek/deepseek-chat": { alias: "DeepSeek" },
|
|
"deepseek/deepseek-reasoner": { alias: "R1" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "Zhipu GLM",
|
|
websiteUrl: "https://open.bigmodel.cn",
|
|
apiKeyUrl: "https://www.bigmodel.cn/claude-code?ic=RRVJPB5SII",
|
|
settingsConfig: {
|
|
baseUrl: "https://open.bigmodel.cn/api/paas/v4",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "glm-5",
|
|
name: "GLM-5",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.001, output: 0.001 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "zhipu",
|
|
iconColor: "#0F62FE",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://open.bigmodel.cn/api/paas/v4",
|
|
defaultValue: "https://open.bigmodel.cn/api/paas/v4",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "zhipu/glm-5" },
|
|
modelCatalog: { "zhipu/glm-5": { alias: "GLM" } },
|
|
},
|
|
},
|
|
{
|
|
name: "Zhipu GLM en",
|
|
websiteUrl: "https://z.ai",
|
|
apiKeyUrl: "https://z.ai/subscribe?ic=8JVLJQFSKB",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.z.ai/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "glm-5",
|
|
name: "GLM-5",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.001, output: 0.001 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "zhipu",
|
|
iconColor: "#0F62FE",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://api.z.ai/v1",
|
|
defaultValue: "https://api.z.ai/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "zhipu-en/glm-5" },
|
|
modelCatalog: { "zhipu-en/glm-5": { alias: "GLM" } },
|
|
},
|
|
},
|
|
{
|
|
name: "Qwen Coder",
|
|
websiteUrl: "https://bailian.console.aliyun.com",
|
|
apiKeyUrl: "https://bailian.console.aliyun.com/#/api-key",
|
|
settingsConfig: {
|
|
baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "qwen3.5-plus",
|
|
name: "Qwen3.5 Plus",
|
|
contextWindow: 32000,
|
|
cost: { input: 0.002, output: 0.006 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "qwen",
|
|
iconColor: "#FF6A00",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
defaultValue: "https://dashscope.aliyuncs.com/compatible-mode/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "qwen/qwen3.5-plus" },
|
|
modelCatalog: { "qwen/qwen3.5-plus": { alias: "Qwen" } },
|
|
},
|
|
},
|
|
{
|
|
name: "Kimi k2.5",
|
|
websiteUrl: "https://platform.moonshot.cn/console",
|
|
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.moonshot.cn/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "kimi-k2.5",
|
|
name: "Kimi K2.5",
|
|
contextWindow: 131072,
|
|
cost: { input: 0.002, output: 0.006 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "kimi",
|
|
iconColor: "#6366F1",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://api.moonshot.cn/v1",
|
|
defaultValue: "https://api.moonshot.cn/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "kimi/kimi-k2.5" },
|
|
modelCatalog: { "kimi/kimi-k2.5": { alias: "Kimi" } },
|
|
},
|
|
},
|
|
{
|
|
name: "Kimi For Coding",
|
|
websiteUrl: "https://www.kimi.com/coding/docs/",
|
|
apiKeyUrl: "https://platform.moonshot.cn/console/api-keys",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.kimi.com/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "kimi-for-coding",
|
|
name: "Kimi For Coding",
|
|
contextWindow: 131072,
|
|
cost: { input: 0.002, output: 0.006 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "kimi",
|
|
iconColor: "#6366F1",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://api.kimi.com/v1",
|
|
defaultValue: "https://api.kimi.com/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "kimi-coding/kimi-for-coding" },
|
|
modelCatalog: { "kimi-coding/kimi-for-coding": { alias: "Kimi" } },
|
|
},
|
|
},
|
|
{
|
|
name: "StepFun",
|
|
websiteUrl: "https://platform.stepfun.ai",
|
|
apiKeyUrl: "https://platform.stepfun.ai/interface-key",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.stepfun.ai/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "step-3.5-flash",
|
|
name: "Step 3.5 Flash",
|
|
contextWindow: 262144,
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "stepfun",
|
|
iconColor: "#005AFF",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://api.stepfun.ai/v1",
|
|
defaultValue: "https://api.stepfun.ai/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "step-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "stepfun/step-3.5-flash" },
|
|
modelCatalog: { "stepfun/step-3.5-flash": { alias: "StepFun" } },
|
|
},
|
|
},
|
|
{
|
|
name: "MiniMax",
|
|
websiteUrl: "https://platform.minimaxi.com",
|
|
apiKeyUrl: "https://platform.minimaxi.com/subscribe/coding-plan",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.minimaxi.com/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "MiniMax-M2.7",
|
|
name: "MiniMax M2.7",
|
|
contextWindow: 200000,
|
|
cost: { input: 0.001, output: 0.004 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
isPartner: true,
|
|
partnerPromotionKey: "minimax_cn",
|
|
theme: {
|
|
backgroundColor: "#f64551",
|
|
textColor: "#FFFFFF",
|
|
},
|
|
icon: "minimax",
|
|
iconColor: "#FF6B6B",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "minimax/MiniMax-M2.7" },
|
|
modelCatalog: { "minimax/MiniMax-M2.7": { alias: "MiniMax" } },
|
|
},
|
|
},
|
|
{
|
|
name: "MiniMax en",
|
|
websiteUrl: "https://platform.minimax.io",
|
|
apiKeyUrl: "https://platform.minimax.io/subscribe/coding-plan",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.minimax.io/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "MiniMax-M2.7",
|
|
name: "MiniMax M2.7",
|
|
contextWindow: 200000,
|
|
cost: { input: 0.001, output: 0.004 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
isPartner: true,
|
|
partnerPromotionKey: "minimax_en",
|
|
theme: {
|
|
backgroundColor: "#f64551",
|
|
textColor: "#FFFFFF",
|
|
},
|
|
icon: "minimax",
|
|
iconColor: "#FF6B6B",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "minimax-en/MiniMax-M2.7" },
|
|
modelCatalog: { "minimax-en/MiniMax-M2.7": { alias: "MiniMax" } },
|
|
},
|
|
},
|
|
{
|
|
name: "KAT-Coder",
|
|
websiteUrl: "https://console.streamlake.ai",
|
|
apiKeyUrl: "https://console.streamlake.ai/console/api-key",
|
|
settingsConfig: {
|
|
baseUrl:
|
|
"https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/openai",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "KAT-Coder-Pro",
|
|
name: "KAT-Coder Pro",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.002, output: 0.006 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "catcoder",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder:
|
|
"https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/openai",
|
|
defaultValue:
|
|
"https://vanchin.streamlake.ai/api/gateway/v1/endpoints/${ENDPOINT_ID}/openai",
|
|
editorValue: "",
|
|
},
|
|
ENDPOINT_ID: {
|
|
label: "Endpoint ID",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "katcoder/KAT-Coder-Pro" },
|
|
modelCatalog: { "katcoder/KAT-Coder-Pro": { alias: "KAT-Coder" } },
|
|
},
|
|
},
|
|
{
|
|
name: "Longcat",
|
|
websiteUrl: "https://longcat.chat/platform",
|
|
apiKeyUrl: "https://longcat.chat/platform/api_keys",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.longcat.chat/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
authHeader: true,
|
|
models: [
|
|
{
|
|
id: "LongCat-Flash-Chat",
|
|
name: "LongCat Flash Chat",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.001, output: 0.004 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "longcat",
|
|
iconColor: "#29E154",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://api.longcat.chat/v1",
|
|
defaultValue: "https://api.longcat.chat/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "longcat/LongCat-Flash-Chat" },
|
|
modelCatalog: { "longcat/LongCat-Flash-Chat": { alias: "LongCat" } },
|
|
},
|
|
},
|
|
{
|
|
name: "DouBaoSeed",
|
|
websiteUrl: "https://www.volcengine.com/product/doubao",
|
|
apiKeyUrl: "https://www.volcengine.com/product/doubao",
|
|
settingsConfig: {
|
|
baseUrl: "https://ark.cn-beijing.volces.com/api/v3",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "doubao-seed-2-0-code-preview-latest",
|
|
name: "DouBao Seed Code Preview",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.002, output: 0.006 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "doubao",
|
|
iconColor: "#3370FF",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "doubaoseed/doubao-seed-2-0-code-preview-latest" },
|
|
modelCatalog: {
|
|
"doubaoseed/doubao-seed-2-0-code-preview-latest": { alias: "DouBao" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "BaiLing",
|
|
websiteUrl: "https://alipaytbox.yuque.com/sxs0ba/ling/get_started",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.tbox.cn/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "Ling-2.5-1T",
|
|
name: "Ling 2.5 1T",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.001, output: 0.004 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "bailing/Ling-2.5-1T" },
|
|
modelCatalog: { "bailing/Ling-2.5-1T": { alias: "BaiLing" } },
|
|
},
|
|
},
|
|
{
|
|
name: "Xiaomi MiMo",
|
|
websiteUrl: "https://platform.xiaomimimo.com",
|
|
apiKeyUrl: "https://platform.xiaomimimo.com/#/console/api-keys",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.xiaomimimo.com/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "mimo-v2-pro",
|
|
name: "MiMo V2 Pro",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.001, output: 0.004 },
|
|
},
|
|
],
|
|
},
|
|
category: "cn_official",
|
|
icon: "xiaomimimo",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "xiaomimimo/mimo-v2-pro" },
|
|
modelCatalog: { "xiaomimimo/mimo-v2-pro": { alias: "MiMo" } },
|
|
},
|
|
},
|
|
|
|
// ========== Aggregators ==========
|
|
{
|
|
name: "AiHubMix",
|
|
websiteUrl: "https://aihubmix.com",
|
|
apiKeyUrl: "https://aihubmix.com",
|
|
settingsConfig: {
|
|
baseUrl: "https://aihubmix.com",
|
|
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: "aggregator",
|
|
icon: "aihubmix",
|
|
iconColor: "#006FFB",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "aihubmix/claude-opus-4-6",
|
|
fallbacks: ["aihubmix/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"aihubmix/claude-opus-4-6": { alias: "Opus" },
|
|
"aihubmix/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "DMXAPI",
|
|
websiteUrl: "https://www.dmxapi.cn",
|
|
apiKeyUrl: "https://www.dmxapi.cn",
|
|
settingsConfig: {
|
|
baseUrl: "https://www.dmxapi.cn",
|
|
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: "aggregator",
|
|
isPartner: true,
|
|
partnerPromotionKey: "dmxapi",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "dmxapi/claude-opus-4-6",
|
|
fallbacks: ["dmxapi/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"dmxapi/claude-opus-4-6": { alias: "Opus" },
|
|
"dmxapi/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "OpenRouter",
|
|
websiteUrl: "https://openrouter.ai",
|
|
apiKeyUrl: "https://openrouter.ai/keys",
|
|
settingsConfig: {
|
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "anthropic/claude-opus-4.6",
|
|
name: "Claude Opus 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 5, output: 25 },
|
|
},
|
|
{
|
|
id: "anthropic/claude-sonnet-4.6",
|
|
name: "Claude Sonnet 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 3, output: 15 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
icon: "openrouter",
|
|
iconColor: "#6566F1",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-or-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "openrouter/anthropic/claude-opus-4.6",
|
|
fallbacks: ["openrouter/anthropic/claude-sonnet-4.6"],
|
|
},
|
|
modelCatalog: {
|
|
"openrouter/anthropic/claude-opus-4.6": { alias: "Opus" },
|
|
"openrouter/anthropic/claude-sonnet-4.6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "TheRouter",
|
|
websiteUrl: "https://therouter.ai",
|
|
apiKeyUrl: "https://dashboard.therouter.ai",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.therouter.ai/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "anthropic/claude-sonnet-4.6",
|
|
name: "Claude Sonnet 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 3.75 },
|
|
},
|
|
{
|
|
id: "openai/gpt-5.3-codex",
|
|
name: "GPT-5.3 Codex",
|
|
contextWindow: 400000,
|
|
cost: { input: 5, output: 40, cacheRead: 0.5 },
|
|
},
|
|
{
|
|
id: "openai/gpt-5.2",
|
|
name: "GPT-5.2",
|
|
contextWindow: 400000,
|
|
cost: { input: 1.75, output: 14, cacheRead: 0.175 },
|
|
},
|
|
{
|
|
id: "google/gemini-3-flash-preview",
|
|
name: "Gemini 3 Flash Preview",
|
|
contextWindow: 1000000,
|
|
cost: { input: 0.5, output: 3, cacheRead: 0.05 },
|
|
},
|
|
{
|
|
id: "qwen/qwen3-coder-480b",
|
|
name: "Qwen3 Coder 480B",
|
|
contextWindow: 262144,
|
|
cost: { input: 0.6, output: 2.35 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "therouter/anthropic/claude-sonnet-4.6",
|
|
fallbacks: [
|
|
"therouter/openai/gpt-5.2",
|
|
"therouter/google/gemini-3-flash-preview",
|
|
],
|
|
},
|
|
modelCatalog: {
|
|
"therouter/anthropic/claude-sonnet-4.6": { alias: "Sonnet" },
|
|
"therouter/openai/gpt-5.2": { alias: "GPT-5.2" },
|
|
"therouter/google/gemini-3-flash-preview": { alias: "Gemini Flash" },
|
|
"therouter/openai/gpt-5.3-codex": { alias: "Codex" },
|
|
"therouter/qwen/qwen3-coder-480b": { alias: "Qwen Coder" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "ModelScope",
|
|
websiteUrl: "https://modelscope.cn",
|
|
apiKeyUrl: "https://modelscope.cn/my/myaccesstoken",
|
|
settingsConfig: {
|
|
baseUrl: "https://api-inference.modelscope.cn/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "ZhipuAI/GLM-5",
|
|
name: "GLM-5",
|
|
contextWindow: 128000,
|
|
cost: { input: 0.001, output: 0.001 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
icon: "modelscope",
|
|
iconColor: "#624AFF",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://api-inference.modelscope.cn/v1",
|
|
defaultValue: "https://api-inference.modelscope.cn/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "modelscope/ZhipuAI/GLM-5" },
|
|
modelCatalog: { "modelscope/ZhipuAI/GLM-5": { alias: "GLM" } },
|
|
},
|
|
},
|
|
{
|
|
name: "SiliconFlow",
|
|
websiteUrl: "https://siliconflow.cn",
|
|
apiKeyUrl: "https://cloud.siliconflow.cn/i/drGuwc9k",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.siliconflow.cn/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "Pro/MiniMaxAI/MiniMax-M2.7",
|
|
name: "MiniMax M2.7",
|
|
contextWindow: 200000,
|
|
cost: { input: 0.001, output: 0.004 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
isPartner: true,
|
|
partnerPromotionKey: "siliconflow",
|
|
icon: "siliconflow",
|
|
iconColor: "#6E29F6",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "siliconflow/Pro/MiniMaxAI/MiniMax-M2.7" },
|
|
modelCatalog: {
|
|
"siliconflow/Pro/MiniMaxAI/MiniMax-M2.7": { alias: "MiniMax" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "SiliconFlow en",
|
|
websiteUrl: "https://siliconflow.com",
|
|
apiKeyUrl: "https://cloud.siliconflow.cn/i/drGuwc9k",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.siliconflow.com/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "MiniMaxAI/MiniMax-M2.7",
|
|
name: "MiniMax M2.7",
|
|
contextWindow: 200000,
|
|
cost: { input: 0.001, output: 0.004 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
isPartner: true,
|
|
partnerPromotionKey: "siliconflow",
|
|
icon: "siliconflow",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "siliconflow-en/MiniMaxAI/MiniMax-M2.7" },
|
|
modelCatalog: {
|
|
"siliconflow-en/MiniMaxAI/MiniMax-M2.7": { alias: "MiniMax" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "Novita AI",
|
|
websiteUrl: "https://novita.ai",
|
|
apiKeyUrl: "https://novita.ai",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.novita.ai/openai",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "zai-org/glm-5",
|
|
name: "GLM-5",
|
|
contextWindow: 202800,
|
|
cost: { input: 1, output: 3.2, cacheRead: 0.2 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
icon: "novita",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "novita/zai-org/glm-5" },
|
|
modelCatalog: {
|
|
"novita/zai-org/glm-5": { alias: "GLM-5" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "Nvidia",
|
|
websiteUrl: "https://build.nvidia.com",
|
|
apiKeyUrl: "https://build.nvidia.com/settings/api-keys",
|
|
settingsConfig: {
|
|
baseUrl: "https://integrate.api.nvidia.com/v1",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [
|
|
{
|
|
id: "moonshotai/kimi-k2.5",
|
|
name: "Kimi K2.5",
|
|
contextWindow: 131072,
|
|
cost: { input: 0.002, output: 0.006 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
icon: "nvidia",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "nvapi-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: { primary: "nvidia/moonshotai/kimi-k2.5" },
|
|
modelCatalog: { "nvidia/moonshotai/kimi-k2.5": { alias: "Kimi" } },
|
|
},
|
|
},
|
|
{
|
|
name: "PIPELLM",
|
|
websiteUrl: "https://www.pipellm.ai",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.pipellm.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: "aggregator",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "pipellm/claude-opus-4-6",
|
|
fallbacks: ["pipellm/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"pipellm/claude-opus-4-6": { alias: "Opus" },
|
|
"pipellm/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
|
|
// ========== Third Party Partners ==========
|
|
{
|
|
name: "PackyCode",
|
|
websiteUrl: "https://www.packyapi.com",
|
|
apiKeyUrl: "https://www.packyapi.com/register?aff=cc-switch",
|
|
settingsConfig: {
|
|
baseUrl: "https://www.packyapi.com",
|
|
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: "packycode",
|
|
icon: "packycode",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "packycode/claude-opus-4-6",
|
|
fallbacks: ["packycode/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"packycode/claude-opus-4-6": { alias: "Opus" },
|
|
"packycode/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "Cubence",
|
|
websiteUrl: "https://cubence.com",
|
|
apiKeyUrl: "https://cubence.com/signup?code=CCSWITCH&source=ccs",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.cubence.com",
|
|
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: "cubence",
|
|
icon: "cubence",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "cubence/claude-opus-4-6",
|
|
fallbacks: ["cubence/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"cubence/claude-opus-4-6": { alias: "Opus" },
|
|
"cubence/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "AIGoCode",
|
|
websiteUrl: "https://aigocode.com",
|
|
apiKeyUrl: "https://aigocode.com/invite/CC-SWITCH",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.aigocode.com",
|
|
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: "aigocode",
|
|
icon: "aigocode",
|
|
iconColor: "#5B7FFF",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "aigocode/claude-opus-4-6",
|
|
fallbacks: ["aigocode/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"aigocode/claude-opus-4-6": { alias: "Opus" },
|
|
"aigocode/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "RightCode",
|
|
websiteUrl: "https://www.right.codes",
|
|
apiKeyUrl: "https://www.right.codes/register?aff=CCSWITCH",
|
|
settingsConfig: {
|
|
baseUrl: "https://www.right.codes/claude",
|
|
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: "rightcode",
|
|
icon: "rc",
|
|
iconColor: "#E96B2C",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "rightcode/claude-opus-4-6",
|
|
fallbacks: ["rightcode/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"rightcode/claude-opus-4-6": { alias: "Opus" },
|
|
"rightcode/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "AICodeMirror",
|
|
websiteUrl: "https://www.aicodemirror.com",
|
|
apiKeyUrl: "https://www.aicodemirror.com/register?invitecode=9915W3",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.aicodemirror.com/api/claudecode",
|
|
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: "aicodemirror",
|
|
icon: "aicodemirror",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "aicodemirror/claude-opus-4-6",
|
|
fallbacks: ["aicodemirror/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"aicodemirror/claude-opus-4-6": { alias: "Opus" },
|
|
"aicodemirror/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "AICoding",
|
|
websiteUrl: "https://aicoding.sh",
|
|
apiKeyUrl: "https://aicoding.sh/i/CCSWITCH",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.aicoding.sh",
|
|
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: "aicoding",
|
|
icon: "aicoding",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "aicoding/claude-opus-4-6",
|
|
fallbacks: ["aicoding/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"aicoding/claude-opus-4-6": { alias: "Opus" },
|
|
"aicoding/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "CrazyRouter",
|
|
websiteUrl: "https://www.crazyrouter.com",
|
|
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
|
settingsConfig: {
|
|
baseUrl: "https://crazyrouter.com/v1",
|
|
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: "crazyrouter",
|
|
icon: "crazyrouter",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "crazyrouter/claude-opus-4-6",
|
|
fallbacks: ["crazyrouter/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"crazyrouter/claude-opus-4-6": { alias: "Opus" },
|
|
"crazyrouter/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "SSSAiCode",
|
|
websiteUrl: "https://www.sssaicode.com",
|
|
apiKeyUrl: "https://www.sssaicode.com/register?ref=DCP0SM",
|
|
settingsConfig: {
|
|
baseUrl: "https://node-hk.sssaicode.com/api",
|
|
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: "sssaicode",
|
|
icon: "sssaicode",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "sssaicode/claude-opus-4-6",
|
|
fallbacks: ["sssaicode/claude-sonnet-4-6"],
|
|
},
|
|
modelCatalog: {
|
|
"sssaicode/claude-opus-4-6": { alias: "Opus" },
|
|
"sssaicode/claude-sonnet-4-6": { alias: "Sonnet" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "Compshare",
|
|
nameKey: "providerForm.presets.ucloud",
|
|
websiteUrl: "https://www.compshare.cn",
|
|
apiKeyUrl:
|
|
"https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.modelverse.cn/v1",
|
|
apiKey: "",
|
|
api: "anthropic-messages",
|
|
models: [
|
|
{
|
|
id: "claude-opus-4-6",
|
|
name: "Claude Opus 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 5, output: 25 },
|
|
},
|
|
],
|
|
},
|
|
category: "aggregator",
|
|
isPartner: true, // 合作伙伴
|
|
partnerPromotionKey: "ucloud", // 促销信息 i18n key
|
|
icon: "ucloud",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "compshare/claude-opus-4-6",
|
|
},
|
|
modelCatalog: {
|
|
"compshare/claude-opus-4-6": { alias: "Opus" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "Micu",
|
|
websiteUrl: "https://www.openclaudecode.cn",
|
|
apiKeyUrl: "https://www.openclaudecode.cn/register?aff=aOYQ",
|
|
settingsConfig: {
|
|
baseUrl: "https://www.openclaudecode.cn",
|
|
apiKey: "",
|
|
api: "anthropic-messages",
|
|
models: [
|
|
{
|
|
id: "claude-opus-4-6",
|
|
name: "Claude Opus 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 5, output: 25 },
|
|
},
|
|
],
|
|
},
|
|
category: "third_party",
|
|
isPartner: true,
|
|
partnerPromotionKey: "micu",
|
|
icon: "micu",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "micu/claude-opus-4-6",
|
|
},
|
|
modelCatalog: {
|
|
"micu/claude-opus-4-6": { alias: "Opus" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "CTok.ai",
|
|
websiteUrl: "https://ctok.ai",
|
|
apiKeyUrl: "https://ctok.ai",
|
|
settingsConfig: {
|
|
baseUrl: "https://api.ctok.ai",
|
|
apiKey: "",
|
|
api: "anthropic-messages",
|
|
models: [
|
|
{
|
|
id: "claude-opus-4-6",
|
|
name: "Claude Opus 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 5, output: 25 },
|
|
},
|
|
],
|
|
},
|
|
category: "third_party",
|
|
isPartner: true,
|
|
partnerPromotionKey: "ctok",
|
|
icon: "ctok",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "ctok/claude-opus-4-6",
|
|
},
|
|
modelCatalog: {
|
|
"ctok/claude-opus-4-6": { alias: "Opus" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
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" },
|
|
},
|
|
},
|
|
},
|
|
{
|
|
name: "E-FlowCode",
|
|
websiteUrl: "https://e-flowcode.cc",
|
|
apiKeyUrl: "https://e-flowcode.cc",
|
|
settingsConfig: {
|
|
api: "openai-responses",
|
|
apiKey: "",
|
|
baseUrl: "https://e-flowcode.cc/v1",
|
|
headers: {
|
|
"User-Agent":
|
|
"codex_cli_rs/0.77.0 (Windows 10.0.26100; x86_64) WindowsTerminal",
|
|
},
|
|
models: [
|
|
{
|
|
contextWindow: 200000,
|
|
cost: {
|
|
cacheRead: 0,
|
|
cacheWrite: 0,
|
|
input: 0,
|
|
output: 0,
|
|
},
|
|
id: "gpt-5.3-codex",
|
|
maxTokens: 32000,
|
|
name: "gpt-5.3-codex",
|
|
},
|
|
{
|
|
id: "gpt-5.4",
|
|
name: "gpt-5.4",
|
|
},
|
|
{
|
|
id: "gpt-5.2-codex",
|
|
name: "gpt-5.2-codex",
|
|
},
|
|
{
|
|
id: "gpt-5.2",
|
|
name: "gpt-5.2",
|
|
},
|
|
],
|
|
},
|
|
category: "third_party",
|
|
icon: "eflowcode",
|
|
iconColor: "#000000",
|
|
templateValues: {
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "sk-...",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
suggestedDefaults: {
|
|
model: {
|
|
primary: "eflowcode/gpt-5.3-codex",
|
|
fallbacks: ["eflowcode/gpt-5.4", "eflowcode/gpt-5.2-codex"],
|
|
},
|
|
modelCatalog: {
|
|
"eflowcode/gpt-5.3-codex": { alias: "gpt-5.3-codex" },
|
|
"eflowcode/gpt-5.4": { alias: "gpt-5.4" },
|
|
"eflowcode/gpt-5.2-codex": { alias: "gpt-5.2-codex" },
|
|
"eflowcode/gpt-5.2": { alias: "gpt-5.2" },
|
|
},
|
|
},
|
|
},
|
|
// ========== Cloud Providers ==========
|
|
{
|
|
name: "AWS Bedrock",
|
|
websiteUrl: "https://aws.amazon.com/bedrock/",
|
|
settingsConfig: {
|
|
// 请将 us-west-2 替换为你的 AWS Region
|
|
baseUrl: "https://bedrock-runtime.us-west-2.amazonaws.com",
|
|
apiKey: "",
|
|
api: "bedrock-converse-stream",
|
|
models: [
|
|
{
|
|
id: "anthropic.claude-opus-4-6-20250514-v1:0",
|
|
name: "Claude Opus 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 15, output: 75, cacheRead: 1.5, cacheWrite: 18.75 },
|
|
},
|
|
{
|
|
id: "anthropic.claude-sonnet-4-6",
|
|
name: "Claude Sonnet 4.6",
|
|
contextWindow: 1000000,
|
|
cost: { input: 3, output: 15, cacheRead: 0.3, cacheWrite: 3.75 },
|
|
},
|
|
{
|
|
id: "anthropic.claude-haiku-4-5-20251022-v1:0",
|
|
name: "Claude Haiku 4.5",
|
|
contextWindow: 200000,
|
|
cost: { input: 0.8, output: 4, cacheRead: 0.08, cacheWrite: 1 },
|
|
},
|
|
],
|
|
},
|
|
category: "cloud_provider",
|
|
icon: "aws",
|
|
iconColor: "#FF9900",
|
|
},
|
|
|
|
// ========== Custom Template ==========
|
|
{
|
|
name: "OpenAI Compatible",
|
|
websiteUrl: "",
|
|
settingsConfig: {
|
|
baseUrl: "",
|
|
apiKey: "",
|
|
api: "openai-completions",
|
|
models: [],
|
|
},
|
|
category: "custom",
|
|
isCustomTemplate: true,
|
|
icon: "generic",
|
|
iconColor: "#6B7280",
|
|
templateValues: {
|
|
baseUrl: {
|
|
label: "Base URL",
|
|
placeholder: "https://api.example.com/v1",
|
|
editorValue: "",
|
|
},
|
|
apiKey: {
|
|
label: "API Key",
|
|
placeholder: "",
|
|
editorValue: "",
|
|
},
|
|
},
|
|
},
|
|
];
|