feat(presets): add ClaudeCN provider presets

Add ClaudeCN as a new partner provider with support for:
- Claude Code preset (Anthropic native protocol)
- Codex preset (gpt-5.5 model)
- Claude Desktop preset (direct mode with passthrough routes)
- OpenCode preset (@ai-sdk/anthropic)
- OpenClaw preset (anthropic-messages protocol)
- Hermes preset (anthropic_messages mode)
- Icon configuration (claudecn.png)
- i18n support (zh/en/ja) with enterprise service promotion

ClaudeCN is an enterprise-grade AI gateway operated by a registered
company, supporting enterprise procurement processes with corporate
payments, contracts, and compliance guarantees.
This commit is contained in:
Jason
2026-05-14 23:28:07 +08:00
parent df11df4d9c
commit d6bbbf72f0
11 changed files with 162 additions and 0 deletions
+30
View File
@@ -1210,6 +1210,36 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
},
},
},
{
name: "ClaudeCN",
websiteUrl: "https://claudecn.top",
apiKeyUrl: "https://claudecn.top/register?aff=ccswitch",
settingsConfig: {
npm: "@ai-sdk/anthropic",
name: "ClaudeCN",
options: {
baseURL: "https://claudecn.top",
apiKey: "",
setCacheKey: true,
},
models: {
"claude-sonnet-4-6": { name: "Claude Sonnet 4.6" },
"claude-opus-4-7": { name: "Claude Opus 4.7" },
"claude-haiku-4-5": { name: "Claude Haiku 4.5" },
},
},
category: "third_party",
isPartner: true,
partnerPromotionKey: "claudecn",
icon: "claudecn",
templateValues: {
apiKey: {
label: "API Key",
placeholder: "",
editorValue: "",
},
},
},
{
name: "AICoding",
websiteUrl: "https://aicoding.sh",