mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-31 02:51:21 +08:00
feat(presets): add NekoCode partner preset for 6 apps
Partner aggregator (New API gateway) across Claude Code, Claude Desktop, Codex, OpenCode, OpenClaw, and Hermes -- no Gemini, since its /v1beta surface falls through to the web app. Claude Code and Claude Desktop use the bare host https://nekocode.ai; Codex, OpenCode, OpenClaw, and Hermes use /v1 with gpt-5.5. Marks isPartner with the ?aff=CCSWITCH referral on apiKeyUrl only (the website URL and every API endpoint stay bare, so the attribution param never rides on a real request). Adds the partnerPromotion blurb in all four locales and a sponsor row appended to the end of all four READMEs, surfacing the CC Switch offer: 10% off top-ups with promo code cc-switch. Registers the logo-derived nekocode-icon.png via URL import; the README banner is normalized to the standard 1920x798 aspect ratio.
This commit is contained in:
@@ -478,6 +478,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "NekoCode",
|
||||
websiteUrl: "https://nekocode.ai",
|
||||
apiKeyUrl: "https://nekocode.ai?aff=CCSWITCH",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "NekoCode",
|
||||
options: {
|
||||
baseURL: "https://nekocode.ai/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.5": { name: "GPT-5.5" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "nekocode",
|
||||
icon: "nekocode",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "火山Agentplan",
|
||||
websiteUrl: "https://www.volcengine.com/product/ark",
|
||||
|
||||
Reference in New Issue
Block a user