feat(providers): add Hackclub AI as free provider (#2339)

Integrated into release/v3.8.0 — adds Hackclub AI as free aggregator with 30+ models, auth optional
This commit is contained in:
Paijo
2026-05-18 05:43:58 +07:00
committed by GitHub
parent c2451038a0
commit aefd9bbbc7
2 changed files with 29 additions and 0 deletions

View File

@@ -2693,6 +2693,20 @@ export const REGISTRY: Record<string, RegistryEntry> = {
],
},
hackclub: {
id: "hackclub",
alias: "hc",
format: "openai",
executor: "default",
baseUrl: "https://ai.hackclub.com/proxy/v1/chat/completions",
modelsUrl: "https://ai.hackclub.com/proxy/v1/models",
authType: "optional",
authHeader: "bearer",
passthroughModels: true,
defaultContextLength: 128000,
models: [],
},
deepinfra: {
id: "deepinfra",
alias: "deepinfra",

View File

@@ -876,6 +876,19 @@ export const APIKEY_PROVIDERS = {
passthroughModels: true,
authHint: "No auth required. API accepts any non-empty string as key for identification.",
},
hackclub: {
id: "hackclub",
alias: "hc",
name: "Hackclub AI",
icon: "auto_awesome",
color: "#FF6B00",
textIcon: "HC",
website: "https://ai.hackclub.com",
hasFree: true,
freeNote: "Free AI for Hack Club members — 30+ models, no credit card.",
passthroughModels: true,
authHint: "Sign in with your Hack Club account at ai.hackclub.com.",
},
"github-models": {
id: "github-models",
alias: "ghm",
@@ -1590,6 +1603,7 @@ export const AGGREGATOR_PROVIDER_IDS = new Set([
"empower",
"poe",
"chutes",
"hackclub",
]);
export const ENTERPRISE_CLOUD_PROVIDER_IDS = new Set([
@@ -2023,6 +2037,7 @@ export function providerAllowsOptionalApiKey(providerId: unknown): boolean {
providerId === "searxng-search" ||
providerId === "petals" ||
providerId === "pollinations" ||
providerId === "hackclub" ||
isLocalProvider(providerId) ||
isSelfHostedChatProvider(providerId) ||
isOpenAICompatibleProvider(providerId) ||