mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-31 02:51:21 +08:00
feat(presets): add A6API sponsor preset across all supported apps
Add the A6API aggregator preset to Claude Code, Claude Desktop, Codex, Gemini CLI, OpenCode, OpenClaw, Hermes and Grok Build, placed after NekoCode in the sponsor ordering. Base URLs follow the per-client convention: no /v1 suffix for the Anthropic-native and Gemini endpoints, /v1 for the OpenAI-compatible ones. Model defaults mirror NekoCode. Also add the four-locale promotion copy, the sponsor row in all four READMEs and the icon index entry. The supplied artwork was resized before landing: the icon was a 1024x1024 PNG base64-wrapped in an SVG shell (652K, the largest entry in iconUrls and shipped in every build), now a 256x256 PNG at 60K; the banners were 16:9, the only ones deviating from the 2.406 project standard, now cropped to 1280x532.
This commit is contained in:
@@ -528,6 +528,19 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
partnerPromotionKey: "nekocode",
|
||||
icon: "nekocode",
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
category: "aggregator",
|
||||
baseUrl: "https://api.a6api.com",
|
||||
mode: "direct",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
|
||||
@@ -532,6 +532,21 @@ export const providerPresets: ProviderPreset[] = [
|
||||
partnerPromotionKey: "nekocode",
|
||||
icon: "nekocode",
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://api.a6api.com",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
|
||||
@@ -622,6 +622,22 @@ requires_openai_auth = true`,
|
||||
partnerPromotionKey: "nekocode",
|
||||
icon: "nekocode",
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
category: "aggregator",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"a6api",
|
||||
"https://api.a6api.com/v1",
|
||||
"gpt-5.6-sol",
|
||||
),
|
||||
endpointCandidates: ["https://api.a6api.com/v1"],
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
|
||||
@@ -245,6 +245,24 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
||||
partnerPromotionKey: "code0",
|
||||
icon: "code0",
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
GOOGLE_GEMINI_BASE_URL: "https://api.a6api.com",
|
||||
GEMINI_MODEL: "gemini-3.6-flash",
|
||||
},
|
||||
},
|
||||
baseURL: "https://api.a6api.com",
|
||||
model: "gemini-3.6-flash",
|
||||
description: "A6API",
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
},
|
||||
{
|
||||
name: "SSSAiCode",
|
||||
websiteUrl: "https://sssaicodeapi.com",
|
||||
|
||||
@@ -285,6 +285,18 @@ export const grokBuildProviderPresets: GrokBuildProviderPreset[] = [
|
||||
partnerPromotionKey: "nekocode",
|
||||
icon: "nekocode",
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
auth: grokAuth(),
|
||||
config: grokPresetConfig("A6API", "https://api.a6api.com/v1"),
|
||||
endpointCandidates: ["https://api.a6api.com/v1"],
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
},
|
||||
{
|
||||
name: "Compshare",
|
||||
nameKey: "providerForm.presets.ucloud",
|
||||
|
||||
@@ -691,6 +691,25 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
model: { default: "gpt-5.6-sol", provider: "nekocode" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
settingsConfig: {
|
||||
name: "a6api",
|
||||
base_url: "https://api.a6api.com/v1",
|
||||
api_key: "",
|
||||
api_mode: "chat_completions",
|
||||
models: [{ id: "gpt-5.6-sol", name: "GPT-5.6 Sol" }],
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
suggestedDefaults: {
|
||||
model: { default: "gpt-5.6-sol", provider: "a6api" },
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
|
||||
@@ -1030,6 +1030,42 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://api.a6api.com/v1",
|
||||
apiKey: "",
|
||||
api: "openai-completions",
|
||||
models: [
|
||||
{
|
||||
id: "gpt-5.6-sol",
|
||||
name: "GPT-5.6 Sol",
|
||||
contextWindow: 400000,
|
||||
},
|
||||
],
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
suggestedDefaults: {
|
||||
model: {
|
||||
primary: "a6api/gpt-5.6-sol",
|
||||
},
|
||||
modelCatalog: {
|
||||
"a6api/gpt-5.6-sol": { alias: "GPT-5.6 Sol" },
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
|
||||
@@ -921,6 +921,34 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "A6API",
|
||||
websiteUrl: "https://www.a6api.com",
|
||||
apiKeyUrl: "https://a6api.com/register?aff=AqNr",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/openai-compatible",
|
||||
name: "A6API",
|
||||
options: {
|
||||
baseURL: "https://api.a6api.com/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
models: {
|
||||
"gpt-5.6-sol": { name: "GPT-5.6 Sol" },
|
||||
},
|
||||
},
|
||||
category: "aggregator",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "a6api",
|
||||
icon: "a6api",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AtlasCloud",
|
||||
websiteUrl: "https://www.atlascloud.ai/console/coding-plan",
|
||||
|
||||
@@ -1020,6 +1020,7 @@
|
||||
"providerKeyStatusLoading": "Provider identifier status is still loading. Please try again shortly.",
|
||||
"getApiKey": "Get API Key",
|
||||
"partnerPromotion": {
|
||||
"a6api": "A6API is a token aggregation platform with a built-in real-time price leaderboard that automatically picks the lowest price on the market. Smooth and stable, simple to operate, and no more tedious price comparisons. Register now to claim free trial credits!",
|
||||
"sudocode": "With one SudoCode key, Claude Code and Claude Desktop use Claude Opus 5, while Codex uses GPT-5.6. Sign up, join QQ group 726213516, and contact the group owner to claim CNY ¥10 in trial credit.",
|
||||
"code0": "code0.ai is an AI coding service platform for developers, supporting Claude Code, Codex, and Gemini. Exclusive for CC Switch users: contact support via the official website to claim free trial credits!",
|
||||
"nekocode": "NekoCode gives developers a stable, efficient, and reliable API relay for Claude, Codex, and other AI models, with transparent pay-as-you-go pricing. Exclusive 10% off for CC Switch users: register via the link above and enter promo code cc-switch at recharge to save 10%!",
|
||||
|
||||
@@ -1020,6 +1020,7 @@
|
||||
"providerKeyStatusLoading": "プロバイダー識別子の状態を読み込んでいます。しばらくしてからもう一度お試しください",
|
||||
"getApiKey": "API Key を取得",
|
||||
"partnerPromotion": {
|
||||
"a6api": "A6API はトークンアグリゲーションサイトです。リアルタイム価格ランキングを内蔵し、全ネット最安値を自動で選択。動作は滑らかで安定し、面倒な価格比較も不要。登録するだけで体験クレジットがもらえます!",
|
||||
"sudocode": "SudoCode の1つのキーで、Claude Code と Claude Desktop では Claude Opus 5、Codex では GPT-5.6 を利用できます。登録後 QQ グループ 726213516 に参加し、管理者へ連絡すると CNY ¥10 のトライアルクレジットを受け取れます。",
|
||||
"code0": "code0.ai は開発者向けの AI コーディングサービスプラットフォームで、Claude Code、Codex、Gemini に対応。CC Switch ユーザー限定特典:公式サイトからサポートに連絡してテストクレジットを受け取れます!",
|
||||
"nekocode": "NekoCode は Claude や Codex などの AI モデルに対応した、安定・高効率で信頼性の高い API 中継サービスを提供します。明瞭な従量課金制。CC Switch ユーザー限定 10%オフ:上のリンクから登録し、チャージ時にクーポンコード cc-switch を入力すると 10%オフ!",
|
||||
|
||||
@@ -991,6 +991,7 @@
|
||||
"providerKeyStatusLoading": "正在載入供應商識別碼狀態,請稍後再試",
|
||||
"getApiKey": "取得 API Key",
|
||||
"partnerPromotion": {
|
||||
"a6api": "A6API 是一家 Token 聚合站,內建即時價格排行自動篩選全網最低價,滑順穩定不卡頓,簡易操作省去比價繁瑣,註冊獲得體驗金!",
|
||||
"sudocode": "SudoCode 讓 Claude Code 與 Claude Desktop 使用 Claude Opus 5,Codex 使用 GPT-5.6,一個 Key 統一管理。CC Switch 使用者註冊並加入 QQ 群 726213516,聯絡群主領取人民幣 ¥10 試用額度。",
|
||||
"code0": "code0.ai 是面向開發者的 AI 程式設計服務平台,支援 Claude Code、Codex、Gemini。CC Switch 使用者專屬福利:透過官網聯繫客服即可領取測試額度!",
|
||||
"nekocode": "NekoCode 為開發者提供穩定、高效、可靠的 Claude、Codex 等 AI 模型 API 中轉服務,價格透明、按量計費。CC Switch 使用者專享 9 折:透過上方連結註冊,儲值時輸入優惠碼 cc-switch 即享 9 折優惠!",
|
||||
|
||||
@@ -1020,6 +1020,7 @@
|
||||
"providerKeyStatusLoading": "正在加载供应商标识状态,请稍后再试",
|
||||
"getApiKey": "获取 API Key",
|
||||
"partnerPromotion": {
|
||||
"a6api": "A6API 是一家 Token 聚合站,内置实时价格排行自动筛选全网最低价,丝滑稳定不卡顿,简易操作省去比价繁琐,注册获得体验金!",
|
||||
"sudocode": "SudoCode 让 Claude Code 与 Claude Desktop 接入 Claude Opus 5,Codex 接入 GPT-5.6,一个 Key 统一使用。CC Switch 用户注册并加入 QQ 群 726213516,联系群主领取 ¥10 试用额度。",
|
||||
"code0": "code0.ai 是面向开发者的 AI 编程服务平台,支持 Claude Code、Codex、Gemini。CC Switch 用户专属福利:通过官网联系客服即可领取测试额度!",
|
||||
"nekocode": "NekoCode 为开发者提供稳定、高效、可靠的 Claude、Codex 等 AI 模型 API 中转服务,价格透明、按量计费。CC Switch 用户专享 9 折:通过上方链接注册,充值时输入优惠码 cc-switch 即享 9 折优惠!",
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
@@ -1,6 +1,7 @@
|
||||
// Auto-generated icon index
|
||||
// Do not edit manually
|
||||
|
||||
import _a6api from "./a6-icon.png";
|
||||
import _apikeyfun from "./apikeyfun.png";
|
||||
import _apinebula from "./apinebula_icon.png";
|
||||
import _atlascloud from "./atlascloud_icon.png";
|
||||
@@ -103,6 +104,7 @@ export const icons: Record<string, string> = {
|
||||
};
|
||||
|
||||
export const iconUrls: Record<string, string> = {
|
||||
a6api: _a6api,
|
||||
apikeyfun: _apikeyfun,
|
||||
apinebula: _apinebula,
|
||||
atlascloud: _atlascloud,
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
import { IconMetadata } from "@/types/icon";
|
||||
|
||||
export const iconMetadata: Record<string, IconMetadata> = {
|
||||
a6api: {
|
||||
name: "a6api",
|
||||
displayName: "A6API",
|
||||
category: "ai-provider",
|
||||
keywords: ["a6api", "a6", "aggregator", "relay", "gateway", "claude"],
|
||||
defaultColor: "#3B82F6",
|
||||
},
|
||||
aigocode: {
|
||||
name: "aigocode",
|
||||
displayName: "AIGoCode",
|
||||
|
||||
Reference in New Issue
Block a user