feat(presets): add PatewayAI provider presets

Add PatewayAI as a new partner provider with support for:
- Claude Code preset (using ANTHROPIC_API_KEY field)
- Codex preset (gpt-5.5 model)
- Claude Desktop preset (proxy mode with passthrough routes)
- Icon configuration (pateway.jpg)
- i18n support (zh/en/ja) with $3 registration bonus promotion

PatewayAI provides reliable API routing services for Claude Code,
Codex, and Gemini models.
This commit is contained in:
Jason
2026-05-14 22:36:45 +08:00
parent b642ef0633
commit 08cd5ab56e
9 changed files with 56 additions and 0 deletions
@@ -503,6 +503,19 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
partnerPromotionKey: "packycode",
icon: "packycode",
},
{
name: "PatewayAI",
websiteUrl: "https://pateway.ai",
apiKeyUrl: "https://pateway.ai/?ch=etzpm8&aff=WB6M6F67#/",
category: "third_party",
baseUrl: "https://api.pateway.ai",
mode: "proxy",
apiFormat: "anthropic",
modelRoutes: passthroughRoutes(),
isPartner: true,
partnerPromotionKey: "patewayai",
icon: "pateway",
},
{
name: "Cubence",
websiteUrl: "https://cubence.com",
+16
View File
@@ -539,6 +539,22 @@ export const providerPresets: ProviderPreset[] = [
partnerPromotionKey: "packycode", // 促销信息 i18n key
icon: "packycode",
},
{
name: "PatewayAI",
websiteUrl: "https://pateway.ai",
apiKeyUrl: "https://pateway.ai/?ch=etzpm8&aff=WB6M6F67#/",
apiKeyField: "ANTHROPIC_API_KEY",
settingsConfig: {
env: {
ANTHROPIC_BASE_URL: "https://api.pateway.ai",
ANTHROPIC_API_KEY: "",
},
},
category: "third_party",
isPartner: true,
partnerPromotionKey: "patewayai",
icon: "pateway",
},
{
name: "Cubence",
websiteUrl: "https://cubence.com",
+16
View File
@@ -170,6 +170,22 @@ requires_openai_auth = true`,
partnerPromotionKey: "packycode", // 促销信息 i18n key
icon: "packycode",
},
{
name: "PatewayAI",
websiteUrl: "https://pateway.ai",
apiKeyUrl: "https://pateway.ai/?ch=etzpm8&aff=WB6M6F67#/",
category: "third_party",
auth: generateThirdPartyAuth(""),
config: generateThirdPartyConfig(
"patewayai",
"https://api.pateway.ai/v1",
"gpt-5.5",
),
endpointCandidates: ["https://api.pateway.ai/v1"],
isPartner: true,
partnerPromotionKey: "patewayai",
icon: "pateway",
},
{
name: "Cubence",
websiteUrl: "https://cubence.com",
+1
View File
@@ -835,6 +835,7 @@
"getApiKey": "Get API Key",
"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.",
"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!",
+1
View File
@@ -835,6 +835,7 @@
"getApiKey": "API Key を取得",
"partnerPromotion": {
"packycode": "PackyCode は CC Switch の公式パートナーです。登録後チャージ時に \"cc-switch\" を入力すると 10% オフ",
"patewayai": "PatewayAI は CC Switch ユーザーに特別な特典を提供しています。このリンクから登録すると $3 のクレジットがもらえます。",
"minimax_cn": "MiniMax Coding Plan 特別価格、Starter ¥9.9 から",
"minimax_en": "MiniMax Coding Plan Black Friday、Starter が月額 $280% OFF",
"dmxapi": "Claude Code 専用モデル 66% OFF 実施中!",
+1
View File
@@ -835,6 +835,7 @@
"getApiKey": "获取 API Key",
"partnerPromotion": {
"packycode": "PackyCode 是 CC Switch 的官方合作伙伴,使用此链接注册并在充值时填写 \"cc-switch\" 优惠码,可以享受9折优惠",
"patewayai": "PatewayAI 为 CC Switch 的用户提供了特别福利,通过此链接注册可以获得3美元额度。",
"minimax_cn": "MiniMax Coding Plan 特惠,Starter 套餐 9.9 元起",
"minimax_en": "MiniMax Coding Plan 黑五特惠,Starter 套餐现仅 $2/月(2折优惠!)",
"dmxapi": "Claude Code 专属模型 3.4 折优惠进行中!",
+2
View File
@@ -4,6 +4,7 @@
import _eflowcode from "./eflowcode.png";
import _hermes from "./hermes.png";
import _lemondata from "./lemondata.png";
import _pateway from "./pateway.jpg";
import _pipellm from "./pipellm.png";
import _shengsuanyun from "./shengsuanyun.svg?url";
@@ -83,6 +84,7 @@ export const iconUrls: Record<string, string> = {
eflowcode: _eflowcode,
hermes: _hermes,
lemondata: _lemondata,
pateway: _pateway,
pipellm: _pipellm,
shengsuanyun: _shengsuanyun,
};
+6
View File
@@ -282,6 +282,12 @@ export const iconMetadata: Record<string, IconMetadata> = {
keywords: ["packycode", "packy", "packyapi"],
defaultColor: "currentColor",
},
pateway: {
name: "pateway",
displayName: "PatewayAI",
category: "ai-provider",
keywords: ["pateway", "patewayai", "claude", "codex"],
},
palm: {
name: "palm",
displayName: "palm",
Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB