mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-06-16 13:34:04 +08:00
feat(presets): add ClaudeAPI provider presets
Add ClaudeAPI as a new partner provider with support for: - Claude Code preset (using ANTHROPIC_AUTH_TOKEN field) - Claude Desktop preset (direct mode with passthrough routes) - Icon configuration (ClaudeApi.png) - i18n support (zh/en/ja) with test credit promotion ClaudeAPI provides official Anthropic API keys and AWS Bedrock routing with support for Tool Use and 1M context.
This commit is contained in:
@@ -516,6 +516,19 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
partnerPromotionKey: "patewayai",
|
||||
icon: "pateway",
|
||||
},
|
||||
{
|
||||
name: "ClaudeAPI",
|
||||
websiteUrl: "https://claudeapi.com",
|
||||
apiKeyUrl: "https://console.claudeapi.com/register?aff=pCLD",
|
||||
category: "third_party",
|
||||
baseUrl: "https://gw.claudeapi.com",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "claudeapi",
|
||||
icon: "claudeapi",
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
@@ -555,6 +555,21 @@ export const providerPresets: ProviderPreset[] = [
|
||||
partnerPromotionKey: "patewayai",
|
||||
icon: "pateway",
|
||||
},
|
||||
{
|
||||
name: "ClaudeAPI",
|
||||
websiteUrl: "https://claudeapi.com",
|
||||
apiKeyUrl: "https://console.claudeapi.com/register?aff=pCLD",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://gw.claudeapi.com",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "claudeapi",
|
||||
icon: "claudeapi",
|
||||
},
|
||||
{
|
||||
name: "Cubence",
|
||||
websiteUrl: "https://cubence.com",
|
||||
|
||||
@@ -836,6 +836,7 @@
|
||||
"partnerPromotion": {
|
||||
"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",
|
||||
"patewayai": "PatewayAI offers special benefits for CC Switch users. Register via this link to receive $3 credit.",
|
||||
"claudeapi": "ClaudeAPI offers special benefits for CC Switch users. Register via this link to claim test credits.",
|
||||
"minimax_cn": "MiniMax Coding Plan Special Offer, Starter from ¥9.9",
|
||||
"minimax_en": "MiniMax Coding Plan Black Friday, Starter is now $2/mo (80% OFF!)",
|
||||
"dmxapi": "Claude Code exclusive model 66% OFF now!",
|
||||
|
||||
@@ -836,6 +836,7 @@
|
||||
"partnerPromotion": {
|
||||
"packycode": "PackyCode は CC Switch の公式パートナーです。登録後チャージ時に \"cc-switch\" を入力すると 10% オフ",
|
||||
"patewayai": "PatewayAI は CC Switch ユーザーに特別な特典を提供しています。このリンクから登録すると $3 のクレジットがもらえます。",
|
||||
"claudeapi": "ClaudeAPI は CC Switch ユーザーに特別な特典を提供しています。このリンクから登録するとテストクレジットを受け取ることができます。",
|
||||
"minimax_cn": "MiniMax Coding Plan 特別価格、Starter ¥9.9 から",
|
||||
"minimax_en": "MiniMax Coding Plan Black Friday、Starter が月額 $2(80% OFF)",
|
||||
"dmxapi": "Claude Code 専用モデル 66% OFF 実施中!",
|
||||
|
||||
@@ -836,6 +836,7 @@
|
||||
"partnerPromotion": {
|
||||
"packycode": "PackyCode 是 CC Switch 的官方合作伙伴,使用此链接注册并在充值时填写 \"cc-switch\" 优惠码,可以享受9折优惠",
|
||||
"patewayai": "PatewayAI 为 CC Switch 的用户提供了特别福利,通过此链接注册可以获得3美元额度。",
|
||||
"claudeapi": "ClaudeAPI 为 CC Switch 的用户提供了特别福利,通过此链接注册可以领取测试额度。",
|
||||
"minimax_cn": "MiniMax Coding Plan 特惠,Starter 套餐 9.9 元起",
|
||||
"minimax_en": "MiniMax Coding Plan 黑五特惠,Starter 套餐现仅 $2/月(2折优惠!)",
|
||||
"dmxapi": "Claude Code 专属模型 3.4 折优惠进行中!",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
@@ -1,6 +1,7 @@
|
||||
// Auto-generated icon index
|
||||
// Do not edit manually
|
||||
|
||||
import _claudeapi from "./ClaudeApi.png";
|
||||
import _eflowcode from "./eflowcode.png";
|
||||
import _hermes from "./hermes.png";
|
||||
import _lemondata from "./lemondata.png";
|
||||
@@ -81,6 +82,7 @@ export const icons: Record<string, string> = {
|
||||
};
|
||||
|
||||
export const iconUrls: Record<string, string> = {
|
||||
claudeapi: _claudeapi,
|
||||
eflowcode: _eflowcode,
|
||||
hermes: _hermes,
|
||||
lemondata: _lemondata,
|
||||
|
||||
@@ -72,6 +72,12 @@ export const iconMetadata: Record<string, IconMetadata> = {
|
||||
keywords: ["anthropic"],
|
||||
defaultColor: "#D4915D",
|
||||
},
|
||||
claudeapi: {
|
||||
name: "claudeapi",
|
||||
displayName: "ClaudeAPI",
|
||||
category: "ai-provider",
|
||||
keywords: ["claudeapi", "claude", "anthropic", "bedrock"],
|
||||
},
|
||||
cloudflare: {
|
||||
name: "cloudflare",
|
||||
displayName: "Cloudflare",
|
||||
|
||||
Reference in New Issue
Block a user