Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

Squashed commit of the following:

diegosouzapw94ae0f192108
diff --git a/open-sse/config/providerRegistry.ts b/open-sse/config/providerRegistry.ts
index 5f143a03b1..bc8044a3cf 100644
--- a/open-sse/config/providerRegistry.ts
+++ b/open-sse/config/providerRegistry.ts
@@ -931,6 +931,37 @@ export const REGISTRY: Record<string, RegistryEntry> = {
],
},
+ crof: {
+ id: "crof",
+ alias: "crof",
+ format: "openai",
+ executor: "default",
+ baseUrl: "https://crof.ai/v1/chat/completions",
+ authType: "apikey",
+ authHeader: "bearer",
+ // Seed list — runtime /v1/models discovery keeps this fresh.
+ // Source: GET https://crof.ai/v1/models (2026-04-25).
+ models: [
+ { id: "deepseek-v4-pro", name: "DeepSeek V4 Pro" },
+ { id: "deepseek-v3.2", name: "DeepSeek V3.2" },
+ { id: "kimi-k2.6", name: "Kimi K2.6" },
+ { id: "kimi-k2.6-precision", name: "Kimi K2.6 (Precision)" },
+ { id: "kimi-k2.5", name: "Kimi K2.5" },
+ { id: "kimi-k2.5-lightning", name: "Kimi K2.5 (Lightning)" },
+ { id: "glm-5.1", name: "GLM 5.1" },
+ { id: "glm-5.1-precision", name: "GLM 5.1 (Precision)" },
+ { id: "glm-5", name: "GLM 5" },
+ { id: "glm-4.7", name: "GLM 4.7" },
+ { id: "glm-4.7-flash", name: "GLM 4.7 Flash" },
+ { id: "gemma-4-31b-it", name: "Gemma 4 31B" },
+ { id: "minimax-m2.5", name: "MiniMax M2.5" },
+ { id: "qwen3.6-27b", name: "Qwen3.6 27B" },
+ { id: "qwen3.5-397b-a17b", name: "Qwen3.5 397B A17B" },
+ { id: "qwen3.5-9b", name: "Qwen3.5 9B" },
+ { id: "qwen3.5-9b-chat", name: "Qwen3.5 9B (Chat)" },
+ ],
+ },
+
alicode: {
id: "alicode",
alias: "alicode",
diff --git a/src/shared/constants/config.ts b/src/shared/constants/config.ts
index b84080eb32..6cddcc0a6a 100644
--- a/src/shared/constants/config.ts
+++ b/src/shared/constants/config.ts
@@ -28,6 +28,7 @@ export const PROVIDER_ENDPOINTS = {
"kimi-coding-apikey": "https://api.kimi.com/coding/v1/messages",
minimax: "https://api.minimax.io/anthropic/v1/messages",
"minimax-cn": "https://api.minimaxi.com/anthropic/v1/messages",
+ crof: "https://crof.ai/v1/chat/completions",
openai: "https://api.openai.com/v1/chat/completions",
anthropic: "https://api.anthropic.com/v1/messages",
gemini: "https://generativelanguage.googleapis.com/v1beta/models",
diff --git a/src/shared/constants/providers.ts b/src/shared/constants/providers.ts
index 706b7a1bf4..4bd9bfd5d3 100644
--- a/src/shared/constants/providers.ts
+++ b/src/shared/constants/providers.ts
@@ -257,6 +257,15 @@ export const APIKEY_PROVIDERS = {
textIcon: "MC",
website: "https://www.minimaxi.com",
},
+ crof: {
+ id: "crof",
+ alias: "crof",
+ name: "CrofAI",
+ icon: "auto_awesome",
+ color: "#0EA5E9",
+ textIcon: "CR",
+ website: "https://crof.ai",
+ },
alicode: {
id: "alicode",
alias: "alicode",
diff --git a/tests/unit/crof-provider.test.ts b/tests/unit/crof-provider.test.ts
new file mode 100644
index 0000000000..c6e7703555
--- /dev/null
+++ b/tests/unit/crof-provider.test.ts
@@ -0,0 +1,43 @@
+import test from "node:test";
+import assert from "node:assert/strict";
+
+const { APIKEY_PROVIDERS } = await import("../../src/shared/constants/providers.ts");
+const { PROVIDER_ENDPOINTS } = await import("../../src/shared/constants/config.ts");
+const { REGISTRY: providerRegistry } = await import("../../open-sse/config/providerRegistry.ts");
+
+test("CrofAI is registered as an API-key provider with the canonical identity", () => {
+ const crof = APIKEY_PROVIDERS.crof;
+ assert.ok(crof, "APIKEY_PROVIDERS.crof must be defined");
+ assert.equal(crof.id, "crof");
+ assert.equal(crof.alias, "crof");
+ assert.equal(crof.name, "CrofAI");
+ assert.equal(crof.website, "https://crof.ai");
+ assert.equal(typeof crof.textIcon, "string");
+});
+
+test("CrofAI exposes the OpenAI-compatible chat completions URL", () => {
+ assert.equal(PROVIDER_ENDPOINTS.crof, "https://crof.ai/v1/chat/completions");
+});
+
+test("CrofAI registry entry uses OpenAI format with bearer apikey auth", () => {
+ const entry = providerRegistry.crof;
+ assert.ok(entry, "providerRegistry.crof must be defined");
+ assert.equal(entry.id, "crof");
+ assert.equal(entry.format, "openai");
+ assert.equal(entry.executor, "default");
+ assert.equal(entry.authType, "apikey");
+ assert.equal(entry.authHeader, "bearer");
+ assert.equal(entry.baseUrl, "https://crof.ai/v1/chat/completions");
+});
+
+test("CrofAI seed model list includes the headline families and unique ids", () => {
+ const ids = providerRegistry.crof.models.map((m: { id: string }) => m.id);
+ assert.ok(ids.length >= 10, "expect a non-trivial seed list");
+ assert.equal(new Set(ids).size, ids.length, "model ids must be unique");
+ for (const family of ["deepseek-v", "kimi-k2", "glm-", "qwen3"]) {
+ assert.ok(
+ ids.some((id: string) => id.startsWith(family)),
+ `seed list must include ${family}* model`
+ );
+ }
+});