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

Merge main into release/v3.8.8

diegosouzapw72b4804c1b82
diff --cc src/sse/services/auth.ts
index 350e9f2b4d,fd645bc84c..0652c277eb
--- a/src/sse/services/auth.ts
+++ b/src/sse/services/auth.ts
@@@ -810,7 -804,34 +812,34 @@@ async function getProviderSearchPool(pr
return ["nvidia_nim", "nvidia"];
}
- return Array.from(new Set([provider, canonicalProvider, canonicalAlias].filter(Boolean)));
+ const searchPool = new Set([provider, canonicalProvider, canonicalAlias].filter(Boolean));
+
+ // Built-in providers already resolve through static ids/aliases. Only
+ // compatible/custom providers need provider_nodes expansion back to the
- // generated internal connection ids.
++ // generated internal connection ids. (#3058)
+ if (getProviderById(canonicalProvider)) {
+ return Array.from(searchPool);
+ }
+
+ // Custom provider nodes are referenced by user-facing prefixes in combos
+ // (for example "78code/gpt-5.4"), but live credentials are stored under
+ // internal provider ids like openai-compatible-responses-<uuid>.
+ try {
+ const providerNodes = await getProviderNodes();
+ for (const node of Array.isArray(providerNodes) ? providerNodes : []) {
+ const nodeRecord = asRecord(node);
+ const nodePrefix = typeof nodeRecord.prefix === "string" ? nodeRecord.prefix.trim() : "";
+ const nodeId = typeof nodeRecord.id === "string" ? nodeRecord.id.trim() : "";
+ if (!nodePrefix || !nodeId) continue;
+ if (nodePrefix === provider || nodePrefix === canonicalProvider || nodePrefix === canonicalAlias) {
+ searchPool.add(nodeId);
+ }
+ }
+ } catch {
+ // Best-effort alias expansion only.
+ }
+
+ return Array.from(searchPool);
}
/**
diff --cc tests/unit/quota-plan-registry.test.ts
index e8fe2efcce,e8fe2efcce..6976fd8385
--- a/tests/unit/quota-plan-registry.test.ts
+++ b/tests/unit/quota-plan-registry.test.ts
@@@ -64,13 -64,13 +64,24 @@@ test("getKnownPlan('') returns null", (
assert.equal(getKnownPlan(""), null);
});
--test("knownProviders() returns exactly 6 entries", () => {
-- assert.equal(knownProviders().length, 6);
++test("knownProviders() returns exactly 10 entries", () => {
++ assert.equal(knownProviders().length, 10);
});
--test("knownProviders() includes codex/glm/minimax/bailian/kimi/alibaba", () => {
++test("knownProviders() includes the full registry set", () => {
const list = knownProviders() as readonly string[];
-- for (const p of ["codex", "glm", "minimax", "bailian", "kimi", "alibaba"]) {
++ for (const p of [
++ "codex",
++ "claude",
++ "glm",
++ "minimax",
++ "deepseek",
++ "bailian",
++ "kimi",
++ "kimi-coding",
++ "xiaomi-mimo",
++ "alibaba",
++ ]) {
assert.ok(list.includes(p), `missing ${p}`);
}
});